Subversion Repositories SmartDukaan

Rev

Rev 9665 | Rev 9762 | 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
 
9761 amar.kumar 459
  def getOosStatusesForXDaysForItem(self, itemId, days):
6832 amar.kumar 460
    """
461
    Parameters:
462
     - itemId
463
     - days
464
    """
465
    pass
6821 amar.kumar 466
 
6857 amar.kumar 467
  def getNonZeroItemStockPurchaseParams(self, ):
468
    pass
6832 amar.kumar 469
 
7149 amar.kumar 470
  def getBillableInventoryAndPendingOrders(self, ):
471
    """
472
    Returns a list of inventory stock for items for which there are pending orders or have billable inventory.
473
    """
474
    pass
6857 amar.kumar 475
 
7281 kshitij.so 476
  def getWarehouseName(self, warehouse_id):
477
    """
478
    Parameters:
479
     - warehouse_id
480
    """
481
    pass
7149 amar.kumar 482
 
7281 kshitij.so 483
  def getAmazonInventoryForItem(self, item_id):
484
    """
485
    Parameters:
486
     - item_id
487
    """
488
    pass
489
 
490
  def getAllAmazonInventory(self, ):
491
    pass
492
 
493
  def addOrUpdateAmazonInventoryForItem(self, amazonInventorySnapshot):
494
    """
495
    Parameters:
496
     - amazonInventorySnapshot
497
    """
498
    pass
499
 
7972 amar.kumar 500
  def getLastNdaySaleForItem(self, itemId, numberOfDays):
501
    """
502
    Parameters:
503
     - itemId
504
     - numberOfDays
505
    """
506
    pass
7281 kshitij.so 507
 
8282 kshitij.so 508
  def addOrUpdateAmazonFbaInventory(self, amazonfbainventorysnapshot):
509
    """
510
    Parameters:
511
     - amazonfbainventorysnapshot
512
    """
513
    pass
514
 
8182 amar.kumar 515
  def addUpdateHoldInventory(self, itemId, warehouseId, holdQuantity, source):
516
    """
517
    Parameters:
518
     - itemId
519
     - warehouseId
520
     - holdQuantity
521
     - source
522
    """
523
    pass
7972 amar.kumar 524
 
8282 kshitij.so 525
  def getAmazonFbaItemInventory(self, itemId):
526
    """
527
    Parameters:
528
     - itemId
529
    """
530
    pass
8182 amar.kumar 531
 
8363 vikram.rag 532
  def getAllAmazonFbaItemInventory(self, ):
8282 kshitij.so 533
    pass
534
 
8363 vikram.rag 535
  def getOursGoodWarehouseIdsForLocation(self, state_id):
536
    """
537
    Parameters:
538
     - state_id
539
    """
540
    pass
8282 kshitij.so 541
 
8955 vikram.rag 542
  def getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, id, warehouse_id, source):
543
    """
544
    Parameters:
545
     - id
546
     - warehouse_id
547
     - source
548
    """
549
    pass
8363 vikram.rag 550
 
9404 vikram.rag 551
  def getSnapdealInventoryForItem(self, item_id):
552
    """
553
    Parameters:
554
     - item_id
555
    """
556
    pass
8955 vikram.rag 557
 
9404 vikram.rag 558
  def addOrUpdateSnapdealInventoryForItem(self, snapdealinventoryitem):
559
    """
560
    Parameters:
561
     - snapdealinventoryitem
562
    """
563
    pass
564
 
565
  def getNlcForWarehouse(self, warehouse_id, item_id):
566
    """
567
    Parameters:
568
     - warehouse_id
569
     - item_id
570
    """
571
    pass
572
 
9640 amar.kumar 573
  def getHeldInventoryMapForItem(self, item_id, warehouse_id):
574
    """
575
    Parameters:
576
     - item_id
577
     - warehouse_id
578
    """
579
    pass
580
 
9482 vikram.rag 581
  def addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
582
    """
583
    Parameters:
584
     - allamazonfbainventorysnapshot
585
    """
586
    pass
9456 vikram.rag 587
 
9495 vikram.rag 588
  def addOrUpdateAllSnapdealInventory(self, allsnapdealinventorysnapshot):
589
    """
590
    Parameters:
591
     - allsnapdealinventorysnapshot
592
    """
593
    pass
9482 vikram.rag 594
 
9495 vikram.rag 595
  def getSnapdealInventorySnapshot(self, ):
596
    pass
597
 
9761 amar.kumar 598
  def getHoldInventoryDetails(self, itemId, warehouseId, source):
599
    """
600
    Parameters:
601
     - itemId
602
     - warehouseId
603
     - source
604
    """
605
    pass
9495 vikram.rag 606
 
9761 amar.kumar 607
 
5944 mandeep.dh 608
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
609
  def __init__(self, iprot, oprot=None):
610
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
611
 
612
  def addWarehouse(self, warehouse):
613
    """
614
    Parameters:
615
     - warehouse
616
    """
617
    self.send_addWarehouse(warehouse)
618
    return self.recv_addWarehouse()
619
 
620
  def send_addWarehouse(self, warehouse):
621
    self._oprot.writeMessageBegin('addWarehouse', TMessageType.CALL, self._seqid)
622
    args = addWarehouse_args()
623
    args.warehouse = warehouse
624
    args.write(self._oprot)
625
    self._oprot.writeMessageEnd()
626
    self._oprot.trans.flush()
627
 
628
  def recv_addWarehouse(self, ):
629
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
630
    if mtype == TMessageType.EXCEPTION:
631
      x = TApplicationException()
632
      x.read(self._iprot)
633
      self._iprot.readMessageEnd()
634
      raise x
635
    result = addWarehouse_result()
636
    result.read(self._iprot)
637
    self._iprot.readMessageEnd()
638
    if result.success is not None:
639
      return result.success
640
    if result.cex is not None:
641
      raise result.cex
642
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addWarehouse failed: unknown result");
643
 
644
  def addVendor(self, vendor):
645
    """
646
    add a new vendor
647
 
648
    Parameters:
649
     - vendor
650
    """
651
    self.send_addVendor(vendor)
652
    return self.recv_addVendor()
653
 
654
  def send_addVendor(self, vendor):
655
    self._oprot.writeMessageBegin('addVendor', TMessageType.CALL, self._seqid)
656
    args = addVendor_args()
657
    args.vendor = vendor
658
    args.write(self._oprot)
659
    self._oprot.writeMessageEnd()
660
    self._oprot.trans.flush()
661
 
662
  def recv_addVendor(self, ):
663
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
664
    if mtype == TMessageType.EXCEPTION:
665
      x = TApplicationException()
666
      x.read(self._iprot)
667
      self._iprot.readMessageEnd()
668
      raise x
669
    result = addVendor_result()
670
    result.read(self._iprot)
671
    self._iprot.readMessageEnd()
672
    if result.success is not None:
673
      return result.success
674
    if result.cex is not None:
675
      raise result.cex
676
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addVendor failed: unknown result");
677
 
678
  def updateInventoryHistory(self, warehouse_id, timestamp, availability):
679
    """
680
    Stores the incremental warehouse updates of items.
681
 
682
    Parameters:
683
     - warehouse_id
684
     - timestamp
685
     - availability
686
    """
687
    self.send_updateInventoryHistory(warehouse_id, timestamp, availability)
688
    self.recv_updateInventoryHistory()
689
 
690
  def send_updateInventoryHistory(self, warehouse_id, timestamp, availability):
691
    self._oprot.writeMessageBegin('updateInventoryHistory', TMessageType.CALL, self._seqid)
692
    args = updateInventoryHistory_args()
693
    args.warehouse_id = warehouse_id
694
    args.timestamp = timestamp
695
    args.availability = availability
696
    args.write(self._oprot)
697
    self._oprot.writeMessageEnd()
698
    self._oprot.trans.flush()
699
 
700
  def recv_updateInventoryHistory(self, ):
701
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
702
    if mtype == TMessageType.EXCEPTION:
703
      x = TApplicationException()
704
      x.read(self._iprot)
705
      self._iprot.readMessageEnd()
706
      raise x
707
    result = updateInventoryHistory_result()
708
    result.read(self._iprot)
709
    self._iprot.readMessageEnd()
710
    if result.cex is not None:
711
      raise result.cex
712
    return
713
 
714
  def updateInventory(self, warehouse_id, timestamp, availability):
715
    """
716
    Stores the final inventory stocks of items.
717
 
718
    Parameters:
719
     - warehouse_id
720
     - timestamp
721
     - availability
722
    """
723
    self.send_updateInventory(warehouse_id, timestamp, availability)
724
    self.recv_updateInventory()
725
 
726
  def send_updateInventory(self, warehouse_id, timestamp, availability):
727
    self._oprot.writeMessageBegin('updateInventory', TMessageType.CALL, self._seqid)
728
    args = updateInventory_args()
729
    args.warehouse_id = warehouse_id
730
    args.timestamp = timestamp
731
    args.availability = availability
732
    args.write(self._oprot)
733
    self._oprot.writeMessageEnd()
734
    self._oprot.trans.flush()
735
 
736
  def recv_updateInventory(self, ):
737
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
738
    if mtype == TMessageType.EXCEPTION:
739
      x = TApplicationException()
740
      x.read(self._iprot)
741
      self._iprot.readMessageEnd()
742
      raise x
743
    result = updateInventory_result()
744
    result.read(self._iprot)
745
    self._iprot.readMessageEnd()
746
    if result.cex is not None:
747
      raise result.cex
748
    return
749
 
750
  def addInventory(self, itemId, warehouseId, quantity):
751
    """
752
    Add the inventory to existing stock.
753
 
754
    Parameters:
755
     - itemId
756
     - warehouseId
757
     - quantity
758
    """
759
    self.send_addInventory(itemId, warehouseId, quantity)
760
    self.recv_addInventory()
761
 
762
  def send_addInventory(self, itemId, warehouseId, quantity):
763
    self._oprot.writeMessageBegin('addInventory', TMessageType.CALL, self._seqid)
764
    args = addInventory_args()
765
    args.itemId = itemId
766
    args.warehouseId = warehouseId
767
    args.quantity = quantity
768
    args.write(self._oprot)
769
    self._oprot.writeMessageEnd()
770
    self._oprot.trans.flush()
771
 
772
  def recv_addInventory(self, ):
773
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
774
    if mtype == TMessageType.EXCEPTION:
775
      x = TApplicationException()
776
      x.read(self._iprot)
777
      self._iprot.readMessageEnd()
778
      raise x
779
    result = addInventory_result()
780
    result.read(self._iprot)
781
    self._iprot.readMessageEnd()
782
    if result.cex is not None:
783
      raise result.cex
784
    return
785
 
786
  def retireWarehouse(self, warehouse_id):
787
    """
788
    Parameters:
789
     - warehouse_id
790
    """
791
    self.send_retireWarehouse(warehouse_id)
792
    self.recv_retireWarehouse()
793
 
794
  def send_retireWarehouse(self, warehouse_id):
795
    self._oprot.writeMessageBegin('retireWarehouse', TMessageType.CALL, self._seqid)
796
    args = retireWarehouse_args()
797
    args.warehouse_id = warehouse_id
798
    args.write(self._oprot)
799
    self._oprot.writeMessageEnd()
800
    self._oprot.trans.flush()
801
 
802
  def recv_retireWarehouse(self, ):
803
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
804
    if mtype == TMessageType.EXCEPTION:
805
      x = TApplicationException()
806
      x.read(self._iprot)
807
      self._iprot.readMessageEnd()
808
      raise x
809
    result = retireWarehouse_result()
810
    result.read(self._iprot)
811
    self._iprot.readMessageEnd()
812
    if result.cex is not None:
813
      raise result.cex
814
    return
815
 
816
  def getItemInventoryByItemId(self, item_id):
817
    """
818
    Parameters:
819
     - item_id
820
    """
821
    self.send_getItemInventoryByItemId(item_id)
822
    return self.recv_getItemInventoryByItemId()
823
 
824
  def send_getItemInventoryByItemId(self, item_id):
825
    self._oprot.writeMessageBegin('getItemInventoryByItemId', TMessageType.CALL, self._seqid)
826
    args = getItemInventoryByItemId_args()
827
    args.item_id = item_id
828
    args.write(self._oprot)
829
    self._oprot.writeMessageEnd()
830
    self._oprot.trans.flush()
831
 
832
  def recv_getItemInventoryByItemId(self, ):
833
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
834
    if mtype == TMessageType.EXCEPTION:
835
      x = TApplicationException()
836
      x.read(self._iprot)
837
      self._iprot.readMessageEnd()
838
      raise x
839
    result = getItemInventoryByItemId_result()
840
    result.read(self._iprot)
841
    self._iprot.readMessageEnd()
842
    if result.success is not None:
843
      return result.success
844
    if result.cex is not None:
845
      raise result.cex
846
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemInventoryByItemId failed: unknown result");
847
 
848
  def getItemAvailibilityAtWarehouse(self, warehouse_id, item_id):
849
    """
850
    Parameters:
851
     - warehouse_id
852
     - item_id
853
    """
854
    self.send_getItemAvailibilityAtWarehouse(warehouse_id, item_id)
855
    return self.recv_getItemAvailibilityAtWarehouse()
856
 
857
  def send_getItemAvailibilityAtWarehouse(self, warehouse_id, item_id):
858
    self._oprot.writeMessageBegin('getItemAvailibilityAtWarehouse', TMessageType.CALL, self._seqid)
859
    args = getItemAvailibilityAtWarehouse_args()
860
    args.warehouse_id = warehouse_id
861
    args.item_id = item_id
862
    args.write(self._oprot)
863
    self._oprot.writeMessageEnd()
864
    self._oprot.trans.flush()
865
 
866
  def recv_getItemAvailibilityAtWarehouse(self, ):
867
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
868
    if mtype == TMessageType.EXCEPTION:
869
      x = TApplicationException()
870
      x.read(self._iprot)
871
      self._iprot.readMessageEnd()
872
      raise x
873
    result = getItemAvailibilityAtWarehouse_result()
874
    result.read(self._iprot)
875
    self._iprot.readMessageEnd()
876
    if result.success is not None:
877
      return result.success
878
    if result.cex is not None:
879
      raise result.cex
880
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailibilityAtWarehouse failed: unknown result");
881
 
5978 rajveer 882
  def getItemAvailabilityAtLocation(self, itemId, sourceId):
5944 mandeep.dh 883
    """
884
    Determines the warehouse that should be used to fulfil an order for the given item.
885
    It first checks all the warehouses which are in the logistics location given by the
886
    warehouse_loc parameter. If none of the warehouses there have any inventory, then the
887
    preferred warehouse for the item is used.
888
 
889
    Returns an ordered list of size 4 with following elements in the given order:
890
    1. Id of the fulfillment warehouse which was finally picked up.
891
    2. Expected delay added by the category manager.
892
    3. Id of the billing warehouse which was finally picked up.
893
 
894
    Parameters:
895
     - itemId
5978 rajveer 896
     - sourceId
5944 mandeep.dh 897
    """
5978 rajveer 898
    self.send_getItemAvailabilityAtLocation(itemId, sourceId)
5944 mandeep.dh 899
    return self.recv_getItemAvailabilityAtLocation()
900
 
5978 rajveer 901
  def send_getItemAvailabilityAtLocation(self, itemId, sourceId):
5944 mandeep.dh 902
    self._oprot.writeMessageBegin('getItemAvailabilityAtLocation', TMessageType.CALL, self._seqid)
903
    args = getItemAvailabilityAtLocation_args()
904
    args.itemId = itemId
5978 rajveer 905
    args.sourceId = sourceId
5944 mandeep.dh 906
    args.write(self._oprot)
907
    self._oprot.writeMessageEnd()
908
    self._oprot.trans.flush()
909
 
910
  def recv_getItemAvailabilityAtLocation(self, ):
911
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
912
    if mtype == TMessageType.EXCEPTION:
913
      x = TApplicationException()
914
      x.read(self._iprot)
915
      self._iprot.readMessageEnd()
916
      raise x
917
    result = getItemAvailabilityAtLocation_result()
918
    result.read(self._iprot)
919
    self._iprot.readMessageEnd()
920
    if result.success is not None:
921
      return result.success
922
    if result.isex is not None:
923
      raise result.isex
924
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailabilityAtLocation failed: unknown result");
925
 
926
  def getAllWarehouses(self, isActive):
927
    """
928
    Parameters:
929
     - isActive
930
    """
931
    self.send_getAllWarehouses(isActive)
932
    return self.recv_getAllWarehouses()
933
 
934
  def send_getAllWarehouses(self, isActive):
935
    self._oprot.writeMessageBegin('getAllWarehouses', TMessageType.CALL, self._seqid)
936
    args = getAllWarehouses_args()
937
    args.isActive = isActive
938
    args.write(self._oprot)
939
    self._oprot.writeMessageEnd()
940
    self._oprot.trans.flush()
941
 
942
  def recv_getAllWarehouses(self, ):
943
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
944
    if mtype == TMessageType.EXCEPTION:
945
      x = TApplicationException()
946
      x.read(self._iprot)
947
      self._iprot.readMessageEnd()
948
      raise x
949
    result = getAllWarehouses_result()
950
    result.read(self._iprot)
951
    self._iprot.readMessageEnd()
952
    if result.success is not None:
953
      return result.success
954
    if result.cex is not None:
955
      raise result.cex
956
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllWarehouses failed: unknown result");
957
 
958
  def getWarehouse(self, warehouse_id):
959
    """
960
    Returns the warehouse with the given id.
961
 
962
    Parameters:
963
     - warehouse_id
964
    """
965
    self.send_getWarehouse(warehouse_id)
966
    return self.recv_getWarehouse()
967
 
968
  def send_getWarehouse(self, warehouse_id):
969
    self._oprot.writeMessageBegin('getWarehouse', TMessageType.CALL, self._seqid)
970
    args = getWarehouse_args()
971
    args.warehouse_id = warehouse_id
972
    args.write(self._oprot)
973
    self._oprot.writeMessageEnd()
974
    self._oprot.trans.flush()
975
 
976
  def recv_getWarehouse(self, ):
977
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
978
    if mtype == TMessageType.EXCEPTION:
979
      x = TApplicationException()
980
      x.read(self._iprot)
981
      self._iprot.readMessageEnd()
982
      raise x
983
    result = getWarehouse_result()
984
    result.read(self._iprot)
985
    self._iprot.readMessageEnd()
986
    if result.success is not None:
987
      return result.success
988
    if result.cex is not None:
989
      raise result.cex
990
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouse failed: unknown result");
991
 
992
  def getAllItemsForWarehouse(self, warehouse_id):
993
    """
994
    Parameters:
995
     - warehouse_id
996
    """
997
    self.send_getAllItemsForWarehouse(warehouse_id)
998
    return self.recv_getAllItemsForWarehouse()
999
 
1000
  def send_getAllItemsForWarehouse(self, warehouse_id):
1001
    self._oprot.writeMessageBegin('getAllItemsForWarehouse', TMessageType.CALL, self._seqid)
1002
    args = getAllItemsForWarehouse_args()
1003
    args.warehouse_id = warehouse_id
1004
    args.write(self._oprot)
1005
    self._oprot.writeMessageEnd()
1006
    self._oprot.trans.flush()
1007
 
1008
  def recv_getAllItemsForWarehouse(self, ):
1009
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1010
    if mtype == TMessageType.EXCEPTION:
1011
      x = TApplicationException()
1012
      x.read(self._iprot)
1013
      self._iprot.readMessageEnd()
1014
      raise x
1015
    result = getAllItemsForWarehouse_result()
1016
    result.read(self._iprot)
1017
    self._iprot.readMessageEnd()
1018
    if result.success is not None:
1019
      return result.success
1020
    if result.cex is not None:
1021
      raise result.cex
1022
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsForWarehouse failed: unknown result");
1023
 
5966 rajveer 1024
  def isOrderBillable(self, itemId, warehouseId, sourceId, orderId):
5944 mandeep.dh 1025
    """
5978 rajveer 1026
    Depending on reservation in the table, verify if we can bill this order or not.
5966 rajveer 1027
 
1028
    Parameters:
1029
     - itemId
1030
     - warehouseId
1031
     - sourceId
1032
     - orderId
1033
    """
1034
    self.send_isOrderBillable(itemId, warehouseId, sourceId, orderId)
1035
    return self.recv_isOrderBillable()
1036
 
1037
  def send_isOrderBillable(self, itemId, warehouseId, sourceId, orderId):
1038
    self._oprot.writeMessageBegin('isOrderBillable', TMessageType.CALL, self._seqid)
1039
    args = isOrderBillable_args()
1040
    args.itemId = itemId
1041
    args.warehouseId = warehouseId
1042
    args.sourceId = sourceId
1043
    args.orderId = orderId
1044
    args.write(self._oprot)
1045
    self._oprot.writeMessageEnd()
1046
    self._oprot.trans.flush()
1047
 
1048
  def recv_isOrderBillable(self, ):
1049
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1050
    if mtype == TMessageType.EXCEPTION:
1051
      x = TApplicationException()
1052
      x.read(self._iprot)
1053
      self._iprot.readMessageEnd()
1054
      raise x
1055
    result = isOrderBillable_result()
1056
    result.read(self._iprot)
1057
    self._iprot.readMessageEnd()
1058
    if result.success is not None:
1059
      return result.success
1060
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isOrderBillable failed: unknown result");
1061
 
1062
  def reserveItemInWarehouse(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
1063
    """
5944 mandeep.dh 1064
    Increases the reservation count for an item in a warehouse. Should always succeed normally.
1065
 
1066
    Parameters:
1067
     - itemId
1068
     - warehouseId
5966 rajveer 1069
     - sourceId
1070
     - orderId
1071
     - createdTimestamp
1072
     - promisedShippingTimestamp
5944 mandeep.dh 1073
     - quantity
1074
    """
5966 rajveer 1075
    self.send_reserveItemInWarehouse(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity)
5944 mandeep.dh 1076
    return self.recv_reserveItemInWarehouse()
1077
 
5966 rajveer 1078
  def send_reserveItemInWarehouse(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
5944 mandeep.dh 1079
    self._oprot.writeMessageBegin('reserveItemInWarehouse', TMessageType.CALL, self._seqid)
1080
    args = reserveItemInWarehouse_args()
1081
    args.itemId = itemId
1082
    args.warehouseId = warehouseId
5966 rajveer 1083
    args.sourceId = sourceId
1084
    args.orderId = orderId
1085
    args.createdTimestamp = createdTimestamp
1086
    args.promisedShippingTimestamp = promisedShippingTimestamp
5944 mandeep.dh 1087
    args.quantity = quantity
1088
    args.write(self._oprot)
1089
    self._oprot.writeMessageEnd()
1090
    self._oprot.trans.flush()
1091
 
1092
  def recv_reserveItemInWarehouse(self, ):
1093
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1094
    if mtype == TMessageType.EXCEPTION:
1095
      x = TApplicationException()
1096
      x.read(self._iprot)
1097
      self._iprot.readMessageEnd()
1098
      raise x
1099
    result = reserveItemInWarehouse_result()
1100
    result.read(self._iprot)
1101
    self._iprot.readMessageEnd()
1102
    if result.success is not None:
1103
      return result.success
1104
    if result.cex is not None:
1105
      raise result.cex
1106
    raise TApplicationException(TApplicationException.MISSING_RESULT, "reserveItemInWarehouse failed: unknown result");
1107
 
7968 amar.kumar 1108
  def updateReservationForOrder(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
1109
    """
1110
    Updates the reservation for Order
1111
 
1112
    Parameters:
1113
     - itemId
1114
     - warehouseId
1115
     - sourceId
1116
     - orderId
1117
     - createdTimestamp
1118
     - promisedShippingTimestamp
1119
     - quantity
1120
    """
1121
    self.send_updateReservationForOrder(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity)
1122
    return self.recv_updateReservationForOrder()
1123
 
1124
  def send_updateReservationForOrder(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
1125
    self._oprot.writeMessageBegin('updateReservationForOrder', TMessageType.CALL, self._seqid)
1126
    args = updateReservationForOrder_args()
1127
    args.itemId = itemId
1128
    args.warehouseId = warehouseId
1129
    args.sourceId = sourceId
1130
    args.orderId = orderId
1131
    args.createdTimestamp = createdTimestamp
1132
    args.promisedShippingTimestamp = promisedShippingTimestamp
1133
    args.quantity = quantity
1134
    args.write(self._oprot)
1135
    self._oprot.writeMessageEnd()
1136
    self._oprot.trans.flush()
1137
 
1138
  def recv_updateReservationForOrder(self, ):
1139
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1140
    if mtype == TMessageType.EXCEPTION:
1141
      x = TApplicationException()
1142
      x.read(self._iprot)
1143
      self._iprot.readMessageEnd()
1144
      raise x
1145
    result = updateReservationForOrder_result()
1146
    result.read(self._iprot)
1147
    self._iprot.readMessageEnd()
1148
    if result.success is not None:
1149
      return result.success
1150
    if result.cex is not None:
1151
      raise result.cex
1152
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateReservationForOrder failed: unknown result");
1153
 
5966 rajveer 1154
  def reduceReservationCount(self, itemId, warehouseId, sourceId, orderId, quantity):
5944 mandeep.dh 1155
    """
1156
    Decreases the reservation count for an item in a warehouse. Should always succeed normally.
1157
 
1158
    Parameters:
1159
     - itemId
1160
     - warehouseId
5966 rajveer 1161
     - sourceId
1162
     - orderId
5944 mandeep.dh 1163
     - quantity
1164
    """
5966 rajveer 1165
    self.send_reduceReservationCount(itemId, warehouseId, sourceId, orderId, quantity)
5944 mandeep.dh 1166
    return self.recv_reduceReservationCount()
1167
 
5966 rajveer 1168
  def send_reduceReservationCount(self, itemId, warehouseId, sourceId, orderId, quantity):
5944 mandeep.dh 1169
    self._oprot.writeMessageBegin('reduceReservationCount', TMessageType.CALL, self._seqid)
1170
    args = reduceReservationCount_args()
1171
    args.itemId = itemId
1172
    args.warehouseId = warehouseId
5966 rajveer 1173
    args.sourceId = sourceId
1174
    args.orderId = orderId
5944 mandeep.dh 1175
    args.quantity = quantity
1176
    args.write(self._oprot)
1177
    self._oprot.writeMessageEnd()
1178
    self._oprot.trans.flush()
1179
 
1180
  def recv_reduceReservationCount(self, ):
1181
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1182
    if mtype == TMessageType.EXCEPTION:
1183
      x = TApplicationException()
1184
      x.read(self._iprot)
1185
      self._iprot.readMessageEnd()
1186
      raise x
1187
    result = reduceReservationCount_result()
1188
    result.read(self._iprot)
1189
    self._iprot.readMessageEnd()
1190
    if result.success is not None:
1191
      return result.success
1192
    if result.cex is not None:
1193
      raise result.cex
1194
    raise TApplicationException(TApplicationException.MISSING_RESULT, "reduceReservationCount failed: unknown result");
1195
 
1196
  def getItemPricing(self, itemId, vendorId):
1197
    """
1198
    Returns the pricing information of an item associated with the vendor of the given warehouse.
1199
    Raises an exception if either the item, vendor or the associated pricing information can't be found.
1200
 
1201
    Parameters:
1202
     - itemId
1203
     - vendorId
1204
    """
1205
    self.send_getItemPricing(itemId, vendorId)
1206
    return self.recv_getItemPricing()
1207
 
1208
  def send_getItemPricing(self, itemId, vendorId):
1209
    self._oprot.writeMessageBegin('getItemPricing', TMessageType.CALL, self._seqid)
1210
    args = getItemPricing_args()
1211
    args.itemId = itemId
1212
    args.vendorId = vendorId
1213
    args.write(self._oprot)
1214
    self._oprot.writeMessageEnd()
1215
    self._oprot.trans.flush()
1216
 
1217
  def recv_getItemPricing(self, ):
1218
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1219
    if mtype == TMessageType.EXCEPTION:
1220
      x = TApplicationException()
1221
      x.read(self._iprot)
1222
      self._iprot.readMessageEnd()
1223
      raise x
1224
    result = getItemPricing_result()
1225
    result.read(self._iprot)
1226
    self._iprot.readMessageEnd()
1227
    if result.success is not None:
1228
      return result.success
1229
    if result.cex is not None:
1230
      raise result.cex
1231
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricing failed: unknown result");
1232
 
1233
  def getAllItemPricing(self, itemId):
1234
    """
1235
    Returns the list of vendor pricing information of an item.
1236
    Raises an exception if item not found corresponding to itemId
1237
 
1238
    Parameters:
1239
     - itemId
1240
    """
1241
    self.send_getAllItemPricing(itemId)
1242
    return self.recv_getAllItemPricing()
1243
 
1244
  def send_getAllItemPricing(self, itemId):
1245
    self._oprot.writeMessageBegin('getAllItemPricing', TMessageType.CALL, self._seqid)
1246
    args = getAllItemPricing_args()
1247
    args.itemId = itemId
1248
    args.write(self._oprot)
1249
    self._oprot.writeMessageEnd()
1250
    self._oprot.trans.flush()
1251
 
1252
  def recv_getAllItemPricing(self, ):
1253
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1254
    if mtype == TMessageType.EXCEPTION:
1255
      x = TApplicationException()
1256
      x.read(self._iprot)
1257
      self._iprot.readMessageEnd()
1258
      raise x
1259
    result = getAllItemPricing_result()
1260
    result.read(self._iprot)
1261
    self._iprot.readMessageEnd()
1262
    if result.success is not None:
1263
      return result.success
1264
    if result.cex is not None:
1265
      raise result.cex
1266
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemPricing failed: unknown result");
1267
 
1268
  def addVendorItemPricing(self, vendorItemPricing):
1269
    """
1270
    Adds vendor prices corresponding to the item. If pricing already exists then updates the prices.
1271
    Raises an exception if either the item or vendor can't be found corresponding to their ids.
1272
 
1273
    Parameters:
1274
     - vendorItemPricing
1275
    """
1276
    self.send_addVendorItemPricing(vendorItemPricing)
1277
    self.recv_addVendorItemPricing()
1278
 
1279
  def send_addVendorItemPricing(self, vendorItemPricing):
1280
    self._oprot.writeMessageBegin('addVendorItemPricing', TMessageType.CALL, self._seqid)
1281
    args = addVendorItemPricing_args()
1282
    args.vendorItemPricing = vendorItemPricing
1283
    args.write(self._oprot)
1284
    self._oprot.writeMessageEnd()
1285
    self._oprot.trans.flush()
1286
 
1287
  def recv_addVendorItemPricing(self, ):
1288
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1289
    if mtype == TMessageType.EXCEPTION:
1290
      x = TApplicationException()
1291
      x.read(self._iprot)
1292
      self._iprot.readMessageEnd()
1293
      raise x
1294
    result = addVendorItemPricing_result()
1295
    result.read(self._iprot)
1296
    self._iprot.readMessageEnd()
1297
    if result.cex is not None:
1298
      raise result.cex
1299
    return
1300
 
1301
  def getVendor(self, vendorId):
1302
    """
1303
    Returns a vendor given its id
1304
 
1305
    Parameters:
1306
     - vendorId
1307
    """
1308
    self.send_getVendor(vendorId)
1309
    return self.recv_getVendor()
1310
 
1311
  def send_getVendor(self, vendorId):
1312
    self._oprot.writeMessageBegin('getVendor', TMessageType.CALL, self._seqid)
1313
    args = getVendor_args()
1314
    args.vendorId = vendorId
1315
    args.write(self._oprot)
1316
    self._oprot.writeMessageEnd()
1317
    self._oprot.trans.flush()
1318
 
1319
  def recv_getVendor(self, ):
1320
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1321
    if mtype == TMessageType.EXCEPTION:
1322
      x = TApplicationException()
1323
      x.read(self._iprot)
1324
      self._iprot.readMessageEnd()
1325
      raise x
1326
    result = getVendor_result()
1327
    result.read(self._iprot)
1328
    self._iprot.readMessageEnd()
1329
    if result.success is not None:
1330
      return result.success
1331
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVendor failed: unknown result");
1332
 
1333
  def getAllVendors(self, ):
1334
    """
1335
    Return list of all vendors
1336
    """
1337
    self.send_getAllVendors()
1338
    return self.recv_getAllVendors()
1339
 
1340
  def send_getAllVendors(self, ):
1341
    self._oprot.writeMessageBegin('getAllVendors', TMessageType.CALL, self._seqid)
1342
    args = getAllVendors_args()
1343
    args.write(self._oprot)
1344
    self._oprot.writeMessageEnd()
1345
    self._oprot.trans.flush()
1346
 
1347
  def recv_getAllVendors(self, ):
1348
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1349
    if mtype == TMessageType.EXCEPTION:
1350
      x = TApplicationException()
1351
      x.read(self._iprot)
1352
      self._iprot.readMessageEnd()
1353
      raise x
1354
    result = getAllVendors_result()
1355
    result.read(self._iprot)
1356
    self._iprot.readMessageEnd()
1357
    if result.success is not None:
1358
      return result.success
1359
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllVendors failed: unknown result");
1360
 
1361
  def addVendorItemMapping(self, key, vendorItemMapping):
1362
    """
1363
    Adds VendorItemMapping. Updates VendorItemMapping if exists corresponding to the item key.
1364
 
1365
    Parameters:
1366
     - key
1367
     - vendorItemMapping
1368
    """
1369
    self.send_addVendorItemMapping(key, vendorItemMapping)
1370
    self.recv_addVendorItemMapping()
1371
 
1372
  def send_addVendorItemMapping(self, key, vendorItemMapping):
1373
    self._oprot.writeMessageBegin('addVendorItemMapping', TMessageType.CALL, self._seqid)
1374
    args = addVendorItemMapping_args()
1375
    args.key = key
1376
    args.vendorItemMapping = vendorItemMapping
1377
    args.write(self._oprot)
1378
    self._oprot.writeMessageEnd()
1379
    self._oprot.trans.flush()
1380
 
1381
  def recv_addVendorItemMapping(self, ):
1382
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1383
    if mtype == TMessageType.EXCEPTION:
1384
      x = TApplicationException()
1385
      x.read(self._iprot)
1386
      self._iprot.readMessageEnd()
1387
      raise x
1388
    result = addVendorItemMapping_result()
1389
    result.read(self._iprot)
1390
    self._iprot.readMessageEnd()
1391
    if result.cex is not None:
1392
      raise result.cex
1393
    return
1394
 
1395
  def getVendorItemMappings(self, itemId):
1396
    """
1397
    Returns the list of vendor item mapping corresponding to itemId passed as parameter.
1398
    Raises an exception if item not found corresponding to itemId
1399
 
1400
    Parameters:
1401
     - itemId
1402
    """
1403
    self.send_getVendorItemMappings(itemId)
1404
    return self.recv_getVendorItemMappings()
1405
 
1406
  def send_getVendorItemMappings(self, itemId):
1407
    self._oprot.writeMessageBegin('getVendorItemMappings', TMessageType.CALL, self._seqid)
1408
    args = getVendorItemMappings_args()
1409
    args.itemId = itemId
1410
    args.write(self._oprot)
1411
    self._oprot.writeMessageEnd()
1412
    self._oprot.trans.flush()
1413
 
1414
  def recv_getVendorItemMappings(self, ):
1415
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1416
    if mtype == TMessageType.EXCEPTION:
1417
      x = TApplicationException()
1418
      x.read(self._iprot)
1419
      self._iprot.readMessageEnd()
1420
      raise x
1421
    result = getVendorItemMappings_result()
1422
    result.read(self._iprot)
1423
    self._iprot.readMessageEnd()
1424
    if result.success is not None:
1425
      return result.success
1426
    if result.cex is not None:
1427
      raise result.cex
1428
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVendorItemMappings failed: unknown result");
1429
 
1430
  def getPendingOrdersInventory(self, vendorid):
1431
    """
1432
    Returns a list of inventory stock for items for which there are pending orders for the given vendor.
1433
 
1434
    Parameters:
1435
     - vendorid
1436
    """
1437
    self.send_getPendingOrdersInventory(vendorid)
1438
    return self.recv_getPendingOrdersInventory()
1439
 
1440
  def send_getPendingOrdersInventory(self, vendorid):
1441
    self._oprot.writeMessageBegin('getPendingOrdersInventory', TMessageType.CALL, self._seqid)
1442
    args = getPendingOrdersInventory_args()
1443
    args.vendorid = vendorid
1444
    args.write(self._oprot)
1445
    self._oprot.writeMessageEnd()
1446
    self._oprot.trans.flush()
1447
 
1448
  def recv_getPendingOrdersInventory(self, ):
1449
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1450
    if mtype == TMessageType.EXCEPTION:
1451
      x = TApplicationException()
1452
      x.read(self._iprot)
1453
      self._iprot.readMessageEnd()
1454
      raise x
1455
    result = getPendingOrdersInventory_result()
1456
    result.read(self._iprot)
1457
    self._iprot.readMessageEnd()
1458
    if result.success is not None:
1459
      return result.success
1460
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPendingOrdersInventory failed: unknown result");
1461
 
1462
  def getWarehouses(self, warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId):
1463
    """
1464
    This method returns all warehouses for a given warehosueType, inventoryType, vendor, billingWarehouse and shippingWarehouse.
1465
    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
1466
    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
1467
       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
1468
       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
1469
 
1470
    Parameters:
1471
     - warehouseType
1472
     - inventoryType
1473
     - vendorId
1474
     - billingWarehouseId
1475
     - shippingWarehouseId
1476
    """
1477
    self.send_getWarehouses(warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId)
1478
    return self.recv_getWarehouses()
1479
 
1480
  def send_getWarehouses(self, warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId):
1481
    self._oprot.writeMessageBegin('getWarehouses', TMessageType.CALL, self._seqid)
1482
    args = getWarehouses_args()
1483
    args.warehouseType = warehouseType
1484
    args.inventoryType = inventoryType
1485
    args.vendorId = vendorId
1486
    args.billingWarehouseId = billingWarehouseId
1487
    args.shippingWarehouseId = shippingWarehouseId
1488
    args.write(self._oprot)
1489
    self._oprot.writeMessageEnd()
1490
    self._oprot.trans.flush()
1491
 
1492
  def recv_getWarehouses(self, ):
1493
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1494
    if mtype == TMessageType.EXCEPTION:
1495
      x = TApplicationException()
1496
      x.read(self._iprot)
1497
      self._iprot.readMessageEnd()
1498
      raise x
1499
    result = getWarehouses_result()
1500
    result.read(self._iprot)
1501
    self._iprot.readMessageEnd()
1502
    if result.success is not None:
1503
      return result.success
1504
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouses failed: unknown result");
1505
 
1506
  def resetAvailability(self, itemKey, vendorId, quantity, warehouseId):
1507
    """
1508
    Resets availability of an item to the quantity mentioned in a warehouse.
1509
 
1510
    Parameters:
1511
     - itemKey
1512
     - vendorId
1513
     - quantity
1514
     - warehouseId
1515
    """
1516
    self.send_resetAvailability(itemKey, vendorId, quantity, warehouseId)
1517
    self.recv_resetAvailability()
1518
 
1519
  def send_resetAvailability(self, itemKey, vendorId, quantity, warehouseId):
1520
    self._oprot.writeMessageBegin('resetAvailability', TMessageType.CALL, self._seqid)
1521
    args = resetAvailability_args()
1522
    args.itemKey = itemKey
1523
    args.vendorId = vendorId
1524
    args.quantity = quantity
1525
    args.warehouseId = warehouseId
1526
    args.write(self._oprot)
1527
    self._oprot.writeMessageEnd()
1528
    self._oprot.trans.flush()
1529
 
1530
  def recv_resetAvailability(self, ):
1531
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1532
    if mtype == TMessageType.EXCEPTION:
1533
      x = TApplicationException()
1534
      x.read(self._iprot)
1535
      self._iprot.readMessageEnd()
1536
      raise x
1537
    result = resetAvailability_result()
1538
    result.read(self._iprot)
1539
    self._iprot.readMessageEnd()
1540
    if result.cex is not None:
1541
      raise result.cex
1542
    return
1543
 
1544
  def resetAvailabilityForWarehouse(self, warehouseId):
1545
    """
1546
    Resets availability of a warehouse to zero.
1547
 
1548
    Parameters:
1549
     - warehouseId
1550
    """
1551
    self.send_resetAvailabilityForWarehouse(warehouseId)
1552
    self.recv_resetAvailabilityForWarehouse()
1553
 
1554
  def send_resetAvailabilityForWarehouse(self, warehouseId):
1555
    self._oprot.writeMessageBegin('resetAvailabilityForWarehouse', TMessageType.CALL, self._seqid)
1556
    args = resetAvailabilityForWarehouse_args()
1557
    args.warehouseId = warehouseId
1558
    args.write(self._oprot)
1559
    self._oprot.writeMessageEnd()
1560
    self._oprot.trans.flush()
1561
 
1562
  def recv_resetAvailabilityForWarehouse(self, ):
1563
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1564
    if mtype == TMessageType.EXCEPTION:
1565
      x = TApplicationException()
1566
      x.read(self._iprot)
1567
      self._iprot.readMessageEnd()
1568
      raise x
1569
    result = resetAvailabilityForWarehouse_result()
1570
    result.read(self._iprot)
1571
    self._iprot.readMessageEnd()
1572
    if result.cex is not None:
1573
      raise result.cex
1574
    return
1575
 
1576
  def getItemKeysToBeProcessed(self, warehouseId):
1577
    """
1578
    Returns the list of item keys which need to be processed for a given warehouse.
1579
    This is currently used by Support application to send item keys whose inventory needs
1580
    to be updated from PLB
1581
 
1582
    Parameters:
1583
     - warehouseId
1584
    """
1585
    self.send_getItemKeysToBeProcessed(warehouseId)
1586
    return self.recv_getItemKeysToBeProcessed()
1587
 
1588
  def send_getItemKeysToBeProcessed(self, warehouseId):
1589
    self._oprot.writeMessageBegin('getItemKeysToBeProcessed', TMessageType.CALL, self._seqid)
1590
    args = getItemKeysToBeProcessed_args()
1591
    args.warehouseId = warehouseId
1592
    args.write(self._oprot)
1593
    self._oprot.writeMessageEnd()
1594
    self._oprot.trans.flush()
1595
 
1596
  def recv_getItemKeysToBeProcessed(self, ):
1597
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1598
    if mtype == TMessageType.EXCEPTION:
1599
      x = TApplicationException()
1600
      x.read(self._iprot)
1601
      self._iprot.readMessageEnd()
1602
      raise x
1603
    result = getItemKeysToBeProcessed_result()
1604
    result.read(self._iprot)
1605
    self._iprot.readMessageEnd()
1606
    if result.success is not None:
1607
      return result.success
1608
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemKeysToBeProcessed failed: unknown result");
1609
 
1610
  def markMissedInventoryUpdatesAsProcessed(self, itemKey, warehouseId):
1611
    """
1612
    Marks/Deletes missed inventory updates for a given key and warehouse.
1613
    This generally happens when updates from PLB are applied on the currentinventorysnapshot for an item
1614
 
1615
    Parameters:
1616
     - itemKey
1617
     - warehouseId
1618
    """
1619
    self.send_markMissedInventoryUpdatesAsProcessed(itemKey, warehouseId)
1620
    self.recv_markMissedInventoryUpdatesAsProcessed()
1621
 
1622
  def send_markMissedInventoryUpdatesAsProcessed(self, itemKey, warehouseId):
1623
    self._oprot.writeMessageBegin('markMissedInventoryUpdatesAsProcessed', TMessageType.CALL, self._seqid)
1624
    args = markMissedInventoryUpdatesAsProcessed_args()
1625
    args.itemKey = itemKey
1626
    args.warehouseId = warehouseId
1627
    args.write(self._oprot)
1628
    self._oprot.writeMessageEnd()
1629
    self._oprot.trans.flush()
1630
 
1631
  def recv_markMissedInventoryUpdatesAsProcessed(self, ):
1632
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1633
    if mtype == TMessageType.EXCEPTION:
1634
      x = TApplicationException()
1635
      x.read(self._iprot)
1636
      self._iprot.readMessageEnd()
1637
      raise x
1638
    result = markMissedInventoryUpdatesAsProcessed_result()
1639
    result.read(self._iprot)
1640
    self._iprot.readMessageEnd()
1641
    return
1642
 
1643
  def getIgnoredItemKeys(self, ):
1644
    """
1645
    Returns all the item key mappings that have been ignored until date. Value of map has the warehouse id
1646
    and the timestamp from where alert was raised.
1647
    """
1648
    self.send_getIgnoredItemKeys()
1649
    return self.recv_getIgnoredItemKeys()
1650
 
1651
  def send_getIgnoredItemKeys(self, ):
1652
    self._oprot.writeMessageBegin('getIgnoredItemKeys', TMessageType.CALL, self._seqid)
1653
    args = getIgnoredItemKeys_args()
1654
    args.write(self._oprot)
1655
    self._oprot.writeMessageEnd()
1656
    self._oprot.trans.flush()
1657
 
1658
  def recv_getIgnoredItemKeys(self, ):
1659
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1660
    if mtype == TMessageType.EXCEPTION:
1661
      x = TApplicationException()
1662
      x.read(self._iprot)
1663
      self._iprot.readMessageEnd()
1664
      raise x
1665
    result = getIgnoredItemKeys_result()
1666
    result.read(self._iprot)
1667
    self._iprot.readMessageEnd()
1668
    if result.success is not None:
1669
      return result.success
1670
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredItemKeys failed: unknown result");
1671
 
1672
  def addBadInventory(self, itemId, warehouseId, quantity):
1673
    """
1674
    Add the BAD type inventory to existing stock.
1675
 
1676
    Parameters:
1677
     - itemId
1678
     - warehouseId
1679
     - quantity
1680
    """
1681
    self.send_addBadInventory(itemId, warehouseId, quantity)
1682
    self.recv_addBadInventory()
1683
 
1684
  def send_addBadInventory(self, itemId, warehouseId, quantity):
1685
    self._oprot.writeMessageBegin('addBadInventory', TMessageType.CALL, self._seqid)
1686
    args = addBadInventory_args()
1687
    args.itemId = itemId
1688
    args.warehouseId = warehouseId
1689
    args.quantity = quantity
1690
    args.write(self._oprot)
1691
    self._oprot.writeMessageEnd()
1692
    self._oprot.trans.flush()
1693
 
1694
  def recv_addBadInventory(self, ):
1695
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1696
    if mtype == TMessageType.EXCEPTION:
1697
      x = TApplicationException()
1698
      x.read(self._iprot)
1699
      self._iprot.readMessageEnd()
1700
      raise x
1701
    result = addBadInventory_result()
1702
    result.read(self._iprot)
1703
    self._iprot.readMessageEnd()
1704
    if result.cex is not None:
1705
      raise result.cex
1706
    return
1707
 
1708
  def getShippingLocations(self, ):
1709
    """
1710
    Returns all shipping locations
1711
    """
1712
    self.send_getShippingLocations()
1713
    return self.recv_getShippingLocations()
1714
 
1715
  def send_getShippingLocations(self, ):
1716
    self._oprot.writeMessageBegin('getShippingLocations', TMessageType.CALL, self._seqid)
1717
    args = getShippingLocations_args()
1718
    args.write(self._oprot)
1719
    self._oprot.writeMessageEnd()
1720
    self._oprot.trans.flush()
1721
 
1722
  def recv_getShippingLocations(self, ):
1723
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1724
    if mtype == TMessageType.EXCEPTION:
1725
      x = TApplicationException()
1726
      x.read(self._iprot)
1727
      self._iprot.readMessageEnd()
1728
      raise x
1729
    result = getShippingLocations_result()
1730
    result.read(self._iprot)
1731
    self._iprot.readMessageEnd()
1732
    if result.success is not None:
1733
      return result.success
1734
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getShippingLocations failed: unknown result");
1735
 
1736
  def getAllVendorItemMappings(self, ):
1737
    """
1738
    Fetches all the vendor item mappings present.
1739
    """
1740
    self.send_getAllVendorItemMappings()
1741
    return self.recv_getAllVendorItemMappings()
1742
 
1743
  def send_getAllVendorItemMappings(self, ):
1744
    self._oprot.writeMessageBegin('getAllVendorItemMappings', TMessageType.CALL, self._seqid)
1745
    args = getAllVendorItemMappings_args()
1746
    args.write(self._oprot)
1747
    self._oprot.writeMessageEnd()
1748
    self._oprot.trans.flush()
1749
 
1750
  def recv_getAllVendorItemMappings(self, ):
1751
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1752
    if mtype == TMessageType.EXCEPTION:
1753
      x = TApplicationException()
1754
      x.read(self._iprot)
1755
      self._iprot.readMessageEnd()
1756
      raise x
1757
    result = getAllVendorItemMappings_result()
1758
    result.read(self._iprot)
1759
    self._iprot.readMessageEnd()
1760
    if result.success is not None:
1761
      return result.success
1762
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllVendorItemMappings failed: unknown result");
1763
 
1764
  def getInventorySnapshot(self, warehouseId):
1765
    """
1766
    Gets items' inventory for a warehouse
1767
    If warehouse is passed as zero, items' inventory across all warehouses is sent
1768
 
1769
    Parameters:
1770
     - warehouseId
1771
    """
1772
    self.send_getInventorySnapshot(warehouseId)
1773
    return self.recv_getInventorySnapshot()
1774
 
1775
  def send_getInventorySnapshot(self, warehouseId):
1776
    self._oprot.writeMessageBegin('getInventorySnapshot', TMessageType.CALL, self._seqid)
1777
    args = getInventorySnapshot_args()
1778
    args.warehouseId = warehouseId
1779
    args.write(self._oprot)
1780
    self._oprot.writeMessageEnd()
1781
    self._oprot.trans.flush()
1782
 
1783
  def recv_getInventorySnapshot(self, ):
1784
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1785
    if mtype == TMessageType.EXCEPTION:
1786
      x = TApplicationException()
1787
      x.read(self._iprot)
1788
      self._iprot.readMessageEnd()
1789
      raise x
1790
    result = getInventorySnapshot_result()
1791
    result.read(self._iprot)
1792
    self._iprot.readMessageEnd()
1793
    if result.success is not None:
1794
      return result.success
1795
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventorySnapshot failed: unknown result");
1796
 
1797
  def clearItemAvailabilityCache(self, ):
1798
    """
1799
    Clear item availability cache.
1800
    """
1801
    self.send_clearItemAvailabilityCache()
1802
    self.recv_clearItemAvailabilityCache()
1803
 
1804
  def send_clearItemAvailabilityCache(self, ):
1805
    self._oprot.writeMessageBegin('clearItemAvailabilityCache', TMessageType.CALL, self._seqid)
1806
    args = clearItemAvailabilityCache_args()
1807
    args.write(self._oprot)
1808
    self._oprot.writeMessageEnd()
1809
    self._oprot.trans.flush()
1810
 
1811
  def recv_clearItemAvailabilityCache(self, ):
1812
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1813
    if mtype == TMessageType.EXCEPTION:
1814
      x = TApplicationException()
1815
      x.read(self._iprot)
1816
      self._iprot.readMessageEnd()
1817
      raise x
1818
    result = clearItemAvailabilityCache_result()
1819
    result.read(self._iprot)
1820
    self._iprot.readMessageEnd()
1821
    return
1822
 
1823
  def updateVendorString(self, warehouseId, vendorString):
1824
    """
1825
    Parameters:
1826
     - warehouseId
1827
     - vendorString
1828
    """
1829
    self.send_updateVendorString(warehouseId, vendorString)
1830
    self.recv_updateVendorString()
1831
 
1832
  def send_updateVendorString(self, warehouseId, vendorString):
1833
    self._oprot.writeMessageBegin('updateVendorString', TMessageType.CALL, self._seqid)
1834
    args = updateVendorString_args()
1835
    args.warehouseId = warehouseId
1836
    args.vendorString = vendorString
1837
    args.write(self._oprot)
1838
    self._oprot.writeMessageEnd()
1839
    self._oprot.trans.flush()
1840
 
1841
  def recv_updateVendorString(self, ):
1842
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1843
    if mtype == TMessageType.EXCEPTION:
1844
      x = TApplicationException()
1845
      x.read(self._iprot)
1846
      self._iprot.readMessageEnd()
1847
      raise x
1848
    result = updateVendorString_result()
1849
    result.read(self._iprot)
1850
    self._iprot.readMessageEnd()
1851
    return
1852
 
6096 amit.gupta 1853
  def clearItemAvailabilityCacheForItem(self, item_id):
1854
    """
1855
    Parameters:
1856
     - item_id
1857
    """
1858
    self.send_clearItemAvailabilityCacheForItem(item_id)
1859
    self.recv_clearItemAvailabilityCacheForItem()
5944 mandeep.dh 1860
 
6096 amit.gupta 1861
  def send_clearItemAvailabilityCacheForItem(self, item_id):
1862
    self._oprot.writeMessageBegin('clearItemAvailabilityCacheForItem', TMessageType.CALL, self._seqid)
1863
    args = clearItemAvailabilityCacheForItem_args()
1864
    args.item_id = item_id
1865
    args.write(self._oprot)
1866
    self._oprot.writeMessageEnd()
1867
    self._oprot.trans.flush()
1868
 
1869
  def recv_clearItemAvailabilityCacheForItem(self, ):
1870
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1871
    if mtype == TMessageType.EXCEPTION:
1872
      x = TApplicationException()
1873
      x.read(self._iprot)
1874
      self._iprot.readMessageEnd()
1875
      raise x
1876
    result = clearItemAvailabilityCacheForItem_result()
1877
    result.read(self._iprot)
1878
    self._iprot.readMessageEnd()
1879
    return
1880
 
7718 amar.kumar 1881
  def getOurWarehouseIdForVendor(self, vendorId, billingWarehouseId):
6467 amar.kumar 1882
    """
1883
    Parameters:
1884
     - vendorId
7718 amar.kumar 1885
     - billingWarehouseId
6467 amar.kumar 1886
    """
7718 amar.kumar 1887
    self.send_getOurWarehouseIdForVendor(vendorId, billingWarehouseId)
6467 amar.kumar 1888
    return self.recv_getOurWarehouseIdForVendor()
6096 amit.gupta 1889
 
7718 amar.kumar 1890
  def send_getOurWarehouseIdForVendor(self, vendorId, billingWarehouseId):
6467 amar.kumar 1891
    self._oprot.writeMessageBegin('getOurWarehouseIdForVendor', TMessageType.CALL, self._seqid)
1892
    args = getOurWarehouseIdForVendor_args()
1893
    args.vendorId = vendorId
7718 amar.kumar 1894
    args.billingWarehouseId = billingWarehouseId
6467 amar.kumar 1895
    args.write(self._oprot)
1896
    self._oprot.writeMessageEnd()
1897
    self._oprot.trans.flush()
1898
 
1899
  def recv_getOurWarehouseIdForVendor(self, ):
1900
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1901
    if mtype == TMessageType.EXCEPTION:
1902
      x = TApplicationException()
1903
      x.read(self._iprot)
1904
      self._iprot.readMessageEnd()
1905
      raise x
1906
    result = getOurWarehouseIdForVendor_result()
1907
    result.read(self._iprot)
1908
    self._iprot.readMessageEnd()
1909
    if result.success is not None:
1910
      return result.success
1911
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOurWarehouseIdForVendor failed: unknown result");
1912
 
6484 amar.kumar 1913
  def getItemAvailabilitiesAtOurWarehouses(self, item_ids):
1914
    """
1915
    Parameters:
1916
     - item_ids
1917
    """
1918
    self.send_getItemAvailabilitiesAtOurWarehouses(item_ids)
1919
    return self.recv_getItemAvailabilitiesAtOurWarehouses()
6467 amar.kumar 1920
 
6484 amar.kumar 1921
  def send_getItemAvailabilitiesAtOurWarehouses(self, item_ids):
1922
    self._oprot.writeMessageBegin('getItemAvailabilitiesAtOurWarehouses', TMessageType.CALL, self._seqid)
1923
    args = getItemAvailabilitiesAtOurWarehouses_args()
1924
    args.item_ids = item_ids
1925
    args.write(self._oprot)
1926
    self._oprot.writeMessageEnd()
1927
    self._oprot.trans.flush()
1928
 
1929
  def recv_getItemAvailabilitiesAtOurWarehouses(self, ):
1930
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1931
    if mtype == TMessageType.EXCEPTION:
1932
      x = TApplicationException()
1933
      x.read(self._iprot)
1934
      self._iprot.readMessageEnd()
1935
      raise x
1936
    result = getItemAvailabilitiesAtOurWarehouses_result()
1937
    result.read(self._iprot)
1938
    self._iprot.readMessageEnd()
1939
    if result.success is not None:
1940
      return result.success
1941
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailabilitiesAtOurWarehouses failed: unknown result");
1942
 
6531 vikram.rag 1943
  def getMonitoredWarehouseForVendors(self, vendorIds):
1944
    """
1945
    Parameters:
1946
     - vendorIds
1947
    """
1948
    self.send_getMonitoredWarehouseForVendors(vendorIds)
1949
    return self.recv_getMonitoredWarehouseForVendors()
6484 amar.kumar 1950
 
6531 vikram.rag 1951
  def send_getMonitoredWarehouseForVendors(self, vendorIds):
1952
    self._oprot.writeMessageBegin('getMonitoredWarehouseForVendors', TMessageType.CALL, self._seqid)
1953
    args = getMonitoredWarehouseForVendors_args()
1954
    args.vendorIds = vendorIds
1955
    args.write(self._oprot)
1956
    self._oprot.writeMessageEnd()
1957
    self._oprot.trans.flush()
1958
 
1959
  def recv_getMonitoredWarehouseForVendors(self, ):
1960
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1961
    if mtype == TMessageType.EXCEPTION:
1962
      x = TApplicationException()
1963
      x.read(self._iprot)
1964
      self._iprot.readMessageEnd()
1965
      raise x
1966
    result = getMonitoredWarehouseForVendors_result()
1967
    result.read(self._iprot)
1968
    self._iprot.readMessageEnd()
1969
    if result.success is not None:
1970
      return result.success
1971
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMonitoredWarehouseForVendors failed: unknown result");
1972
 
1973
  def getIgnoredWarehouseidsAndItemids(self, ):
1974
    self.send_getIgnoredWarehouseidsAndItemids()
1975
    return self.recv_getIgnoredWarehouseidsAndItemids()
1976
 
1977
  def send_getIgnoredWarehouseidsAndItemids(self, ):
1978
    self._oprot.writeMessageBegin('getIgnoredWarehouseidsAndItemids', TMessageType.CALL, self._seqid)
1979
    args = getIgnoredWarehouseidsAndItemids_args()
1980
    args.write(self._oprot)
1981
    self._oprot.writeMessageEnd()
1982
    self._oprot.trans.flush()
1983
 
1984
  def recv_getIgnoredWarehouseidsAndItemids(self, ):
1985
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1986
    if mtype == TMessageType.EXCEPTION:
1987
      x = TApplicationException()
1988
      x.read(self._iprot)
1989
      self._iprot.readMessageEnd()
1990
      raise x
1991
    result = getIgnoredWarehouseidsAndItemids_result()
1992
    result.read(self._iprot)
1993
    self._iprot.readMessageEnd()
1994
    if result.success is not None:
1995
      return result.success
1996
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredWarehouseidsAndItemids failed: unknown result");
1997
 
1998
  def insertItemtoIgnoreInventoryUpdatelist(self, item_id, warehouse_id):
1999
    """
2000
    Parameters:
2001
     - item_id
2002
     - warehouse_id
2003
    """
2004
    self.send_insertItemtoIgnoreInventoryUpdatelist(item_id, warehouse_id)
2005
    return self.recv_insertItemtoIgnoreInventoryUpdatelist()
2006
 
2007
  def send_insertItemtoIgnoreInventoryUpdatelist(self, item_id, warehouse_id):
2008
    self._oprot.writeMessageBegin('insertItemtoIgnoreInventoryUpdatelist', TMessageType.CALL, self._seqid)
2009
    args = insertItemtoIgnoreInventoryUpdatelist_args()
2010
    args.item_id = item_id
2011
    args.warehouse_id = warehouse_id
2012
    args.write(self._oprot)
2013
    self._oprot.writeMessageEnd()
2014
    self._oprot.trans.flush()
2015
 
2016
  def recv_insertItemtoIgnoreInventoryUpdatelist(self, ):
2017
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2018
    if mtype == TMessageType.EXCEPTION:
2019
      x = TApplicationException()
2020
      x.read(self._iprot)
2021
      self._iprot.readMessageEnd()
2022
      raise x
2023
    result = insertItemtoIgnoreInventoryUpdatelist_result()
2024
    result.read(self._iprot)
2025
    self._iprot.readMessageEnd()
2026
    if result.success is not None:
2027
      return result.success
2028
    raise TApplicationException(TApplicationException.MISSING_RESULT, "insertItemtoIgnoreInventoryUpdatelist failed: unknown result");
2029
 
2030
  def deleteItemFromIgnoredInventoryUpdateList(self, item_id, warehouse_id):
2031
    """
2032
    Parameters:
2033
     - item_id
2034
     - warehouse_id
2035
    """
2036
    self.send_deleteItemFromIgnoredInventoryUpdateList(item_id, warehouse_id)
2037
    return self.recv_deleteItemFromIgnoredInventoryUpdateList()
2038
 
2039
  def send_deleteItemFromIgnoredInventoryUpdateList(self, item_id, warehouse_id):
2040
    self._oprot.writeMessageBegin('deleteItemFromIgnoredInventoryUpdateList', TMessageType.CALL, self._seqid)
2041
    args = deleteItemFromIgnoredInventoryUpdateList_args()
2042
    args.item_id = item_id
2043
    args.warehouse_id = warehouse_id
2044
    args.write(self._oprot)
2045
    self._oprot.writeMessageEnd()
2046
    self._oprot.trans.flush()
2047
 
2048
  def recv_deleteItemFromIgnoredInventoryUpdateList(self, ):
2049
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2050
    if mtype == TMessageType.EXCEPTION:
2051
      x = TApplicationException()
2052
      x.read(self._iprot)
2053
      self._iprot.readMessageEnd()
2054
      raise x
2055
    result = deleteItemFromIgnoredInventoryUpdateList_result()
2056
    result.read(self._iprot)
2057
    self._iprot.readMessageEnd()
2058
    if result.success is not None:
2059
      return result.success
2060
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteItemFromIgnoredInventoryUpdateList failed: unknown result");
2061
 
2062
  def getAllIgnoredInventoryupdateItemsCount(self, ):
2063
    self.send_getAllIgnoredInventoryupdateItemsCount()
2064
    return self.recv_getAllIgnoredInventoryupdateItemsCount()
2065
 
2066
  def send_getAllIgnoredInventoryupdateItemsCount(self, ):
2067
    self._oprot.writeMessageBegin('getAllIgnoredInventoryupdateItemsCount', TMessageType.CALL, self._seqid)
2068
    args = getAllIgnoredInventoryupdateItemsCount_args()
2069
    args.write(self._oprot)
2070
    self._oprot.writeMessageEnd()
2071
    self._oprot.trans.flush()
2072
 
2073
  def recv_getAllIgnoredInventoryupdateItemsCount(self, ):
2074
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2075
    if mtype == TMessageType.EXCEPTION:
2076
      x = TApplicationException()
2077
      x.read(self._iprot)
2078
      self._iprot.readMessageEnd()
2079
      raise x
2080
    result = getAllIgnoredInventoryupdateItemsCount_result()
2081
    result.read(self._iprot)
2082
    self._iprot.readMessageEnd()
2083
    if result.success is not None:
2084
      return result.success
2085
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryupdateItemsCount failed: unknown result");
2086
 
2087
  def getIgnoredInventoryUpdateItemids(self, offset, limit):
2088
    """
2089
    Parameters:
2090
     - offset
2091
     - limit
2092
    """
2093
    self.send_getIgnoredInventoryUpdateItemids(offset, limit)
2094
    return self.recv_getIgnoredInventoryUpdateItemids()
2095
 
2096
  def send_getIgnoredInventoryUpdateItemids(self, offset, limit):
2097
    self._oprot.writeMessageBegin('getIgnoredInventoryUpdateItemids', TMessageType.CALL, self._seqid)
2098
    args = getIgnoredInventoryUpdateItemids_args()
2099
    args.offset = offset
2100
    args.limit = limit
2101
    args.write(self._oprot)
2102
    self._oprot.writeMessageEnd()
2103
    self._oprot.trans.flush()
2104
 
2105
  def recv_getIgnoredInventoryUpdateItemids(self, ):
2106
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2107
    if mtype == TMessageType.EXCEPTION:
2108
      x = TApplicationException()
2109
      x.read(self._iprot)
2110
      self._iprot.readMessageEnd()
2111
      raise x
2112
    result = getIgnoredInventoryUpdateItemids_result()
2113
    result.read(self._iprot)
2114
    self._iprot.readMessageEnd()
2115
    if result.success is not None:
2116
      return result.success
2117
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredInventoryUpdateItemids failed: unknown result");
2118
 
6821 amar.kumar 2119
  def updateItemStockPurchaseParams(self, item_id, numOfDaysStock, minStockLevel):
2120
    """
2121
    Parameters:
2122
     - item_id
2123
     - numOfDaysStock
2124
     - minStockLevel
2125
    """
2126
    self.send_updateItemStockPurchaseParams(item_id, numOfDaysStock, minStockLevel)
2127
    self.recv_updateItemStockPurchaseParams()
6531 vikram.rag 2128
 
6821 amar.kumar 2129
  def send_updateItemStockPurchaseParams(self, item_id, numOfDaysStock, minStockLevel):
2130
    self._oprot.writeMessageBegin('updateItemStockPurchaseParams', TMessageType.CALL, self._seqid)
2131
    args = updateItemStockPurchaseParams_args()
2132
    args.item_id = item_id
2133
    args.numOfDaysStock = numOfDaysStock
2134
    args.minStockLevel = minStockLevel
2135
    args.write(self._oprot)
2136
    self._oprot.writeMessageEnd()
2137
    self._oprot.trans.flush()
2138
 
2139
  def recv_updateItemStockPurchaseParams(self, ):
2140
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2141
    if mtype == TMessageType.EXCEPTION:
2142
      x = TApplicationException()
2143
      x.read(self._iprot)
2144
      self._iprot.readMessageEnd()
2145
      raise x
2146
    result = updateItemStockPurchaseParams_result()
2147
    result.read(self._iprot)
2148
    self._iprot.readMessageEnd()
2149
    return
2150
 
2151
  def getItemStockPurchaseParams(self, itemId):
2152
    """
2153
    Parameters:
2154
     - itemId
2155
    """
2156
    self.send_getItemStockPurchaseParams(itemId)
2157
    return self.recv_getItemStockPurchaseParams()
2158
 
2159
  def send_getItemStockPurchaseParams(self, itemId):
2160
    self._oprot.writeMessageBegin('getItemStockPurchaseParams', TMessageType.CALL, self._seqid)
2161
    args = getItemStockPurchaseParams_args()
2162
    args.itemId = itemId
2163
    args.write(self._oprot)
2164
    self._oprot.writeMessageEnd()
2165
    self._oprot.trans.flush()
2166
 
2167
  def recv_getItemStockPurchaseParams(self, ):
2168
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2169
    if mtype == TMessageType.EXCEPTION:
2170
      x = TApplicationException()
2171
      x.read(self._iprot)
2172
      self._iprot.readMessageEnd()
2173
      raise x
2174
    result = getItemStockPurchaseParams_result()
2175
    result.read(self._iprot)
2176
    self._iprot.readMessageEnd()
2177
    if result.success is not None:
2178
      return result.success
2179
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStockPurchaseParams failed: unknown result");
2180
 
2181
  def addOosStatusForItem(self, oosStatusMap, date):
2182
    """
2183
    Parameters:
2184
     - oosStatusMap
2185
     - date
2186
    """
2187
    self.send_addOosStatusForItem(oosStatusMap, date)
2188
    self.recv_addOosStatusForItem()
2189
 
2190
  def send_addOosStatusForItem(self, oosStatusMap, date):
2191
    self._oprot.writeMessageBegin('addOosStatusForItem', TMessageType.CALL, self._seqid)
2192
    args = addOosStatusForItem_args()
2193
    args.oosStatusMap = oosStatusMap
2194
    args.date = date
2195
    args.write(self._oprot)
2196
    self._oprot.writeMessageEnd()
2197
    self._oprot.trans.flush()
2198
 
2199
  def recv_addOosStatusForItem(self, ):
2200
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2201
    if mtype == TMessageType.EXCEPTION:
2202
      x = TApplicationException()
2203
      x.read(self._iprot)
2204
      self._iprot.readMessageEnd()
2205
      raise x
2206
    result = addOosStatusForItem_result()
2207
    result.read(self._iprot)
2208
    self._iprot.readMessageEnd()
2209
    return
2210
 
9761 amar.kumar 2211
  def getOosStatusesForXDaysForItem(self, itemId, days):
6832 amar.kumar 2212
    """
2213
    Parameters:
2214
     - itemId
2215
     - days
2216
    """
9761 amar.kumar 2217
    self.send_getOosStatusesForXDaysForItem(itemId, days)
6832 amar.kumar 2218
    return self.recv_getOosStatusesForXDaysForItem()
6821 amar.kumar 2219
 
9761 amar.kumar 2220
  def send_getOosStatusesForXDaysForItem(self, itemId, days):
6832 amar.kumar 2221
    self._oprot.writeMessageBegin('getOosStatusesForXDaysForItem', TMessageType.CALL, self._seqid)
2222
    args = getOosStatusesForXDaysForItem_args()
2223
    args.itemId = itemId
2224
    args.days = days
2225
    args.write(self._oprot)
2226
    self._oprot.writeMessageEnd()
2227
    self._oprot.trans.flush()
2228
 
2229
  def recv_getOosStatusesForXDaysForItem(self, ):
2230
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2231
    if mtype == TMessageType.EXCEPTION:
2232
      x = TApplicationException()
2233
      x.read(self._iprot)
2234
      self._iprot.readMessageEnd()
2235
      raise x
2236
    result = getOosStatusesForXDaysForItem_result()
2237
    result.read(self._iprot)
2238
    self._iprot.readMessageEnd()
2239
    if result.success is not None:
2240
      return result.success
2241
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOosStatusesForXDaysForItem failed: unknown result");
2242
 
6857 amar.kumar 2243
  def getNonZeroItemStockPurchaseParams(self, ):
2244
    self.send_getNonZeroItemStockPurchaseParams()
2245
    return self.recv_getNonZeroItemStockPurchaseParams()
6832 amar.kumar 2246
 
6857 amar.kumar 2247
  def send_getNonZeroItemStockPurchaseParams(self, ):
2248
    self._oprot.writeMessageBegin('getNonZeroItemStockPurchaseParams', TMessageType.CALL, self._seqid)
2249
    args = getNonZeroItemStockPurchaseParams_args()
2250
    args.write(self._oprot)
2251
    self._oprot.writeMessageEnd()
2252
    self._oprot.trans.flush()
2253
 
2254
  def recv_getNonZeroItemStockPurchaseParams(self, ):
2255
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2256
    if mtype == TMessageType.EXCEPTION:
2257
      x = TApplicationException()
2258
      x.read(self._iprot)
2259
      self._iprot.readMessageEnd()
2260
      raise x
2261
    result = getNonZeroItemStockPurchaseParams_result()
2262
    result.read(self._iprot)
2263
    self._iprot.readMessageEnd()
2264
    if result.success is not None:
2265
      return result.success
2266
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNonZeroItemStockPurchaseParams failed: unknown result");
2267
 
7149 amar.kumar 2268
  def getBillableInventoryAndPendingOrders(self, ):
2269
    """
2270
    Returns a list of inventory stock for items for which there are pending orders or have billable inventory.
2271
    """
2272
    self.send_getBillableInventoryAndPendingOrders()
2273
    return self.recv_getBillableInventoryAndPendingOrders()
6857 amar.kumar 2274
 
7149 amar.kumar 2275
  def send_getBillableInventoryAndPendingOrders(self, ):
2276
    self._oprot.writeMessageBegin('getBillableInventoryAndPendingOrders', TMessageType.CALL, self._seqid)
2277
    args = getBillableInventoryAndPendingOrders_args()
2278
    args.write(self._oprot)
2279
    self._oprot.writeMessageEnd()
2280
    self._oprot.trans.flush()
2281
 
2282
  def recv_getBillableInventoryAndPendingOrders(self, ):
2283
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2284
    if mtype == TMessageType.EXCEPTION:
2285
      x = TApplicationException()
2286
      x.read(self._iprot)
2287
      self._iprot.readMessageEnd()
2288
      raise x
2289
    result = getBillableInventoryAndPendingOrders_result()
2290
    result.read(self._iprot)
2291
    self._iprot.readMessageEnd()
2292
    if result.success is not None:
2293
      return result.success
2294
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBillableInventoryAndPendingOrders failed: unknown result");
2295
 
7281 kshitij.so 2296
  def getWarehouseName(self, warehouse_id):
2297
    """
2298
    Parameters:
2299
     - warehouse_id
2300
    """
2301
    self.send_getWarehouseName(warehouse_id)
2302
    return self.recv_getWarehouseName()
7149 amar.kumar 2303
 
7281 kshitij.so 2304
  def send_getWarehouseName(self, warehouse_id):
2305
    self._oprot.writeMessageBegin('getWarehouseName', TMessageType.CALL, self._seqid)
2306
    args = getWarehouseName_args()
2307
    args.warehouse_id = warehouse_id
2308
    args.write(self._oprot)
2309
    self._oprot.writeMessageEnd()
2310
    self._oprot.trans.flush()
2311
 
2312
  def recv_getWarehouseName(self, ):
2313
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2314
    if mtype == TMessageType.EXCEPTION:
2315
      x = TApplicationException()
2316
      x.read(self._iprot)
2317
      self._iprot.readMessageEnd()
2318
      raise x
2319
    result = getWarehouseName_result()
2320
    result.read(self._iprot)
2321
    self._iprot.readMessageEnd()
2322
    if result.success is not None:
2323
      return result.success
2324
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouseName failed: unknown result");
2325
 
2326
  def getAmazonInventoryForItem(self, item_id):
2327
    """
2328
    Parameters:
2329
     - item_id
2330
    """
2331
    self.send_getAmazonInventoryForItem(item_id)
2332
    return self.recv_getAmazonInventoryForItem()
2333
 
2334
  def send_getAmazonInventoryForItem(self, item_id):
2335
    self._oprot.writeMessageBegin('getAmazonInventoryForItem', TMessageType.CALL, self._seqid)
2336
    args = getAmazonInventoryForItem_args()
2337
    args.item_id = item_id
2338
    args.write(self._oprot)
2339
    self._oprot.writeMessageEnd()
2340
    self._oprot.trans.flush()
2341
 
2342
  def recv_getAmazonInventoryForItem(self, ):
2343
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2344
    if mtype == TMessageType.EXCEPTION:
2345
      x = TApplicationException()
2346
      x.read(self._iprot)
2347
      self._iprot.readMessageEnd()
2348
      raise x
2349
    result = getAmazonInventoryForItem_result()
2350
    result.read(self._iprot)
2351
    self._iprot.readMessageEnd()
2352
    if result.success is not None:
2353
      return result.success
2354
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonInventoryForItem failed: unknown result");
2355
 
2356
  def getAllAmazonInventory(self, ):
2357
    self.send_getAllAmazonInventory()
2358
    return self.recv_getAllAmazonInventory()
2359
 
2360
  def send_getAllAmazonInventory(self, ):
2361
    self._oprot.writeMessageBegin('getAllAmazonInventory', TMessageType.CALL, self._seqid)
2362
    args = getAllAmazonInventory_args()
2363
    args.write(self._oprot)
2364
    self._oprot.writeMessageEnd()
2365
    self._oprot.trans.flush()
2366
 
2367
  def recv_getAllAmazonInventory(self, ):
2368
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2369
    if mtype == TMessageType.EXCEPTION:
2370
      x = TApplicationException()
2371
      x.read(self._iprot)
2372
      self._iprot.readMessageEnd()
2373
      raise x
2374
    result = getAllAmazonInventory_result()
2375
    result.read(self._iprot)
2376
    self._iprot.readMessageEnd()
2377
    if result.success is not None:
2378
      return result.success
2379
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonInventory failed: unknown result");
2380
 
2381
  def addOrUpdateAmazonInventoryForItem(self, amazonInventorySnapshot):
2382
    """
2383
    Parameters:
2384
     - amazonInventorySnapshot
2385
    """
2386
    self.send_addOrUpdateAmazonInventoryForItem(amazonInventorySnapshot)
2387
    self.recv_addOrUpdateAmazonInventoryForItem()
2388
 
2389
  def send_addOrUpdateAmazonInventoryForItem(self, amazonInventorySnapshot):
2390
    self._oprot.writeMessageBegin('addOrUpdateAmazonInventoryForItem', TMessageType.CALL, self._seqid)
2391
    args = addOrUpdateAmazonInventoryForItem_args()
2392
    args.amazonInventorySnapshot = amazonInventorySnapshot
2393
    args.write(self._oprot)
2394
    self._oprot.writeMessageEnd()
2395
    self._oprot.trans.flush()
2396
 
2397
  def recv_addOrUpdateAmazonInventoryForItem(self, ):
2398
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2399
    if mtype == TMessageType.EXCEPTION:
2400
      x = TApplicationException()
2401
      x.read(self._iprot)
2402
      self._iprot.readMessageEnd()
2403
      raise x
2404
    result = addOrUpdateAmazonInventoryForItem_result()
2405
    result.read(self._iprot)
2406
    self._iprot.readMessageEnd()
2407
    return
2408
 
7972 amar.kumar 2409
  def getLastNdaySaleForItem(self, itemId, numberOfDays):
2410
    """
2411
    Parameters:
2412
     - itemId
2413
     - numberOfDays
2414
    """
2415
    self.send_getLastNdaySaleForItem(itemId, numberOfDays)
2416
    return self.recv_getLastNdaySaleForItem()
7281 kshitij.so 2417
 
7972 amar.kumar 2418
  def send_getLastNdaySaleForItem(self, itemId, numberOfDays):
2419
    self._oprot.writeMessageBegin('getLastNdaySaleForItem', TMessageType.CALL, self._seqid)
2420
    args = getLastNdaySaleForItem_args()
2421
    args.itemId = itemId
2422
    args.numberOfDays = numberOfDays
2423
    args.write(self._oprot)
2424
    self._oprot.writeMessageEnd()
2425
    self._oprot.trans.flush()
2426
 
2427
  def recv_getLastNdaySaleForItem(self, ):
2428
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2429
    if mtype == TMessageType.EXCEPTION:
2430
      x = TApplicationException()
2431
      x.read(self._iprot)
2432
      self._iprot.readMessageEnd()
2433
      raise x
2434
    result = getLastNdaySaleForItem_result()
2435
    result.read(self._iprot)
2436
    self._iprot.readMessageEnd()
2437
    if result.success is not None:
2438
      return result.success
2439
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLastNdaySaleForItem failed: unknown result");
2440
 
8282 kshitij.so 2441
  def addOrUpdateAmazonFbaInventory(self, amazonfbainventorysnapshot):
2442
    """
2443
    Parameters:
2444
     - amazonfbainventorysnapshot
2445
    """
2446
    self.send_addOrUpdateAmazonFbaInventory(amazonfbainventorysnapshot)
2447
    self.recv_addOrUpdateAmazonFbaInventory()
2448
 
2449
  def send_addOrUpdateAmazonFbaInventory(self, amazonfbainventorysnapshot):
2450
    self._oprot.writeMessageBegin('addOrUpdateAmazonFbaInventory', TMessageType.CALL, self._seqid)
2451
    args = addOrUpdateAmazonFbaInventory_args()
2452
    args.amazonfbainventorysnapshot = amazonfbainventorysnapshot
2453
    args.write(self._oprot)
2454
    self._oprot.writeMessageEnd()
2455
    self._oprot.trans.flush()
2456
 
2457
  def recv_addOrUpdateAmazonFbaInventory(self, ):
2458
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2459
    if mtype == TMessageType.EXCEPTION:
2460
      x = TApplicationException()
2461
      x.read(self._iprot)
2462
      self._iprot.readMessageEnd()
2463
      raise x
2464
    result = addOrUpdateAmazonFbaInventory_result()
2465
    result.read(self._iprot)
2466
    self._iprot.readMessageEnd()
2467
    return
2468
 
8182 amar.kumar 2469
  def addUpdateHoldInventory(self, itemId, warehouseId, holdQuantity, source):
2470
    """
2471
    Parameters:
2472
     - itemId
2473
     - warehouseId
2474
     - holdQuantity
2475
     - source
2476
    """
2477
    self.send_addUpdateHoldInventory(itemId, warehouseId, holdQuantity, source)
2478
    self.recv_addUpdateHoldInventory()
7972 amar.kumar 2479
 
8182 amar.kumar 2480
  def send_addUpdateHoldInventory(self, itemId, warehouseId, holdQuantity, source):
2481
    self._oprot.writeMessageBegin('addUpdateHoldInventory', TMessageType.CALL, self._seqid)
2482
    args = addUpdateHoldInventory_args()
2483
    args.itemId = itemId
2484
    args.warehouseId = warehouseId
2485
    args.holdQuantity = holdQuantity
2486
    args.source = source
2487
    args.write(self._oprot)
2488
    self._oprot.writeMessageEnd()
2489
    self._oprot.trans.flush()
2490
 
2491
  def recv_addUpdateHoldInventory(self, ):
2492
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2493
    if mtype == TMessageType.EXCEPTION:
2494
      x = TApplicationException()
2495
      x.read(self._iprot)
2496
      self._iprot.readMessageEnd()
2497
      raise x
2498
    result = addUpdateHoldInventory_result()
2499
    result.read(self._iprot)
2500
    self._iprot.readMessageEnd()
2501
    return
2502
 
8282 kshitij.so 2503
  def getAmazonFbaItemInventory(self, itemId):
2504
    """
2505
    Parameters:
2506
     - itemId
2507
    """
2508
    self.send_getAmazonFbaItemInventory(itemId)
2509
    return self.recv_getAmazonFbaItemInventory()
8182 amar.kumar 2510
 
8282 kshitij.so 2511
  def send_getAmazonFbaItemInventory(self, itemId):
2512
    self._oprot.writeMessageBegin('getAmazonFbaItemInventory', TMessageType.CALL, self._seqid)
2513
    args = getAmazonFbaItemInventory_args()
2514
    args.itemId = itemId
2515
    args.write(self._oprot)
2516
    self._oprot.writeMessageEnd()
2517
    self._oprot.trans.flush()
2518
 
2519
  def recv_getAmazonFbaItemInventory(self, ):
2520
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2521
    if mtype == TMessageType.EXCEPTION:
2522
      x = TApplicationException()
2523
      x.read(self._iprot)
2524
      self._iprot.readMessageEnd()
2525
      raise x
2526
    result = getAmazonFbaItemInventory_result()
2527
    result.read(self._iprot)
2528
    self._iprot.readMessageEnd()
2529
    if result.success is not None:
2530
      return result.success
2531
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonFbaItemInventory failed: unknown result");
2532
 
8363 vikram.rag 2533
  def getAllAmazonFbaItemInventory(self, ):
2534
    self.send_getAllAmazonFbaItemInventory()
2535
    return self.recv_getAllAmazonFbaItemInventory()
8282 kshitij.so 2536
 
8363 vikram.rag 2537
  def send_getAllAmazonFbaItemInventory(self, ):
2538
    self._oprot.writeMessageBegin('getAllAmazonFbaItemInventory', TMessageType.CALL, self._seqid)
2539
    args = getAllAmazonFbaItemInventory_args()
8282 kshitij.so 2540
    args.write(self._oprot)
2541
    self._oprot.writeMessageEnd()
2542
    self._oprot.trans.flush()
2543
 
8363 vikram.rag 2544
  def recv_getAllAmazonFbaItemInventory(self, ):
8282 kshitij.so 2545
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2546
    if mtype == TMessageType.EXCEPTION:
2547
      x = TApplicationException()
2548
      x.read(self._iprot)
2549
      self._iprot.readMessageEnd()
2550
      raise x
8363 vikram.rag 2551
    result = getAllAmazonFbaItemInventory_result()
8282 kshitij.so 2552
    result.read(self._iprot)
2553
    self._iprot.readMessageEnd()
2554
    if result.success is not None:
2555
      return result.success
8363 vikram.rag 2556
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonFbaItemInventory failed: unknown result");
8282 kshitij.so 2557
 
8363 vikram.rag 2558
  def getOursGoodWarehouseIdsForLocation(self, state_id):
2559
    """
2560
    Parameters:
2561
     - state_id
2562
    """
2563
    self.send_getOursGoodWarehouseIdsForLocation(state_id)
2564
    return self.recv_getOursGoodWarehouseIdsForLocation()
8282 kshitij.so 2565
 
8363 vikram.rag 2566
  def send_getOursGoodWarehouseIdsForLocation(self, state_id):
2567
    self._oprot.writeMessageBegin('getOursGoodWarehouseIdsForLocation', TMessageType.CALL, self._seqid)
2568
    args = getOursGoodWarehouseIdsForLocation_args()
2569
    args.state_id = state_id
2570
    args.write(self._oprot)
2571
    self._oprot.writeMessageEnd()
2572
    self._oprot.trans.flush()
2573
 
2574
  def recv_getOursGoodWarehouseIdsForLocation(self, ):
2575
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2576
    if mtype == TMessageType.EXCEPTION:
2577
      x = TApplicationException()
2578
      x.read(self._iprot)
2579
      self._iprot.readMessageEnd()
2580
      raise x
2581
    result = getOursGoodWarehouseIdsForLocation_result()
2582
    result.read(self._iprot)
2583
    self._iprot.readMessageEnd()
2584
    if result.success is not None:
2585
      return result.success
2586
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOursGoodWarehouseIdsForLocation failed: unknown result");
2587
 
8955 vikram.rag 2588
  def getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, id, warehouse_id, source):
2589
    """
2590
    Parameters:
2591
     - id
2592
     - warehouse_id
2593
     - source
2594
    """
2595
    self.send_getHoldInventoryDetailForItemForWarehouseIdExceptSource(id, warehouse_id, source)
2596
    return self.recv_getHoldInventoryDetailForItemForWarehouseIdExceptSource()
8363 vikram.rag 2597
 
8955 vikram.rag 2598
  def send_getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, id, warehouse_id, source):
2599
    self._oprot.writeMessageBegin('getHoldInventoryDetailForItemForWarehouseIdExceptSource', TMessageType.CALL, self._seqid)
2600
    args = getHoldInventoryDetailForItemForWarehouseIdExceptSource_args()
2601
    args.id = id
2602
    args.warehouse_id = warehouse_id
2603
    args.source = source
2604
    args.write(self._oprot)
2605
    self._oprot.writeMessageEnd()
2606
    self._oprot.trans.flush()
2607
 
2608
  def recv_getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, ):
2609
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2610
    if mtype == TMessageType.EXCEPTION:
2611
      x = TApplicationException()
2612
      x.read(self._iprot)
2613
      self._iprot.readMessageEnd()
2614
      raise x
2615
    result = getHoldInventoryDetailForItemForWarehouseIdExceptSource_result()
2616
    result.read(self._iprot)
2617
    self._iprot.readMessageEnd()
2618
    if result.success is not None:
2619
      return result.success
2620
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHoldInventoryDetailForItemForWarehouseIdExceptSource failed: unknown result");
2621
 
9404 vikram.rag 2622
  def getSnapdealInventoryForItem(self, item_id):
2623
    """
2624
    Parameters:
2625
     - item_id
2626
    """
2627
    self.send_getSnapdealInventoryForItem(item_id)
2628
    return self.recv_getSnapdealInventoryForItem()
8955 vikram.rag 2629
 
9404 vikram.rag 2630
  def send_getSnapdealInventoryForItem(self, item_id):
2631
    self._oprot.writeMessageBegin('getSnapdealInventoryForItem', TMessageType.CALL, self._seqid)
2632
    args = getSnapdealInventoryForItem_args()
2633
    args.item_id = item_id
2634
    args.write(self._oprot)
2635
    self._oprot.writeMessageEnd()
2636
    self._oprot.trans.flush()
2637
 
2638
  def recv_getSnapdealInventoryForItem(self, ):
2639
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2640
    if mtype == TMessageType.EXCEPTION:
2641
      x = TApplicationException()
2642
      x.read(self._iprot)
2643
      self._iprot.readMessageEnd()
2644
      raise x
2645
    result = getSnapdealInventoryForItem_result()
2646
    result.read(self._iprot)
2647
    self._iprot.readMessageEnd()
2648
    if result.success is not None:
2649
      return result.success
2650
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealInventoryForItem failed: unknown result");
2651
 
2652
  def addOrUpdateSnapdealInventoryForItem(self, snapdealinventoryitem):
2653
    """
2654
    Parameters:
2655
     - snapdealinventoryitem
2656
    """
2657
    self.send_addOrUpdateSnapdealInventoryForItem(snapdealinventoryitem)
2658
    self.recv_addOrUpdateSnapdealInventoryForItem()
2659
 
2660
  def send_addOrUpdateSnapdealInventoryForItem(self, snapdealinventoryitem):
2661
    self._oprot.writeMessageBegin('addOrUpdateSnapdealInventoryForItem', TMessageType.CALL, self._seqid)
2662
    args = addOrUpdateSnapdealInventoryForItem_args()
2663
    args.snapdealinventoryitem = snapdealinventoryitem
2664
    args.write(self._oprot)
2665
    self._oprot.writeMessageEnd()
2666
    self._oprot.trans.flush()
2667
 
2668
  def recv_addOrUpdateSnapdealInventoryForItem(self, ):
2669
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2670
    if mtype == TMessageType.EXCEPTION:
2671
      x = TApplicationException()
2672
      x.read(self._iprot)
2673
      self._iprot.readMessageEnd()
2674
      raise x
2675
    result = addOrUpdateSnapdealInventoryForItem_result()
2676
    result.read(self._iprot)
2677
    self._iprot.readMessageEnd()
2678
    return
2679
 
2680
  def getNlcForWarehouse(self, warehouse_id, item_id):
2681
    """
2682
    Parameters:
2683
     - warehouse_id
2684
     - item_id
2685
    """
2686
    self.send_getNlcForWarehouse(warehouse_id, item_id)
2687
    return self.recv_getNlcForWarehouse()
2688
 
2689
  def send_getNlcForWarehouse(self, warehouse_id, item_id):
2690
    self._oprot.writeMessageBegin('getNlcForWarehouse', TMessageType.CALL, self._seqid)
2691
    args = getNlcForWarehouse_args()
2692
    args.warehouse_id = warehouse_id
2693
    args.item_id = item_id
2694
    args.write(self._oprot)
2695
    self._oprot.writeMessageEnd()
2696
    self._oprot.trans.flush()
2697
 
2698
  def recv_getNlcForWarehouse(self, ):
2699
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2700
    if mtype == TMessageType.EXCEPTION:
2701
      x = TApplicationException()
2702
      x.read(self._iprot)
2703
      self._iprot.readMessageEnd()
2704
      raise x
2705
    result = getNlcForWarehouse_result()
2706
    result.read(self._iprot)
2707
    self._iprot.readMessageEnd()
2708
    if result.success is not None:
2709
      return result.success
2710
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNlcForWarehouse failed: unknown result");
2711
 
9640 amar.kumar 2712
  def getHeldInventoryMapForItem(self, item_id, warehouse_id):
2713
    """
2714
    Parameters:
2715
     - item_id
2716
     - warehouse_id
2717
    """
2718
    self.send_getHeldInventoryMapForItem(item_id, warehouse_id)
2719
    return self.recv_getHeldInventoryMapForItem()
2720
 
2721
  def send_getHeldInventoryMapForItem(self, item_id, warehouse_id):
2722
    self._oprot.writeMessageBegin('getHeldInventoryMapForItem', TMessageType.CALL, self._seqid)
2723
    args = getHeldInventoryMapForItem_args()
2724
    args.item_id = item_id
2725
    args.warehouse_id = warehouse_id
2726
    args.write(self._oprot)
2727
    self._oprot.writeMessageEnd()
2728
    self._oprot.trans.flush()
2729
 
2730
  def recv_getHeldInventoryMapForItem(self, ):
2731
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2732
    if mtype == TMessageType.EXCEPTION:
2733
      x = TApplicationException()
2734
      x.read(self._iprot)
2735
      self._iprot.readMessageEnd()
2736
      raise x
2737
    result = getHeldInventoryMapForItem_result()
2738
    result.read(self._iprot)
2739
    self._iprot.readMessageEnd()
2740
    if result.success is not None:
2741
      return result.success
2742
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHeldInventoryMapForItem failed: unknown result");
2743
 
9495 vikram.rag 2744
  def addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
2745
    """
2746
    Parameters:
2747
     - allamazonfbainventorysnapshot
2748
    """
2749
    self.send_addOrUpdateAllAmazonFbaInventory(allamazonfbainventorysnapshot)
2750
    self.recv_addOrUpdateAllAmazonFbaInventory()
9404 vikram.rag 2751
 
9495 vikram.rag 2752
  def send_addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
2753
    self._oprot.writeMessageBegin('addOrUpdateAllAmazonFbaInventory', TMessageType.CALL, self._seqid)
2754
    args = addOrUpdateAllAmazonFbaInventory_args()
2755
    args.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot
9456 vikram.rag 2756
    args.write(self._oprot)
2757
    self._oprot.writeMessageEnd()
2758
    self._oprot.trans.flush()
2759
 
9495 vikram.rag 2760
  def recv_addOrUpdateAllAmazonFbaInventory(self, ):
9456 vikram.rag 2761
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2762
    if mtype == TMessageType.EXCEPTION:
2763
      x = TApplicationException()
2764
      x.read(self._iprot)
2765
      self._iprot.readMessageEnd()
2766
      raise x
9495 vikram.rag 2767
    result = addOrUpdateAllAmazonFbaInventory_result()
9456 vikram.rag 2768
    result.read(self._iprot)
2769
    self._iprot.readMessageEnd()
9495 vikram.rag 2770
    return
9456 vikram.rag 2771
 
9495 vikram.rag 2772
  def addOrUpdateAllSnapdealInventory(self, allsnapdealinventorysnapshot):
9482 vikram.rag 2773
    """
2774
    Parameters:
9495 vikram.rag 2775
     - allsnapdealinventorysnapshot
9482 vikram.rag 2776
    """
9495 vikram.rag 2777
    self.send_addOrUpdateAllSnapdealInventory(allsnapdealinventorysnapshot)
2778
    self.recv_addOrUpdateAllSnapdealInventory()
9456 vikram.rag 2779
 
9495 vikram.rag 2780
  def send_addOrUpdateAllSnapdealInventory(self, allsnapdealinventorysnapshot):
2781
    self._oprot.writeMessageBegin('addOrUpdateAllSnapdealInventory', TMessageType.CALL, self._seqid)
2782
    args = addOrUpdateAllSnapdealInventory_args()
2783
    args.allsnapdealinventorysnapshot = allsnapdealinventorysnapshot
9482 vikram.rag 2784
    args.write(self._oprot)
2785
    self._oprot.writeMessageEnd()
2786
    self._oprot.trans.flush()
2787
 
9495 vikram.rag 2788
  def recv_addOrUpdateAllSnapdealInventory(self, ):
9482 vikram.rag 2789
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2790
    if mtype == TMessageType.EXCEPTION:
2791
      x = TApplicationException()
2792
      x.read(self._iprot)
2793
      self._iprot.readMessageEnd()
2794
      raise x
9495 vikram.rag 2795
    result = addOrUpdateAllSnapdealInventory_result()
9482 vikram.rag 2796
    result.read(self._iprot)
2797
    self._iprot.readMessageEnd()
2798
    return
2799
 
9495 vikram.rag 2800
  def getSnapdealInventorySnapshot(self, ):
2801
    self.send_getSnapdealInventorySnapshot()
2802
    return self.recv_getSnapdealInventorySnapshot()
9482 vikram.rag 2803
 
9495 vikram.rag 2804
  def send_getSnapdealInventorySnapshot(self, ):
2805
    self._oprot.writeMessageBegin('getSnapdealInventorySnapshot', TMessageType.CALL, self._seqid)
2806
    args = getSnapdealInventorySnapshot_args()
2807
    args.write(self._oprot)
2808
    self._oprot.writeMessageEnd()
2809
    self._oprot.trans.flush()
2810
 
2811
  def recv_getSnapdealInventorySnapshot(self, ):
2812
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2813
    if mtype == TMessageType.EXCEPTION:
2814
      x = TApplicationException()
2815
      x.read(self._iprot)
2816
      self._iprot.readMessageEnd()
2817
      raise x
2818
    result = getSnapdealInventorySnapshot_result()
2819
    result.read(self._iprot)
2820
    self._iprot.readMessageEnd()
2821
    if result.success is not None:
2822
      return result.success
2823
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealInventorySnapshot failed: unknown result");
2824
 
9761 amar.kumar 2825
  def getHoldInventoryDetails(self, itemId, warehouseId, source):
2826
    """
2827
    Parameters:
2828
     - itemId
2829
     - warehouseId
2830
     - source
2831
    """
2832
    self.send_getHoldInventoryDetails(itemId, warehouseId, source)
2833
    return self.recv_getHoldInventoryDetails()
9495 vikram.rag 2834
 
9761 amar.kumar 2835
  def send_getHoldInventoryDetails(self, itemId, warehouseId, source):
2836
    self._oprot.writeMessageBegin('getHoldInventoryDetails', TMessageType.CALL, self._seqid)
2837
    args = getHoldInventoryDetails_args()
2838
    args.itemId = itemId
2839
    args.warehouseId = warehouseId
2840
    args.source = source
2841
    args.write(self._oprot)
2842
    self._oprot.writeMessageEnd()
2843
    self._oprot.trans.flush()
2844
 
2845
  def recv_getHoldInventoryDetails(self, ):
2846
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2847
    if mtype == TMessageType.EXCEPTION:
2848
      x = TApplicationException()
2849
      x.read(self._iprot)
2850
      self._iprot.readMessageEnd()
2851
      raise x
2852
    result = getHoldInventoryDetails_result()
2853
    result.read(self._iprot)
2854
    self._iprot.readMessageEnd()
2855
    if result.success is not None:
2856
      return result.success
2857
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHoldInventoryDetails failed: unknown result");
2858
 
2859
 
5944 mandeep.dh 2860
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
2861
  def __init__(self, handler):
2862
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
2863
    self._processMap["addWarehouse"] = Processor.process_addWarehouse
2864
    self._processMap["addVendor"] = Processor.process_addVendor
2865
    self._processMap["updateInventoryHistory"] = Processor.process_updateInventoryHistory
2866
    self._processMap["updateInventory"] = Processor.process_updateInventory
2867
    self._processMap["addInventory"] = Processor.process_addInventory
2868
    self._processMap["retireWarehouse"] = Processor.process_retireWarehouse
2869
    self._processMap["getItemInventoryByItemId"] = Processor.process_getItemInventoryByItemId
2870
    self._processMap["getItemAvailibilityAtWarehouse"] = Processor.process_getItemAvailibilityAtWarehouse
2871
    self._processMap["getItemAvailabilityAtLocation"] = Processor.process_getItemAvailabilityAtLocation
2872
    self._processMap["getAllWarehouses"] = Processor.process_getAllWarehouses
2873
    self._processMap["getWarehouse"] = Processor.process_getWarehouse
2874
    self._processMap["getAllItemsForWarehouse"] = Processor.process_getAllItemsForWarehouse
5966 rajveer 2875
    self._processMap["isOrderBillable"] = Processor.process_isOrderBillable
5944 mandeep.dh 2876
    self._processMap["reserveItemInWarehouse"] = Processor.process_reserveItemInWarehouse
7968 amar.kumar 2877
    self._processMap["updateReservationForOrder"] = Processor.process_updateReservationForOrder
5944 mandeep.dh 2878
    self._processMap["reduceReservationCount"] = Processor.process_reduceReservationCount
2879
    self._processMap["getItemPricing"] = Processor.process_getItemPricing
2880
    self._processMap["getAllItemPricing"] = Processor.process_getAllItemPricing
2881
    self._processMap["addVendorItemPricing"] = Processor.process_addVendorItemPricing
2882
    self._processMap["getVendor"] = Processor.process_getVendor
2883
    self._processMap["getAllVendors"] = Processor.process_getAllVendors
2884
    self._processMap["addVendorItemMapping"] = Processor.process_addVendorItemMapping
2885
    self._processMap["getVendorItemMappings"] = Processor.process_getVendorItemMappings
2886
    self._processMap["getPendingOrdersInventory"] = Processor.process_getPendingOrdersInventory
2887
    self._processMap["getWarehouses"] = Processor.process_getWarehouses
2888
    self._processMap["resetAvailability"] = Processor.process_resetAvailability
2889
    self._processMap["resetAvailabilityForWarehouse"] = Processor.process_resetAvailabilityForWarehouse
2890
    self._processMap["getItemKeysToBeProcessed"] = Processor.process_getItemKeysToBeProcessed
2891
    self._processMap["markMissedInventoryUpdatesAsProcessed"] = Processor.process_markMissedInventoryUpdatesAsProcessed
2892
    self._processMap["getIgnoredItemKeys"] = Processor.process_getIgnoredItemKeys
2893
    self._processMap["addBadInventory"] = Processor.process_addBadInventory
2894
    self._processMap["getShippingLocations"] = Processor.process_getShippingLocations
2895
    self._processMap["getAllVendorItemMappings"] = Processor.process_getAllVendorItemMappings
2896
    self._processMap["getInventorySnapshot"] = Processor.process_getInventorySnapshot
2897
    self._processMap["clearItemAvailabilityCache"] = Processor.process_clearItemAvailabilityCache
2898
    self._processMap["updateVendorString"] = Processor.process_updateVendorString
6096 amit.gupta 2899
    self._processMap["clearItemAvailabilityCacheForItem"] = Processor.process_clearItemAvailabilityCacheForItem
6467 amar.kumar 2900
    self._processMap["getOurWarehouseIdForVendor"] = Processor.process_getOurWarehouseIdForVendor
6484 amar.kumar 2901
    self._processMap["getItemAvailabilitiesAtOurWarehouses"] = Processor.process_getItemAvailabilitiesAtOurWarehouses
6531 vikram.rag 2902
    self._processMap["getMonitoredWarehouseForVendors"] = Processor.process_getMonitoredWarehouseForVendors
2903
    self._processMap["getIgnoredWarehouseidsAndItemids"] = Processor.process_getIgnoredWarehouseidsAndItemids
2904
    self._processMap["insertItemtoIgnoreInventoryUpdatelist"] = Processor.process_insertItemtoIgnoreInventoryUpdatelist
2905
    self._processMap["deleteItemFromIgnoredInventoryUpdateList"] = Processor.process_deleteItemFromIgnoredInventoryUpdateList
2906
    self._processMap["getAllIgnoredInventoryupdateItemsCount"] = Processor.process_getAllIgnoredInventoryupdateItemsCount
2907
    self._processMap["getIgnoredInventoryUpdateItemids"] = Processor.process_getIgnoredInventoryUpdateItemids
6821 amar.kumar 2908
    self._processMap["updateItemStockPurchaseParams"] = Processor.process_updateItemStockPurchaseParams
2909
    self._processMap["getItemStockPurchaseParams"] = Processor.process_getItemStockPurchaseParams
2910
    self._processMap["addOosStatusForItem"] = Processor.process_addOosStatusForItem
6832 amar.kumar 2911
    self._processMap["getOosStatusesForXDaysForItem"] = Processor.process_getOosStatusesForXDaysForItem
6857 amar.kumar 2912
    self._processMap["getNonZeroItemStockPurchaseParams"] = Processor.process_getNonZeroItemStockPurchaseParams
7149 amar.kumar 2913
    self._processMap["getBillableInventoryAndPendingOrders"] = Processor.process_getBillableInventoryAndPendingOrders
7281 kshitij.so 2914
    self._processMap["getWarehouseName"] = Processor.process_getWarehouseName
2915
    self._processMap["getAmazonInventoryForItem"] = Processor.process_getAmazonInventoryForItem
2916
    self._processMap["getAllAmazonInventory"] = Processor.process_getAllAmazonInventory
2917
    self._processMap["addOrUpdateAmazonInventoryForItem"] = Processor.process_addOrUpdateAmazonInventoryForItem
7972 amar.kumar 2918
    self._processMap["getLastNdaySaleForItem"] = Processor.process_getLastNdaySaleForItem
8282 kshitij.so 2919
    self._processMap["addOrUpdateAmazonFbaInventory"] = Processor.process_addOrUpdateAmazonFbaInventory
8182 amar.kumar 2920
    self._processMap["addUpdateHoldInventory"] = Processor.process_addUpdateHoldInventory
8282 kshitij.so 2921
    self._processMap["getAmazonFbaItemInventory"] = Processor.process_getAmazonFbaItemInventory
8363 vikram.rag 2922
    self._processMap["getAllAmazonFbaItemInventory"] = Processor.process_getAllAmazonFbaItemInventory
2923
    self._processMap["getOursGoodWarehouseIdsForLocation"] = Processor.process_getOursGoodWarehouseIdsForLocation
8955 vikram.rag 2924
    self._processMap["getHoldInventoryDetailForItemForWarehouseIdExceptSource"] = Processor.process_getHoldInventoryDetailForItemForWarehouseIdExceptSource
9404 vikram.rag 2925
    self._processMap["getSnapdealInventoryForItem"] = Processor.process_getSnapdealInventoryForItem
2926
    self._processMap["addOrUpdateSnapdealInventoryForItem"] = Processor.process_addOrUpdateSnapdealInventoryForItem
2927
    self._processMap["getNlcForWarehouse"] = Processor.process_getNlcForWarehouse
9640 amar.kumar 2928
    self._processMap["getHeldInventoryMapForItem"] = Processor.process_getHeldInventoryMapForItem
9482 vikram.rag 2929
    self._processMap["addOrUpdateAllAmazonFbaInventory"] = Processor.process_addOrUpdateAllAmazonFbaInventory
9495 vikram.rag 2930
    self._processMap["addOrUpdateAllSnapdealInventory"] = Processor.process_addOrUpdateAllSnapdealInventory
2931
    self._processMap["getSnapdealInventorySnapshot"] = Processor.process_getSnapdealInventorySnapshot
9761 amar.kumar 2932
    self._processMap["getHoldInventoryDetails"] = Processor.process_getHoldInventoryDetails
5944 mandeep.dh 2933
 
2934
  def process(self, iprot, oprot):
2935
    (name, type, seqid) = iprot.readMessageBegin()
2936
    if name not in self._processMap:
2937
      iprot.skip(TType.STRUCT)
2938
      iprot.readMessageEnd()
2939
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
2940
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
2941
      x.write(oprot)
2942
      oprot.writeMessageEnd()
2943
      oprot.trans.flush()
2944
      return
2945
    else:
2946
      self._processMap[name](self, seqid, iprot, oprot)
2947
    return True
2948
 
2949
  def process_addWarehouse(self, seqid, iprot, oprot):
2950
    args = addWarehouse_args()
2951
    args.read(iprot)
2952
    iprot.readMessageEnd()
2953
    result = addWarehouse_result()
2954
    try:
2955
      result.success = self._handler.addWarehouse(args.warehouse)
2956
    except InventoryServiceException, cex:
2957
      result.cex = cex
2958
    oprot.writeMessageBegin("addWarehouse", TMessageType.REPLY, seqid)
2959
    result.write(oprot)
2960
    oprot.writeMessageEnd()
2961
    oprot.trans.flush()
2962
 
2963
  def process_addVendor(self, seqid, iprot, oprot):
2964
    args = addVendor_args()
2965
    args.read(iprot)
2966
    iprot.readMessageEnd()
2967
    result = addVendor_result()
2968
    try:
2969
      result.success = self._handler.addVendor(args.vendor)
2970
    except InventoryServiceException, cex:
2971
      result.cex = cex
2972
    oprot.writeMessageBegin("addVendor", TMessageType.REPLY, seqid)
2973
    result.write(oprot)
2974
    oprot.writeMessageEnd()
2975
    oprot.trans.flush()
2976
 
2977
  def process_updateInventoryHistory(self, seqid, iprot, oprot):
2978
    args = updateInventoryHistory_args()
2979
    args.read(iprot)
2980
    iprot.readMessageEnd()
2981
    result = updateInventoryHistory_result()
2982
    try:
2983
      self._handler.updateInventoryHistory(args.warehouse_id, args.timestamp, args.availability)
2984
    except InventoryServiceException, cex:
2985
      result.cex = cex
2986
    oprot.writeMessageBegin("updateInventoryHistory", TMessageType.REPLY, seqid)
2987
    result.write(oprot)
2988
    oprot.writeMessageEnd()
2989
    oprot.trans.flush()
2990
 
2991
  def process_updateInventory(self, seqid, iprot, oprot):
2992
    args = updateInventory_args()
2993
    args.read(iprot)
2994
    iprot.readMessageEnd()
2995
    result = updateInventory_result()
2996
    try:
2997
      self._handler.updateInventory(args.warehouse_id, args.timestamp, args.availability)
2998
    except InventoryServiceException, cex:
2999
      result.cex = cex
3000
    oprot.writeMessageBegin("updateInventory", TMessageType.REPLY, seqid)
3001
    result.write(oprot)
3002
    oprot.writeMessageEnd()
3003
    oprot.trans.flush()
3004
 
3005
  def process_addInventory(self, seqid, iprot, oprot):
3006
    args = addInventory_args()
3007
    args.read(iprot)
3008
    iprot.readMessageEnd()
3009
    result = addInventory_result()
3010
    try:
3011
      self._handler.addInventory(args.itemId, args.warehouseId, args.quantity)
3012
    except InventoryServiceException, cex:
3013
      result.cex = cex
3014
    oprot.writeMessageBegin("addInventory", TMessageType.REPLY, seqid)
3015
    result.write(oprot)
3016
    oprot.writeMessageEnd()
3017
    oprot.trans.flush()
3018
 
3019
  def process_retireWarehouse(self, seqid, iprot, oprot):
3020
    args = retireWarehouse_args()
3021
    args.read(iprot)
3022
    iprot.readMessageEnd()
3023
    result = retireWarehouse_result()
3024
    try:
3025
      self._handler.retireWarehouse(args.warehouse_id)
3026
    except InventoryServiceException, cex:
3027
      result.cex = cex
3028
    oprot.writeMessageBegin("retireWarehouse", TMessageType.REPLY, seqid)
3029
    result.write(oprot)
3030
    oprot.writeMessageEnd()
3031
    oprot.trans.flush()
3032
 
3033
  def process_getItemInventoryByItemId(self, seqid, iprot, oprot):
3034
    args = getItemInventoryByItemId_args()
3035
    args.read(iprot)
3036
    iprot.readMessageEnd()
3037
    result = getItemInventoryByItemId_result()
3038
    try:
3039
      result.success = self._handler.getItemInventoryByItemId(args.item_id)
3040
    except InventoryServiceException, cex:
3041
      result.cex = cex
3042
    oprot.writeMessageBegin("getItemInventoryByItemId", TMessageType.REPLY, seqid)
3043
    result.write(oprot)
3044
    oprot.writeMessageEnd()
3045
    oprot.trans.flush()
3046
 
3047
  def process_getItemAvailibilityAtWarehouse(self, seqid, iprot, oprot):
3048
    args = getItemAvailibilityAtWarehouse_args()
3049
    args.read(iprot)
3050
    iprot.readMessageEnd()
3051
    result = getItemAvailibilityAtWarehouse_result()
3052
    try:
3053
      result.success = self._handler.getItemAvailibilityAtWarehouse(args.warehouse_id, args.item_id)
3054
    except InventoryServiceException, cex:
3055
      result.cex = cex
3056
    oprot.writeMessageBegin("getItemAvailibilityAtWarehouse", TMessageType.REPLY, seqid)
3057
    result.write(oprot)
3058
    oprot.writeMessageEnd()
3059
    oprot.trans.flush()
3060
 
3061
  def process_getItemAvailabilityAtLocation(self, seqid, iprot, oprot):
3062
    args = getItemAvailabilityAtLocation_args()
3063
    args.read(iprot)
3064
    iprot.readMessageEnd()
3065
    result = getItemAvailabilityAtLocation_result()
3066
    try:
5978 rajveer 3067
      result.success = self._handler.getItemAvailabilityAtLocation(args.itemId, args.sourceId)
5944 mandeep.dh 3068
    except InventoryServiceException, isex:
3069
      result.isex = isex
3070
    oprot.writeMessageBegin("getItemAvailabilityAtLocation", TMessageType.REPLY, seqid)
3071
    result.write(oprot)
3072
    oprot.writeMessageEnd()
3073
    oprot.trans.flush()
3074
 
3075
  def process_getAllWarehouses(self, seqid, iprot, oprot):
3076
    args = getAllWarehouses_args()
3077
    args.read(iprot)
3078
    iprot.readMessageEnd()
3079
    result = getAllWarehouses_result()
3080
    try:
3081
      result.success = self._handler.getAllWarehouses(args.isActive)
3082
    except InventoryServiceException, cex:
3083
      result.cex = cex
3084
    oprot.writeMessageBegin("getAllWarehouses", TMessageType.REPLY, seqid)
3085
    result.write(oprot)
3086
    oprot.writeMessageEnd()
3087
    oprot.trans.flush()
3088
 
3089
  def process_getWarehouse(self, seqid, iprot, oprot):
3090
    args = getWarehouse_args()
3091
    args.read(iprot)
3092
    iprot.readMessageEnd()
3093
    result = getWarehouse_result()
3094
    try:
3095
      result.success = self._handler.getWarehouse(args.warehouse_id)
3096
    except InventoryServiceException, cex:
3097
      result.cex = cex
3098
    oprot.writeMessageBegin("getWarehouse", TMessageType.REPLY, seqid)
3099
    result.write(oprot)
3100
    oprot.writeMessageEnd()
3101
    oprot.trans.flush()
3102
 
3103
  def process_getAllItemsForWarehouse(self, seqid, iprot, oprot):
3104
    args = getAllItemsForWarehouse_args()
3105
    args.read(iprot)
3106
    iprot.readMessageEnd()
3107
    result = getAllItemsForWarehouse_result()
3108
    try:
3109
      result.success = self._handler.getAllItemsForWarehouse(args.warehouse_id)
3110
    except InventoryServiceException, cex:
3111
      result.cex = cex
3112
    oprot.writeMessageBegin("getAllItemsForWarehouse", TMessageType.REPLY, seqid)
3113
    result.write(oprot)
3114
    oprot.writeMessageEnd()
3115
    oprot.trans.flush()
3116
 
5966 rajveer 3117
  def process_isOrderBillable(self, seqid, iprot, oprot):
3118
    args = isOrderBillable_args()
3119
    args.read(iprot)
3120
    iprot.readMessageEnd()
3121
    result = isOrderBillable_result()
3122
    result.success = self._handler.isOrderBillable(args.itemId, args.warehouseId, args.sourceId, args.orderId)
3123
    oprot.writeMessageBegin("isOrderBillable", TMessageType.REPLY, seqid)
3124
    result.write(oprot)
3125
    oprot.writeMessageEnd()
3126
    oprot.trans.flush()
3127
 
5944 mandeep.dh 3128
  def process_reserveItemInWarehouse(self, seqid, iprot, oprot):
3129
    args = reserveItemInWarehouse_args()
3130
    args.read(iprot)
3131
    iprot.readMessageEnd()
3132
    result = reserveItemInWarehouse_result()
3133
    try:
5966 rajveer 3134
      result.success = self._handler.reserveItemInWarehouse(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.createdTimestamp, args.promisedShippingTimestamp, args.quantity)
5944 mandeep.dh 3135
    except InventoryServiceException, cex:
3136
      result.cex = cex
3137
    oprot.writeMessageBegin("reserveItemInWarehouse", TMessageType.REPLY, seqid)
3138
    result.write(oprot)
3139
    oprot.writeMessageEnd()
3140
    oprot.trans.flush()
3141
 
7968 amar.kumar 3142
  def process_updateReservationForOrder(self, seqid, iprot, oprot):
3143
    args = updateReservationForOrder_args()
3144
    args.read(iprot)
3145
    iprot.readMessageEnd()
3146
    result = updateReservationForOrder_result()
3147
    try:
3148
      result.success = self._handler.updateReservationForOrder(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.createdTimestamp, args.promisedShippingTimestamp, args.quantity)
3149
    except InventoryServiceException, cex:
3150
      result.cex = cex
3151
    oprot.writeMessageBegin("updateReservationForOrder", TMessageType.REPLY, seqid)
3152
    result.write(oprot)
3153
    oprot.writeMessageEnd()
3154
    oprot.trans.flush()
3155
 
5944 mandeep.dh 3156
  def process_reduceReservationCount(self, seqid, iprot, oprot):
3157
    args = reduceReservationCount_args()
3158
    args.read(iprot)
3159
    iprot.readMessageEnd()
3160
    result = reduceReservationCount_result()
3161
    try:
5966 rajveer 3162
      result.success = self._handler.reduceReservationCount(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.quantity)
5944 mandeep.dh 3163
    except InventoryServiceException, cex:
3164
      result.cex = cex
3165
    oprot.writeMessageBegin("reduceReservationCount", TMessageType.REPLY, seqid)
3166
    result.write(oprot)
3167
    oprot.writeMessageEnd()
3168
    oprot.trans.flush()
3169
 
3170
  def process_getItemPricing(self, seqid, iprot, oprot):
3171
    args = getItemPricing_args()
3172
    args.read(iprot)
3173
    iprot.readMessageEnd()
3174
    result = getItemPricing_result()
3175
    try:
3176
      result.success = self._handler.getItemPricing(args.itemId, args.vendorId)
3177
    except InventoryServiceException, cex:
3178
      result.cex = cex
3179
    oprot.writeMessageBegin("getItemPricing", TMessageType.REPLY, seqid)
3180
    result.write(oprot)
3181
    oprot.writeMessageEnd()
3182
    oprot.trans.flush()
3183
 
3184
  def process_getAllItemPricing(self, seqid, iprot, oprot):
3185
    args = getAllItemPricing_args()
3186
    args.read(iprot)
3187
    iprot.readMessageEnd()
3188
    result = getAllItemPricing_result()
3189
    try:
3190
      result.success = self._handler.getAllItemPricing(args.itemId)
3191
    except InventoryServiceException, cex:
3192
      result.cex = cex
3193
    oprot.writeMessageBegin("getAllItemPricing", TMessageType.REPLY, seqid)
3194
    result.write(oprot)
3195
    oprot.writeMessageEnd()
3196
    oprot.trans.flush()
3197
 
3198
  def process_addVendorItemPricing(self, seqid, iprot, oprot):
3199
    args = addVendorItemPricing_args()
3200
    args.read(iprot)
3201
    iprot.readMessageEnd()
3202
    result = addVendorItemPricing_result()
3203
    try:
3204
      self._handler.addVendorItemPricing(args.vendorItemPricing)
3205
    except InventoryServiceException, cex:
3206
      result.cex = cex
3207
    oprot.writeMessageBegin("addVendorItemPricing", TMessageType.REPLY, seqid)
3208
    result.write(oprot)
3209
    oprot.writeMessageEnd()
3210
    oprot.trans.flush()
3211
 
3212
  def process_getVendor(self, seqid, iprot, oprot):
3213
    args = getVendor_args()
3214
    args.read(iprot)
3215
    iprot.readMessageEnd()
3216
    result = getVendor_result()
3217
    result.success = self._handler.getVendor(args.vendorId)
3218
    oprot.writeMessageBegin("getVendor", TMessageType.REPLY, seqid)
3219
    result.write(oprot)
3220
    oprot.writeMessageEnd()
3221
    oprot.trans.flush()
3222
 
3223
  def process_getAllVendors(self, seqid, iprot, oprot):
3224
    args = getAllVendors_args()
3225
    args.read(iprot)
3226
    iprot.readMessageEnd()
3227
    result = getAllVendors_result()
3228
    result.success = self._handler.getAllVendors()
3229
    oprot.writeMessageBegin("getAllVendors", TMessageType.REPLY, seqid)
3230
    result.write(oprot)
3231
    oprot.writeMessageEnd()
3232
    oprot.trans.flush()
3233
 
3234
  def process_addVendorItemMapping(self, seqid, iprot, oprot):
3235
    args = addVendorItemMapping_args()
3236
    args.read(iprot)
3237
    iprot.readMessageEnd()
3238
    result = addVendorItemMapping_result()
3239
    try:
3240
      self._handler.addVendorItemMapping(args.key, args.vendorItemMapping)
3241
    except InventoryServiceException, cex:
3242
      result.cex = cex
3243
    oprot.writeMessageBegin("addVendorItemMapping", TMessageType.REPLY, seqid)
3244
    result.write(oprot)
3245
    oprot.writeMessageEnd()
3246
    oprot.trans.flush()
3247
 
3248
  def process_getVendorItemMappings(self, seqid, iprot, oprot):
3249
    args = getVendorItemMappings_args()
3250
    args.read(iprot)
3251
    iprot.readMessageEnd()
3252
    result = getVendorItemMappings_result()
3253
    try:
3254
      result.success = self._handler.getVendorItemMappings(args.itemId)
3255
    except InventoryServiceException, cex:
3256
      result.cex = cex
3257
    oprot.writeMessageBegin("getVendorItemMappings", TMessageType.REPLY, seqid)
3258
    result.write(oprot)
3259
    oprot.writeMessageEnd()
3260
    oprot.trans.flush()
3261
 
3262
  def process_getPendingOrdersInventory(self, seqid, iprot, oprot):
3263
    args = getPendingOrdersInventory_args()
3264
    args.read(iprot)
3265
    iprot.readMessageEnd()
3266
    result = getPendingOrdersInventory_result()
3267
    result.success = self._handler.getPendingOrdersInventory(args.vendorid)
3268
    oprot.writeMessageBegin("getPendingOrdersInventory", TMessageType.REPLY, seqid)
3269
    result.write(oprot)
3270
    oprot.writeMessageEnd()
3271
    oprot.trans.flush()
3272
 
3273
  def process_getWarehouses(self, seqid, iprot, oprot):
3274
    args = getWarehouses_args()
3275
    args.read(iprot)
3276
    iprot.readMessageEnd()
3277
    result = getWarehouses_result()
3278
    result.success = self._handler.getWarehouses(args.warehouseType, args.inventoryType, args.vendorId, args.billingWarehouseId, args.shippingWarehouseId)
3279
    oprot.writeMessageBegin("getWarehouses", TMessageType.REPLY, seqid)
3280
    result.write(oprot)
3281
    oprot.writeMessageEnd()
3282
    oprot.trans.flush()
3283
 
3284
  def process_resetAvailability(self, seqid, iprot, oprot):
3285
    args = resetAvailability_args()
3286
    args.read(iprot)
3287
    iprot.readMessageEnd()
3288
    result = resetAvailability_result()
3289
    try:
3290
      self._handler.resetAvailability(args.itemKey, args.vendorId, args.quantity, args.warehouseId)
3291
    except InventoryServiceException, cex:
3292
      result.cex = cex
3293
    oprot.writeMessageBegin("resetAvailability", TMessageType.REPLY, seqid)
3294
    result.write(oprot)
3295
    oprot.writeMessageEnd()
3296
    oprot.trans.flush()
3297
 
3298
  def process_resetAvailabilityForWarehouse(self, seqid, iprot, oprot):
3299
    args = resetAvailabilityForWarehouse_args()
3300
    args.read(iprot)
3301
    iprot.readMessageEnd()
3302
    result = resetAvailabilityForWarehouse_result()
3303
    try:
3304
      self._handler.resetAvailabilityForWarehouse(args.warehouseId)
3305
    except InventoryServiceException, cex:
3306
      result.cex = cex
3307
    oprot.writeMessageBegin("resetAvailabilityForWarehouse", TMessageType.REPLY, seqid)
3308
    result.write(oprot)
3309
    oprot.writeMessageEnd()
3310
    oprot.trans.flush()
3311
 
3312
  def process_getItemKeysToBeProcessed(self, seqid, iprot, oprot):
3313
    args = getItemKeysToBeProcessed_args()
3314
    args.read(iprot)
3315
    iprot.readMessageEnd()
3316
    result = getItemKeysToBeProcessed_result()
3317
    result.success = self._handler.getItemKeysToBeProcessed(args.warehouseId)
3318
    oprot.writeMessageBegin("getItemKeysToBeProcessed", TMessageType.REPLY, seqid)
3319
    result.write(oprot)
3320
    oprot.writeMessageEnd()
3321
    oprot.trans.flush()
3322
 
3323
  def process_markMissedInventoryUpdatesAsProcessed(self, seqid, iprot, oprot):
3324
    args = markMissedInventoryUpdatesAsProcessed_args()
3325
    args.read(iprot)
3326
    iprot.readMessageEnd()
3327
    result = markMissedInventoryUpdatesAsProcessed_result()
3328
    self._handler.markMissedInventoryUpdatesAsProcessed(args.itemKey, args.warehouseId)
3329
    oprot.writeMessageBegin("markMissedInventoryUpdatesAsProcessed", TMessageType.REPLY, seqid)
3330
    result.write(oprot)
3331
    oprot.writeMessageEnd()
3332
    oprot.trans.flush()
3333
 
3334
  def process_getIgnoredItemKeys(self, seqid, iprot, oprot):
3335
    args = getIgnoredItemKeys_args()
3336
    args.read(iprot)
3337
    iprot.readMessageEnd()
3338
    result = getIgnoredItemKeys_result()
3339
    result.success = self._handler.getIgnoredItemKeys()
3340
    oprot.writeMessageBegin("getIgnoredItemKeys", TMessageType.REPLY, seqid)
3341
    result.write(oprot)
3342
    oprot.writeMessageEnd()
3343
    oprot.trans.flush()
3344
 
3345
  def process_addBadInventory(self, seqid, iprot, oprot):
3346
    args = addBadInventory_args()
3347
    args.read(iprot)
3348
    iprot.readMessageEnd()
3349
    result = addBadInventory_result()
3350
    try:
3351
      self._handler.addBadInventory(args.itemId, args.warehouseId, args.quantity)
3352
    except InventoryServiceException, cex:
3353
      result.cex = cex
3354
    oprot.writeMessageBegin("addBadInventory", TMessageType.REPLY, seqid)
3355
    result.write(oprot)
3356
    oprot.writeMessageEnd()
3357
    oprot.trans.flush()
3358
 
3359
  def process_getShippingLocations(self, seqid, iprot, oprot):
3360
    args = getShippingLocations_args()
3361
    args.read(iprot)
3362
    iprot.readMessageEnd()
3363
    result = getShippingLocations_result()
3364
    result.success = self._handler.getShippingLocations()
3365
    oprot.writeMessageBegin("getShippingLocations", TMessageType.REPLY, seqid)
3366
    result.write(oprot)
3367
    oprot.writeMessageEnd()
3368
    oprot.trans.flush()
3369
 
3370
  def process_getAllVendorItemMappings(self, seqid, iprot, oprot):
3371
    args = getAllVendorItemMappings_args()
3372
    args.read(iprot)
3373
    iprot.readMessageEnd()
3374
    result = getAllVendorItemMappings_result()
3375
    result.success = self._handler.getAllVendorItemMappings()
3376
    oprot.writeMessageBegin("getAllVendorItemMappings", TMessageType.REPLY, seqid)
3377
    result.write(oprot)
3378
    oprot.writeMessageEnd()
3379
    oprot.trans.flush()
3380
 
3381
  def process_getInventorySnapshot(self, seqid, iprot, oprot):
3382
    args = getInventorySnapshot_args()
3383
    args.read(iprot)
3384
    iprot.readMessageEnd()
3385
    result = getInventorySnapshot_result()
3386
    result.success = self._handler.getInventorySnapshot(args.warehouseId)
3387
    oprot.writeMessageBegin("getInventorySnapshot", TMessageType.REPLY, seqid)
3388
    result.write(oprot)
3389
    oprot.writeMessageEnd()
3390
    oprot.trans.flush()
3391
 
3392
  def process_clearItemAvailabilityCache(self, seqid, iprot, oprot):
3393
    args = clearItemAvailabilityCache_args()
3394
    args.read(iprot)
3395
    iprot.readMessageEnd()
3396
    result = clearItemAvailabilityCache_result()
3397
    self._handler.clearItemAvailabilityCache()
3398
    oprot.writeMessageBegin("clearItemAvailabilityCache", TMessageType.REPLY, seqid)
3399
    result.write(oprot)
3400
    oprot.writeMessageEnd()
3401
    oprot.trans.flush()
3402
 
3403
  def process_updateVendorString(self, seqid, iprot, oprot):
3404
    args = updateVendorString_args()
3405
    args.read(iprot)
3406
    iprot.readMessageEnd()
3407
    result = updateVendorString_result()
3408
    self._handler.updateVendorString(args.warehouseId, args.vendorString)
3409
    oprot.writeMessageBegin("updateVendorString", TMessageType.REPLY, seqid)
3410
    result.write(oprot)
3411
    oprot.writeMessageEnd()
3412
    oprot.trans.flush()
3413
 
6096 amit.gupta 3414
  def process_clearItemAvailabilityCacheForItem(self, seqid, iprot, oprot):
3415
    args = clearItemAvailabilityCacheForItem_args()
3416
    args.read(iprot)
3417
    iprot.readMessageEnd()
3418
    result = clearItemAvailabilityCacheForItem_result()
3419
    self._handler.clearItemAvailabilityCacheForItem(args.item_id)
3420
    oprot.writeMessageBegin("clearItemAvailabilityCacheForItem", TMessageType.REPLY, seqid)
3421
    result.write(oprot)
3422
    oprot.writeMessageEnd()
3423
    oprot.trans.flush()
5944 mandeep.dh 3424
 
6467 amar.kumar 3425
  def process_getOurWarehouseIdForVendor(self, seqid, iprot, oprot):
3426
    args = getOurWarehouseIdForVendor_args()
3427
    args.read(iprot)
3428
    iprot.readMessageEnd()
3429
    result = getOurWarehouseIdForVendor_result()
7718 amar.kumar 3430
    result.success = self._handler.getOurWarehouseIdForVendor(args.vendorId, args.billingWarehouseId)
6467 amar.kumar 3431
    oprot.writeMessageBegin("getOurWarehouseIdForVendor", TMessageType.REPLY, seqid)
3432
    result.write(oprot)
3433
    oprot.writeMessageEnd()
3434
    oprot.trans.flush()
6096 amit.gupta 3435
 
6484 amar.kumar 3436
  def process_getItemAvailabilitiesAtOurWarehouses(self, seqid, iprot, oprot):
3437
    args = getItemAvailabilitiesAtOurWarehouses_args()
3438
    args.read(iprot)
3439
    iprot.readMessageEnd()
3440
    result = getItemAvailabilitiesAtOurWarehouses_result()
3441
    result.success = self._handler.getItemAvailabilitiesAtOurWarehouses(args.item_ids)
3442
    oprot.writeMessageBegin("getItemAvailabilitiesAtOurWarehouses", TMessageType.REPLY, seqid)
3443
    result.write(oprot)
3444
    oprot.writeMessageEnd()
3445
    oprot.trans.flush()
6467 amar.kumar 3446
 
6531 vikram.rag 3447
  def process_getMonitoredWarehouseForVendors(self, seqid, iprot, oprot):
3448
    args = getMonitoredWarehouseForVendors_args()
3449
    args.read(iprot)
3450
    iprot.readMessageEnd()
3451
    result = getMonitoredWarehouseForVendors_result()
3452
    result.success = self._handler.getMonitoredWarehouseForVendors(args.vendorIds)
3453
    oprot.writeMessageBegin("getMonitoredWarehouseForVendors", TMessageType.REPLY, seqid)
3454
    result.write(oprot)
3455
    oprot.writeMessageEnd()
3456
    oprot.trans.flush()
6484 amar.kumar 3457
 
6531 vikram.rag 3458
  def process_getIgnoredWarehouseidsAndItemids(self, seqid, iprot, oprot):
3459
    args = getIgnoredWarehouseidsAndItemids_args()
3460
    args.read(iprot)
3461
    iprot.readMessageEnd()
3462
    result = getIgnoredWarehouseidsAndItemids_result()
3463
    result.success = self._handler.getIgnoredWarehouseidsAndItemids()
3464
    oprot.writeMessageBegin("getIgnoredWarehouseidsAndItemids", TMessageType.REPLY, seqid)
3465
    result.write(oprot)
3466
    oprot.writeMessageEnd()
3467
    oprot.trans.flush()
3468
 
3469
  def process_insertItemtoIgnoreInventoryUpdatelist(self, seqid, iprot, oprot):
3470
    args = insertItemtoIgnoreInventoryUpdatelist_args()
3471
    args.read(iprot)
3472
    iprot.readMessageEnd()
3473
    result = insertItemtoIgnoreInventoryUpdatelist_result()
3474
    result.success = self._handler.insertItemtoIgnoreInventoryUpdatelist(args.item_id, args.warehouse_id)
3475
    oprot.writeMessageBegin("insertItemtoIgnoreInventoryUpdatelist", TMessageType.REPLY, seqid)
3476
    result.write(oprot)
3477
    oprot.writeMessageEnd()
3478
    oprot.trans.flush()
3479
 
3480
  def process_deleteItemFromIgnoredInventoryUpdateList(self, seqid, iprot, oprot):
3481
    args = deleteItemFromIgnoredInventoryUpdateList_args()
3482
    args.read(iprot)
3483
    iprot.readMessageEnd()
3484
    result = deleteItemFromIgnoredInventoryUpdateList_result()
3485
    result.success = self._handler.deleteItemFromIgnoredInventoryUpdateList(args.item_id, args.warehouse_id)
3486
    oprot.writeMessageBegin("deleteItemFromIgnoredInventoryUpdateList", TMessageType.REPLY, seqid)
3487
    result.write(oprot)
3488
    oprot.writeMessageEnd()
3489
    oprot.trans.flush()
3490
 
3491
  def process_getAllIgnoredInventoryupdateItemsCount(self, seqid, iprot, oprot):
3492
    args = getAllIgnoredInventoryupdateItemsCount_args()
3493
    args.read(iprot)
3494
    iprot.readMessageEnd()
3495
    result = getAllIgnoredInventoryupdateItemsCount_result()
3496
    result.success = self._handler.getAllIgnoredInventoryupdateItemsCount()
3497
    oprot.writeMessageBegin("getAllIgnoredInventoryupdateItemsCount", TMessageType.REPLY, seqid)
3498
    result.write(oprot)
3499
    oprot.writeMessageEnd()
3500
    oprot.trans.flush()
3501
 
3502
  def process_getIgnoredInventoryUpdateItemids(self, seqid, iprot, oprot):
3503
    args = getIgnoredInventoryUpdateItemids_args()
3504
    args.read(iprot)
3505
    iprot.readMessageEnd()
3506
    result = getIgnoredInventoryUpdateItemids_result()
3507
    result.success = self._handler.getIgnoredInventoryUpdateItemids(args.offset, args.limit)
3508
    oprot.writeMessageBegin("getIgnoredInventoryUpdateItemids", TMessageType.REPLY, seqid)
3509
    result.write(oprot)
3510
    oprot.writeMessageEnd()
3511
    oprot.trans.flush()
3512
 
6821 amar.kumar 3513
  def process_updateItemStockPurchaseParams(self, seqid, iprot, oprot):
3514
    args = updateItemStockPurchaseParams_args()
3515
    args.read(iprot)
3516
    iprot.readMessageEnd()
3517
    result = updateItemStockPurchaseParams_result()
3518
    self._handler.updateItemStockPurchaseParams(args.item_id, args.numOfDaysStock, args.minStockLevel)
3519
    oprot.writeMessageBegin("updateItemStockPurchaseParams", TMessageType.REPLY, seqid)
3520
    result.write(oprot)
3521
    oprot.writeMessageEnd()
3522
    oprot.trans.flush()
6531 vikram.rag 3523
 
6821 amar.kumar 3524
  def process_getItemStockPurchaseParams(self, seqid, iprot, oprot):
3525
    args = getItemStockPurchaseParams_args()
3526
    args.read(iprot)
3527
    iprot.readMessageEnd()
3528
    result = getItemStockPurchaseParams_result()
3529
    result.success = self._handler.getItemStockPurchaseParams(args.itemId)
3530
    oprot.writeMessageBegin("getItemStockPurchaseParams", TMessageType.REPLY, seqid)
3531
    result.write(oprot)
3532
    oprot.writeMessageEnd()
3533
    oprot.trans.flush()
3534
 
3535
  def process_addOosStatusForItem(self, seqid, iprot, oprot):
3536
    args = addOosStatusForItem_args()
3537
    args.read(iprot)
3538
    iprot.readMessageEnd()
3539
    result = addOosStatusForItem_result()
3540
    self._handler.addOosStatusForItem(args.oosStatusMap, args.date)
3541
    oprot.writeMessageBegin("addOosStatusForItem", TMessageType.REPLY, seqid)
3542
    result.write(oprot)
3543
    oprot.writeMessageEnd()
3544
    oprot.trans.flush()
3545
 
6832 amar.kumar 3546
  def process_getOosStatusesForXDaysForItem(self, seqid, iprot, oprot):
3547
    args = getOosStatusesForXDaysForItem_args()
3548
    args.read(iprot)
3549
    iprot.readMessageEnd()
3550
    result = getOosStatusesForXDaysForItem_result()
9761 amar.kumar 3551
    result.success = self._handler.getOosStatusesForXDaysForItem(args.itemId, args.days)
6832 amar.kumar 3552
    oprot.writeMessageBegin("getOosStatusesForXDaysForItem", TMessageType.REPLY, seqid)
3553
    result.write(oprot)
3554
    oprot.writeMessageEnd()
3555
    oprot.trans.flush()
6821 amar.kumar 3556
 
6857 amar.kumar 3557
  def process_getNonZeroItemStockPurchaseParams(self, seqid, iprot, oprot):
3558
    args = getNonZeroItemStockPurchaseParams_args()
3559
    args.read(iprot)
3560
    iprot.readMessageEnd()
3561
    result = getNonZeroItemStockPurchaseParams_result()
3562
    result.success = self._handler.getNonZeroItemStockPurchaseParams()
3563
    oprot.writeMessageBegin("getNonZeroItemStockPurchaseParams", TMessageType.REPLY, seqid)
3564
    result.write(oprot)
3565
    oprot.writeMessageEnd()
3566
    oprot.trans.flush()
6832 amar.kumar 3567
 
7149 amar.kumar 3568
  def process_getBillableInventoryAndPendingOrders(self, seqid, iprot, oprot):
3569
    args = getBillableInventoryAndPendingOrders_args()
3570
    args.read(iprot)
3571
    iprot.readMessageEnd()
3572
    result = getBillableInventoryAndPendingOrders_result()
3573
    result.success = self._handler.getBillableInventoryAndPendingOrders()
3574
    oprot.writeMessageBegin("getBillableInventoryAndPendingOrders", TMessageType.REPLY, seqid)
3575
    result.write(oprot)
3576
    oprot.writeMessageEnd()
3577
    oprot.trans.flush()
6857 amar.kumar 3578
 
7281 kshitij.so 3579
  def process_getWarehouseName(self, seqid, iprot, oprot):
3580
    args = getWarehouseName_args()
3581
    args.read(iprot)
3582
    iprot.readMessageEnd()
3583
    result = getWarehouseName_result()
3584
    result.success = self._handler.getWarehouseName(args.warehouse_id)
3585
    oprot.writeMessageBegin("getWarehouseName", TMessageType.REPLY, seqid)
3586
    result.write(oprot)
3587
    oprot.writeMessageEnd()
3588
    oprot.trans.flush()
7149 amar.kumar 3589
 
7281 kshitij.so 3590
  def process_getAmazonInventoryForItem(self, seqid, iprot, oprot):
3591
    args = getAmazonInventoryForItem_args()
3592
    args.read(iprot)
3593
    iprot.readMessageEnd()
3594
    result = getAmazonInventoryForItem_result()
3595
    result.success = self._handler.getAmazonInventoryForItem(args.item_id)
3596
    oprot.writeMessageBegin("getAmazonInventoryForItem", TMessageType.REPLY, seqid)
3597
    result.write(oprot)
3598
    oprot.writeMessageEnd()
3599
    oprot.trans.flush()
3600
 
3601
  def process_getAllAmazonInventory(self, seqid, iprot, oprot):
3602
    args = getAllAmazonInventory_args()
3603
    args.read(iprot)
3604
    iprot.readMessageEnd()
3605
    result = getAllAmazonInventory_result()
3606
    result.success = self._handler.getAllAmazonInventory()
3607
    oprot.writeMessageBegin("getAllAmazonInventory", TMessageType.REPLY, seqid)
3608
    result.write(oprot)
3609
    oprot.writeMessageEnd()
3610
    oprot.trans.flush()
3611
 
3612
  def process_addOrUpdateAmazonInventoryForItem(self, seqid, iprot, oprot):
3613
    args = addOrUpdateAmazonInventoryForItem_args()
3614
    args.read(iprot)
3615
    iprot.readMessageEnd()
3616
    result = addOrUpdateAmazonInventoryForItem_result()
3617
    self._handler.addOrUpdateAmazonInventoryForItem(args.amazonInventorySnapshot)
3618
    oprot.writeMessageBegin("addOrUpdateAmazonInventoryForItem", TMessageType.REPLY, seqid)
3619
    result.write(oprot)
3620
    oprot.writeMessageEnd()
3621
    oprot.trans.flush()
3622
 
7972 amar.kumar 3623
  def process_getLastNdaySaleForItem(self, seqid, iprot, oprot):
3624
    args = getLastNdaySaleForItem_args()
3625
    args.read(iprot)
3626
    iprot.readMessageEnd()
3627
    result = getLastNdaySaleForItem_result()
3628
    result.success = self._handler.getLastNdaySaleForItem(args.itemId, args.numberOfDays)
3629
    oprot.writeMessageBegin("getLastNdaySaleForItem", TMessageType.REPLY, seqid)
3630
    result.write(oprot)
3631
    oprot.writeMessageEnd()
3632
    oprot.trans.flush()
7281 kshitij.so 3633
 
8282 kshitij.so 3634
  def process_addOrUpdateAmazonFbaInventory(self, seqid, iprot, oprot):
3635
    args = addOrUpdateAmazonFbaInventory_args()
3636
    args.read(iprot)
3637
    iprot.readMessageEnd()
3638
    result = addOrUpdateAmazonFbaInventory_result()
3639
    self._handler.addOrUpdateAmazonFbaInventory(args.amazonfbainventorysnapshot)
3640
    oprot.writeMessageBegin("addOrUpdateAmazonFbaInventory", TMessageType.REPLY, seqid)
3641
    result.write(oprot)
3642
    oprot.writeMessageEnd()
3643
    oprot.trans.flush()
3644
 
8182 amar.kumar 3645
  def process_addUpdateHoldInventory(self, seqid, iprot, oprot):
3646
    args = addUpdateHoldInventory_args()
3647
    args.read(iprot)
3648
    iprot.readMessageEnd()
3649
    result = addUpdateHoldInventory_result()
3650
    self._handler.addUpdateHoldInventory(args.itemId, args.warehouseId, args.holdQuantity, args.source)
3651
    oprot.writeMessageBegin("addUpdateHoldInventory", TMessageType.REPLY, seqid)
3652
    result.write(oprot)
3653
    oprot.writeMessageEnd()
3654
    oprot.trans.flush()
7972 amar.kumar 3655
 
8282 kshitij.so 3656
  def process_getAmazonFbaItemInventory(self, seqid, iprot, oprot):
3657
    args = getAmazonFbaItemInventory_args()
3658
    args.read(iprot)
3659
    iprot.readMessageEnd()
3660
    result = getAmazonFbaItemInventory_result()
3661
    result.success = self._handler.getAmazonFbaItemInventory(args.itemId)
3662
    oprot.writeMessageBegin("getAmazonFbaItemInventory", TMessageType.REPLY, seqid)
3663
    result.write(oprot)
3664
    oprot.writeMessageEnd()
3665
    oprot.trans.flush()
8182 amar.kumar 3666
 
8363 vikram.rag 3667
  def process_getAllAmazonFbaItemInventory(self, seqid, iprot, oprot):
3668
    args = getAllAmazonFbaItemInventory_args()
8282 kshitij.so 3669
    args.read(iprot)
3670
    iprot.readMessageEnd()
8363 vikram.rag 3671
    result = getAllAmazonFbaItemInventory_result()
3672
    result.success = self._handler.getAllAmazonFbaItemInventory()
3673
    oprot.writeMessageBegin("getAllAmazonFbaItemInventory", TMessageType.REPLY, seqid)
8282 kshitij.so 3674
    result.write(oprot)
3675
    oprot.writeMessageEnd()
3676
    oprot.trans.flush()
3677
 
8363 vikram.rag 3678
  def process_getOursGoodWarehouseIdsForLocation(self, seqid, iprot, oprot):
3679
    args = getOursGoodWarehouseIdsForLocation_args()
3680
    args.read(iprot)
3681
    iprot.readMessageEnd()
3682
    result = getOursGoodWarehouseIdsForLocation_result()
3683
    result.success = self._handler.getOursGoodWarehouseIdsForLocation(args.state_id)
3684
    oprot.writeMessageBegin("getOursGoodWarehouseIdsForLocation", TMessageType.REPLY, seqid)
3685
    result.write(oprot)
3686
    oprot.writeMessageEnd()
3687
    oprot.trans.flush()
8282 kshitij.so 3688
 
8955 vikram.rag 3689
  def process_getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, seqid, iprot, oprot):
3690
    args = getHoldInventoryDetailForItemForWarehouseIdExceptSource_args()
3691
    args.read(iprot)
3692
    iprot.readMessageEnd()
3693
    result = getHoldInventoryDetailForItemForWarehouseIdExceptSource_result()
3694
    result.success = self._handler.getHoldInventoryDetailForItemForWarehouseIdExceptSource(args.id, args.warehouse_id, args.source)
3695
    oprot.writeMessageBegin("getHoldInventoryDetailForItemForWarehouseIdExceptSource", TMessageType.REPLY, seqid)
3696
    result.write(oprot)
3697
    oprot.writeMessageEnd()
3698
    oprot.trans.flush()
8363 vikram.rag 3699
 
9404 vikram.rag 3700
  def process_getSnapdealInventoryForItem(self, seqid, iprot, oprot):
3701
    args = getSnapdealInventoryForItem_args()
3702
    args.read(iprot)
3703
    iprot.readMessageEnd()
3704
    result = getSnapdealInventoryForItem_result()
3705
    result.success = self._handler.getSnapdealInventoryForItem(args.item_id)
3706
    oprot.writeMessageBegin("getSnapdealInventoryForItem", TMessageType.REPLY, seqid)
3707
    result.write(oprot)
3708
    oprot.writeMessageEnd()
3709
    oprot.trans.flush()
8955 vikram.rag 3710
 
9404 vikram.rag 3711
  def process_addOrUpdateSnapdealInventoryForItem(self, seqid, iprot, oprot):
3712
    args = addOrUpdateSnapdealInventoryForItem_args()
3713
    args.read(iprot)
3714
    iprot.readMessageEnd()
3715
    result = addOrUpdateSnapdealInventoryForItem_result()
3716
    self._handler.addOrUpdateSnapdealInventoryForItem(args.snapdealinventoryitem)
3717
    oprot.writeMessageBegin("addOrUpdateSnapdealInventoryForItem", TMessageType.REPLY, seqid)
3718
    result.write(oprot)
3719
    oprot.writeMessageEnd()
3720
    oprot.trans.flush()
3721
 
3722
  def process_getNlcForWarehouse(self, seqid, iprot, oprot):
3723
    args = getNlcForWarehouse_args()
3724
    args.read(iprot)
3725
    iprot.readMessageEnd()
3726
    result = getNlcForWarehouse_result()
3727
    result.success = self._handler.getNlcForWarehouse(args.warehouse_id, args.item_id)
3728
    oprot.writeMessageBegin("getNlcForWarehouse", TMessageType.REPLY, seqid)
3729
    result.write(oprot)
3730
    oprot.writeMessageEnd()
3731
    oprot.trans.flush()
3732
 
9640 amar.kumar 3733
  def process_getHeldInventoryMapForItem(self, seqid, iprot, oprot):
3734
    args = getHeldInventoryMapForItem_args()
3735
    args.read(iprot)
3736
    iprot.readMessageEnd()
3737
    result = getHeldInventoryMapForItem_result()
3738
    result.success = self._handler.getHeldInventoryMapForItem(args.item_id, args.warehouse_id)
3739
    oprot.writeMessageBegin("getHeldInventoryMapForItem", TMessageType.REPLY, seqid)
3740
    result.write(oprot)
3741
    oprot.writeMessageEnd()
3742
    oprot.trans.flush()
3743
 
9495 vikram.rag 3744
  def process_addOrUpdateAllAmazonFbaInventory(self, seqid, iprot, oprot):
3745
    args = addOrUpdateAllAmazonFbaInventory_args()
9456 vikram.rag 3746
    args.read(iprot)
3747
    iprot.readMessageEnd()
9495 vikram.rag 3748
    result = addOrUpdateAllAmazonFbaInventory_result()
3749
    self._handler.addOrUpdateAllAmazonFbaInventory(args.allamazonfbainventorysnapshot)
3750
    oprot.writeMessageBegin("addOrUpdateAllAmazonFbaInventory", TMessageType.REPLY, seqid)
9456 vikram.rag 3751
    result.write(oprot)
3752
    oprot.writeMessageEnd()
3753
    oprot.trans.flush()
9404 vikram.rag 3754
 
9495 vikram.rag 3755
  def process_addOrUpdateAllSnapdealInventory(self, seqid, iprot, oprot):
3756
    args = addOrUpdateAllSnapdealInventory_args()
9482 vikram.rag 3757
    args.read(iprot)
3758
    iprot.readMessageEnd()
9495 vikram.rag 3759
    result = addOrUpdateAllSnapdealInventory_result()
3760
    self._handler.addOrUpdateAllSnapdealInventory(args.allsnapdealinventorysnapshot)
3761
    oprot.writeMessageBegin("addOrUpdateAllSnapdealInventory", TMessageType.REPLY, seqid)
9482 vikram.rag 3762
    result.write(oprot)
3763
    oprot.writeMessageEnd()
3764
    oprot.trans.flush()
9456 vikram.rag 3765
 
9495 vikram.rag 3766
  def process_getSnapdealInventorySnapshot(self, seqid, iprot, oprot):
3767
    args = getSnapdealInventorySnapshot_args()
3768
    args.read(iprot)
3769
    iprot.readMessageEnd()
3770
    result = getSnapdealInventorySnapshot_result()
3771
    result.success = self._handler.getSnapdealInventorySnapshot()
3772
    oprot.writeMessageBegin("getSnapdealInventorySnapshot", TMessageType.REPLY, seqid)
3773
    result.write(oprot)
3774
    oprot.writeMessageEnd()
3775
    oprot.trans.flush()
9482 vikram.rag 3776
 
9761 amar.kumar 3777
  def process_getHoldInventoryDetails(self, seqid, iprot, oprot):
3778
    args = getHoldInventoryDetails_args()
3779
    args.read(iprot)
3780
    iprot.readMessageEnd()
3781
    result = getHoldInventoryDetails_result()
3782
    result.success = self._handler.getHoldInventoryDetails(args.itemId, args.warehouseId, args.source)
3783
    oprot.writeMessageBegin("getHoldInventoryDetails", TMessageType.REPLY, seqid)
3784
    result.write(oprot)
3785
    oprot.writeMessageEnd()
3786
    oprot.trans.flush()
9495 vikram.rag 3787
 
9761 amar.kumar 3788
 
5944 mandeep.dh 3789
# HELPER FUNCTIONS AND STRUCTURES
3790
 
3791
class addWarehouse_args:
3792
  """
3793
  Attributes:
3794
   - warehouse
3795
  """
3796
 
3797
  thrift_spec = (
3798
    None, # 0
3799
    (1, TType.STRUCT, 'warehouse', (Warehouse, Warehouse.thrift_spec), None, ), # 1
3800
  )
3801
 
3802
  def __init__(self, warehouse=None,):
3803
    self.warehouse = warehouse
3804
 
3805
  def read(self, iprot):
3806
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3807
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3808
      return
3809
    iprot.readStructBegin()
3810
    while True:
3811
      (fname, ftype, fid) = iprot.readFieldBegin()
3812
      if ftype == TType.STOP:
3813
        break
3814
      if fid == 1:
3815
        if ftype == TType.STRUCT:
3816
          self.warehouse = Warehouse()
3817
          self.warehouse.read(iprot)
3818
        else:
3819
          iprot.skip(ftype)
3820
      else:
3821
        iprot.skip(ftype)
3822
      iprot.readFieldEnd()
3823
    iprot.readStructEnd()
3824
 
3825
  def write(self, oprot):
3826
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3827
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3828
      return
3829
    oprot.writeStructBegin('addWarehouse_args')
3830
    if self.warehouse is not None:
3831
      oprot.writeFieldBegin('warehouse', TType.STRUCT, 1)
3832
      self.warehouse.write(oprot)
3833
      oprot.writeFieldEnd()
3834
    oprot.writeFieldStop()
3835
    oprot.writeStructEnd()
3836
 
3837
  def validate(self):
3838
    return
3839
 
3840
 
3841
  def __repr__(self):
3842
    L = ['%s=%r' % (key, value)
3843
      for key, value in self.__dict__.iteritems()]
3844
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3845
 
3846
  def __eq__(self, other):
3847
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3848
 
3849
  def __ne__(self, other):
3850
    return not (self == other)
3851
 
3852
class addWarehouse_result:
3853
  """
3854
  Attributes:
3855
   - success
3856
   - cex
3857
  """
3858
 
3859
  thrift_spec = (
3860
    (0, TType.I64, 'success', None, None, ), # 0
3861
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
3862
  )
3863
 
3864
  def __init__(self, success=None, cex=None,):
3865
    self.success = success
3866
    self.cex = cex
3867
 
3868
  def read(self, iprot):
3869
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3870
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3871
      return
3872
    iprot.readStructBegin()
3873
    while True:
3874
      (fname, ftype, fid) = iprot.readFieldBegin()
3875
      if ftype == TType.STOP:
3876
        break
3877
      if fid == 0:
3878
        if ftype == TType.I64:
3879
          self.success = iprot.readI64();
3880
        else:
3881
          iprot.skip(ftype)
3882
      elif fid == 1:
3883
        if ftype == TType.STRUCT:
3884
          self.cex = InventoryServiceException()
3885
          self.cex.read(iprot)
3886
        else:
3887
          iprot.skip(ftype)
3888
      else:
3889
        iprot.skip(ftype)
3890
      iprot.readFieldEnd()
3891
    iprot.readStructEnd()
3892
 
3893
  def write(self, oprot):
3894
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3895
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3896
      return
3897
    oprot.writeStructBegin('addWarehouse_result')
3898
    if self.success is not None:
3899
      oprot.writeFieldBegin('success', TType.I64, 0)
3900
      oprot.writeI64(self.success)
3901
      oprot.writeFieldEnd()
3902
    if self.cex is not None:
3903
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
3904
      self.cex.write(oprot)
3905
      oprot.writeFieldEnd()
3906
    oprot.writeFieldStop()
3907
    oprot.writeStructEnd()
3908
 
3909
  def validate(self):
3910
    return
3911
 
3912
 
3913
  def __repr__(self):
3914
    L = ['%s=%r' % (key, value)
3915
      for key, value in self.__dict__.iteritems()]
3916
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3917
 
3918
  def __eq__(self, other):
3919
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3920
 
3921
  def __ne__(self, other):
3922
    return not (self == other)
3923
 
3924
class addVendor_args:
3925
  """
3926
  Attributes:
3927
   - vendor
3928
  """
3929
 
3930
  thrift_spec = (
3931
    None, # 0
3932
    (1, TType.STRUCT, 'vendor', (Vendor, Vendor.thrift_spec), None, ), # 1
3933
  )
3934
 
3935
  def __init__(self, vendor=None,):
3936
    self.vendor = vendor
3937
 
3938
  def read(self, iprot):
3939
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3940
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3941
      return
3942
    iprot.readStructBegin()
3943
    while True:
3944
      (fname, ftype, fid) = iprot.readFieldBegin()
3945
      if ftype == TType.STOP:
3946
        break
3947
      if fid == 1:
3948
        if ftype == TType.STRUCT:
3949
          self.vendor = Vendor()
3950
          self.vendor.read(iprot)
3951
        else:
3952
          iprot.skip(ftype)
3953
      else:
3954
        iprot.skip(ftype)
3955
      iprot.readFieldEnd()
3956
    iprot.readStructEnd()
3957
 
3958
  def write(self, oprot):
3959
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3960
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3961
      return
3962
    oprot.writeStructBegin('addVendor_args')
3963
    if self.vendor is not None:
3964
      oprot.writeFieldBegin('vendor', TType.STRUCT, 1)
3965
      self.vendor.write(oprot)
3966
      oprot.writeFieldEnd()
3967
    oprot.writeFieldStop()
3968
    oprot.writeStructEnd()
3969
 
3970
  def validate(self):
3971
    return
3972
 
3973
 
3974
  def __repr__(self):
3975
    L = ['%s=%r' % (key, value)
3976
      for key, value in self.__dict__.iteritems()]
3977
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3978
 
3979
  def __eq__(self, other):
3980
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3981
 
3982
  def __ne__(self, other):
3983
    return not (self == other)
3984
 
3985
class addVendor_result:
3986
  """
3987
  Attributes:
3988
   - success
3989
   - cex
3990
  """
3991
 
3992
  thrift_spec = (
3993
    (0, TType.I64, 'success', None, None, ), # 0
3994
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
3995
  )
3996
 
3997
  def __init__(self, success=None, cex=None,):
3998
    self.success = success
3999
    self.cex = cex
4000
 
4001
  def read(self, iprot):
4002
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4003
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4004
      return
4005
    iprot.readStructBegin()
4006
    while True:
4007
      (fname, ftype, fid) = iprot.readFieldBegin()
4008
      if ftype == TType.STOP:
4009
        break
4010
      if fid == 0:
4011
        if ftype == TType.I64:
4012
          self.success = iprot.readI64();
4013
        else:
4014
          iprot.skip(ftype)
4015
      elif fid == 1:
4016
        if ftype == TType.STRUCT:
4017
          self.cex = InventoryServiceException()
4018
          self.cex.read(iprot)
4019
        else:
4020
          iprot.skip(ftype)
4021
      else:
4022
        iprot.skip(ftype)
4023
      iprot.readFieldEnd()
4024
    iprot.readStructEnd()
4025
 
4026
  def write(self, oprot):
4027
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4028
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4029
      return
4030
    oprot.writeStructBegin('addVendor_result')
4031
    if self.success is not None:
4032
      oprot.writeFieldBegin('success', TType.I64, 0)
4033
      oprot.writeI64(self.success)
4034
      oprot.writeFieldEnd()
4035
    if self.cex is not None:
4036
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4037
      self.cex.write(oprot)
4038
      oprot.writeFieldEnd()
4039
    oprot.writeFieldStop()
4040
    oprot.writeStructEnd()
4041
 
4042
  def validate(self):
4043
    return
4044
 
4045
 
4046
  def __repr__(self):
4047
    L = ['%s=%r' % (key, value)
4048
      for key, value in self.__dict__.iteritems()]
4049
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4050
 
4051
  def __eq__(self, other):
4052
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4053
 
4054
  def __ne__(self, other):
4055
    return not (self == other)
4056
 
4057
class updateInventoryHistory_args:
4058
  """
4059
  Attributes:
4060
   - warehouse_id
4061
   - timestamp
4062
   - availability
4063
  """
4064
 
4065
  thrift_spec = (
4066
    None, # 0
4067
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
4068
    (2, TType.STRING, 'timestamp', None, None, ), # 2
4069
    (3, TType.MAP, 'availability', (TType.STRING,None,TType.I64,None), None, ), # 3
4070
  )
4071
 
4072
  def __init__(self, warehouse_id=None, timestamp=None, availability=None,):
4073
    self.warehouse_id = warehouse_id
4074
    self.timestamp = timestamp
4075
    self.availability = availability
4076
 
4077
  def read(self, iprot):
4078
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4079
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4080
      return
4081
    iprot.readStructBegin()
4082
    while True:
4083
      (fname, ftype, fid) = iprot.readFieldBegin()
4084
      if ftype == TType.STOP:
4085
        break
4086
      if fid == 1:
4087
        if ftype == TType.I64:
4088
          self.warehouse_id = iprot.readI64();
4089
        else:
4090
          iprot.skip(ftype)
4091
      elif fid == 2:
4092
        if ftype == TType.STRING:
4093
          self.timestamp = iprot.readString();
4094
        else:
4095
          iprot.skip(ftype)
4096
      elif fid == 3:
4097
        if ftype == TType.MAP:
4098
          self.availability = {}
8182 amar.kumar 4099
          (_ktype28, _vtype29, _size27 ) = iprot.readMapBegin() 
4100
          for _i31 in xrange(_size27):
4101
            _key32 = iprot.readString();
4102
            _val33 = iprot.readI64();
4103
            self.availability[_key32] = _val33
5944 mandeep.dh 4104
          iprot.readMapEnd()
4105
        else:
4106
          iprot.skip(ftype)
4107
      else:
4108
        iprot.skip(ftype)
4109
      iprot.readFieldEnd()
4110
    iprot.readStructEnd()
4111
 
4112
  def write(self, oprot):
4113
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4114
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4115
      return
4116
    oprot.writeStructBegin('updateInventoryHistory_args')
4117
    if self.warehouse_id is not None:
4118
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
4119
      oprot.writeI64(self.warehouse_id)
4120
      oprot.writeFieldEnd()
4121
    if self.timestamp is not None:
4122
      oprot.writeFieldBegin('timestamp', TType.STRING, 2)
4123
      oprot.writeString(self.timestamp)
4124
      oprot.writeFieldEnd()
4125
    if self.availability is not None:
4126
      oprot.writeFieldBegin('availability', TType.MAP, 3)
4127
      oprot.writeMapBegin(TType.STRING, TType.I64, len(self.availability))
8182 amar.kumar 4128
      for kiter34,viter35 in self.availability.items():
4129
        oprot.writeString(kiter34)
4130
        oprot.writeI64(viter35)
5944 mandeep.dh 4131
      oprot.writeMapEnd()
4132
      oprot.writeFieldEnd()
4133
    oprot.writeFieldStop()
4134
    oprot.writeStructEnd()
4135
 
4136
  def validate(self):
4137
    return
4138
 
4139
 
4140
  def __repr__(self):
4141
    L = ['%s=%r' % (key, value)
4142
      for key, value in self.__dict__.iteritems()]
4143
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4144
 
4145
  def __eq__(self, other):
4146
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4147
 
4148
  def __ne__(self, other):
4149
    return not (self == other)
4150
 
4151
class updateInventoryHistory_result:
4152
  """
4153
  Attributes:
4154
   - cex
4155
  """
4156
 
4157
  thrift_spec = (
4158
    None, # 0
4159
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4160
  )
4161
 
4162
  def __init__(self, cex=None,):
4163
    self.cex = cex
4164
 
4165
  def read(self, iprot):
4166
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4167
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4168
      return
4169
    iprot.readStructBegin()
4170
    while True:
4171
      (fname, ftype, fid) = iprot.readFieldBegin()
4172
      if ftype == TType.STOP:
4173
        break
4174
      if fid == 1:
4175
        if ftype == TType.STRUCT:
4176
          self.cex = InventoryServiceException()
4177
          self.cex.read(iprot)
4178
        else:
4179
          iprot.skip(ftype)
4180
      else:
4181
        iprot.skip(ftype)
4182
      iprot.readFieldEnd()
4183
    iprot.readStructEnd()
4184
 
4185
  def write(self, oprot):
4186
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4187
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4188
      return
4189
    oprot.writeStructBegin('updateInventoryHistory_result')
4190
    if self.cex is not None:
4191
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4192
      self.cex.write(oprot)
4193
      oprot.writeFieldEnd()
4194
    oprot.writeFieldStop()
4195
    oprot.writeStructEnd()
4196
 
4197
  def validate(self):
4198
    return
4199
 
4200
 
4201
  def __repr__(self):
4202
    L = ['%s=%r' % (key, value)
4203
      for key, value in self.__dict__.iteritems()]
4204
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4205
 
4206
  def __eq__(self, other):
4207
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4208
 
4209
  def __ne__(self, other):
4210
    return not (self == other)
4211
 
4212
class updateInventory_args:
4213
  """
4214
  Attributes:
4215
   - warehouse_id
4216
   - timestamp
4217
   - availability
4218
  """
4219
 
4220
  thrift_spec = (
4221
    None, # 0
4222
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
4223
    (2, TType.STRING, 'timestamp', None, None, ), # 2
4224
    (3, TType.MAP, 'availability', (TType.STRING,None,TType.I64,None), None, ), # 3
4225
  )
4226
 
4227
  def __init__(self, warehouse_id=None, timestamp=None, availability=None,):
4228
    self.warehouse_id = warehouse_id
4229
    self.timestamp = timestamp
4230
    self.availability = availability
4231
 
4232
  def read(self, iprot):
4233
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4234
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4235
      return
4236
    iprot.readStructBegin()
4237
    while True:
4238
      (fname, ftype, fid) = iprot.readFieldBegin()
4239
      if ftype == TType.STOP:
4240
        break
4241
      if fid == 1:
4242
        if ftype == TType.I64:
4243
          self.warehouse_id = iprot.readI64();
4244
        else:
4245
          iprot.skip(ftype)
4246
      elif fid == 2:
4247
        if ftype == TType.STRING:
4248
          self.timestamp = iprot.readString();
4249
        else:
4250
          iprot.skip(ftype)
4251
      elif fid == 3:
4252
        if ftype == TType.MAP:
4253
          self.availability = {}
8182 amar.kumar 4254
          (_ktype37, _vtype38, _size36 ) = iprot.readMapBegin() 
4255
          for _i40 in xrange(_size36):
4256
            _key41 = iprot.readString();
4257
            _val42 = iprot.readI64();
4258
            self.availability[_key41] = _val42
5944 mandeep.dh 4259
          iprot.readMapEnd()
4260
        else:
4261
          iprot.skip(ftype)
4262
      else:
4263
        iprot.skip(ftype)
4264
      iprot.readFieldEnd()
4265
    iprot.readStructEnd()
4266
 
4267
  def write(self, oprot):
4268
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4269
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4270
      return
4271
    oprot.writeStructBegin('updateInventory_args')
4272
    if self.warehouse_id is not None:
4273
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
4274
      oprot.writeI64(self.warehouse_id)
4275
      oprot.writeFieldEnd()
4276
    if self.timestamp is not None:
4277
      oprot.writeFieldBegin('timestamp', TType.STRING, 2)
4278
      oprot.writeString(self.timestamp)
4279
      oprot.writeFieldEnd()
4280
    if self.availability is not None:
4281
      oprot.writeFieldBegin('availability', TType.MAP, 3)
4282
      oprot.writeMapBegin(TType.STRING, TType.I64, len(self.availability))
8182 amar.kumar 4283
      for kiter43,viter44 in self.availability.items():
4284
        oprot.writeString(kiter43)
4285
        oprot.writeI64(viter44)
5944 mandeep.dh 4286
      oprot.writeMapEnd()
4287
      oprot.writeFieldEnd()
4288
    oprot.writeFieldStop()
4289
    oprot.writeStructEnd()
4290
 
4291
  def validate(self):
4292
    return
4293
 
4294
 
4295
  def __repr__(self):
4296
    L = ['%s=%r' % (key, value)
4297
      for key, value in self.__dict__.iteritems()]
4298
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4299
 
4300
  def __eq__(self, other):
4301
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4302
 
4303
  def __ne__(self, other):
4304
    return not (self == other)
4305
 
4306
class updateInventory_result:
4307
  """
4308
  Attributes:
4309
   - cex
4310
  """
4311
 
4312
  thrift_spec = (
4313
    None, # 0
4314
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4315
  )
4316
 
4317
  def __init__(self, cex=None,):
4318
    self.cex = cex
4319
 
4320
  def read(self, iprot):
4321
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4322
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4323
      return
4324
    iprot.readStructBegin()
4325
    while True:
4326
      (fname, ftype, fid) = iprot.readFieldBegin()
4327
      if ftype == TType.STOP:
4328
        break
4329
      if fid == 1:
4330
        if ftype == TType.STRUCT:
4331
          self.cex = InventoryServiceException()
4332
          self.cex.read(iprot)
4333
        else:
4334
          iprot.skip(ftype)
4335
      else:
4336
        iprot.skip(ftype)
4337
      iprot.readFieldEnd()
4338
    iprot.readStructEnd()
4339
 
4340
  def write(self, oprot):
4341
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4342
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4343
      return
4344
    oprot.writeStructBegin('updateInventory_result')
4345
    if self.cex is not None:
4346
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4347
      self.cex.write(oprot)
4348
      oprot.writeFieldEnd()
4349
    oprot.writeFieldStop()
4350
    oprot.writeStructEnd()
4351
 
4352
  def validate(self):
4353
    return
4354
 
4355
 
4356
  def __repr__(self):
4357
    L = ['%s=%r' % (key, value)
4358
      for key, value in self.__dict__.iteritems()]
4359
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4360
 
4361
  def __eq__(self, other):
4362
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4363
 
4364
  def __ne__(self, other):
4365
    return not (self == other)
4366
 
4367
class addInventory_args:
4368
  """
4369
  Attributes:
4370
   - itemId
4371
   - warehouseId
4372
   - quantity
4373
  """
4374
 
4375
  thrift_spec = (
4376
    None, # 0
4377
    (1, TType.I64, 'itemId', None, None, ), # 1
4378
    (2, TType.I64, 'warehouseId', None, None, ), # 2
4379
    (3, TType.I64, 'quantity', None, None, ), # 3
4380
  )
4381
 
4382
  def __init__(self, itemId=None, warehouseId=None, quantity=None,):
4383
    self.itemId = itemId
4384
    self.warehouseId = warehouseId
4385
    self.quantity = quantity
4386
 
4387
  def read(self, iprot):
4388
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4389
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4390
      return
4391
    iprot.readStructBegin()
4392
    while True:
4393
      (fname, ftype, fid) = iprot.readFieldBegin()
4394
      if ftype == TType.STOP:
4395
        break
4396
      if fid == 1:
4397
        if ftype == TType.I64:
4398
          self.itemId = iprot.readI64();
4399
        else:
4400
          iprot.skip(ftype)
4401
      elif fid == 2:
4402
        if ftype == TType.I64:
4403
          self.warehouseId = iprot.readI64();
4404
        else:
4405
          iprot.skip(ftype)
4406
      elif fid == 3:
4407
        if ftype == TType.I64:
4408
          self.quantity = iprot.readI64();
4409
        else:
4410
          iprot.skip(ftype)
4411
      else:
4412
        iprot.skip(ftype)
4413
      iprot.readFieldEnd()
4414
    iprot.readStructEnd()
4415
 
4416
  def write(self, oprot):
4417
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4418
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4419
      return
4420
    oprot.writeStructBegin('addInventory_args')
4421
    if self.itemId is not None:
4422
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4423
      oprot.writeI64(self.itemId)
4424
      oprot.writeFieldEnd()
4425
    if self.warehouseId is not None:
4426
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
4427
      oprot.writeI64(self.warehouseId)
4428
      oprot.writeFieldEnd()
4429
    if self.quantity is not None:
4430
      oprot.writeFieldBegin('quantity', TType.I64, 3)
4431
      oprot.writeI64(self.quantity)
4432
      oprot.writeFieldEnd()
4433
    oprot.writeFieldStop()
4434
    oprot.writeStructEnd()
4435
 
4436
  def validate(self):
4437
    return
4438
 
4439
 
4440
  def __repr__(self):
4441
    L = ['%s=%r' % (key, value)
4442
      for key, value in self.__dict__.iteritems()]
4443
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4444
 
4445
  def __eq__(self, other):
4446
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4447
 
4448
  def __ne__(self, other):
4449
    return not (self == other)
4450
 
4451
class addInventory_result:
4452
  """
4453
  Attributes:
4454
   - cex
4455
  """
4456
 
4457
  thrift_spec = (
4458
    None, # 0
4459
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4460
  )
4461
 
4462
  def __init__(self, cex=None,):
4463
    self.cex = cex
4464
 
4465
  def read(self, iprot):
4466
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4467
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4468
      return
4469
    iprot.readStructBegin()
4470
    while True:
4471
      (fname, ftype, fid) = iprot.readFieldBegin()
4472
      if ftype == TType.STOP:
4473
        break
4474
      if fid == 1:
4475
        if ftype == TType.STRUCT:
4476
          self.cex = InventoryServiceException()
4477
          self.cex.read(iprot)
4478
        else:
4479
          iprot.skip(ftype)
4480
      else:
4481
        iprot.skip(ftype)
4482
      iprot.readFieldEnd()
4483
    iprot.readStructEnd()
4484
 
4485
  def write(self, oprot):
4486
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4487
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4488
      return
4489
    oprot.writeStructBegin('addInventory_result')
4490
    if self.cex is not None:
4491
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4492
      self.cex.write(oprot)
4493
      oprot.writeFieldEnd()
4494
    oprot.writeFieldStop()
4495
    oprot.writeStructEnd()
4496
 
4497
  def validate(self):
4498
    return
4499
 
4500
 
4501
  def __repr__(self):
4502
    L = ['%s=%r' % (key, value)
4503
      for key, value in self.__dict__.iteritems()]
4504
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4505
 
4506
  def __eq__(self, other):
4507
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4508
 
4509
  def __ne__(self, other):
4510
    return not (self == other)
4511
 
4512
class retireWarehouse_args:
4513
  """
4514
  Attributes:
4515
   - warehouse_id
4516
  """
4517
 
4518
  thrift_spec = (
4519
    None, # 0
4520
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
4521
  )
4522
 
4523
  def __init__(self, warehouse_id=None,):
4524
    self.warehouse_id = warehouse_id
4525
 
4526
  def read(self, iprot):
4527
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4528
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4529
      return
4530
    iprot.readStructBegin()
4531
    while True:
4532
      (fname, ftype, fid) = iprot.readFieldBegin()
4533
      if ftype == TType.STOP:
4534
        break
4535
      if fid == 1:
4536
        if ftype == TType.I64:
4537
          self.warehouse_id = iprot.readI64();
4538
        else:
4539
          iprot.skip(ftype)
4540
      else:
4541
        iprot.skip(ftype)
4542
      iprot.readFieldEnd()
4543
    iprot.readStructEnd()
4544
 
4545
  def write(self, oprot):
4546
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4547
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4548
      return
4549
    oprot.writeStructBegin('retireWarehouse_args')
4550
    if self.warehouse_id is not None:
4551
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
4552
      oprot.writeI64(self.warehouse_id)
4553
      oprot.writeFieldEnd()
4554
    oprot.writeFieldStop()
4555
    oprot.writeStructEnd()
4556
 
4557
  def validate(self):
4558
    return
4559
 
4560
 
4561
  def __repr__(self):
4562
    L = ['%s=%r' % (key, value)
4563
      for key, value in self.__dict__.iteritems()]
4564
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4565
 
4566
  def __eq__(self, other):
4567
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4568
 
4569
  def __ne__(self, other):
4570
    return not (self == other)
4571
 
4572
class retireWarehouse_result:
4573
  """
4574
  Attributes:
4575
   - cex
4576
  """
4577
 
4578
  thrift_spec = (
4579
    None, # 0
4580
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4581
  )
4582
 
4583
  def __init__(self, cex=None,):
4584
    self.cex = cex
4585
 
4586
  def read(self, iprot):
4587
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4588
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4589
      return
4590
    iprot.readStructBegin()
4591
    while True:
4592
      (fname, ftype, fid) = iprot.readFieldBegin()
4593
      if ftype == TType.STOP:
4594
        break
4595
      if fid == 1:
4596
        if ftype == TType.STRUCT:
4597
          self.cex = InventoryServiceException()
4598
          self.cex.read(iprot)
4599
        else:
4600
          iprot.skip(ftype)
4601
      else:
4602
        iprot.skip(ftype)
4603
      iprot.readFieldEnd()
4604
    iprot.readStructEnd()
4605
 
4606
  def write(self, oprot):
4607
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4608
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4609
      return
4610
    oprot.writeStructBegin('retireWarehouse_result')
4611
    if self.cex is not None:
4612
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4613
      self.cex.write(oprot)
4614
      oprot.writeFieldEnd()
4615
    oprot.writeFieldStop()
4616
    oprot.writeStructEnd()
4617
 
4618
  def validate(self):
4619
    return
4620
 
4621
 
4622
  def __repr__(self):
4623
    L = ['%s=%r' % (key, value)
4624
      for key, value in self.__dict__.iteritems()]
4625
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4626
 
4627
  def __eq__(self, other):
4628
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4629
 
4630
  def __ne__(self, other):
4631
    return not (self == other)
4632
 
4633
class getItemInventoryByItemId_args:
4634
  """
4635
  Attributes:
4636
   - item_id
4637
  """
4638
 
4639
  thrift_spec = (
4640
    None, # 0
4641
    (1, TType.I64, 'item_id', None, None, ), # 1
4642
  )
4643
 
4644
  def __init__(self, item_id=None,):
4645
    self.item_id = item_id
4646
 
4647
  def read(self, iprot):
4648
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4649
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4650
      return
4651
    iprot.readStructBegin()
4652
    while True:
4653
      (fname, ftype, fid) = iprot.readFieldBegin()
4654
      if ftype == TType.STOP:
4655
        break
4656
      if fid == 1:
4657
        if ftype == TType.I64:
4658
          self.item_id = iprot.readI64();
4659
        else:
4660
          iprot.skip(ftype)
4661
      else:
4662
        iprot.skip(ftype)
4663
      iprot.readFieldEnd()
4664
    iprot.readStructEnd()
4665
 
4666
  def write(self, oprot):
4667
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4668
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4669
      return
4670
    oprot.writeStructBegin('getItemInventoryByItemId_args')
4671
    if self.item_id is not None:
4672
      oprot.writeFieldBegin('item_id', TType.I64, 1)
4673
      oprot.writeI64(self.item_id)
4674
      oprot.writeFieldEnd()
4675
    oprot.writeFieldStop()
4676
    oprot.writeStructEnd()
4677
 
4678
  def validate(self):
4679
    return
4680
 
4681
 
4682
  def __repr__(self):
4683
    L = ['%s=%r' % (key, value)
4684
      for key, value in self.__dict__.iteritems()]
4685
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4686
 
4687
  def __eq__(self, other):
4688
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4689
 
4690
  def __ne__(self, other):
4691
    return not (self == other)
4692
 
4693
class getItemInventoryByItemId_result:
4694
  """
4695
  Attributes:
4696
   - success
4697
   - cex
4698
  """
4699
 
4700
  thrift_spec = (
4701
    (0, TType.STRUCT, 'success', (ItemInventory, ItemInventory.thrift_spec), None, ), # 0
4702
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4703
  )
4704
 
4705
  def __init__(self, success=None, cex=None,):
4706
    self.success = success
4707
    self.cex = cex
4708
 
4709
  def read(self, iprot):
4710
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4711
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4712
      return
4713
    iprot.readStructBegin()
4714
    while True:
4715
      (fname, ftype, fid) = iprot.readFieldBegin()
4716
      if ftype == TType.STOP:
4717
        break
4718
      if fid == 0:
4719
        if ftype == TType.STRUCT:
4720
          self.success = ItemInventory()
4721
          self.success.read(iprot)
4722
        else:
4723
          iprot.skip(ftype)
4724
      elif fid == 1:
4725
        if ftype == TType.STRUCT:
4726
          self.cex = InventoryServiceException()
4727
          self.cex.read(iprot)
4728
        else:
4729
          iprot.skip(ftype)
4730
      else:
4731
        iprot.skip(ftype)
4732
      iprot.readFieldEnd()
4733
    iprot.readStructEnd()
4734
 
4735
  def write(self, oprot):
4736
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4737
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4738
      return
4739
    oprot.writeStructBegin('getItemInventoryByItemId_result')
4740
    if self.success is not None:
4741
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4742
      self.success.write(oprot)
4743
      oprot.writeFieldEnd()
4744
    if self.cex is not None:
4745
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4746
      self.cex.write(oprot)
4747
      oprot.writeFieldEnd()
4748
    oprot.writeFieldStop()
4749
    oprot.writeStructEnd()
4750
 
4751
  def validate(self):
4752
    return
4753
 
4754
 
4755
  def __repr__(self):
4756
    L = ['%s=%r' % (key, value)
4757
      for key, value in self.__dict__.iteritems()]
4758
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4759
 
4760
  def __eq__(self, other):
4761
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4762
 
4763
  def __ne__(self, other):
4764
    return not (self == other)
4765
 
4766
class getItemAvailibilityAtWarehouse_args:
4767
  """
4768
  Attributes:
4769
   - warehouse_id
4770
   - item_id
4771
  """
4772
 
4773
  thrift_spec = (
4774
    None, # 0
4775
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
4776
    (2, TType.I64, 'item_id', None, None, ), # 2
4777
  )
4778
 
4779
  def __init__(self, warehouse_id=None, item_id=None,):
4780
    self.warehouse_id = warehouse_id
4781
    self.item_id = item_id
4782
 
4783
  def read(self, iprot):
4784
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4785
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4786
      return
4787
    iprot.readStructBegin()
4788
    while True:
4789
      (fname, ftype, fid) = iprot.readFieldBegin()
4790
      if ftype == TType.STOP:
4791
        break
4792
      if fid == 1:
4793
        if ftype == TType.I64:
4794
          self.warehouse_id = iprot.readI64();
4795
        else:
4796
          iprot.skip(ftype)
4797
      elif fid == 2:
4798
        if ftype == TType.I64:
4799
          self.item_id = iprot.readI64();
4800
        else:
4801
          iprot.skip(ftype)
4802
      else:
4803
        iprot.skip(ftype)
4804
      iprot.readFieldEnd()
4805
    iprot.readStructEnd()
4806
 
4807
  def write(self, oprot):
4808
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4809
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4810
      return
4811
    oprot.writeStructBegin('getItemAvailibilityAtWarehouse_args')
4812
    if self.warehouse_id is not None:
4813
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
4814
      oprot.writeI64(self.warehouse_id)
4815
      oprot.writeFieldEnd()
4816
    if self.item_id is not None:
4817
      oprot.writeFieldBegin('item_id', TType.I64, 2)
4818
      oprot.writeI64(self.item_id)
4819
      oprot.writeFieldEnd()
4820
    oprot.writeFieldStop()
4821
    oprot.writeStructEnd()
4822
 
4823
  def validate(self):
4824
    return
4825
 
4826
 
4827
  def __repr__(self):
4828
    L = ['%s=%r' % (key, value)
4829
      for key, value in self.__dict__.iteritems()]
4830
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4831
 
4832
  def __eq__(self, other):
4833
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4834
 
4835
  def __ne__(self, other):
4836
    return not (self == other)
4837
 
4838
class getItemAvailibilityAtWarehouse_result:
4839
  """
4840
  Attributes:
4841
   - success
4842
   - cex
4843
  """
4844
 
4845
  thrift_spec = (
4846
    (0, TType.I64, 'success', None, None, ), # 0
4847
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4848
  )
4849
 
4850
  def __init__(self, success=None, cex=None,):
4851
    self.success = success
4852
    self.cex = cex
4853
 
4854
  def read(self, iprot):
4855
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4856
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4857
      return
4858
    iprot.readStructBegin()
4859
    while True:
4860
      (fname, ftype, fid) = iprot.readFieldBegin()
4861
      if ftype == TType.STOP:
4862
        break
4863
      if fid == 0:
4864
        if ftype == TType.I64:
4865
          self.success = iprot.readI64();
4866
        else:
4867
          iprot.skip(ftype)
4868
      elif fid == 1:
4869
        if ftype == TType.STRUCT:
4870
          self.cex = InventoryServiceException()
4871
          self.cex.read(iprot)
4872
        else:
4873
          iprot.skip(ftype)
4874
      else:
4875
        iprot.skip(ftype)
4876
      iprot.readFieldEnd()
4877
    iprot.readStructEnd()
4878
 
4879
  def write(self, oprot):
4880
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4881
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4882
      return
4883
    oprot.writeStructBegin('getItemAvailibilityAtWarehouse_result')
4884
    if self.success is not None:
4885
      oprot.writeFieldBegin('success', TType.I64, 0)
4886
      oprot.writeI64(self.success)
4887
      oprot.writeFieldEnd()
4888
    if self.cex is not None:
4889
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4890
      self.cex.write(oprot)
4891
      oprot.writeFieldEnd()
4892
    oprot.writeFieldStop()
4893
    oprot.writeStructEnd()
4894
 
4895
  def validate(self):
4896
    return
4897
 
4898
 
4899
  def __repr__(self):
4900
    L = ['%s=%r' % (key, value)
4901
      for key, value in self.__dict__.iteritems()]
4902
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4903
 
4904
  def __eq__(self, other):
4905
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4906
 
4907
  def __ne__(self, other):
4908
    return not (self == other)
4909
 
4910
class getItemAvailabilityAtLocation_args:
4911
  """
4912
  Attributes:
4913
   - itemId
5978 rajveer 4914
   - sourceId
5944 mandeep.dh 4915
  """
4916
 
4917
  thrift_spec = (
4918
    None, # 0
4919
    (1, TType.I64, 'itemId', None, None, ), # 1
5978 rajveer 4920
    (2, TType.I64, 'sourceId', None, None, ), # 2
5944 mandeep.dh 4921
  )
4922
 
5978 rajveer 4923
  def __init__(self, itemId=None, sourceId=None,):
5944 mandeep.dh 4924
    self.itemId = itemId
5978 rajveer 4925
    self.sourceId = sourceId
5944 mandeep.dh 4926
 
4927
  def read(self, iprot):
4928
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4929
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4930
      return
4931
    iprot.readStructBegin()
4932
    while True:
4933
      (fname, ftype, fid) = iprot.readFieldBegin()
4934
      if ftype == TType.STOP:
4935
        break
4936
      if fid == 1:
4937
        if ftype == TType.I64:
4938
          self.itemId = iprot.readI64();
4939
        else:
4940
          iprot.skip(ftype)
5978 rajveer 4941
      elif fid == 2:
4942
        if ftype == TType.I64:
4943
          self.sourceId = iprot.readI64();
4944
        else:
4945
          iprot.skip(ftype)
5944 mandeep.dh 4946
      else:
4947
        iprot.skip(ftype)
4948
      iprot.readFieldEnd()
4949
    iprot.readStructEnd()
4950
 
4951
  def write(self, oprot):
4952
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4953
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4954
      return
4955
    oprot.writeStructBegin('getItemAvailabilityAtLocation_args')
4956
    if self.itemId is not None:
4957
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4958
      oprot.writeI64(self.itemId)
4959
      oprot.writeFieldEnd()
5978 rajveer 4960
    if self.sourceId is not None:
4961
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
4962
      oprot.writeI64(self.sourceId)
4963
      oprot.writeFieldEnd()
5944 mandeep.dh 4964
    oprot.writeFieldStop()
4965
    oprot.writeStructEnd()
4966
 
4967
  def validate(self):
4968
    return
4969
 
4970
 
4971
  def __repr__(self):
4972
    L = ['%s=%r' % (key, value)
4973
      for key, value in self.__dict__.iteritems()]
4974
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4975
 
4976
  def __eq__(self, other):
4977
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4978
 
4979
  def __ne__(self, other):
4980
    return not (self == other)
4981
 
4982
class getItemAvailabilityAtLocation_result:
4983
  """
4984
  Attributes:
4985
   - success
4986
   - isex
4987
  """
4988
 
4989
  thrift_spec = (
4990
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
4991
    (1, TType.STRUCT, 'isex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4992
  )
4993
 
4994
  def __init__(self, success=None, isex=None,):
4995
    self.success = success
4996
    self.isex = isex
4997
 
4998
  def read(self, iprot):
4999
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5000
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5001
      return
5002
    iprot.readStructBegin()
5003
    while True:
5004
      (fname, ftype, fid) = iprot.readFieldBegin()
5005
      if ftype == TType.STOP:
5006
        break
5007
      if fid == 0:
5008
        if ftype == TType.LIST:
5009
          self.success = []
8182 amar.kumar 5010
          (_etype48, _size45) = iprot.readListBegin()
5011
          for _i49 in xrange(_size45):
5012
            _elem50 = iprot.readI64();
5013
            self.success.append(_elem50)
5944 mandeep.dh 5014
          iprot.readListEnd()
5015
        else:
5016
          iprot.skip(ftype)
5017
      elif fid == 1:
5018
        if ftype == TType.STRUCT:
5019
          self.isex = InventoryServiceException()
5020
          self.isex.read(iprot)
5021
        else:
5022
          iprot.skip(ftype)
5023
      else:
5024
        iprot.skip(ftype)
5025
      iprot.readFieldEnd()
5026
    iprot.readStructEnd()
5027
 
5028
  def write(self, oprot):
5029
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5030
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5031
      return
5032
    oprot.writeStructBegin('getItemAvailabilityAtLocation_result')
5033
    if self.success is not None:
5034
      oprot.writeFieldBegin('success', TType.LIST, 0)
5035
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 5036
      for iter51 in self.success:
5037
        oprot.writeI64(iter51)
5944 mandeep.dh 5038
      oprot.writeListEnd()
5039
      oprot.writeFieldEnd()
5040
    if self.isex is not None:
5041
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
5042
      self.isex.write(oprot)
5043
      oprot.writeFieldEnd()
5044
    oprot.writeFieldStop()
5045
    oprot.writeStructEnd()
5046
 
5047
  def validate(self):
5048
    return
5049
 
5050
 
5051
  def __repr__(self):
5052
    L = ['%s=%r' % (key, value)
5053
      for key, value in self.__dict__.iteritems()]
5054
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5055
 
5056
  def __eq__(self, other):
5057
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5058
 
5059
  def __ne__(self, other):
5060
    return not (self == other)
5061
 
5062
class getAllWarehouses_args:
5063
  """
5064
  Attributes:
5065
   - isActive
5066
  """
5067
 
5068
  thrift_spec = (
5069
    None, # 0
5070
    (1, TType.BOOL, 'isActive', None, None, ), # 1
5071
  )
5072
 
5073
  def __init__(self, isActive=None,):
5074
    self.isActive = isActive
5075
 
5076
  def read(self, iprot):
5077
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5078
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5079
      return
5080
    iprot.readStructBegin()
5081
    while True:
5082
      (fname, ftype, fid) = iprot.readFieldBegin()
5083
      if ftype == TType.STOP:
5084
        break
5085
      if fid == 1:
5086
        if ftype == TType.BOOL:
5087
          self.isActive = iprot.readBool();
5088
        else:
5089
          iprot.skip(ftype)
5090
      else:
5091
        iprot.skip(ftype)
5092
      iprot.readFieldEnd()
5093
    iprot.readStructEnd()
5094
 
5095
  def write(self, oprot):
5096
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5097
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5098
      return
5099
    oprot.writeStructBegin('getAllWarehouses_args')
5100
    if self.isActive is not None:
5101
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
5102
      oprot.writeBool(self.isActive)
5103
      oprot.writeFieldEnd()
5104
    oprot.writeFieldStop()
5105
    oprot.writeStructEnd()
5106
 
5107
  def validate(self):
5108
    return
5109
 
5110
 
5111
  def __repr__(self):
5112
    L = ['%s=%r' % (key, value)
5113
      for key, value in self.__dict__.iteritems()]
5114
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5115
 
5116
  def __eq__(self, other):
5117
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5118
 
5119
  def __ne__(self, other):
5120
    return not (self == other)
5121
 
5122
class getAllWarehouses_result:
5123
  """
5124
  Attributes:
5125
   - success
5126
   - cex
5127
  """
5128
 
5129
  thrift_spec = (
5130
    (0, TType.LIST, 'success', (TType.STRUCT,(Warehouse, Warehouse.thrift_spec)), None, ), # 0
5131
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5132
  )
5133
 
5134
  def __init__(self, success=None, cex=None,):
5135
    self.success = success
5136
    self.cex = cex
5137
 
5138
  def read(self, iprot):
5139
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5140
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5141
      return
5142
    iprot.readStructBegin()
5143
    while True:
5144
      (fname, ftype, fid) = iprot.readFieldBegin()
5145
      if ftype == TType.STOP:
5146
        break
5147
      if fid == 0:
5148
        if ftype == TType.LIST:
5149
          self.success = []
8182 amar.kumar 5150
          (_etype55, _size52) = iprot.readListBegin()
5151
          for _i56 in xrange(_size52):
5152
            _elem57 = Warehouse()
5153
            _elem57.read(iprot)
5154
            self.success.append(_elem57)
5944 mandeep.dh 5155
          iprot.readListEnd()
5156
        else:
5157
          iprot.skip(ftype)
5158
      elif fid == 1:
5159
        if ftype == TType.STRUCT:
5160
          self.cex = InventoryServiceException()
5161
          self.cex.read(iprot)
5162
        else:
5163
          iprot.skip(ftype)
5164
      else:
5165
        iprot.skip(ftype)
5166
      iprot.readFieldEnd()
5167
    iprot.readStructEnd()
5168
 
5169
  def write(self, oprot):
5170
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5171
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5172
      return
5173
    oprot.writeStructBegin('getAllWarehouses_result')
5174
    if self.success is not None:
5175
      oprot.writeFieldBegin('success', TType.LIST, 0)
5176
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 5177
      for iter58 in self.success:
5178
        iter58.write(oprot)
5944 mandeep.dh 5179
      oprot.writeListEnd()
5180
      oprot.writeFieldEnd()
5181
    if self.cex is not None:
5182
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5183
      self.cex.write(oprot)
5184
      oprot.writeFieldEnd()
5185
    oprot.writeFieldStop()
5186
    oprot.writeStructEnd()
5187
 
5188
  def validate(self):
5189
    return
5190
 
5191
 
5192
  def __repr__(self):
5193
    L = ['%s=%r' % (key, value)
5194
      for key, value in self.__dict__.iteritems()]
5195
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5196
 
5197
  def __eq__(self, other):
5198
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5199
 
5200
  def __ne__(self, other):
5201
    return not (self == other)
5202
 
5203
class getWarehouse_args:
5204
  """
5205
  Attributes:
5206
   - warehouse_id
5207
  """
5208
 
5209
  thrift_spec = (
5210
    None, # 0
5211
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
5212
  )
5213
 
5214
  def __init__(self, warehouse_id=None,):
5215
    self.warehouse_id = warehouse_id
5216
 
5217
  def read(self, iprot):
5218
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5219
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5220
      return
5221
    iprot.readStructBegin()
5222
    while True:
5223
      (fname, ftype, fid) = iprot.readFieldBegin()
5224
      if ftype == TType.STOP:
5225
        break
5226
      if fid == 1:
5227
        if ftype == TType.I64:
5228
          self.warehouse_id = iprot.readI64();
5229
        else:
5230
          iprot.skip(ftype)
5231
      else:
5232
        iprot.skip(ftype)
5233
      iprot.readFieldEnd()
5234
    iprot.readStructEnd()
5235
 
5236
  def write(self, oprot):
5237
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5238
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5239
      return
5240
    oprot.writeStructBegin('getWarehouse_args')
5241
    if self.warehouse_id is not None:
5242
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
5243
      oprot.writeI64(self.warehouse_id)
5244
      oprot.writeFieldEnd()
5245
    oprot.writeFieldStop()
5246
    oprot.writeStructEnd()
5247
 
5248
  def validate(self):
5249
    return
5250
 
5251
 
5252
  def __repr__(self):
5253
    L = ['%s=%r' % (key, value)
5254
      for key, value in self.__dict__.iteritems()]
5255
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5256
 
5257
  def __eq__(self, other):
5258
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5259
 
5260
  def __ne__(self, other):
5261
    return not (self == other)
5262
 
5263
class getWarehouse_result:
5264
  """
5265
  Attributes:
5266
   - success
5267
   - cex
5268
  """
5269
 
5270
  thrift_spec = (
5271
    (0, TType.STRUCT, 'success', (Warehouse, Warehouse.thrift_spec), None, ), # 0
5272
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5273
  )
5274
 
5275
  def __init__(self, success=None, cex=None,):
5276
    self.success = success
5277
    self.cex = cex
5278
 
5279
  def read(self, iprot):
5280
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5281
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5282
      return
5283
    iprot.readStructBegin()
5284
    while True:
5285
      (fname, ftype, fid) = iprot.readFieldBegin()
5286
      if ftype == TType.STOP:
5287
        break
5288
      if fid == 0:
5289
        if ftype == TType.STRUCT:
5290
          self.success = Warehouse()
5291
          self.success.read(iprot)
5292
        else:
5293
          iprot.skip(ftype)
5294
      elif fid == 1:
5295
        if ftype == TType.STRUCT:
5296
          self.cex = InventoryServiceException()
5297
          self.cex.read(iprot)
5298
        else:
5299
          iprot.skip(ftype)
5300
      else:
5301
        iprot.skip(ftype)
5302
      iprot.readFieldEnd()
5303
    iprot.readStructEnd()
5304
 
5305
  def write(self, oprot):
5306
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5307
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5308
      return
5309
    oprot.writeStructBegin('getWarehouse_result')
5310
    if self.success is not None:
5311
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5312
      self.success.write(oprot)
5313
      oprot.writeFieldEnd()
5314
    if self.cex is not None:
5315
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5316
      self.cex.write(oprot)
5317
      oprot.writeFieldEnd()
5318
    oprot.writeFieldStop()
5319
    oprot.writeStructEnd()
5320
 
5321
  def validate(self):
5322
    return
5323
 
5324
 
5325
  def __repr__(self):
5326
    L = ['%s=%r' % (key, value)
5327
      for key, value in self.__dict__.iteritems()]
5328
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5329
 
5330
  def __eq__(self, other):
5331
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5332
 
5333
  def __ne__(self, other):
5334
    return not (self == other)
5335
 
5336
class getAllItemsForWarehouse_args:
5337
  """
5338
  Attributes:
5339
   - warehouse_id
5340
  """
5341
 
5342
  thrift_spec = (
5343
    None, # 0
5344
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
5345
  )
5346
 
5347
  def __init__(self, warehouse_id=None,):
5348
    self.warehouse_id = warehouse_id
5349
 
5350
  def read(self, iprot):
5351
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5352
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5353
      return
5354
    iprot.readStructBegin()
5355
    while True:
5356
      (fname, ftype, fid) = iprot.readFieldBegin()
5357
      if ftype == TType.STOP:
5358
        break
5359
      if fid == 1:
5360
        if ftype == TType.I64:
5361
          self.warehouse_id = iprot.readI64();
5362
        else:
5363
          iprot.skip(ftype)
5364
      else:
5365
        iprot.skip(ftype)
5366
      iprot.readFieldEnd()
5367
    iprot.readStructEnd()
5368
 
5369
  def write(self, oprot):
5370
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5371
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5372
      return
5373
    oprot.writeStructBegin('getAllItemsForWarehouse_args')
5374
    if self.warehouse_id is not None:
5375
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
5376
      oprot.writeI64(self.warehouse_id)
5377
      oprot.writeFieldEnd()
5378
    oprot.writeFieldStop()
5379
    oprot.writeStructEnd()
5380
 
5381
  def validate(self):
5382
    return
5383
 
5384
 
5385
  def __repr__(self):
5386
    L = ['%s=%r' % (key, value)
5387
      for key, value in self.__dict__.iteritems()]
5388
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5389
 
5390
  def __eq__(self, other):
5391
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5392
 
5393
  def __ne__(self, other):
5394
    return not (self == other)
5395
 
5396
class getAllItemsForWarehouse_result:
5397
  """
5398
  Attributes:
5399
   - success
5400
   - cex
5401
  """
5402
 
5403
  thrift_spec = (
5404
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
5405
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5406
  )
5407
 
5408
  def __init__(self, success=None, cex=None,):
5409
    self.success = success
5410
    self.cex = cex
5411
 
5412
  def read(self, iprot):
5413
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5414
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5415
      return
5416
    iprot.readStructBegin()
5417
    while True:
5418
      (fname, ftype, fid) = iprot.readFieldBegin()
5419
      if ftype == TType.STOP:
5420
        break
5421
      if fid == 0:
5422
        if ftype == TType.LIST:
5423
          self.success = []
8182 amar.kumar 5424
          (_etype62, _size59) = iprot.readListBegin()
5425
          for _i63 in xrange(_size59):
5426
            _elem64 = iprot.readI64();
5427
            self.success.append(_elem64)
5944 mandeep.dh 5428
          iprot.readListEnd()
5429
        else:
5430
          iprot.skip(ftype)
5431
      elif fid == 1:
5432
        if ftype == TType.STRUCT:
5433
          self.cex = InventoryServiceException()
5434
          self.cex.read(iprot)
5435
        else:
5436
          iprot.skip(ftype)
5437
      else:
5438
        iprot.skip(ftype)
5439
      iprot.readFieldEnd()
5440
    iprot.readStructEnd()
5441
 
5442
  def write(self, oprot):
5443
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5444
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5445
      return
5446
    oprot.writeStructBegin('getAllItemsForWarehouse_result')
5447
    if self.success is not None:
5448
      oprot.writeFieldBegin('success', TType.LIST, 0)
5449
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 5450
      for iter65 in self.success:
5451
        oprot.writeI64(iter65)
5944 mandeep.dh 5452
      oprot.writeListEnd()
5453
      oprot.writeFieldEnd()
5454
    if self.cex is not None:
5455
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5456
      self.cex.write(oprot)
5457
      oprot.writeFieldEnd()
5458
    oprot.writeFieldStop()
5459
    oprot.writeStructEnd()
5460
 
5461
  def validate(self):
5462
    return
5463
 
5464
 
5465
  def __repr__(self):
5466
    L = ['%s=%r' % (key, value)
5467
      for key, value in self.__dict__.iteritems()]
5468
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5469
 
5470
  def __eq__(self, other):
5471
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5472
 
5473
  def __ne__(self, other):
5474
    return not (self == other)
5475
 
5966 rajveer 5476
class isOrderBillable_args:
5477
  """
5478
  Attributes:
5479
   - itemId
5480
   - warehouseId
5481
   - sourceId
5482
   - orderId
5483
  """
5484
 
5485
  thrift_spec = (
5486
    None, # 0
5487
    (1, TType.I64, 'itemId', None, None, ), # 1
5488
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5489
    (3, TType.I64, 'sourceId', None, None, ), # 3
5490
    (4, TType.I64, 'orderId', None, None, ), # 4
5491
  )
5492
 
5493
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None,):
5494
    self.itemId = itemId
5495
    self.warehouseId = warehouseId
5496
    self.sourceId = sourceId
5497
    self.orderId = orderId
5498
 
5499
  def read(self, iprot):
5500
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5501
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5502
      return
5503
    iprot.readStructBegin()
5504
    while True:
5505
      (fname, ftype, fid) = iprot.readFieldBegin()
5506
      if ftype == TType.STOP:
5507
        break
5508
      if fid == 1:
5509
        if ftype == TType.I64:
5510
          self.itemId = iprot.readI64();
5511
        else:
5512
          iprot.skip(ftype)
5513
      elif fid == 2:
5514
        if ftype == TType.I64:
5515
          self.warehouseId = iprot.readI64();
5516
        else:
5517
          iprot.skip(ftype)
5518
      elif fid == 3:
5519
        if ftype == TType.I64:
5520
          self.sourceId = iprot.readI64();
5521
        else:
5522
          iprot.skip(ftype)
5523
      elif fid == 4:
5524
        if ftype == TType.I64:
5525
          self.orderId = iprot.readI64();
5526
        else:
5527
          iprot.skip(ftype)
5528
      else:
5529
        iprot.skip(ftype)
5530
      iprot.readFieldEnd()
5531
    iprot.readStructEnd()
5532
 
5533
  def write(self, oprot):
5534
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5535
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5536
      return
5537
    oprot.writeStructBegin('isOrderBillable_args')
5538
    if self.itemId is not None:
5539
      oprot.writeFieldBegin('itemId', TType.I64, 1)
5540
      oprot.writeI64(self.itemId)
5541
      oprot.writeFieldEnd()
5542
    if self.warehouseId is not None:
5543
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
5544
      oprot.writeI64(self.warehouseId)
5545
      oprot.writeFieldEnd()
5546
    if self.sourceId is not None:
5547
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
5548
      oprot.writeI64(self.sourceId)
5549
      oprot.writeFieldEnd()
5550
    if self.orderId is not None:
5551
      oprot.writeFieldBegin('orderId', TType.I64, 4)
5552
      oprot.writeI64(self.orderId)
5553
      oprot.writeFieldEnd()
5554
    oprot.writeFieldStop()
5555
    oprot.writeStructEnd()
5556
 
5557
  def validate(self):
5558
    return
5559
 
5560
 
5561
  def __repr__(self):
5562
    L = ['%s=%r' % (key, value)
5563
      for key, value in self.__dict__.iteritems()]
5564
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5565
 
5566
  def __eq__(self, other):
5567
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5568
 
5569
  def __ne__(self, other):
5570
    return not (self == other)
5571
 
5572
class isOrderBillable_result:
5573
  """
5574
  Attributes:
5575
   - success
5576
  """
5577
 
5578
  thrift_spec = (
5579
    (0, TType.BOOL, 'success', None, None, ), # 0
5580
  )
5581
 
5582
  def __init__(self, success=None,):
5583
    self.success = success
5584
 
5585
  def read(self, iprot):
5586
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5587
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5588
      return
5589
    iprot.readStructBegin()
5590
    while True:
5591
      (fname, ftype, fid) = iprot.readFieldBegin()
5592
      if ftype == TType.STOP:
5593
        break
5594
      if fid == 0:
5595
        if ftype == TType.BOOL:
5596
          self.success = iprot.readBool();
5597
        else:
5598
          iprot.skip(ftype)
5599
      else:
5600
        iprot.skip(ftype)
5601
      iprot.readFieldEnd()
5602
    iprot.readStructEnd()
5603
 
5604
  def write(self, oprot):
5605
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5606
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5607
      return
5608
    oprot.writeStructBegin('isOrderBillable_result')
5609
    if self.success is not None:
5610
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5611
      oprot.writeBool(self.success)
5612
      oprot.writeFieldEnd()
5613
    oprot.writeFieldStop()
5614
    oprot.writeStructEnd()
5615
 
5616
  def validate(self):
5617
    return
5618
 
5619
 
5620
  def __repr__(self):
5621
    L = ['%s=%r' % (key, value)
5622
      for key, value in self.__dict__.iteritems()]
5623
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5624
 
5625
  def __eq__(self, other):
5626
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5627
 
5628
  def __ne__(self, other):
5629
    return not (self == other)
5630
 
5944 mandeep.dh 5631
class reserveItemInWarehouse_args:
5632
  """
5633
  Attributes:
5634
   - itemId
5635
   - warehouseId
5966 rajveer 5636
   - sourceId
5637
   - orderId
5638
   - createdTimestamp
5639
   - promisedShippingTimestamp
5944 mandeep.dh 5640
   - quantity
5641
  """
5642
 
5643
  thrift_spec = (
5644
    None, # 0
5645
    (1, TType.I64, 'itemId', None, None, ), # 1
5646
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5966 rajveer 5647
    (3, TType.I64, 'sourceId', None, None, ), # 3
5648
    (4, TType.I64, 'orderId', None, None, ), # 4
5649
    (5, TType.I64, 'createdTimestamp', None, None, ), # 5
5650
    (6, TType.I64, 'promisedShippingTimestamp', None, None, ), # 6
5651
    (7, TType.DOUBLE, 'quantity', None, None, ), # 7
5944 mandeep.dh 5652
  )
5653
 
5966 rajveer 5654
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None, createdTimestamp=None, promisedShippingTimestamp=None, quantity=None,):
5944 mandeep.dh 5655
    self.itemId = itemId
5656
    self.warehouseId = warehouseId
5966 rajveer 5657
    self.sourceId = sourceId
5658
    self.orderId = orderId
5659
    self.createdTimestamp = createdTimestamp
5660
    self.promisedShippingTimestamp = promisedShippingTimestamp
5944 mandeep.dh 5661
    self.quantity = quantity
5662
 
5663
  def read(self, iprot):
5664
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5665
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5666
      return
5667
    iprot.readStructBegin()
5668
    while True:
5669
      (fname, ftype, fid) = iprot.readFieldBegin()
5670
      if ftype == TType.STOP:
5671
        break
5672
      if fid == 1:
5673
        if ftype == TType.I64:
5674
          self.itemId = iprot.readI64();
5675
        else:
5676
          iprot.skip(ftype)
5677
      elif fid == 2:
5678
        if ftype == TType.I64:
5679
          self.warehouseId = iprot.readI64();
5680
        else:
5681
          iprot.skip(ftype)
5682
      elif fid == 3:
5966 rajveer 5683
        if ftype == TType.I64:
5684
          self.sourceId = iprot.readI64();
5685
        else:
5686
          iprot.skip(ftype)
5687
      elif fid == 4:
5688
        if ftype == TType.I64:
5689
          self.orderId = iprot.readI64();
5690
        else:
5691
          iprot.skip(ftype)
5692
      elif fid == 5:
5693
        if ftype == TType.I64:
5694
          self.createdTimestamp = iprot.readI64();
5695
        else:
5696
          iprot.skip(ftype)
5697
      elif fid == 6:
5698
        if ftype == TType.I64:
5699
          self.promisedShippingTimestamp = iprot.readI64();
5700
        else:
5701
          iprot.skip(ftype)
5702
      elif fid == 7:
5944 mandeep.dh 5703
        if ftype == TType.DOUBLE:
5704
          self.quantity = iprot.readDouble();
5705
        else:
5706
          iprot.skip(ftype)
5707
      else:
5708
        iprot.skip(ftype)
5709
      iprot.readFieldEnd()
5710
    iprot.readStructEnd()
5711
 
5712
  def write(self, oprot):
5713
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5714
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5715
      return
5716
    oprot.writeStructBegin('reserveItemInWarehouse_args')
5717
    if self.itemId is not None:
5718
      oprot.writeFieldBegin('itemId', TType.I64, 1)
5719
      oprot.writeI64(self.itemId)
5720
      oprot.writeFieldEnd()
5721
    if self.warehouseId is not None:
5722
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
5723
      oprot.writeI64(self.warehouseId)
5724
      oprot.writeFieldEnd()
5966 rajveer 5725
    if self.sourceId is not None:
5726
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
5727
      oprot.writeI64(self.sourceId)
5728
      oprot.writeFieldEnd()
5729
    if self.orderId is not None:
5730
      oprot.writeFieldBegin('orderId', TType.I64, 4)
5731
      oprot.writeI64(self.orderId)
5732
      oprot.writeFieldEnd()
5733
    if self.createdTimestamp is not None:
5734
      oprot.writeFieldBegin('createdTimestamp', TType.I64, 5)
5735
      oprot.writeI64(self.createdTimestamp)
5736
      oprot.writeFieldEnd()
5737
    if self.promisedShippingTimestamp is not None:
5738
      oprot.writeFieldBegin('promisedShippingTimestamp', TType.I64, 6)
5739
      oprot.writeI64(self.promisedShippingTimestamp)
5740
      oprot.writeFieldEnd()
5944 mandeep.dh 5741
    if self.quantity is not None:
5966 rajveer 5742
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 7)
5944 mandeep.dh 5743
      oprot.writeDouble(self.quantity)
5744
      oprot.writeFieldEnd()
5745
    oprot.writeFieldStop()
5746
    oprot.writeStructEnd()
5747
 
5748
  def validate(self):
5749
    return
5750
 
5751
 
5752
  def __repr__(self):
5753
    L = ['%s=%r' % (key, value)
5754
      for key, value in self.__dict__.iteritems()]
5755
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5756
 
5757
  def __eq__(self, other):
5758
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5759
 
5760
  def __ne__(self, other):
5761
    return not (self == other)
5762
 
5763
class reserveItemInWarehouse_result:
5764
  """
5765
  Attributes:
5766
   - success
5767
   - cex
5768
  """
5769
 
5770
  thrift_spec = (
5771
    (0, TType.BOOL, 'success', None, None, ), # 0
5772
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5773
  )
5774
 
5775
  def __init__(self, success=None, cex=None,):
5776
    self.success = success
5777
    self.cex = cex
5778
 
5779
  def read(self, iprot):
5780
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5781
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5782
      return
5783
    iprot.readStructBegin()
5784
    while True:
5785
      (fname, ftype, fid) = iprot.readFieldBegin()
5786
      if ftype == TType.STOP:
5787
        break
5788
      if fid == 0:
5789
        if ftype == TType.BOOL:
5790
          self.success = iprot.readBool();
5791
        else:
5792
          iprot.skip(ftype)
5793
      elif fid == 1:
5794
        if ftype == TType.STRUCT:
5795
          self.cex = InventoryServiceException()
5796
          self.cex.read(iprot)
5797
        else:
5798
          iprot.skip(ftype)
5799
      else:
5800
        iprot.skip(ftype)
5801
      iprot.readFieldEnd()
5802
    iprot.readStructEnd()
5803
 
5804
  def write(self, oprot):
5805
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5806
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5807
      return
5808
    oprot.writeStructBegin('reserveItemInWarehouse_result')
5809
    if self.success is not None:
5810
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5811
      oprot.writeBool(self.success)
5812
      oprot.writeFieldEnd()
5813
    if self.cex is not None:
5814
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5815
      self.cex.write(oprot)
5816
      oprot.writeFieldEnd()
5817
    oprot.writeFieldStop()
5818
    oprot.writeStructEnd()
5819
 
5820
  def validate(self):
5821
    return
5822
 
5823
 
5824
  def __repr__(self):
5825
    L = ['%s=%r' % (key, value)
5826
      for key, value in self.__dict__.iteritems()]
5827
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5828
 
5829
  def __eq__(self, other):
5830
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5831
 
5832
  def __ne__(self, other):
5833
    return not (self == other)
5834
 
7968 amar.kumar 5835
class updateReservationForOrder_args:
5836
  """
5837
  Attributes:
5838
   - itemId
5839
   - warehouseId
5840
   - sourceId
5841
   - orderId
5842
   - createdTimestamp
5843
   - promisedShippingTimestamp
5844
   - quantity
5845
  """
5846
 
5847
  thrift_spec = (
5848
    None, # 0
5849
    (1, TType.I64, 'itemId', None, None, ), # 1
5850
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5851
    (3, TType.I64, 'sourceId', None, None, ), # 3
5852
    (4, TType.I64, 'orderId', None, None, ), # 4
5853
    (5, TType.I64, 'createdTimestamp', None, None, ), # 5
5854
    (6, TType.I64, 'promisedShippingTimestamp', None, None, ), # 6
5855
    (7, TType.DOUBLE, 'quantity', None, None, ), # 7
5856
  )
5857
 
5858
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None, createdTimestamp=None, promisedShippingTimestamp=None, quantity=None,):
5859
    self.itemId = itemId
5860
    self.warehouseId = warehouseId
5861
    self.sourceId = sourceId
5862
    self.orderId = orderId
5863
    self.createdTimestamp = createdTimestamp
5864
    self.promisedShippingTimestamp = promisedShippingTimestamp
5865
    self.quantity = quantity
5866
 
5867
  def read(self, iprot):
5868
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5869
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5870
      return
5871
    iprot.readStructBegin()
5872
    while True:
5873
      (fname, ftype, fid) = iprot.readFieldBegin()
5874
      if ftype == TType.STOP:
5875
        break
5876
      if fid == 1:
5877
        if ftype == TType.I64:
5878
          self.itemId = iprot.readI64();
5879
        else:
5880
          iprot.skip(ftype)
5881
      elif fid == 2:
5882
        if ftype == TType.I64:
5883
          self.warehouseId = iprot.readI64();
5884
        else:
5885
          iprot.skip(ftype)
5886
      elif fid == 3:
5887
        if ftype == TType.I64:
5888
          self.sourceId = iprot.readI64();
5889
        else:
5890
          iprot.skip(ftype)
5891
      elif fid == 4:
5892
        if ftype == TType.I64:
5893
          self.orderId = iprot.readI64();
5894
        else:
5895
          iprot.skip(ftype)
5896
      elif fid == 5:
5897
        if ftype == TType.I64:
5898
          self.createdTimestamp = iprot.readI64();
5899
        else:
5900
          iprot.skip(ftype)
5901
      elif fid == 6:
5902
        if ftype == TType.I64:
5903
          self.promisedShippingTimestamp = iprot.readI64();
5904
        else:
5905
          iprot.skip(ftype)
5906
      elif fid == 7:
5907
        if ftype == TType.DOUBLE:
5908
          self.quantity = iprot.readDouble();
5909
        else:
5910
          iprot.skip(ftype)
5911
      else:
5912
        iprot.skip(ftype)
5913
      iprot.readFieldEnd()
5914
    iprot.readStructEnd()
5915
 
5916
  def write(self, oprot):
5917
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5918
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5919
      return
5920
    oprot.writeStructBegin('updateReservationForOrder_args')
5921
    if self.itemId is not None:
5922
      oprot.writeFieldBegin('itemId', TType.I64, 1)
5923
      oprot.writeI64(self.itemId)
5924
      oprot.writeFieldEnd()
5925
    if self.warehouseId is not None:
5926
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
5927
      oprot.writeI64(self.warehouseId)
5928
      oprot.writeFieldEnd()
5929
    if self.sourceId is not None:
5930
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
5931
      oprot.writeI64(self.sourceId)
5932
      oprot.writeFieldEnd()
5933
    if self.orderId is not None:
5934
      oprot.writeFieldBegin('orderId', TType.I64, 4)
5935
      oprot.writeI64(self.orderId)
5936
      oprot.writeFieldEnd()
5937
    if self.createdTimestamp is not None:
5938
      oprot.writeFieldBegin('createdTimestamp', TType.I64, 5)
5939
      oprot.writeI64(self.createdTimestamp)
5940
      oprot.writeFieldEnd()
5941
    if self.promisedShippingTimestamp is not None:
5942
      oprot.writeFieldBegin('promisedShippingTimestamp', TType.I64, 6)
5943
      oprot.writeI64(self.promisedShippingTimestamp)
5944
      oprot.writeFieldEnd()
5945
    if self.quantity is not None:
5946
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 7)
5947
      oprot.writeDouble(self.quantity)
5948
      oprot.writeFieldEnd()
5949
    oprot.writeFieldStop()
5950
    oprot.writeStructEnd()
5951
 
5952
  def validate(self):
5953
    return
5954
 
5955
 
5956
  def __repr__(self):
5957
    L = ['%s=%r' % (key, value)
5958
      for key, value in self.__dict__.iteritems()]
5959
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5960
 
5961
  def __eq__(self, other):
5962
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5963
 
5964
  def __ne__(self, other):
5965
    return not (self == other)
5966
 
5967
class updateReservationForOrder_result:
5968
  """
5969
  Attributes:
5970
   - success
5971
   - cex
5972
  """
5973
 
5974
  thrift_spec = (
5975
    (0, TType.BOOL, 'success', None, None, ), # 0
5976
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5977
  )
5978
 
5979
  def __init__(self, success=None, cex=None,):
5980
    self.success = success
5981
    self.cex = cex
5982
 
5983
  def read(self, iprot):
5984
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5985
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5986
      return
5987
    iprot.readStructBegin()
5988
    while True:
5989
      (fname, ftype, fid) = iprot.readFieldBegin()
5990
      if ftype == TType.STOP:
5991
        break
5992
      if fid == 0:
5993
        if ftype == TType.BOOL:
5994
          self.success = iprot.readBool();
5995
        else:
5996
          iprot.skip(ftype)
5997
      elif fid == 1:
5998
        if ftype == TType.STRUCT:
5999
          self.cex = InventoryServiceException()
6000
          self.cex.read(iprot)
6001
        else:
6002
          iprot.skip(ftype)
6003
      else:
6004
        iprot.skip(ftype)
6005
      iprot.readFieldEnd()
6006
    iprot.readStructEnd()
6007
 
6008
  def write(self, oprot):
6009
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6010
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6011
      return
6012
    oprot.writeStructBegin('updateReservationForOrder_result')
6013
    if self.success is not None:
6014
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6015
      oprot.writeBool(self.success)
6016
      oprot.writeFieldEnd()
6017
    if self.cex is not None:
6018
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6019
      self.cex.write(oprot)
6020
      oprot.writeFieldEnd()
6021
    oprot.writeFieldStop()
6022
    oprot.writeStructEnd()
6023
 
6024
  def validate(self):
6025
    return
6026
 
6027
 
6028
  def __repr__(self):
6029
    L = ['%s=%r' % (key, value)
6030
      for key, value in self.__dict__.iteritems()]
6031
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6032
 
6033
  def __eq__(self, other):
6034
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6035
 
6036
  def __ne__(self, other):
6037
    return not (self == other)
6038
 
5944 mandeep.dh 6039
class reduceReservationCount_args:
6040
  """
6041
  Attributes:
6042
   - itemId
6043
   - warehouseId
5966 rajveer 6044
   - sourceId
6045
   - orderId
5944 mandeep.dh 6046
   - quantity
6047
  """
6048
 
6049
  thrift_spec = (
6050
    None, # 0
6051
    (1, TType.I64, 'itemId', None, None, ), # 1
6052
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5966 rajveer 6053
    (3, TType.I64, 'sourceId', None, None, ), # 3
6054
    (4, TType.I64, 'orderId', None, None, ), # 4
6055
    (5, TType.DOUBLE, 'quantity', None, None, ), # 5
5944 mandeep.dh 6056
  )
6057
 
5966 rajveer 6058
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None, quantity=None,):
5944 mandeep.dh 6059
    self.itemId = itemId
6060
    self.warehouseId = warehouseId
5966 rajveer 6061
    self.sourceId = sourceId
6062
    self.orderId = orderId
5944 mandeep.dh 6063
    self.quantity = quantity
6064
 
6065
  def read(self, iprot):
6066
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6067
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6068
      return
6069
    iprot.readStructBegin()
6070
    while True:
6071
      (fname, ftype, fid) = iprot.readFieldBegin()
6072
      if ftype == TType.STOP:
6073
        break
6074
      if fid == 1:
6075
        if ftype == TType.I64:
6076
          self.itemId = iprot.readI64();
6077
        else:
6078
          iprot.skip(ftype)
6079
      elif fid == 2:
6080
        if ftype == TType.I64:
6081
          self.warehouseId = iprot.readI64();
6082
        else:
6083
          iprot.skip(ftype)
6084
      elif fid == 3:
5966 rajveer 6085
        if ftype == TType.I64:
6086
          self.sourceId = iprot.readI64();
6087
        else:
6088
          iprot.skip(ftype)
6089
      elif fid == 4:
6090
        if ftype == TType.I64:
6091
          self.orderId = iprot.readI64();
6092
        else:
6093
          iprot.skip(ftype)
6094
      elif fid == 5:
5944 mandeep.dh 6095
        if ftype == TType.DOUBLE:
6096
          self.quantity = iprot.readDouble();
6097
        else:
6098
          iprot.skip(ftype)
6099
      else:
6100
        iprot.skip(ftype)
6101
      iprot.readFieldEnd()
6102
    iprot.readStructEnd()
6103
 
6104
  def write(self, oprot):
6105
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6106
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6107
      return
6108
    oprot.writeStructBegin('reduceReservationCount_args')
6109
    if self.itemId is not None:
6110
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6111
      oprot.writeI64(self.itemId)
6112
      oprot.writeFieldEnd()
6113
    if self.warehouseId is not None:
6114
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
6115
      oprot.writeI64(self.warehouseId)
6116
      oprot.writeFieldEnd()
5966 rajveer 6117
    if self.sourceId is not None:
6118
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
6119
      oprot.writeI64(self.sourceId)
6120
      oprot.writeFieldEnd()
6121
    if self.orderId is not None:
6122
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6123
      oprot.writeI64(self.orderId)
6124
      oprot.writeFieldEnd()
5944 mandeep.dh 6125
    if self.quantity is not None:
5966 rajveer 6126
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 5)
5944 mandeep.dh 6127
      oprot.writeDouble(self.quantity)
6128
      oprot.writeFieldEnd()
6129
    oprot.writeFieldStop()
6130
    oprot.writeStructEnd()
6131
 
6132
  def validate(self):
6133
    return
6134
 
6135
 
6136
  def __repr__(self):
6137
    L = ['%s=%r' % (key, value)
6138
      for key, value in self.__dict__.iteritems()]
6139
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6140
 
6141
  def __eq__(self, other):
6142
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6143
 
6144
  def __ne__(self, other):
6145
    return not (self == other)
6146
 
6147
class reduceReservationCount_result:
6148
  """
6149
  Attributes:
6150
   - success
6151
   - cex
6152
  """
6153
 
6154
  thrift_spec = (
6155
    (0, TType.BOOL, 'success', None, None, ), # 0
6156
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6157
  )
6158
 
6159
  def __init__(self, success=None, cex=None,):
6160
    self.success = success
6161
    self.cex = cex
6162
 
6163
  def read(self, iprot):
6164
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6165
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6166
      return
6167
    iprot.readStructBegin()
6168
    while True:
6169
      (fname, ftype, fid) = iprot.readFieldBegin()
6170
      if ftype == TType.STOP:
6171
        break
6172
      if fid == 0:
6173
        if ftype == TType.BOOL:
6174
          self.success = iprot.readBool();
6175
        else:
6176
          iprot.skip(ftype)
6177
      elif fid == 1:
6178
        if ftype == TType.STRUCT:
6179
          self.cex = InventoryServiceException()
6180
          self.cex.read(iprot)
6181
        else:
6182
          iprot.skip(ftype)
6183
      else:
6184
        iprot.skip(ftype)
6185
      iprot.readFieldEnd()
6186
    iprot.readStructEnd()
6187
 
6188
  def write(self, oprot):
6189
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6190
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6191
      return
6192
    oprot.writeStructBegin('reduceReservationCount_result')
6193
    if self.success is not None:
6194
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6195
      oprot.writeBool(self.success)
6196
      oprot.writeFieldEnd()
6197
    if self.cex is not None:
6198
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6199
      self.cex.write(oprot)
6200
      oprot.writeFieldEnd()
6201
    oprot.writeFieldStop()
6202
    oprot.writeStructEnd()
6203
 
6204
  def validate(self):
6205
    return
6206
 
6207
 
6208
  def __repr__(self):
6209
    L = ['%s=%r' % (key, value)
6210
      for key, value in self.__dict__.iteritems()]
6211
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6212
 
6213
  def __eq__(self, other):
6214
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6215
 
6216
  def __ne__(self, other):
6217
    return not (self == other)
6218
 
6219
class getItemPricing_args:
6220
  """
6221
  Attributes:
6222
   - itemId
6223
   - vendorId
6224
  """
6225
 
6226
  thrift_spec = (
6227
    None, # 0
6228
    (1, TType.I64, 'itemId', None, None, ), # 1
6229
    (2, TType.I64, 'vendorId', None, None, ), # 2
6230
  )
6231
 
6232
  def __init__(self, itemId=None, vendorId=None,):
6233
    self.itemId = itemId
6234
    self.vendorId = vendorId
6235
 
6236
  def read(self, iprot):
6237
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6238
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6239
      return
6240
    iprot.readStructBegin()
6241
    while True:
6242
      (fname, ftype, fid) = iprot.readFieldBegin()
6243
      if ftype == TType.STOP:
6244
        break
6245
      if fid == 1:
6246
        if ftype == TType.I64:
6247
          self.itemId = iprot.readI64();
6248
        else:
6249
          iprot.skip(ftype)
6250
      elif fid == 2:
6251
        if ftype == TType.I64:
6252
          self.vendorId = iprot.readI64();
6253
        else:
6254
          iprot.skip(ftype)
6255
      else:
6256
        iprot.skip(ftype)
6257
      iprot.readFieldEnd()
6258
    iprot.readStructEnd()
6259
 
6260
  def write(self, oprot):
6261
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6262
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6263
      return
6264
    oprot.writeStructBegin('getItemPricing_args')
6265
    if self.itemId is not None:
6266
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6267
      oprot.writeI64(self.itemId)
6268
      oprot.writeFieldEnd()
6269
    if self.vendorId is not None:
6270
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
6271
      oprot.writeI64(self.vendorId)
6272
      oprot.writeFieldEnd()
6273
    oprot.writeFieldStop()
6274
    oprot.writeStructEnd()
6275
 
6276
  def validate(self):
6277
    return
6278
 
6279
 
6280
  def __repr__(self):
6281
    L = ['%s=%r' % (key, value)
6282
      for key, value in self.__dict__.iteritems()]
6283
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6284
 
6285
  def __eq__(self, other):
6286
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6287
 
6288
  def __ne__(self, other):
6289
    return not (self == other)
6290
 
6291
class getItemPricing_result:
6292
  """
6293
  Attributes:
6294
   - success
6295
   - cex
6296
  """
6297
 
6298
  thrift_spec = (
6299
    (0, TType.STRUCT, 'success', (VendorItemPricing, VendorItemPricing.thrift_spec), None, ), # 0
6300
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6301
  )
6302
 
6303
  def __init__(self, success=None, cex=None,):
6304
    self.success = success
6305
    self.cex = cex
6306
 
6307
  def read(self, iprot):
6308
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6309
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6310
      return
6311
    iprot.readStructBegin()
6312
    while True:
6313
      (fname, ftype, fid) = iprot.readFieldBegin()
6314
      if ftype == TType.STOP:
6315
        break
6316
      if fid == 0:
6317
        if ftype == TType.STRUCT:
6318
          self.success = VendorItemPricing()
6319
          self.success.read(iprot)
6320
        else:
6321
          iprot.skip(ftype)
6322
      elif fid == 1:
6323
        if ftype == TType.STRUCT:
6324
          self.cex = InventoryServiceException()
6325
          self.cex.read(iprot)
6326
        else:
6327
          iprot.skip(ftype)
6328
      else:
6329
        iprot.skip(ftype)
6330
      iprot.readFieldEnd()
6331
    iprot.readStructEnd()
6332
 
6333
  def write(self, oprot):
6334
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6335
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6336
      return
6337
    oprot.writeStructBegin('getItemPricing_result')
6338
    if self.success is not None:
6339
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6340
      self.success.write(oprot)
6341
      oprot.writeFieldEnd()
6342
    if self.cex is not None:
6343
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6344
      self.cex.write(oprot)
6345
      oprot.writeFieldEnd()
6346
    oprot.writeFieldStop()
6347
    oprot.writeStructEnd()
6348
 
6349
  def validate(self):
6350
    return
6351
 
6352
 
6353
  def __repr__(self):
6354
    L = ['%s=%r' % (key, value)
6355
      for key, value in self.__dict__.iteritems()]
6356
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6357
 
6358
  def __eq__(self, other):
6359
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6360
 
6361
  def __ne__(self, other):
6362
    return not (self == other)
6363
 
6364
class getAllItemPricing_args:
6365
  """
6366
  Attributes:
6367
   - itemId
6368
  """
6369
 
6370
  thrift_spec = (
6371
    None, # 0
6372
    (1, TType.I64, 'itemId', None, None, ), # 1
6373
  )
6374
 
6375
  def __init__(self, itemId=None,):
6376
    self.itemId = itemId
6377
 
6378
  def read(self, iprot):
6379
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6380
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6381
      return
6382
    iprot.readStructBegin()
6383
    while True:
6384
      (fname, ftype, fid) = iprot.readFieldBegin()
6385
      if ftype == TType.STOP:
6386
        break
6387
      if fid == 1:
6388
        if ftype == TType.I64:
6389
          self.itemId = iprot.readI64();
6390
        else:
6391
          iprot.skip(ftype)
6392
      else:
6393
        iprot.skip(ftype)
6394
      iprot.readFieldEnd()
6395
    iprot.readStructEnd()
6396
 
6397
  def write(self, oprot):
6398
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6399
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6400
      return
6401
    oprot.writeStructBegin('getAllItemPricing_args')
6402
    if self.itemId is not None:
6403
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6404
      oprot.writeI64(self.itemId)
6405
      oprot.writeFieldEnd()
6406
    oprot.writeFieldStop()
6407
    oprot.writeStructEnd()
6408
 
6409
  def validate(self):
6410
    return
6411
 
6412
 
6413
  def __repr__(self):
6414
    L = ['%s=%r' % (key, value)
6415
      for key, value in self.__dict__.iteritems()]
6416
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6417
 
6418
  def __eq__(self, other):
6419
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6420
 
6421
  def __ne__(self, other):
6422
    return not (self == other)
6423
 
6424
class getAllItemPricing_result:
6425
  """
6426
  Attributes:
6427
   - success
6428
   - cex
6429
  """
6430
 
6431
  thrift_spec = (
6432
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemPricing, VendorItemPricing.thrift_spec)), None, ), # 0
6433
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6434
  )
6435
 
6436
  def __init__(self, success=None, cex=None,):
6437
    self.success = success
6438
    self.cex = cex
6439
 
6440
  def read(self, iprot):
6441
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6442
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6443
      return
6444
    iprot.readStructBegin()
6445
    while True:
6446
      (fname, ftype, fid) = iprot.readFieldBegin()
6447
      if ftype == TType.STOP:
6448
        break
6449
      if fid == 0:
6450
        if ftype == TType.LIST:
6451
          self.success = []
8182 amar.kumar 6452
          (_etype69, _size66) = iprot.readListBegin()
6453
          for _i70 in xrange(_size66):
6454
            _elem71 = VendorItemPricing()
6455
            _elem71.read(iprot)
6456
            self.success.append(_elem71)
5944 mandeep.dh 6457
          iprot.readListEnd()
6458
        else:
6459
          iprot.skip(ftype)
6460
      elif fid == 1:
6461
        if ftype == TType.STRUCT:
6462
          self.cex = InventoryServiceException()
6463
          self.cex.read(iprot)
6464
        else:
6465
          iprot.skip(ftype)
6466
      else:
6467
        iprot.skip(ftype)
6468
      iprot.readFieldEnd()
6469
    iprot.readStructEnd()
6470
 
6471
  def write(self, oprot):
6472
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6473
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6474
      return
6475
    oprot.writeStructBegin('getAllItemPricing_result')
6476
    if self.success is not None:
6477
      oprot.writeFieldBegin('success', TType.LIST, 0)
6478
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 6479
      for iter72 in self.success:
6480
        iter72.write(oprot)
5944 mandeep.dh 6481
      oprot.writeListEnd()
6482
      oprot.writeFieldEnd()
6483
    if self.cex is not None:
6484
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6485
      self.cex.write(oprot)
6486
      oprot.writeFieldEnd()
6487
    oprot.writeFieldStop()
6488
    oprot.writeStructEnd()
6489
 
6490
  def validate(self):
6491
    return
6492
 
6493
 
6494
  def __repr__(self):
6495
    L = ['%s=%r' % (key, value)
6496
      for key, value in self.__dict__.iteritems()]
6497
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6498
 
6499
  def __eq__(self, other):
6500
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6501
 
6502
  def __ne__(self, other):
6503
    return not (self == other)
6504
 
6505
class addVendorItemPricing_args:
6506
  """
6507
  Attributes:
6508
   - vendorItemPricing
6509
  """
6510
 
6511
  thrift_spec = (
6512
    None, # 0
6513
    (1, TType.STRUCT, 'vendorItemPricing', (VendorItemPricing, VendorItemPricing.thrift_spec), None, ), # 1
6514
  )
6515
 
6516
  def __init__(self, vendorItemPricing=None,):
6517
    self.vendorItemPricing = vendorItemPricing
6518
 
6519
  def read(self, iprot):
6520
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6521
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6522
      return
6523
    iprot.readStructBegin()
6524
    while True:
6525
      (fname, ftype, fid) = iprot.readFieldBegin()
6526
      if ftype == TType.STOP:
6527
        break
6528
      if fid == 1:
6529
        if ftype == TType.STRUCT:
6530
          self.vendorItemPricing = VendorItemPricing()
6531
          self.vendorItemPricing.read(iprot)
6532
        else:
6533
          iprot.skip(ftype)
6534
      else:
6535
        iprot.skip(ftype)
6536
      iprot.readFieldEnd()
6537
    iprot.readStructEnd()
6538
 
6539
  def write(self, oprot):
6540
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6541
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6542
      return
6543
    oprot.writeStructBegin('addVendorItemPricing_args')
6544
    if self.vendorItemPricing is not None:
6545
      oprot.writeFieldBegin('vendorItemPricing', TType.STRUCT, 1)
6546
      self.vendorItemPricing.write(oprot)
6547
      oprot.writeFieldEnd()
6548
    oprot.writeFieldStop()
6549
    oprot.writeStructEnd()
6550
 
6551
  def validate(self):
6552
    return
6553
 
6554
 
6555
  def __repr__(self):
6556
    L = ['%s=%r' % (key, value)
6557
      for key, value in self.__dict__.iteritems()]
6558
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6559
 
6560
  def __eq__(self, other):
6561
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6562
 
6563
  def __ne__(self, other):
6564
    return not (self == other)
6565
 
6566
class addVendorItemPricing_result:
6567
  """
6568
  Attributes:
6569
   - cex
6570
  """
6571
 
6572
  thrift_spec = (
6573
    None, # 0
6574
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6575
  )
6576
 
6577
  def __init__(self, cex=None,):
6578
    self.cex = cex
6579
 
6580
  def read(self, iprot):
6581
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6582
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6583
      return
6584
    iprot.readStructBegin()
6585
    while True:
6586
      (fname, ftype, fid) = iprot.readFieldBegin()
6587
      if ftype == TType.STOP:
6588
        break
6589
      if fid == 1:
6590
        if ftype == TType.STRUCT:
6591
          self.cex = InventoryServiceException()
6592
          self.cex.read(iprot)
6593
        else:
6594
          iprot.skip(ftype)
6595
      else:
6596
        iprot.skip(ftype)
6597
      iprot.readFieldEnd()
6598
    iprot.readStructEnd()
6599
 
6600
  def write(self, oprot):
6601
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6602
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6603
      return
6604
    oprot.writeStructBegin('addVendorItemPricing_result')
6605
    if self.cex is not None:
6606
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6607
      self.cex.write(oprot)
6608
      oprot.writeFieldEnd()
6609
    oprot.writeFieldStop()
6610
    oprot.writeStructEnd()
6611
 
6612
  def validate(self):
6613
    return
6614
 
6615
 
6616
  def __repr__(self):
6617
    L = ['%s=%r' % (key, value)
6618
      for key, value in self.__dict__.iteritems()]
6619
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6620
 
6621
  def __eq__(self, other):
6622
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6623
 
6624
  def __ne__(self, other):
6625
    return not (self == other)
6626
 
6627
class getVendor_args:
6628
  """
6629
  Attributes:
6630
   - vendorId
6631
  """
6632
 
6633
  thrift_spec = (
6634
    None, # 0
6635
    (1, TType.I64, 'vendorId', None, None, ), # 1
6636
  )
6637
 
6638
  def __init__(self, vendorId=None,):
6639
    self.vendorId = vendorId
6640
 
6641
  def read(self, iprot):
6642
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6643
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6644
      return
6645
    iprot.readStructBegin()
6646
    while True:
6647
      (fname, ftype, fid) = iprot.readFieldBegin()
6648
      if ftype == TType.STOP:
6649
        break
6650
      if fid == 1:
6651
        if ftype == TType.I64:
6652
          self.vendorId = iprot.readI64();
6653
        else:
6654
          iprot.skip(ftype)
6655
      else:
6656
        iprot.skip(ftype)
6657
      iprot.readFieldEnd()
6658
    iprot.readStructEnd()
6659
 
6660
  def write(self, oprot):
6661
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6662
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6663
      return
6664
    oprot.writeStructBegin('getVendor_args')
6665
    if self.vendorId is not None:
6666
      oprot.writeFieldBegin('vendorId', TType.I64, 1)
6667
      oprot.writeI64(self.vendorId)
6668
      oprot.writeFieldEnd()
6669
    oprot.writeFieldStop()
6670
    oprot.writeStructEnd()
6671
 
6672
  def validate(self):
6673
    return
6674
 
6675
 
6676
  def __repr__(self):
6677
    L = ['%s=%r' % (key, value)
6678
      for key, value in self.__dict__.iteritems()]
6679
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6680
 
6681
  def __eq__(self, other):
6682
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6683
 
6684
  def __ne__(self, other):
6685
    return not (self == other)
6686
 
6687
class getVendor_result:
6688
  """
6689
  Attributes:
6690
   - success
6691
  """
6692
 
6693
  thrift_spec = (
6694
    (0, TType.STRUCT, 'success', (Vendor, Vendor.thrift_spec), None, ), # 0
6695
  )
6696
 
6697
  def __init__(self, success=None,):
6698
    self.success = success
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
      if fid == 0:
6710
        if ftype == TType.STRUCT:
6711
          self.success = Vendor()
6712
          self.success.read(iprot)
6713
        else:
6714
          iprot.skip(ftype)
6715
      else:
6716
        iprot.skip(ftype)
6717
      iprot.readFieldEnd()
6718
    iprot.readStructEnd()
6719
 
6720
  def write(self, oprot):
6721
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6722
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6723
      return
6724
    oprot.writeStructBegin('getVendor_result')
6725
    if self.success is not None:
6726
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6727
      self.success.write(oprot)
6728
      oprot.writeFieldEnd()
6729
    oprot.writeFieldStop()
6730
    oprot.writeStructEnd()
6731
 
6732
  def validate(self):
6733
    return
6734
 
6735
 
6736
  def __repr__(self):
6737
    L = ['%s=%r' % (key, value)
6738
      for key, value in self.__dict__.iteritems()]
6739
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6740
 
6741
  def __eq__(self, other):
6742
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6743
 
6744
  def __ne__(self, other):
6745
    return not (self == other)
6746
 
6747
class getAllVendors_args:
6748
 
6749
  thrift_spec = (
6750
  )
6751
 
6752
  def read(self, iprot):
6753
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6754
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6755
      return
6756
    iprot.readStructBegin()
6757
    while True:
6758
      (fname, ftype, fid) = iprot.readFieldBegin()
6759
      if ftype == TType.STOP:
6760
        break
6761
      else:
6762
        iprot.skip(ftype)
6763
      iprot.readFieldEnd()
6764
    iprot.readStructEnd()
6765
 
6766
  def write(self, oprot):
6767
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6768
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6769
      return
6770
    oprot.writeStructBegin('getAllVendors_args')
6771
    oprot.writeFieldStop()
6772
    oprot.writeStructEnd()
6773
 
6774
  def validate(self):
6775
    return
6776
 
6777
 
6778
  def __repr__(self):
6779
    L = ['%s=%r' % (key, value)
6780
      for key, value in self.__dict__.iteritems()]
6781
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6782
 
6783
  def __eq__(self, other):
6784
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6785
 
6786
  def __ne__(self, other):
6787
    return not (self == other)
6788
 
6789
class getAllVendors_result:
6790
  """
6791
  Attributes:
6792
   - success
6793
  """
6794
 
6795
  thrift_spec = (
6796
    (0, TType.LIST, 'success', (TType.STRUCT,(Vendor, Vendor.thrift_spec)), None, ), # 0
6797
  )
6798
 
6799
  def __init__(self, success=None,):
6800
    self.success = success
6801
 
6802
  def read(self, iprot):
6803
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6804
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6805
      return
6806
    iprot.readStructBegin()
6807
    while True:
6808
      (fname, ftype, fid) = iprot.readFieldBegin()
6809
      if ftype == TType.STOP:
6810
        break
6811
      if fid == 0:
6812
        if ftype == TType.LIST:
6813
          self.success = []
8182 amar.kumar 6814
          (_etype76, _size73) = iprot.readListBegin()
6815
          for _i77 in xrange(_size73):
6816
            _elem78 = Vendor()
6817
            _elem78.read(iprot)
6818
            self.success.append(_elem78)
5944 mandeep.dh 6819
          iprot.readListEnd()
6820
        else:
6821
          iprot.skip(ftype)
6822
      else:
6823
        iprot.skip(ftype)
6824
      iprot.readFieldEnd()
6825
    iprot.readStructEnd()
6826
 
6827
  def write(self, oprot):
6828
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6829
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6830
      return
6831
    oprot.writeStructBegin('getAllVendors_result')
6832
    if self.success is not None:
6833
      oprot.writeFieldBegin('success', TType.LIST, 0)
6834
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 6835
      for iter79 in self.success:
6836
        iter79.write(oprot)
5944 mandeep.dh 6837
      oprot.writeListEnd()
6838
      oprot.writeFieldEnd()
6839
    oprot.writeFieldStop()
6840
    oprot.writeStructEnd()
6841
 
6842
  def validate(self):
6843
    return
6844
 
6845
 
6846
  def __repr__(self):
6847
    L = ['%s=%r' % (key, value)
6848
      for key, value in self.__dict__.iteritems()]
6849
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6850
 
6851
  def __eq__(self, other):
6852
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6853
 
6854
  def __ne__(self, other):
6855
    return not (self == other)
6856
 
6857
class addVendorItemMapping_args:
6858
  """
6859
  Attributes:
6860
   - key
6861
   - vendorItemMapping
6862
  """
6863
 
6864
  thrift_spec = (
6865
    None, # 0
6866
    (1, TType.STRING, 'key', None, None, ), # 1
6867
    (2, TType.STRUCT, 'vendorItemMapping', (VendorItemMapping, VendorItemMapping.thrift_spec), None, ), # 2
6868
  )
6869
 
6870
  def __init__(self, key=None, vendorItemMapping=None,):
6871
    self.key = key
6872
    self.vendorItemMapping = vendorItemMapping
6873
 
6874
  def read(self, iprot):
6875
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6876
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6877
      return
6878
    iprot.readStructBegin()
6879
    while True:
6880
      (fname, ftype, fid) = iprot.readFieldBegin()
6881
      if ftype == TType.STOP:
6882
        break
6883
      if fid == 1:
6884
        if ftype == TType.STRING:
6885
          self.key = iprot.readString();
6886
        else:
6887
          iprot.skip(ftype)
6888
      elif fid == 2:
6889
        if ftype == TType.STRUCT:
6890
          self.vendorItemMapping = VendorItemMapping()
6891
          self.vendorItemMapping.read(iprot)
6892
        else:
6893
          iprot.skip(ftype)
6894
      else:
6895
        iprot.skip(ftype)
6896
      iprot.readFieldEnd()
6897
    iprot.readStructEnd()
6898
 
6899
  def write(self, oprot):
6900
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6901
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6902
      return
6903
    oprot.writeStructBegin('addVendorItemMapping_args')
6904
    if self.key is not None:
6905
      oprot.writeFieldBegin('key', TType.STRING, 1)
6906
      oprot.writeString(self.key)
6907
      oprot.writeFieldEnd()
6908
    if self.vendorItemMapping is not None:
6909
      oprot.writeFieldBegin('vendorItemMapping', TType.STRUCT, 2)
6910
      self.vendorItemMapping.write(oprot)
6911
      oprot.writeFieldEnd()
6912
    oprot.writeFieldStop()
6913
    oprot.writeStructEnd()
6914
 
6915
  def validate(self):
6916
    return
6917
 
6918
 
6919
  def __repr__(self):
6920
    L = ['%s=%r' % (key, value)
6921
      for key, value in self.__dict__.iteritems()]
6922
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6923
 
6924
  def __eq__(self, other):
6925
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6926
 
6927
  def __ne__(self, other):
6928
    return not (self == other)
6929
 
6930
class addVendorItemMapping_result:
6931
  """
6932
  Attributes:
6933
   - cex
6934
  """
6935
 
6936
  thrift_spec = (
6937
    None, # 0
6938
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6939
  )
6940
 
6941
  def __init__(self, cex=None,):
6942
    self.cex = cex
6943
 
6944
  def read(self, iprot):
6945
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6946
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6947
      return
6948
    iprot.readStructBegin()
6949
    while True:
6950
      (fname, ftype, fid) = iprot.readFieldBegin()
6951
      if ftype == TType.STOP:
6952
        break
6953
      if fid == 1:
6954
        if ftype == TType.STRUCT:
6955
          self.cex = InventoryServiceException()
6956
          self.cex.read(iprot)
6957
        else:
6958
          iprot.skip(ftype)
6959
      else:
6960
        iprot.skip(ftype)
6961
      iprot.readFieldEnd()
6962
    iprot.readStructEnd()
6963
 
6964
  def write(self, oprot):
6965
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6966
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6967
      return
6968
    oprot.writeStructBegin('addVendorItemMapping_result')
6969
    if self.cex is not None:
6970
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6971
      self.cex.write(oprot)
6972
      oprot.writeFieldEnd()
6973
    oprot.writeFieldStop()
6974
    oprot.writeStructEnd()
6975
 
6976
  def validate(self):
6977
    return
6978
 
6979
 
6980
  def __repr__(self):
6981
    L = ['%s=%r' % (key, value)
6982
      for key, value in self.__dict__.iteritems()]
6983
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6984
 
6985
  def __eq__(self, other):
6986
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6987
 
6988
  def __ne__(self, other):
6989
    return not (self == other)
6990
 
6991
class getVendorItemMappings_args:
6992
  """
6993
  Attributes:
6994
   - itemId
6995
  """
6996
 
6997
  thrift_spec = (
6998
    None, # 0
6999
    (1, TType.I64, 'itemId', None, None, ), # 1
7000
  )
7001
 
7002
  def __init__(self, itemId=None,):
7003
    self.itemId = itemId
7004
 
7005
  def read(self, iprot):
7006
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7007
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7008
      return
7009
    iprot.readStructBegin()
7010
    while True:
7011
      (fname, ftype, fid) = iprot.readFieldBegin()
7012
      if ftype == TType.STOP:
7013
        break
7014
      if fid == 1:
7015
        if ftype == TType.I64:
7016
          self.itemId = iprot.readI64();
7017
        else:
7018
          iprot.skip(ftype)
7019
      else:
7020
        iprot.skip(ftype)
7021
      iprot.readFieldEnd()
7022
    iprot.readStructEnd()
7023
 
7024
  def write(self, oprot):
7025
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7026
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7027
      return
7028
    oprot.writeStructBegin('getVendorItemMappings_args')
7029
    if self.itemId is not None:
7030
      oprot.writeFieldBegin('itemId', TType.I64, 1)
7031
      oprot.writeI64(self.itemId)
7032
      oprot.writeFieldEnd()
7033
    oprot.writeFieldStop()
7034
    oprot.writeStructEnd()
7035
 
7036
  def validate(self):
7037
    return
7038
 
7039
 
7040
  def __repr__(self):
7041
    L = ['%s=%r' % (key, value)
7042
      for key, value in self.__dict__.iteritems()]
7043
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7044
 
7045
  def __eq__(self, other):
7046
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7047
 
7048
  def __ne__(self, other):
7049
    return not (self == other)
7050
 
7051
class getVendorItemMappings_result:
7052
  """
7053
  Attributes:
7054
   - success
7055
   - cex
7056
  """
7057
 
7058
  thrift_spec = (
7059
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemMapping, VendorItemMapping.thrift_spec)), None, ), # 0
7060
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7061
  )
7062
 
7063
  def __init__(self, success=None, cex=None,):
7064
    self.success = success
7065
    self.cex = cex
7066
 
7067
  def read(self, iprot):
7068
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7069
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7070
      return
7071
    iprot.readStructBegin()
7072
    while True:
7073
      (fname, ftype, fid) = iprot.readFieldBegin()
7074
      if ftype == TType.STOP:
7075
        break
7076
      if fid == 0:
7077
        if ftype == TType.LIST:
7078
          self.success = []
8182 amar.kumar 7079
          (_etype83, _size80) = iprot.readListBegin()
7080
          for _i84 in xrange(_size80):
7081
            _elem85 = VendorItemMapping()
7082
            _elem85.read(iprot)
7083
            self.success.append(_elem85)
5944 mandeep.dh 7084
          iprot.readListEnd()
7085
        else:
7086
          iprot.skip(ftype)
7087
      elif fid == 1:
7088
        if ftype == TType.STRUCT:
7089
          self.cex = InventoryServiceException()
7090
          self.cex.read(iprot)
7091
        else:
7092
          iprot.skip(ftype)
7093
      else:
7094
        iprot.skip(ftype)
7095
      iprot.readFieldEnd()
7096
    iprot.readStructEnd()
7097
 
7098
  def write(self, oprot):
7099
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7100
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7101
      return
7102
    oprot.writeStructBegin('getVendorItemMappings_result')
7103
    if self.success is not None:
7104
      oprot.writeFieldBegin('success', TType.LIST, 0)
7105
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7106
      for iter86 in self.success:
7107
        iter86.write(oprot)
5944 mandeep.dh 7108
      oprot.writeListEnd()
7109
      oprot.writeFieldEnd()
7110
    if self.cex is not None:
7111
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7112
      self.cex.write(oprot)
7113
      oprot.writeFieldEnd()
7114
    oprot.writeFieldStop()
7115
    oprot.writeStructEnd()
7116
 
7117
  def validate(self):
7118
    return
7119
 
7120
 
7121
  def __repr__(self):
7122
    L = ['%s=%r' % (key, value)
7123
      for key, value in self.__dict__.iteritems()]
7124
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7125
 
7126
  def __eq__(self, other):
7127
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7128
 
7129
  def __ne__(self, other):
7130
    return not (self == other)
7131
 
7132
class getPendingOrdersInventory_args:
7133
  """
7134
  Attributes:
7135
   - vendorid
7136
  """
7137
 
7138
  thrift_spec = (
7139
    None, # 0
7140
    (1, TType.I64, 'vendorid', None, None, ), # 1
7141
  )
7142
 
7143
  def __init__(self, vendorid=None,):
7144
    self.vendorid = vendorid
7145
 
7146
  def read(self, iprot):
7147
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7148
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7149
      return
7150
    iprot.readStructBegin()
7151
    while True:
7152
      (fname, ftype, fid) = iprot.readFieldBegin()
7153
      if ftype == TType.STOP:
7154
        break
7155
      if fid == 1:
7156
        if ftype == TType.I64:
7157
          self.vendorid = iprot.readI64();
7158
        else:
7159
          iprot.skip(ftype)
7160
      else:
7161
        iprot.skip(ftype)
7162
      iprot.readFieldEnd()
7163
    iprot.readStructEnd()
7164
 
7165
  def write(self, oprot):
7166
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7167
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7168
      return
7169
    oprot.writeStructBegin('getPendingOrdersInventory_args')
7170
    if self.vendorid is not None:
7171
      oprot.writeFieldBegin('vendorid', TType.I64, 1)
7172
      oprot.writeI64(self.vendorid)
7173
      oprot.writeFieldEnd()
7174
    oprot.writeFieldStop()
7175
    oprot.writeStructEnd()
7176
 
7177
  def validate(self):
7178
    return
7179
 
7180
 
7181
  def __repr__(self):
7182
    L = ['%s=%r' % (key, value)
7183
      for key, value in self.__dict__.iteritems()]
7184
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7185
 
7186
  def __eq__(self, other):
7187
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7188
 
7189
  def __ne__(self, other):
7190
    return not (self == other)
7191
 
7192
class getPendingOrdersInventory_result:
7193
  """
7194
  Attributes:
7195
   - success
7196
  """
7197
 
7198
  thrift_spec = (
7199
    (0, TType.LIST, 'success', (TType.STRUCT,(AvailableAndReservedStock, AvailableAndReservedStock.thrift_spec)), None, ), # 0
7200
  )
7201
 
7202
  def __init__(self, success=None,):
7203
    self.success = success
7204
 
7205
  def read(self, iprot):
7206
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7207
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7208
      return
7209
    iprot.readStructBegin()
7210
    while True:
7211
      (fname, ftype, fid) = iprot.readFieldBegin()
7212
      if ftype == TType.STOP:
7213
        break
7214
      if fid == 0:
7215
        if ftype == TType.LIST:
7216
          self.success = []
8182 amar.kumar 7217
          (_etype90, _size87) = iprot.readListBegin()
7218
          for _i91 in xrange(_size87):
7219
            _elem92 = AvailableAndReservedStock()
7220
            _elem92.read(iprot)
7221
            self.success.append(_elem92)
5944 mandeep.dh 7222
          iprot.readListEnd()
7223
        else:
7224
          iprot.skip(ftype)
7225
      else:
7226
        iprot.skip(ftype)
7227
      iprot.readFieldEnd()
7228
    iprot.readStructEnd()
7229
 
7230
  def write(self, oprot):
7231
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7232
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7233
      return
7234
    oprot.writeStructBegin('getPendingOrdersInventory_result')
7235
    if self.success is not None:
7236
      oprot.writeFieldBegin('success', TType.LIST, 0)
7237
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7238
      for iter93 in self.success:
7239
        iter93.write(oprot)
5944 mandeep.dh 7240
      oprot.writeListEnd()
7241
      oprot.writeFieldEnd()
7242
    oprot.writeFieldStop()
7243
    oprot.writeStructEnd()
7244
 
7245
  def validate(self):
7246
    return
7247
 
7248
 
7249
  def __repr__(self):
7250
    L = ['%s=%r' % (key, value)
7251
      for key, value in self.__dict__.iteritems()]
7252
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7253
 
7254
  def __eq__(self, other):
7255
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7256
 
7257
  def __ne__(self, other):
7258
    return not (self == other)
7259
 
7260
class getWarehouses_args:
7261
  """
7262
  Attributes:
7263
   - warehouseType
7264
   - inventoryType
7265
   - vendorId
7266
   - billingWarehouseId
7267
   - shippingWarehouseId
7268
  """
7269
 
7270
  thrift_spec = (
7271
    None, # 0
7272
    (1, TType.I32, 'warehouseType', None, None, ), # 1
7273
    (2, TType.I32, 'inventoryType', None, None, ), # 2
7274
    (3, TType.I64, 'vendorId', None, None, ), # 3
7275
    (4, TType.I64, 'billingWarehouseId', None, None, ), # 4
7276
    (5, TType.I64, 'shippingWarehouseId', None, None, ), # 5
7277
  )
7278
 
7279
  def __init__(self, warehouseType=None, inventoryType=None, vendorId=None, billingWarehouseId=None, shippingWarehouseId=None,):
7280
    self.warehouseType = warehouseType
7281
    self.inventoryType = inventoryType
7282
    self.vendorId = vendorId
7283
    self.billingWarehouseId = billingWarehouseId
7284
    self.shippingWarehouseId = shippingWarehouseId
7285
 
7286
  def read(self, iprot):
7287
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7288
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7289
      return
7290
    iprot.readStructBegin()
7291
    while True:
7292
      (fname, ftype, fid) = iprot.readFieldBegin()
7293
      if ftype == TType.STOP:
7294
        break
7295
      if fid == 1:
7296
        if ftype == TType.I32:
7297
          self.warehouseType = iprot.readI32();
7298
        else:
7299
          iprot.skip(ftype)
7300
      elif fid == 2:
7301
        if ftype == TType.I32:
7302
          self.inventoryType = iprot.readI32();
7303
        else:
7304
          iprot.skip(ftype)
7305
      elif fid == 3:
7306
        if ftype == TType.I64:
7307
          self.vendorId = iprot.readI64();
7308
        else:
7309
          iprot.skip(ftype)
7310
      elif fid == 4:
7311
        if ftype == TType.I64:
7312
          self.billingWarehouseId = iprot.readI64();
7313
        else:
7314
          iprot.skip(ftype)
7315
      elif fid == 5:
7316
        if ftype == TType.I64:
7317
          self.shippingWarehouseId = iprot.readI64();
7318
        else:
7319
          iprot.skip(ftype)
7320
      else:
7321
        iprot.skip(ftype)
7322
      iprot.readFieldEnd()
7323
    iprot.readStructEnd()
7324
 
7325
  def write(self, oprot):
7326
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7327
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7328
      return
7329
    oprot.writeStructBegin('getWarehouses_args')
7330
    if self.warehouseType is not None:
7331
      oprot.writeFieldBegin('warehouseType', TType.I32, 1)
7332
      oprot.writeI32(self.warehouseType)
7333
      oprot.writeFieldEnd()
7334
    if self.inventoryType is not None:
7335
      oprot.writeFieldBegin('inventoryType', TType.I32, 2)
7336
      oprot.writeI32(self.inventoryType)
7337
      oprot.writeFieldEnd()
7338
    if self.vendorId is not None:
7339
      oprot.writeFieldBegin('vendorId', TType.I64, 3)
7340
      oprot.writeI64(self.vendorId)
7341
      oprot.writeFieldEnd()
7342
    if self.billingWarehouseId is not None:
7343
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 4)
7344
      oprot.writeI64(self.billingWarehouseId)
7345
      oprot.writeFieldEnd()
7346
    if self.shippingWarehouseId is not None:
7347
      oprot.writeFieldBegin('shippingWarehouseId', TType.I64, 5)
7348
      oprot.writeI64(self.shippingWarehouseId)
7349
      oprot.writeFieldEnd()
7350
    oprot.writeFieldStop()
7351
    oprot.writeStructEnd()
7352
 
7353
  def validate(self):
7354
    return
7355
 
7356
 
7357
  def __repr__(self):
7358
    L = ['%s=%r' % (key, value)
7359
      for key, value in self.__dict__.iteritems()]
7360
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7361
 
7362
  def __eq__(self, other):
7363
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7364
 
7365
  def __ne__(self, other):
7366
    return not (self == other)
7367
 
7368
class getWarehouses_result:
7369
  """
7370
  Attributes:
7371
   - success
7372
  """
7373
 
7374
  thrift_spec = (
7375
    (0, TType.LIST, 'success', (TType.STRUCT,(Warehouse, Warehouse.thrift_spec)), None, ), # 0
7376
  )
7377
 
7378
  def __init__(self, success=None,):
7379
    self.success = success
7380
 
7381
  def read(self, iprot):
7382
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7383
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7384
      return
7385
    iprot.readStructBegin()
7386
    while True:
7387
      (fname, ftype, fid) = iprot.readFieldBegin()
7388
      if ftype == TType.STOP:
7389
        break
7390
      if fid == 0:
7391
        if ftype == TType.LIST:
7392
          self.success = []
8182 amar.kumar 7393
          (_etype97, _size94) = iprot.readListBegin()
7394
          for _i98 in xrange(_size94):
7395
            _elem99 = Warehouse()
7396
            _elem99.read(iprot)
7397
            self.success.append(_elem99)
5944 mandeep.dh 7398
          iprot.readListEnd()
7399
        else:
7400
          iprot.skip(ftype)
7401
      else:
7402
        iprot.skip(ftype)
7403
      iprot.readFieldEnd()
7404
    iprot.readStructEnd()
7405
 
7406
  def write(self, oprot):
7407
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7408
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7409
      return
7410
    oprot.writeStructBegin('getWarehouses_result')
7411
    if self.success is not None:
7412
      oprot.writeFieldBegin('success', TType.LIST, 0)
7413
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7414
      for iter100 in self.success:
7415
        iter100.write(oprot)
5944 mandeep.dh 7416
      oprot.writeListEnd()
7417
      oprot.writeFieldEnd()
7418
    oprot.writeFieldStop()
7419
    oprot.writeStructEnd()
7420
 
7421
  def validate(self):
7422
    return
7423
 
7424
 
7425
  def __repr__(self):
7426
    L = ['%s=%r' % (key, value)
7427
      for key, value in self.__dict__.iteritems()]
7428
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7429
 
7430
  def __eq__(self, other):
7431
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7432
 
7433
  def __ne__(self, other):
7434
    return not (self == other)
7435
 
7436
class resetAvailability_args:
7437
  """
7438
  Attributes:
7439
   - itemKey
7440
   - vendorId
7441
   - quantity
7442
   - warehouseId
7443
  """
7444
 
7445
  thrift_spec = (
7446
    None, # 0
7447
    (1, TType.STRING, 'itemKey', None, None, ), # 1
7448
    (2, TType.I64, 'vendorId', None, None, ), # 2
7449
    (3, TType.I64, 'quantity', None, None, ), # 3
7450
    (4, TType.I64, 'warehouseId', None, None, ), # 4
7451
  )
7452
 
7453
  def __init__(self, itemKey=None, vendorId=None, quantity=None, warehouseId=None,):
7454
    self.itemKey = itemKey
7455
    self.vendorId = vendorId
7456
    self.quantity = quantity
7457
    self.warehouseId = warehouseId
7458
 
7459
  def read(self, iprot):
7460
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7461
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7462
      return
7463
    iprot.readStructBegin()
7464
    while True:
7465
      (fname, ftype, fid) = iprot.readFieldBegin()
7466
      if ftype == TType.STOP:
7467
        break
7468
      if fid == 1:
7469
        if ftype == TType.STRING:
7470
          self.itemKey = iprot.readString();
7471
        else:
7472
          iprot.skip(ftype)
7473
      elif fid == 2:
7474
        if ftype == TType.I64:
7475
          self.vendorId = iprot.readI64();
7476
        else:
7477
          iprot.skip(ftype)
7478
      elif fid == 3:
7479
        if ftype == TType.I64:
7480
          self.quantity = iprot.readI64();
7481
        else:
7482
          iprot.skip(ftype)
7483
      elif fid == 4:
7484
        if ftype == TType.I64:
7485
          self.warehouseId = iprot.readI64();
7486
        else:
7487
          iprot.skip(ftype)
7488
      else:
7489
        iprot.skip(ftype)
7490
      iprot.readFieldEnd()
7491
    iprot.readStructEnd()
7492
 
7493
  def write(self, oprot):
7494
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7495
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7496
      return
7497
    oprot.writeStructBegin('resetAvailability_args')
7498
    if self.itemKey is not None:
7499
      oprot.writeFieldBegin('itemKey', TType.STRING, 1)
7500
      oprot.writeString(self.itemKey)
7501
      oprot.writeFieldEnd()
7502
    if self.vendorId is not None:
7503
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
7504
      oprot.writeI64(self.vendorId)
7505
      oprot.writeFieldEnd()
7506
    if self.quantity is not None:
7507
      oprot.writeFieldBegin('quantity', TType.I64, 3)
7508
      oprot.writeI64(self.quantity)
7509
      oprot.writeFieldEnd()
7510
    if self.warehouseId is not None:
7511
      oprot.writeFieldBegin('warehouseId', TType.I64, 4)
7512
      oprot.writeI64(self.warehouseId)
7513
      oprot.writeFieldEnd()
7514
    oprot.writeFieldStop()
7515
    oprot.writeStructEnd()
7516
 
7517
  def validate(self):
7518
    return
7519
 
7520
 
7521
  def __repr__(self):
7522
    L = ['%s=%r' % (key, value)
7523
      for key, value in self.__dict__.iteritems()]
7524
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7525
 
7526
  def __eq__(self, other):
7527
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7528
 
7529
  def __ne__(self, other):
7530
    return not (self == other)
7531
 
7532
class resetAvailability_result:
7533
  """
7534
  Attributes:
7535
   - cex
7536
  """
7537
 
7538
  thrift_spec = (
7539
    None, # 0
7540
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7541
  )
7542
 
7543
  def __init__(self, cex=None,):
7544
    self.cex = cex
7545
 
7546
  def read(self, iprot):
7547
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7548
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7549
      return
7550
    iprot.readStructBegin()
7551
    while True:
7552
      (fname, ftype, fid) = iprot.readFieldBegin()
7553
      if ftype == TType.STOP:
7554
        break
7555
      if fid == 1:
7556
        if ftype == TType.STRUCT:
7557
          self.cex = InventoryServiceException()
7558
          self.cex.read(iprot)
7559
        else:
7560
          iprot.skip(ftype)
7561
      else:
7562
        iprot.skip(ftype)
7563
      iprot.readFieldEnd()
7564
    iprot.readStructEnd()
7565
 
7566
  def write(self, oprot):
7567
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7568
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7569
      return
7570
    oprot.writeStructBegin('resetAvailability_result')
7571
    if self.cex is not None:
7572
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7573
      self.cex.write(oprot)
7574
      oprot.writeFieldEnd()
7575
    oprot.writeFieldStop()
7576
    oprot.writeStructEnd()
7577
 
7578
  def validate(self):
7579
    return
7580
 
7581
 
7582
  def __repr__(self):
7583
    L = ['%s=%r' % (key, value)
7584
      for key, value in self.__dict__.iteritems()]
7585
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7586
 
7587
  def __eq__(self, other):
7588
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7589
 
7590
  def __ne__(self, other):
7591
    return not (self == other)
7592
 
7593
class resetAvailabilityForWarehouse_args:
7594
  """
7595
  Attributes:
7596
   - warehouseId
7597
  """
7598
 
7599
  thrift_spec = (
7600
    None, # 0
7601
    (1, TType.I64, 'warehouseId', None, None, ), # 1
7602
  )
7603
 
7604
  def __init__(self, warehouseId=None,):
7605
    self.warehouseId = warehouseId
7606
 
7607
  def read(self, iprot):
7608
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7609
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7610
      return
7611
    iprot.readStructBegin()
7612
    while True:
7613
      (fname, ftype, fid) = iprot.readFieldBegin()
7614
      if ftype == TType.STOP:
7615
        break
7616
      if fid == 1:
7617
        if ftype == TType.I64:
7618
          self.warehouseId = iprot.readI64();
7619
        else:
7620
          iprot.skip(ftype)
7621
      else:
7622
        iprot.skip(ftype)
7623
      iprot.readFieldEnd()
7624
    iprot.readStructEnd()
7625
 
7626
  def write(self, oprot):
7627
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7628
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7629
      return
7630
    oprot.writeStructBegin('resetAvailabilityForWarehouse_args')
7631
    if self.warehouseId is not None:
7632
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
7633
      oprot.writeI64(self.warehouseId)
7634
      oprot.writeFieldEnd()
7635
    oprot.writeFieldStop()
7636
    oprot.writeStructEnd()
7637
 
7638
  def validate(self):
7639
    return
7640
 
7641
 
7642
  def __repr__(self):
7643
    L = ['%s=%r' % (key, value)
7644
      for key, value in self.__dict__.iteritems()]
7645
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7646
 
7647
  def __eq__(self, other):
7648
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7649
 
7650
  def __ne__(self, other):
7651
    return not (self == other)
7652
 
7653
class resetAvailabilityForWarehouse_result:
7654
  """
7655
  Attributes:
7656
   - cex
7657
  """
7658
 
7659
  thrift_spec = (
7660
    None, # 0
7661
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7662
  )
7663
 
7664
  def __init__(self, cex=None,):
7665
    self.cex = cex
7666
 
7667
  def read(self, iprot):
7668
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7669
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7670
      return
7671
    iprot.readStructBegin()
7672
    while True:
7673
      (fname, ftype, fid) = iprot.readFieldBegin()
7674
      if ftype == TType.STOP:
7675
        break
7676
      if fid == 1:
7677
        if ftype == TType.STRUCT:
7678
          self.cex = InventoryServiceException()
7679
          self.cex.read(iprot)
7680
        else:
7681
          iprot.skip(ftype)
7682
      else:
7683
        iprot.skip(ftype)
7684
      iprot.readFieldEnd()
7685
    iprot.readStructEnd()
7686
 
7687
  def write(self, oprot):
7688
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7689
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7690
      return
7691
    oprot.writeStructBegin('resetAvailabilityForWarehouse_result')
7692
    if self.cex is not None:
7693
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7694
      self.cex.write(oprot)
7695
      oprot.writeFieldEnd()
7696
    oprot.writeFieldStop()
7697
    oprot.writeStructEnd()
7698
 
7699
  def validate(self):
7700
    return
7701
 
7702
 
7703
  def __repr__(self):
7704
    L = ['%s=%r' % (key, value)
7705
      for key, value in self.__dict__.iteritems()]
7706
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7707
 
7708
  def __eq__(self, other):
7709
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7710
 
7711
  def __ne__(self, other):
7712
    return not (self == other)
7713
 
7714
class getItemKeysToBeProcessed_args:
7715
  """
7716
  Attributes:
7717
   - warehouseId
7718
  """
7719
 
7720
  thrift_spec = (
7721
    None, # 0
7722
    (1, TType.I64, 'warehouseId', None, None, ), # 1
7723
  )
7724
 
7725
  def __init__(self, warehouseId=None,):
7726
    self.warehouseId = warehouseId
7727
 
7728
  def read(self, iprot):
7729
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7730
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7731
      return
7732
    iprot.readStructBegin()
7733
    while True:
7734
      (fname, ftype, fid) = iprot.readFieldBegin()
7735
      if ftype == TType.STOP:
7736
        break
7737
      if fid == 1:
7738
        if ftype == TType.I64:
7739
          self.warehouseId = iprot.readI64();
7740
        else:
7741
          iprot.skip(ftype)
7742
      else:
7743
        iprot.skip(ftype)
7744
      iprot.readFieldEnd()
7745
    iprot.readStructEnd()
7746
 
7747
  def write(self, oprot):
7748
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7749
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7750
      return
7751
    oprot.writeStructBegin('getItemKeysToBeProcessed_args')
7752
    if self.warehouseId is not None:
7753
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
7754
      oprot.writeI64(self.warehouseId)
7755
      oprot.writeFieldEnd()
7756
    oprot.writeFieldStop()
7757
    oprot.writeStructEnd()
7758
 
7759
  def validate(self):
7760
    return
7761
 
7762
 
7763
  def __repr__(self):
7764
    L = ['%s=%r' % (key, value)
7765
      for key, value in self.__dict__.iteritems()]
7766
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7767
 
7768
  def __eq__(self, other):
7769
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7770
 
7771
  def __ne__(self, other):
7772
    return not (self == other)
7773
 
7774
class getItemKeysToBeProcessed_result:
7775
  """
7776
  Attributes:
7777
   - success
7778
  """
7779
 
7780
  thrift_spec = (
7781
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
7782
  )
7783
 
7784
  def __init__(self, success=None,):
7785
    self.success = success
7786
 
7787
  def read(self, iprot):
7788
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7789
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7790
      return
7791
    iprot.readStructBegin()
7792
    while True:
7793
      (fname, ftype, fid) = iprot.readFieldBegin()
7794
      if ftype == TType.STOP:
7795
        break
7796
      if fid == 0:
7797
        if ftype == TType.LIST:
7798
          self.success = []
8182 amar.kumar 7799
          (_etype104, _size101) = iprot.readListBegin()
7800
          for _i105 in xrange(_size101):
7801
            _elem106 = iprot.readString();
7802
            self.success.append(_elem106)
5944 mandeep.dh 7803
          iprot.readListEnd()
7804
        else:
7805
          iprot.skip(ftype)
7806
      else:
7807
        iprot.skip(ftype)
7808
      iprot.readFieldEnd()
7809
    iprot.readStructEnd()
7810
 
7811
  def write(self, oprot):
7812
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7813
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7814
      return
7815
    oprot.writeStructBegin('getItemKeysToBeProcessed_result')
7816
    if self.success is not None:
7817
      oprot.writeFieldBegin('success', TType.LIST, 0)
7818
      oprot.writeListBegin(TType.STRING, len(self.success))
8182 amar.kumar 7819
      for iter107 in self.success:
7820
        oprot.writeString(iter107)
5944 mandeep.dh 7821
      oprot.writeListEnd()
7822
      oprot.writeFieldEnd()
7823
    oprot.writeFieldStop()
7824
    oprot.writeStructEnd()
7825
 
7826
  def validate(self):
7827
    return
7828
 
7829
 
7830
  def __repr__(self):
7831
    L = ['%s=%r' % (key, value)
7832
      for key, value in self.__dict__.iteritems()]
7833
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7834
 
7835
  def __eq__(self, other):
7836
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7837
 
7838
  def __ne__(self, other):
7839
    return not (self == other)
7840
 
7841
class markMissedInventoryUpdatesAsProcessed_args:
7842
  """
7843
  Attributes:
7844
   - itemKey
7845
   - warehouseId
7846
  """
7847
 
7848
  thrift_spec = (
7849
    None, # 0
7850
    (1, TType.STRING, 'itemKey', None, None, ), # 1
7851
    (2, TType.I64, 'warehouseId', None, None, ), # 2
7852
  )
7853
 
7854
  def __init__(self, itemKey=None, warehouseId=None,):
7855
    self.itemKey = itemKey
7856
    self.warehouseId = warehouseId
7857
 
7858
  def read(self, iprot):
7859
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7860
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7861
      return
7862
    iprot.readStructBegin()
7863
    while True:
7864
      (fname, ftype, fid) = iprot.readFieldBegin()
7865
      if ftype == TType.STOP:
7866
        break
7867
      if fid == 1:
7868
        if ftype == TType.STRING:
7869
          self.itemKey = iprot.readString();
7870
        else:
7871
          iprot.skip(ftype)
7872
      elif fid == 2:
7873
        if ftype == TType.I64:
7874
          self.warehouseId = iprot.readI64();
7875
        else:
7876
          iprot.skip(ftype)
7877
      else:
7878
        iprot.skip(ftype)
7879
      iprot.readFieldEnd()
7880
    iprot.readStructEnd()
7881
 
7882
  def write(self, oprot):
7883
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7884
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7885
      return
7886
    oprot.writeStructBegin('markMissedInventoryUpdatesAsProcessed_args')
7887
    if self.itemKey is not None:
7888
      oprot.writeFieldBegin('itemKey', TType.STRING, 1)
7889
      oprot.writeString(self.itemKey)
7890
      oprot.writeFieldEnd()
7891
    if self.warehouseId is not None:
7892
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
7893
      oprot.writeI64(self.warehouseId)
7894
      oprot.writeFieldEnd()
7895
    oprot.writeFieldStop()
7896
    oprot.writeStructEnd()
7897
 
7898
  def validate(self):
7899
    return
7900
 
7901
 
7902
  def __repr__(self):
7903
    L = ['%s=%r' % (key, value)
7904
      for key, value in self.__dict__.iteritems()]
7905
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7906
 
7907
  def __eq__(self, other):
7908
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7909
 
7910
  def __ne__(self, other):
7911
    return not (self == other)
7912
 
7913
class markMissedInventoryUpdatesAsProcessed_result:
7914
 
7915
  thrift_spec = (
7916
  )
7917
 
7918
  def read(self, iprot):
7919
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7920
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7921
      return
7922
    iprot.readStructBegin()
7923
    while True:
7924
      (fname, ftype, fid) = iprot.readFieldBegin()
7925
      if ftype == TType.STOP:
7926
        break
7927
      else:
7928
        iprot.skip(ftype)
7929
      iprot.readFieldEnd()
7930
    iprot.readStructEnd()
7931
 
7932
  def write(self, oprot):
7933
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7934
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7935
      return
7936
    oprot.writeStructBegin('markMissedInventoryUpdatesAsProcessed_result')
7937
    oprot.writeFieldStop()
7938
    oprot.writeStructEnd()
7939
 
7940
  def validate(self):
7941
    return
7942
 
7943
 
7944
  def __repr__(self):
7945
    L = ['%s=%r' % (key, value)
7946
      for key, value in self.__dict__.iteritems()]
7947
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7948
 
7949
  def __eq__(self, other):
7950
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7951
 
7952
  def __ne__(self, other):
7953
    return not (self == other)
7954
 
7955
class getIgnoredItemKeys_args:
7956
 
7957
  thrift_spec = (
7958
  )
7959
 
7960
  def read(self, iprot):
7961
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7962
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7963
      return
7964
    iprot.readStructBegin()
7965
    while True:
7966
      (fname, ftype, fid) = iprot.readFieldBegin()
7967
      if ftype == TType.STOP:
7968
        break
7969
      else:
7970
        iprot.skip(ftype)
7971
      iprot.readFieldEnd()
7972
    iprot.readStructEnd()
7973
 
7974
  def write(self, oprot):
7975
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7976
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7977
      return
7978
    oprot.writeStructBegin('getIgnoredItemKeys_args')
7979
    oprot.writeFieldStop()
7980
    oprot.writeStructEnd()
7981
 
7982
  def validate(self):
7983
    return
7984
 
7985
 
7986
  def __repr__(self):
7987
    L = ['%s=%r' % (key, value)
7988
      for key, value in self.__dict__.iteritems()]
7989
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7990
 
7991
  def __eq__(self, other):
7992
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7993
 
7994
  def __ne__(self, other):
7995
    return not (self == other)
7996
 
7997
class getIgnoredItemKeys_result:
7998
  """
7999
  Attributes:
8000
   - success
8001
  """
8002
 
8003
  thrift_spec = (
8004
    (0, TType.MAP, 'success', (TType.STRING,None,TType.MAP,(TType.I64,None,TType.I64,None)), None, ), # 0
8005
  )
8006
 
8007
  def __init__(self, success=None,):
8008
    self.success = success
8009
 
8010
  def read(self, iprot):
8011
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8012
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8013
      return
8014
    iprot.readStructBegin()
8015
    while True:
8016
      (fname, ftype, fid) = iprot.readFieldBegin()
8017
      if ftype == TType.STOP:
8018
        break
8019
      if fid == 0:
8020
        if ftype == TType.MAP:
8021
          self.success = {}
8182 amar.kumar 8022
          (_ktype109, _vtype110, _size108 ) = iprot.readMapBegin() 
8023
          for _i112 in xrange(_size108):
8024
            _key113 = iprot.readString();
8025
            _val114 = {}
8026
            (_ktype116, _vtype117, _size115 ) = iprot.readMapBegin() 
8027
            for _i119 in xrange(_size115):
8028
              _key120 = iprot.readI64();
8029
              _val121 = iprot.readI64();
8030
              _val114[_key120] = _val121
5944 mandeep.dh 8031
            iprot.readMapEnd()
8182 amar.kumar 8032
            self.success[_key113] = _val114
5944 mandeep.dh 8033
          iprot.readMapEnd()
8034
        else:
8035
          iprot.skip(ftype)
8036
      else:
8037
        iprot.skip(ftype)
8038
      iprot.readFieldEnd()
8039
    iprot.readStructEnd()
8040
 
8041
  def write(self, oprot):
8042
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8043
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8044
      return
8045
    oprot.writeStructBegin('getIgnoredItemKeys_result')
8046
    if self.success is not None:
8047
      oprot.writeFieldBegin('success', TType.MAP, 0)
8048
      oprot.writeMapBegin(TType.STRING, TType.MAP, len(self.success))
8182 amar.kumar 8049
      for kiter122,viter123 in self.success.items():
8050
        oprot.writeString(kiter122)
8051
        oprot.writeMapBegin(TType.I64, TType.I64, len(viter123))
8052
        for kiter124,viter125 in viter123.items():
8053
          oprot.writeI64(kiter124)
8054
          oprot.writeI64(viter125)
5944 mandeep.dh 8055
        oprot.writeMapEnd()
8056
      oprot.writeMapEnd()
8057
      oprot.writeFieldEnd()
8058
    oprot.writeFieldStop()
8059
    oprot.writeStructEnd()
8060
 
8061
  def validate(self):
8062
    return
8063
 
8064
 
8065
  def __repr__(self):
8066
    L = ['%s=%r' % (key, value)
8067
      for key, value in self.__dict__.iteritems()]
8068
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8069
 
8070
  def __eq__(self, other):
8071
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8072
 
8073
  def __ne__(self, other):
8074
    return not (self == other)
8075
 
8076
class addBadInventory_args:
8077
  """
8078
  Attributes:
8079
   - itemId
8080
   - warehouseId
8081
   - quantity
8082
  """
8083
 
8084
  thrift_spec = (
8085
    None, # 0
8086
    (1, TType.I64, 'itemId', None, None, ), # 1
8087
    (2, TType.I64, 'warehouseId', None, None, ), # 2
8088
    (3, TType.I64, 'quantity', None, None, ), # 3
8089
  )
8090
 
8091
  def __init__(self, itemId=None, warehouseId=None, quantity=None,):
8092
    self.itemId = itemId
8093
    self.warehouseId = warehouseId
8094
    self.quantity = quantity
8095
 
8096
  def read(self, iprot):
8097
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8098
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8099
      return
8100
    iprot.readStructBegin()
8101
    while True:
8102
      (fname, ftype, fid) = iprot.readFieldBegin()
8103
      if ftype == TType.STOP:
8104
        break
8105
      if fid == 1:
8106
        if ftype == TType.I64:
8107
          self.itemId = iprot.readI64();
8108
        else:
8109
          iprot.skip(ftype)
8110
      elif fid == 2:
8111
        if ftype == TType.I64:
8112
          self.warehouseId = iprot.readI64();
8113
        else:
8114
          iprot.skip(ftype)
8115
      elif fid == 3:
8116
        if ftype == TType.I64:
8117
          self.quantity = iprot.readI64();
8118
        else:
8119
          iprot.skip(ftype)
8120
      else:
8121
        iprot.skip(ftype)
8122
      iprot.readFieldEnd()
8123
    iprot.readStructEnd()
8124
 
8125
  def write(self, oprot):
8126
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8127
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8128
      return
8129
    oprot.writeStructBegin('addBadInventory_args')
8130
    if self.itemId is not None:
8131
      oprot.writeFieldBegin('itemId', TType.I64, 1)
8132
      oprot.writeI64(self.itemId)
8133
      oprot.writeFieldEnd()
8134
    if self.warehouseId is not None:
8135
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
8136
      oprot.writeI64(self.warehouseId)
8137
      oprot.writeFieldEnd()
8138
    if self.quantity is not None:
8139
      oprot.writeFieldBegin('quantity', TType.I64, 3)
8140
      oprot.writeI64(self.quantity)
8141
      oprot.writeFieldEnd()
8142
    oprot.writeFieldStop()
8143
    oprot.writeStructEnd()
8144
 
8145
  def validate(self):
8146
    return
8147
 
8148
 
8149
  def __repr__(self):
8150
    L = ['%s=%r' % (key, value)
8151
      for key, value in self.__dict__.iteritems()]
8152
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8153
 
8154
  def __eq__(self, other):
8155
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8156
 
8157
  def __ne__(self, other):
8158
    return not (self == other)
8159
 
8160
class addBadInventory_result:
8161
  """
8162
  Attributes:
8163
   - cex
8164
  """
8165
 
8166
  thrift_spec = (
8167
    None, # 0
8168
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
8169
  )
8170
 
8171
  def __init__(self, cex=None,):
8172
    self.cex = cex
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
      if fid == 1:
8184
        if ftype == TType.STRUCT:
8185
          self.cex = InventoryServiceException()
8186
          self.cex.read(iprot)
8187
        else:
8188
          iprot.skip(ftype)
8189
      else:
8190
        iprot.skip(ftype)
8191
      iprot.readFieldEnd()
8192
    iprot.readStructEnd()
8193
 
8194
  def write(self, oprot):
8195
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8196
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8197
      return
8198
    oprot.writeStructBegin('addBadInventory_result')
8199
    if self.cex is not None:
8200
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8201
      self.cex.write(oprot)
8202
      oprot.writeFieldEnd()
8203
    oprot.writeFieldStop()
8204
    oprot.writeStructEnd()
8205
 
8206
  def validate(self):
8207
    return
8208
 
8209
 
8210
  def __repr__(self):
8211
    L = ['%s=%r' % (key, value)
8212
      for key, value in self.__dict__.iteritems()]
8213
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8214
 
8215
  def __eq__(self, other):
8216
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8217
 
8218
  def __ne__(self, other):
8219
    return not (self == other)
8220
 
8221
class getShippingLocations_args:
8222
 
8223
  thrift_spec = (
8224
  )
8225
 
8226
  def read(self, iprot):
8227
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8228
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8229
      return
8230
    iprot.readStructBegin()
8231
    while True:
8232
      (fname, ftype, fid) = iprot.readFieldBegin()
8233
      if ftype == TType.STOP:
8234
        break
8235
      else:
8236
        iprot.skip(ftype)
8237
      iprot.readFieldEnd()
8238
    iprot.readStructEnd()
8239
 
8240
  def write(self, oprot):
8241
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8242
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8243
      return
8244
    oprot.writeStructBegin('getShippingLocations_args')
8245
    oprot.writeFieldStop()
8246
    oprot.writeStructEnd()
8247
 
8248
  def validate(self):
8249
    return
8250
 
8251
 
8252
  def __repr__(self):
8253
    L = ['%s=%r' % (key, value)
8254
      for key, value in self.__dict__.iteritems()]
8255
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8256
 
8257
  def __eq__(self, other):
8258
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8259
 
8260
  def __ne__(self, other):
8261
    return not (self == other)
8262
 
8263
class getShippingLocations_result:
8264
  """
8265
  Attributes:
8266
   - success
8267
  """
8268
 
8269
  thrift_spec = (
8270
    (0, TType.LIST, 'success', (TType.STRUCT,(Warehouse, Warehouse.thrift_spec)), None, ), # 0
8271
  )
8272
 
8273
  def __init__(self, success=None,):
8274
    self.success = success
8275
 
8276
  def read(self, iprot):
8277
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8278
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8279
      return
8280
    iprot.readStructBegin()
8281
    while True:
8282
      (fname, ftype, fid) = iprot.readFieldBegin()
8283
      if ftype == TType.STOP:
8284
        break
8285
      if fid == 0:
8286
        if ftype == TType.LIST:
8287
          self.success = []
8182 amar.kumar 8288
          (_etype129, _size126) = iprot.readListBegin()
8289
          for _i130 in xrange(_size126):
8290
            _elem131 = Warehouse()
8291
            _elem131.read(iprot)
8292
            self.success.append(_elem131)
5944 mandeep.dh 8293
          iprot.readListEnd()
8294
        else:
8295
          iprot.skip(ftype)
8296
      else:
8297
        iprot.skip(ftype)
8298
      iprot.readFieldEnd()
8299
    iprot.readStructEnd()
8300
 
8301
  def write(self, oprot):
8302
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8303
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8304
      return
8305
    oprot.writeStructBegin('getShippingLocations_result')
8306
    if self.success is not None:
8307
      oprot.writeFieldBegin('success', TType.LIST, 0)
8308
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 8309
      for iter132 in self.success:
8310
        iter132.write(oprot)
5944 mandeep.dh 8311
      oprot.writeListEnd()
8312
      oprot.writeFieldEnd()
8313
    oprot.writeFieldStop()
8314
    oprot.writeStructEnd()
8315
 
8316
  def validate(self):
8317
    return
8318
 
8319
 
8320
  def __repr__(self):
8321
    L = ['%s=%r' % (key, value)
8322
      for key, value in self.__dict__.iteritems()]
8323
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8324
 
8325
  def __eq__(self, other):
8326
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8327
 
8328
  def __ne__(self, other):
8329
    return not (self == other)
8330
 
8331
class getAllVendorItemMappings_args:
8332
 
8333
  thrift_spec = (
8334
  )
8335
 
8336
  def read(self, iprot):
8337
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8338
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8339
      return
8340
    iprot.readStructBegin()
8341
    while True:
8342
      (fname, ftype, fid) = iprot.readFieldBegin()
8343
      if ftype == TType.STOP:
8344
        break
8345
      else:
8346
        iprot.skip(ftype)
8347
      iprot.readFieldEnd()
8348
    iprot.readStructEnd()
8349
 
8350
  def write(self, oprot):
8351
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8352
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8353
      return
8354
    oprot.writeStructBegin('getAllVendorItemMappings_args')
8355
    oprot.writeFieldStop()
8356
    oprot.writeStructEnd()
8357
 
8358
  def validate(self):
8359
    return
8360
 
8361
 
8362
  def __repr__(self):
8363
    L = ['%s=%r' % (key, value)
8364
      for key, value in self.__dict__.iteritems()]
8365
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8366
 
8367
  def __eq__(self, other):
8368
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8369
 
8370
  def __ne__(self, other):
8371
    return not (self == other)
8372
 
8373
class getAllVendorItemMappings_result:
8374
  """
8375
  Attributes:
8376
   - success
8377
  """
8378
 
8379
  thrift_spec = (
8380
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemMapping, VendorItemMapping.thrift_spec)), None, ), # 0
8381
  )
8382
 
8383
  def __init__(self, success=None,):
8384
    self.success = success
8385
 
8386
  def read(self, iprot):
8387
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8388
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8389
      return
8390
    iprot.readStructBegin()
8391
    while True:
8392
      (fname, ftype, fid) = iprot.readFieldBegin()
8393
      if ftype == TType.STOP:
8394
        break
8395
      if fid == 0:
8396
        if ftype == TType.LIST:
8397
          self.success = []
8182 amar.kumar 8398
          (_etype136, _size133) = iprot.readListBegin()
8399
          for _i137 in xrange(_size133):
8400
            _elem138 = VendorItemMapping()
8401
            _elem138.read(iprot)
8402
            self.success.append(_elem138)
5944 mandeep.dh 8403
          iprot.readListEnd()
8404
        else:
8405
          iprot.skip(ftype)
8406
      else:
8407
        iprot.skip(ftype)
8408
      iprot.readFieldEnd()
8409
    iprot.readStructEnd()
8410
 
8411
  def write(self, oprot):
8412
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8413
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8414
      return
8415
    oprot.writeStructBegin('getAllVendorItemMappings_result')
8416
    if self.success is not None:
8417
      oprot.writeFieldBegin('success', TType.LIST, 0)
8418
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 8419
      for iter139 in self.success:
8420
        iter139.write(oprot)
5944 mandeep.dh 8421
      oprot.writeListEnd()
8422
      oprot.writeFieldEnd()
8423
    oprot.writeFieldStop()
8424
    oprot.writeStructEnd()
8425
 
8426
  def validate(self):
8427
    return
8428
 
8429
 
8430
  def __repr__(self):
8431
    L = ['%s=%r' % (key, value)
8432
      for key, value in self.__dict__.iteritems()]
8433
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8434
 
8435
  def __eq__(self, other):
8436
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8437
 
8438
  def __ne__(self, other):
8439
    return not (self == other)
8440
 
8441
class getInventorySnapshot_args:
8442
  """
8443
  Attributes:
8444
   - warehouseId
8445
  """
8446
 
8447
  thrift_spec = (
8448
    None, # 0
8449
    (1, TType.I64, 'warehouseId', None, None, ), # 1
8450
  )
8451
 
8452
  def __init__(self, warehouseId=None,):
8453
    self.warehouseId = warehouseId
8454
 
8455
  def read(self, iprot):
8456
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8457
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8458
      return
8459
    iprot.readStructBegin()
8460
    while True:
8461
      (fname, ftype, fid) = iprot.readFieldBegin()
8462
      if ftype == TType.STOP:
8463
        break
8464
      if fid == 1:
8465
        if ftype == TType.I64:
8466
          self.warehouseId = iprot.readI64();
8467
        else:
8468
          iprot.skip(ftype)
8469
      else:
8470
        iprot.skip(ftype)
8471
      iprot.readFieldEnd()
8472
    iprot.readStructEnd()
8473
 
8474
  def write(self, oprot):
8475
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8476
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8477
      return
8478
    oprot.writeStructBegin('getInventorySnapshot_args')
8479
    if self.warehouseId is not None:
8480
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
8481
      oprot.writeI64(self.warehouseId)
8482
      oprot.writeFieldEnd()
8483
    oprot.writeFieldStop()
8484
    oprot.writeStructEnd()
8485
 
8486
  def validate(self):
8487
    return
8488
 
8489
 
8490
  def __repr__(self):
8491
    L = ['%s=%r' % (key, value)
8492
      for key, value in self.__dict__.iteritems()]
8493
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8494
 
8495
  def __eq__(self, other):
8496
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8497
 
8498
  def __ne__(self, other):
8499
    return not (self == other)
8500
 
8501
class getInventorySnapshot_result:
8502
  """
8503
  Attributes:
8504
   - success
8505
  """
8506
 
8507
  thrift_spec = (
8508
    (0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(ItemInventory, ItemInventory.thrift_spec)), None, ), # 0
8509
  )
8510
 
8511
  def __init__(self, success=None,):
8512
    self.success = success
8513
 
8514
  def read(self, iprot):
8515
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8516
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8517
      return
8518
    iprot.readStructBegin()
8519
    while True:
8520
      (fname, ftype, fid) = iprot.readFieldBegin()
8521
      if ftype == TType.STOP:
8522
        break
8523
      if fid == 0:
8524
        if ftype == TType.MAP:
8525
          self.success = {}
8182 amar.kumar 8526
          (_ktype141, _vtype142, _size140 ) = iprot.readMapBegin() 
8527
          for _i144 in xrange(_size140):
8528
            _key145 = iprot.readI64();
8529
            _val146 = ItemInventory()
8530
            _val146.read(iprot)
8531
            self.success[_key145] = _val146
5944 mandeep.dh 8532
          iprot.readMapEnd()
8533
        else:
8534
          iprot.skip(ftype)
8535
      else:
8536
        iprot.skip(ftype)
8537
      iprot.readFieldEnd()
8538
    iprot.readStructEnd()
8539
 
8540
  def write(self, oprot):
8541
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8542
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8543
      return
8544
    oprot.writeStructBegin('getInventorySnapshot_result')
8545
    if self.success is not None:
8546
      oprot.writeFieldBegin('success', TType.MAP, 0)
8547
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))
8182 amar.kumar 8548
      for kiter147,viter148 in self.success.items():
8549
        oprot.writeI64(kiter147)
8550
        viter148.write(oprot)
5944 mandeep.dh 8551
      oprot.writeMapEnd()
8552
      oprot.writeFieldEnd()
8553
    oprot.writeFieldStop()
8554
    oprot.writeStructEnd()
8555
 
8556
  def validate(self):
8557
    return
8558
 
8559
 
8560
  def __repr__(self):
8561
    L = ['%s=%r' % (key, value)
8562
      for key, value in self.__dict__.iteritems()]
8563
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8564
 
8565
  def __eq__(self, other):
8566
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8567
 
8568
  def __ne__(self, other):
8569
    return not (self == other)
8570
 
8571
class clearItemAvailabilityCache_args:
8572
 
8573
  thrift_spec = (
8574
  )
8575
 
8576
  def read(self, iprot):
8577
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8578
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8579
      return
8580
    iprot.readStructBegin()
8581
    while True:
8582
      (fname, ftype, fid) = iprot.readFieldBegin()
8583
      if ftype == TType.STOP:
8584
        break
8585
      else:
8586
        iprot.skip(ftype)
8587
      iprot.readFieldEnd()
8588
    iprot.readStructEnd()
8589
 
8590
  def write(self, oprot):
8591
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8592
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8593
      return
8594
    oprot.writeStructBegin('clearItemAvailabilityCache_args')
8595
    oprot.writeFieldStop()
8596
    oprot.writeStructEnd()
8597
 
8598
  def validate(self):
8599
    return
8600
 
8601
 
8602
  def __repr__(self):
8603
    L = ['%s=%r' % (key, value)
8604
      for key, value in self.__dict__.iteritems()]
8605
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8606
 
8607
  def __eq__(self, other):
8608
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8609
 
8610
  def __ne__(self, other):
8611
    return not (self == other)
8612
 
8613
class clearItemAvailabilityCache_result:
8614
 
8615
  thrift_spec = (
8616
  )
8617
 
8618
  def read(self, iprot):
8619
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8620
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8621
      return
8622
    iprot.readStructBegin()
8623
    while True:
8624
      (fname, ftype, fid) = iprot.readFieldBegin()
8625
      if ftype == TType.STOP:
8626
        break
8627
      else:
8628
        iprot.skip(ftype)
8629
      iprot.readFieldEnd()
8630
    iprot.readStructEnd()
8631
 
8632
  def write(self, oprot):
8633
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8634
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8635
      return
8636
    oprot.writeStructBegin('clearItemAvailabilityCache_result')
8637
    oprot.writeFieldStop()
8638
    oprot.writeStructEnd()
8639
 
8640
  def validate(self):
8641
    return
8642
 
8643
 
8644
  def __repr__(self):
8645
    L = ['%s=%r' % (key, value)
8646
      for key, value in self.__dict__.iteritems()]
8647
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8648
 
8649
  def __eq__(self, other):
8650
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8651
 
8652
  def __ne__(self, other):
8653
    return not (self == other)
8654
 
8655
class updateVendorString_args:
8656
  """
8657
  Attributes:
8658
   - warehouseId
8659
   - vendorString
8660
  """
8661
 
8662
  thrift_spec = (
8663
    None, # 0
8664
    (1, TType.I64, 'warehouseId', None, None, ), # 1
8665
    (2, TType.STRING, 'vendorString', None, None, ), # 2
8666
  )
8667
 
8668
  def __init__(self, warehouseId=None, vendorString=None,):
8669
    self.warehouseId = warehouseId
8670
    self.vendorString = vendorString
8671
 
8672
  def read(self, iprot):
8673
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8674
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8675
      return
8676
    iprot.readStructBegin()
8677
    while True:
8678
      (fname, ftype, fid) = iprot.readFieldBegin()
8679
      if ftype == TType.STOP:
8680
        break
8681
      if fid == 1:
8682
        if ftype == TType.I64:
8683
          self.warehouseId = iprot.readI64();
8684
        else:
8685
          iprot.skip(ftype)
8686
      elif fid == 2:
8687
        if ftype == TType.STRING:
8688
          self.vendorString = iprot.readString();
8689
        else:
8690
          iprot.skip(ftype)
8691
      else:
8692
        iprot.skip(ftype)
8693
      iprot.readFieldEnd()
8694
    iprot.readStructEnd()
8695
 
8696
  def write(self, oprot):
8697
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8698
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8699
      return
8700
    oprot.writeStructBegin('updateVendorString_args')
8701
    if self.warehouseId is not None:
8702
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
8703
      oprot.writeI64(self.warehouseId)
8704
      oprot.writeFieldEnd()
8705
    if self.vendorString is not None:
8706
      oprot.writeFieldBegin('vendorString', TType.STRING, 2)
8707
      oprot.writeString(self.vendorString)
8708
      oprot.writeFieldEnd()
8709
    oprot.writeFieldStop()
8710
    oprot.writeStructEnd()
8711
 
8712
  def validate(self):
8713
    return
8714
 
8715
 
8716
  def __repr__(self):
8717
    L = ['%s=%r' % (key, value)
8718
      for key, value in self.__dict__.iteritems()]
8719
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8720
 
8721
  def __eq__(self, other):
8722
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8723
 
8724
  def __ne__(self, other):
8725
    return not (self == other)
8726
 
8727
class updateVendorString_result:
8728
 
8729
  thrift_spec = (
8730
  )
8731
 
8732
  def read(self, iprot):
8733
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8734
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8735
      return
8736
    iprot.readStructBegin()
8737
    while True:
8738
      (fname, ftype, fid) = iprot.readFieldBegin()
8739
      if ftype == TType.STOP:
8740
        break
8741
      else:
8742
        iprot.skip(ftype)
8743
      iprot.readFieldEnd()
8744
    iprot.readStructEnd()
8745
 
8746
  def write(self, oprot):
8747
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8748
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8749
      return
8750
    oprot.writeStructBegin('updateVendorString_result')
8751
    oprot.writeFieldStop()
8752
    oprot.writeStructEnd()
8753
 
8754
  def validate(self):
8755
    return
8756
 
8757
 
8758
  def __repr__(self):
8759
    L = ['%s=%r' % (key, value)
8760
      for key, value in self.__dict__.iteritems()]
8761
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8762
 
8763
  def __eq__(self, other):
8764
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8765
 
8766
  def __ne__(self, other):
8767
    return not (self == other)
6096 amit.gupta 8768
 
8769
class clearItemAvailabilityCacheForItem_args:
8770
  """
8771
  Attributes:
8772
   - item_id
8773
  """
8774
 
8775
  thrift_spec = (
8776
    None, # 0
8777
    (1, TType.I64, 'item_id', None, None, ), # 1
8778
  )
8779
 
8780
  def __init__(self, item_id=None,):
8781
    self.item_id = item_id
8782
 
8783
  def read(self, iprot):
8784
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8785
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8786
      return
8787
    iprot.readStructBegin()
8788
    while True:
8789
      (fname, ftype, fid) = iprot.readFieldBegin()
8790
      if ftype == TType.STOP:
8791
        break
8792
      if fid == 1:
8793
        if ftype == TType.I64:
8794
          self.item_id = iprot.readI64();
8795
        else:
8796
          iprot.skip(ftype)
8797
      else:
8798
        iprot.skip(ftype)
8799
      iprot.readFieldEnd()
8800
    iprot.readStructEnd()
8801
 
8802
  def write(self, oprot):
8803
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8804
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8805
      return
8806
    oprot.writeStructBegin('clearItemAvailabilityCacheForItem_args')
8807
    if self.item_id is not None:
8808
      oprot.writeFieldBegin('item_id', TType.I64, 1)
8809
      oprot.writeI64(self.item_id)
8810
      oprot.writeFieldEnd()
8811
    oprot.writeFieldStop()
8812
    oprot.writeStructEnd()
8813
 
8814
  def validate(self):
8815
    return
8816
 
8817
 
8818
  def __repr__(self):
8819
    L = ['%s=%r' % (key, value)
8820
      for key, value in self.__dict__.iteritems()]
8821
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8822
 
8823
  def __eq__(self, other):
8824
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8825
 
8826
  def __ne__(self, other):
8827
    return not (self == other)
8828
 
8829
class clearItemAvailabilityCacheForItem_result:
8830
 
8831
  thrift_spec = (
8832
  )
8833
 
8834
  def read(self, iprot):
8835
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8836
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8837
      return
8838
    iprot.readStructBegin()
8839
    while True:
8840
      (fname, ftype, fid) = iprot.readFieldBegin()
8841
      if ftype == TType.STOP:
8842
        break
8843
      else:
8844
        iprot.skip(ftype)
8845
      iprot.readFieldEnd()
8846
    iprot.readStructEnd()
8847
 
8848
  def write(self, oprot):
8849
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8850
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8851
      return
8852
    oprot.writeStructBegin('clearItemAvailabilityCacheForItem_result')
8853
    oprot.writeFieldStop()
8854
    oprot.writeStructEnd()
8855
 
8856
  def validate(self):
8857
    return
8858
 
8859
 
8860
  def __repr__(self):
8861
    L = ['%s=%r' % (key, value)
8862
      for key, value in self.__dict__.iteritems()]
8863
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8864
 
8865
  def __eq__(self, other):
8866
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8867
 
8868
  def __ne__(self, other):
8869
    return not (self == other)
6467 amar.kumar 8870
 
8871
class getOurWarehouseIdForVendor_args:
8872
  """
8873
  Attributes:
8874
   - vendorId
7718 amar.kumar 8875
   - billingWarehouseId
6467 amar.kumar 8876
  """
8877
 
8878
  thrift_spec = (
8879
    None, # 0
8880
    (1, TType.I64, 'vendorId', None, None, ), # 1
7718 amar.kumar 8881
    (2, TType.I64, 'billingWarehouseId', None, None, ), # 2
6467 amar.kumar 8882
  )
8883
 
7718 amar.kumar 8884
  def __init__(self, vendorId=None, billingWarehouseId=None,):
6467 amar.kumar 8885
    self.vendorId = vendorId
7718 amar.kumar 8886
    self.billingWarehouseId = billingWarehouseId
6467 amar.kumar 8887
 
8888
  def read(self, iprot):
8889
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8890
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8891
      return
8892
    iprot.readStructBegin()
8893
    while True:
8894
      (fname, ftype, fid) = iprot.readFieldBegin()
8895
      if ftype == TType.STOP:
8896
        break
8897
      if fid == 1:
8898
        if ftype == TType.I64:
8899
          self.vendorId = iprot.readI64();
8900
        else:
8901
          iprot.skip(ftype)
7718 amar.kumar 8902
      elif fid == 2:
8903
        if ftype == TType.I64:
8904
          self.billingWarehouseId = iprot.readI64();
8905
        else:
8906
          iprot.skip(ftype)
6467 amar.kumar 8907
      else:
8908
        iprot.skip(ftype)
8909
      iprot.readFieldEnd()
8910
    iprot.readStructEnd()
8911
 
8912
  def write(self, oprot):
8913
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8914
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8915
      return
8916
    oprot.writeStructBegin('getOurWarehouseIdForVendor_args')
8917
    if self.vendorId is not None:
8918
      oprot.writeFieldBegin('vendorId', TType.I64, 1)
8919
      oprot.writeI64(self.vendorId)
8920
      oprot.writeFieldEnd()
7718 amar.kumar 8921
    if self.billingWarehouseId is not None:
8922
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 2)
8923
      oprot.writeI64(self.billingWarehouseId)
8924
      oprot.writeFieldEnd()
6467 amar.kumar 8925
    oprot.writeFieldStop()
8926
    oprot.writeStructEnd()
8927
 
8928
  def validate(self):
8929
    return
8930
 
8931
 
8932
  def __repr__(self):
8933
    L = ['%s=%r' % (key, value)
8934
      for key, value in self.__dict__.iteritems()]
8935
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8936
 
8937
  def __eq__(self, other):
8938
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8939
 
8940
  def __ne__(self, other):
8941
    return not (self == other)
8942
 
8943
class getOurWarehouseIdForVendor_result:
8944
  """
8945
  Attributes:
8946
   - success
8947
  """
8948
 
8949
  thrift_spec = (
8950
    (0, TType.I64, 'success', None, None, ), # 0
8951
  )
8952
 
8953
  def __init__(self, success=None,):
8954
    self.success = success
8955
 
8956
  def read(self, iprot):
8957
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8958
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8959
      return
8960
    iprot.readStructBegin()
8961
    while True:
8962
      (fname, ftype, fid) = iprot.readFieldBegin()
8963
      if ftype == TType.STOP:
8964
        break
8965
      if fid == 0:
8966
        if ftype == TType.I64:
8967
          self.success = iprot.readI64();
8968
        else:
8969
          iprot.skip(ftype)
8970
      else:
8971
        iprot.skip(ftype)
8972
      iprot.readFieldEnd()
8973
    iprot.readStructEnd()
8974
 
8975
  def write(self, oprot):
8976
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8977
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8978
      return
8979
    oprot.writeStructBegin('getOurWarehouseIdForVendor_result')
8980
    if self.success is not None:
8981
      oprot.writeFieldBegin('success', TType.I64, 0)
8982
      oprot.writeI64(self.success)
8983
      oprot.writeFieldEnd()
8984
    oprot.writeFieldStop()
8985
    oprot.writeStructEnd()
8986
 
8987
  def validate(self):
8988
    return
8989
 
8990
 
8991
  def __repr__(self):
8992
    L = ['%s=%r' % (key, value)
8993
      for key, value in self.__dict__.iteritems()]
8994
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8995
 
8996
  def __eq__(self, other):
8997
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8998
 
8999
  def __ne__(self, other):
9000
    return not (self == other)
6484 amar.kumar 9001
 
9002
class getItemAvailabilitiesAtOurWarehouses_args:
9003
  """
9004
  Attributes:
9005
   - item_ids
9006
  """
9007
 
9008
  thrift_spec = (
9009
    None, # 0
9010
    (1, TType.LIST, 'item_ids', (TType.I64,None), None, ), # 1
9011
  )
9012
 
9013
  def __init__(self, item_ids=None,):
9014
    self.item_ids = item_ids
9015
 
9016
  def read(self, iprot):
9017
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9018
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9019
      return
9020
    iprot.readStructBegin()
9021
    while True:
9022
      (fname, ftype, fid) = iprot.readFieldBegin()
9023
      if ftype == TType.STOP:
9024
        break
9025
      if fid == 1:
9026
        if ftype == TType.LIST:
9027
          self.item_ids = []
8182 amar.kumar 9028
          (_etype152, _size149) = iprot.readListBegin()
9029
          for _i153 in xrange(_size149):
9030
            _elem154 = iprot.readI64();
9031
            self.item_ids.append(_elem154)
6484 amar.kumar 9032
          iprot.readListEnd()
9033
        else:
9034
          iprot.skip(ftype)
9035
      else:
9036
        iprot.skip(ftype)
9037
      iprot.readFieldEnd()
9038
    iprot.readStructEnd()
9039
 
9040
  def write(self, oprot):
9041
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9042
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9043
      return
9044
    oprot.writeStructBegin('getItemAvailabilitiesAtOurWarehouses_args')
9045
    if self.item_ids is not None:
9046
      oprot.writeFieldBegin('item_ids', TType.LIST, 1)
9047
      oprot.writeListBegin(TType.I64, len(self.item_ids))
8182 amar.kumar 9048
      for iter155 in self.item_ids:
9049
        oprot.writeI64(iter155)
6484 amar.kumar 9050
      oprot.writeListEnd()
9051
      oprot.writeFieldEnd()
9052
    oprot.writeFieldStop()
9053
    oprot.writeStructEnd()
9054
 
9055
  def validate(self):
9056
    return
9057
 
9058
 
9059
  def __repr__(self):
9060
    L = ['%s=%r' % (key, value)
9061
      for key, value in self.__dict__.iteritems()]
9062
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9063
 
9064
  def __eq__(self, other):
9065
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9066
 
9067
  def __ne__(self, other):
9068
    return not (self == other)
9069
 
9070
class getItemAvailabilitiesAtOurWarehouses_result:
9071
  """
9072
  Attributes:
9073
   - success
9074
  """
9075
 
9076
  thrift_spec = (
9077
    (0, TType.MAP, 'success', (TType.I64,None,TType.I64,None), None, ), # 0
9078
  )
9079
 
9080
  def __init__(self, success=None,):
9081
    self.success = success
9082
 
9083
  def read(self, iprot):
9084
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9085
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9086
      return
9087
    iprot.readStructBegin()
9088
    while True:
9089
      (fname, ftype, fid) = iprot.readFieldBegin()
9090
      if ftype == TType.STOP:
9091
        break
9092
      if fid == 0:
9093
        if ftype == TType.MAP:
9094
          self.success = {}
8182 amar.kumar 9095
          (_ktype157, _vtype158, _size156 ) = iprot.readMapBegin() 
9096
          for _i160 in xrange(_size156):
9097
            _key161 = iprot.readI64();
9098
            _val162 = iprot.readI64();
9099
            self.success[_key161] = _val162
6484 amar.kumar 9100
          iprot.readMapEnd()
9101
        else:
9102
          iprot.skip(ftype)
9103
      else:
9104
        iprot.skip(ftype)
9105
      iprot.readFieldEnd()
9106
    iprot.readStructEnd()
9107
 
9108
  def write(self, oprot):
9109
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9110
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9111
      return
9112
    oprot.writeStructBegin('getItemAvailabilitiesAtOurWarehouses_result')
9113
    if self.success is not None:
9114
      oprot.writeFieldBegin('success', TType.MAP, 0)
9115
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.success))
8182 amar.kumar 9116
      for kiter163,viter164 in self.success.items():
9117
        oprot.writeI64(kiter163)
9118
        oprot.writeI64(viter164)
6484 amar.kumar 9119
      oprot.writeMapEnd()
9120
      oprot.writeFieldEnd()
9121
    oprot.writeFieldStop()
9122
    oprot.writeStructEnd()
9123
 
9124
  def validate(self):
9125
    return
9126
 
9127
 
9128
  def __repr__(self):
9129
    L = ['%s=%r' % (key, value)
9130
      for key, value in self.__dict__.iteritems()]
9131
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9132
 
9133
  def __eq__(self, other):
9134
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9135
 
9136
  def __ne__(self, other):
9137
    return not (self == other)
6531 vikram.rag 9138
 
9139
class getMonitoredWarehouseForVendors_args:
9140
  """
9141
  Attributes:
9142
   - vendorIds
9143
  """
9144
 
9145
  thrift_spec = (
9146
    None, # 0
9147
    (1, TType.LIST, 'vendorIds', (TType.I64,None), None, ), # 1
9148
  )
9149
 
9150
  def __init__(self, vendorIds=None,):
9151
    self.vendorIds = vendorIds
9152
 
9153
  def read(self, iprot):
9154
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9155
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9156
      return
9157
    iprot.readStructBegin()
9158
    while True:
9159
      (fname, ftype, fid) = iprot.readFieldBegin()
9160
      if ftype == TType.STOP:
9161
        break
9162
      if fid == 1:
9163
        if ftype == TType.LIST:
9164
          self.vendorIds = []
8182 amar.kumar 9165
          (_etype168, _size165) = iprot.readListBegin()
9166
          for _i169 in xrange(_size165):
9167
            _elem170 = iprot.readI64();
9168
            self.vendorIds.append(_elem170)
6531 vikram.rag 9169
          iprot.readListEnd()
9170
        else:
9171
          iprot.skip(ftype)
9172
      else:
9173
        iprot.skip(ftype)
9174
      iprot.readFieldEnd()
9175
    iprot.readStructEnd()
9176
 
9177
  def write(self, oprot):
9178
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9179
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9180
      return
9181
    oprot.writeStructBegin('getMonitoredWarehouseForVendors_args')
9182
    if self.vendorIds is not None:
9183
      oprot.writeFieldBegin('vendorIds', TType.LIST, 1)
9184
      oprot.writeListBegin(TType.I64, len(self.vendorIds))
8182 amar.kumar 9185
      for iter171 in self.vendorIds:
9186
        oprot.writeI64(iter171)
6531 vikram.rag 9187
      oprot.writeListEnd()
9188
      oprot.writeFieldEnd()
9189
    oprot.writeFieldStop()
9190
    oprot.writeStructEnd()
9191
 
9192
  def validate(self):
9193
    return
9194
 
9195
 
9196
  def __repr__(self):
9197
    L = ['%s=%r' % (key, value)
9198
      for key, value in self.__dict__.iteritems()]
9199
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9200
 
9201
  def __eq__(self, other):
9202
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9203
 
9204
  def __ne__(self, other):
9205
    return not (self == other)
9206
 
9207
class getMonitoredWarehouseForVendors_result:
9208
  """
9209
  Attributes:
9210
   - success
9211
  """
9212
 
9213
  thrift_spec = (
9214
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9215
  )
9216
 
9217
  def __init__(self, success=None,):
9218
    self.success = success
9219
 
9220
  def read(self, iprot):
9221
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9222
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9223
      return
9224
    iprot.readStructBegin()
9225
    while True:
9226
      (fname, ftype, fid) = iprot.readFieldBegin()
9227
      if ftype == TType.STOP:
9228
        break
9229
      if fid == 0:
9230
        if ftype == TType.LIST:
9231
          self.success = []
8182 amar.kumar 9232
          (_etype175, _size172) = iprot.readListBegin()
9233
          for _i176 in xrange(_size172):
9234
            _elem177 = iprot.readI64();
9235
            self.success.append(_elem177)
6531 vikram.rag 9236
          iprot.readListEnd()
9237
        else:
9238
          iprot.skip(ftype)
9239
      else:
9240
        iprot.skip(ftype)
9241
      iprot.readFieldEnd()
9242
    iprot.readStructEnd()
9243
 
9244
  def write(self, oprot):
9245
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9246
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9247
      return
9248
    oprot.writeStructBegin('getMonitoredWarehouseForVendors_result')
9249
    if self.success is not None:
9250
      oprot.writeFieldBegin('success', TType.LIST, 0)
9251
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 9252
      for iter178 in self.success:
9253
        oprot.writeI64(iter178)
6531 vikram.rag 9254
      oprot.writeListEnd()
9255
      oprot.writeFieldEnd()
9256
    oprot.writeFieldStop()
9257
    oprot.writeStructEnd()
9258
 
9259
  def validate(self):
9260
    return
9261
 
9262
 
9263
  def __repr__(self):
9264
    L = ['%s=%r' % (key, value)
9265
      for key, value in self.__dict__.iteritems()]
9266
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9267
 
9268
  def __eq__(self, other):
9269
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9270
 
9271
  def __ne__(self, other):
9272
    return not (self == other)
9273
 
9274
class getIgnoredWarehouseidsAndItemids_args:
9275
 
9276
  thrift_spec = (
9277
  )
9278
 
9279
  def read(self, iprot):
9280
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9281
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9282
      return
9283
    iprot.readStructBegin()
9284
    while True:
9285
      (fname, ftype, fid) = iprot.readFieldBegin()
9286
      if ftype == TType.STOP:
9287
        break
9288
      else:
9289
        iprot.skip(ftype)
9290
      iprot.readFieldEnd()
9291
    iprot.readStructEnd()
9292
 
9293
  def write(self, oprot):
9294
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9295
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9296
      return
9297
    oprot.writeStructBegin('getIgnoredWarehouseidsAndItemids_args')
9298
    oprot.writeFieldStop()
9299
    oprot.writeStructEnd()
9300
 
9301
  def validate(self):
9302
    return
9303
 
9304
 
9305
  def __repr__(self):
9306
    L = ['%s=%r' % (key, value)
9307
      for key, value in self.__dict__.iteritems()]
9308
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9309
 
9310
  def __eq__(self, other):
9311
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9312
 
9313
  def __ne__(self, other):
9314
    return not (self == other)
9315
 
9316
class getIgnoredWarehouseidsAndItemids_result:
9317
  """
9318
  Attributes:
9319
   - success
9320
  """
9321
 
9322
  thrift_spec = (
9323
    (0, TType.LIST, 'success', (TType.STRUCT,(IgnoredInventoryUpdateItems, IgnoredInventoryUpdateItems.thrift_spec)), None, ), # 0
9324
  )
9325
 
9326
  def __init__(self, success=None,):
9327
    self.success = success
9328
 
9329
  def read(self, iprot):
9330
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9331
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9332
      return
9333
    iprot.readStructBegin()
9334
    while True:
9335
      (fname, ftype, fid) = iprot.readFieldBegin()
9336
      if ftype == TType.STOP:
9337
        break
9338
      if fid == 0:
9339
        if ftype == TType.LIST:
9340
          self.success = []
8182 amar.kumar 9341
          (_etype182, _size179) = iprot.readListBegin()
9342
          for _i183 in xrange(_size179):
9343
            _elem184 = IgnoredInventoryUpdateItems()
9344
            _elem184.read(iprot)
9345
            self.success.append(_elem184)
6531 vikram.rag 9346
          iprot.readListEnd()
9347
        else:
9348
          iprot.skip(ftype)
9349
      else:
9350
        iprot.skip(ftype)
9351
      iprot.readFieldEnd()
9352
    iprot.readStructEnd()
9353
 
9354
  def write(self, oprot):
9355
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9356
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9357
      return
9358
    oprot.writeStructBegin('getIgnoredWarehouseidsAndItemids_result')
9359
    if self.success is not None:
9360
      oprot.writeFieldBegin('success', TType.LIST, 0)
9361
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 9362
      for iter185 in self.success:
9363
        iter185.write(oprot)
6531 vikram.rag 9364
      oprot.writeListEnd()
9365
      oprot.writeFieldEnd()
9366
    oprot.writeFieldStop()
9367
    oprot.writeStructEnd()
9368
 
9369
  def validate(self):
9370
    return
9371
 
9372
 
9373
  def __repr__(self):
9374
    L = ['%s=%r' % (key, value)
9375
      for key, value in self.__dict__.iteritems()]
9376
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9377
 
9378
  def __eq__(self, other):
9379
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9380
 
9381
  def __ne__(self, other):
9382
    return not (self == other)
9383
 
9384
class insertItemtoIgnoreInventoryUpdatelist_args:
9385
  """
9386
  Attributes:
9387
   - item_id
9388
   - warehouse_id
9389
  """
9390
 
9391
  thrift_spec = (
9392
    None, # 0
9393
    (1, TType.I64, 'item_id', None, None, ), # 1
9394
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
9395
  )
9396
 
9397
  def __init__(self, item_id=None, warehouse_id=None,):
9398
    self.item_id = item_id
9399
    self.warehouse_id = warehouse_id
9400
 
9401
  def read(self, iprot):
9402
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9403
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9404
      return
9405
    iprot.readStructBegin()
9406
    while True:
9407
      (fname, ftype, fid) = iprot.readFieldBegin()
9408
      if ftype == TType.STOP:
9409
        break
9410
      if fid == 1:
9411
        if ftype == TType.I64:
9412
          self.item_id = iprot.readI64();
9413
        else:
9414
          iprot.skip(ftype)
9415
      elif fid == 2:
9416
        if ftype == TType.I64:
9417
          self.warehouse_id = iprot.readI64();
9418
        else:
9419
          iprot.skip(ftype)
9420
      else:
9421
        iprot.skip(ftype)
9422
      iprot.readFieldEnd()
9423
    iprot.readStructEnd()
9424
 
9425
  def write(self, oprot):
9426
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9427
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9428
      return
9429
    oprot.writeStructBegin('insertItemtoIgnoreInventoryUpdatelist_args')
9430
    if self.item_id is not None:
9431
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9432
      oprot.writeI64(self.item_id)
9433
      oprot.writeFieldEnd()
9434
    if self.warehouse_id is not None:
9435
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
9436
      oprot.writeI64(self.warehouse_id)
9437
      oprot.writeFieldEnd()
9438
    oprot.writeFieldStop()
9439
    oprot.writeStructEnd()
9440
 
9441
  def validate(self):
9442
    return
9443
 
9444
 
9445
  def __repr__(self):
9446
    L = ['%s=%r' % (key, value)
9447
      for key, value in self.__dict__.iteritems()]
9448
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9449
 
9450
  def __eq__(self, other):
9451
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9452
 
9453
  def __ne__(self, other):
9454
    return not (self == other)
9455
 
9456
class insertItemtoIgnoreInventoryUpdatelist_result:
9457
  """
9458
  Attributes:
9459
   - success
9460
  """
9461
 
9462
  thrift_spec = (
9463
    (0, TType.BOOL, 'success', None, None, ), # 0
9464
  )
9465
 
9466
  def __init__(self, success=None,):
9467
    self.success = success
9468
 
9469
  def read(self, iprot):
9470
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9471
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9472
      return
9473
    iprot.readStructBegin()
9474
    while True:
9475
      (fname, ftype, fid) = iprot.readFieldBegin()
9476
      if ftype == TType.STOP:
9477
        break
9478
      if fid == 0:
9479
        if ftype == TType.BOOL:
9480
          self.success = iprot.readBool();
9481
        else:
9482
          iprot.skip(ftype)
9483
      else:
9484
        iprot.skip(ftype)
9485
      iprot.readFieldEnd()
9486
    iprot.readStructEnd()
9487
 
9488
  def write(self, oprot):
9489
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9490
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9491
      return
9492
    oprot.writeStructBegin('insertItemtoIgnoreInventoryUpdatelist_result')
9493
    if self.success is not None:
9494
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9495
      oprot.writeBool(self.success)
9496
      oprot.writeFieldEnd()
9497
    oprot.writeFieldStop()
9498
    oprot.writeStructEnd()
9499
 
9500
  def validate(self):
9501
    return
9502
 
9503
 
9504
  def __repr__(self):
9505
    L = ['%s=%r' % (key, value)
9506
      for key, value in self.__dict__.iteritems()]
9507
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9508
 
9509
  def __eq__(self, other):
9510
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9511
 
9512
  def __ne__(self, other):
9513
    return not (self == other)
9514
 
9515
class deleteItemFromIgnoredInventoryUpdateList_args:
9516
  """
9517
  Attributes:
9518
   - item_id
9519
   - warehouse_id
9520
  """
9521
 
9522
  thrift_spec = (
9523
    None, # 0
9524
    (1, TType.I64, 'item_id', None, None, ), # 1
9525
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
9526
  )
9527
 
9528
  def __init__(self, item_id=None, warehouse_id=None,):
9529
    self.item_id = item_id
9530
    self.warehouse_id = warehouse_id
9531
 
9532
  def read(self, iprot):
9533
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9534
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9535
      return
9536
    iprot.readStructBegin()
9537
    while True:
9538
      (fname, ftype, fid) = iprot.readFieldBegin()
9539
      if ftype == TType.STOP:
9540
        break
9541
      if fid == 1:
9542
        if ftype == TType.I64:
9543
          self.item_id = iprot.readI64();
9544
        else:
9545
          iprot.skip(ftype)
9546
      elif fid == 2:
9547
        if ftype == TType.I64:
9548
          self.warehouse_id = iprot.readI64();
9549
        else:
9550
          iprot.skip(ftype)
9551
      else:
9552
        iprot.skip(ftype)
9553
      iprot.readFieldEnd()
9554
    iprot.readStructEnd()
9555
 
9556
  def write(self, oprot):
9557
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9558
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9559
      return
9560
    oprot.writeStructBegin('deleteItemFromIgnoredInventoryUpdateList_args')
9561
    if self.item_id is not None:
9562
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9563
      oprot.writeI64(self.item_id)
9564
      oprot.writeFieldEnd()
9565
    if self.warehouse_id is not None:
9566
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
9567
      oprot.writeI64(self.warehouse_id)
9568
      oprot.writeFieldEnd()
9569
    oprot.writeFieldStop()
9570
    oprot.writeStructEnd()
9571
 
9572
  def validate(self):
9573
    return
9574
 
9575
 
9576
  def __repr__(self):
9577
    L = ['%s=%r' % (key, value)
9578
      for key, value in self.__dict__.iteritems()]
9579
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9580
 
9581
  def __eq__(self, other):
9582
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9583
 
9584
  def __ne__(self, other):
9585
    return not (self == other)
9586
 
9587
class deleteItemFromIgnoredInventoryUpdateList_result:
9588
  """
9589
  Attributes:
9590
   - success
9591
  """
9592
 
9593
  thrift_spec = (
9594
    (0, TType.BOOL, 'success', None, None, ), # 0
9595
  )
9596
 
9597
  def __init__(self, success=None,):
9598
    self.success = success
9599
 
9600
  def read(self, iprot):
9601
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9602
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9603
      return
9604
    iprot.readStructBegin()
9605
    while True:
9606
      (fname, ftype, fid) = iprot.readFieldBegin()
9607
      if ftype == TType.STOP:
9608
        break
9609
      if fid == 0:
9610
        if ftype == TType.BOOL:
9611
          self.success = iprot.readBool();
9612
        else:
9613
          iprot.skip(ftype)
9614
      else:
9615
        iprot.skip(ftype)
9616
      iprot.readFieldEnd()
9617
    iprot.readStructEnd()
9618
 
9619
  def write(self, oprot):
9620
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9621
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9622
      return
9623
    oprot.writeStructBegin('deleteItemFromIgnoredInventoryUpdateList_result')
9624
    if self.success is not None:
9625
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9626
      oprot.writeBool(self.success)
9627
      oprot.writeFieldEnd()
9628
    oprot.writeFieldStop()
9629
    oprot.writeStructEnd()
9630
 
9631
  def validate(self):
9632
    return
9633
 
9634
 
9635
  def __repr__(self):
9636
    L = ['%s=%r' % (key, value)
9637
      for key, value in self.__dict__.iteritems()]
9638
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9639
 
9640
  def __eq__(self, other):
9641
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9642
 
9643
  def __ne__(self, other):
9644
    return not (self == other)
9645
 
9646
class getAllIgnoredInventoryupdateItemsCount_args:
9647
 
9648
  thrift_spec = (
9649
  )
9650
 
9651
  def read(self, iprot):
9652
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9653
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9654
      return
9655
    iprot.readStructBegin()
9656
    while True:
9657
      (fname, ftype, fid) = iprot.readFieldBegin()
9658
      if ftype == TType.STOP:
9659
        break
9660
      else:
9661
        iprot.skip(ftype)
9662
      iprot.readFieldEnd()
9663
    iprot.readStructEnd()
9664
 
9665
  def write(self, oprot):
9666
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9667
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9668
      return
9669
    oprot.writeStructBegin('getAllIgnoredInventoryupdateItemsCount_args')
9670
    oprot.writeFieldStop()
9671
    oprot.writeStructEnd()
9672
 
9673
  def validate(self):
9674
    return
9675
 
9676
 
9677
  def __repr__(self):
9678
    L = ['%s=%r' % (key, value)
9679
      for key, value in self.__dict__.iteritems()]
9680
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9681
 
9682
  def __eq__(self, other):
9683
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9684
 
9685
  def __ne__(self, other):
9686
    return not (self == other)
9687
 
9688
class getAllIgnoredInventoryupdateItemsCount_result:
9689
  """
9690
  Attributes:
9691
   - success
9692
  """
9693
 
9694
  thrift_spec = (
9695
    (0, TType.I32, 'success', None, None, ), # 0
9696
  )
9697
 
9698
  def __init__(self, success=None,):
9699
    self.success = success
9700
 
9701
  def read(self, iprot):
9702
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9703
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9704
      return
9705
    iprot.readStructBegin()
9706
    while True:
9707
      (fname, ftype, fid) = iprot.readFieldBegin()
9708
      if ftype == TType.STOP:
9709
        break
9710
      if fid == 0:
9711
        if ftype == TType.I32:
9712
          self.success = iprot.readI32();
9713
        else:
9714
          iprot.skip(ftype)
9715
      else:
9716
        iprot.skip(ftype)
9717
      iprot.readFieldEnd()
9718
    iprot.readStructEnd()
9719
 
9720
  def write(self, oprot):
9721
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9722
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9723
      return
9724
    oprot.writeStructBegin('getAllIgnoredInventoryupdateItemsCount_result')
9725
    if self.success is not None:
9726
      oprot.writeFieldBegin('success', TType.I32, 0)
9727
      oprot.writeI32(self.success)
9728
      oprot.writeFieldEnd()
9729
    oprot.writeFieldStop()
9730
    oprot.writeStructEnd()
9731
 
9732
  def validate(self):
9733
    return
9734
 
9735
 
9736
  def __repr__(self):
9737
    L = ['%s=%r' % (key, value)
9738
      for key, value in self.__dict__.iteritems()]
9739
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9740
 
9741
  def __eq__(self, other):
9742
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9743
 
9744
  def __ne__(self, other):
9745
    return not (self == other)
9746
 
9747
class getIgnoredInventoryUpdateItemids_args:
9748
  """
9749
  Attributes:
9750
   - offset
9751
   - limit
9752
  """
9753
 
9754
  thrift_spec = (
9755
    None, # 0
9756
    (1, TType.I32, 'offset', None, None, ), # 1
9757
    (2, TType.I32, 'limit', None, None, ), # 2
9758
  )
9759
 
9760
  def __init__(self, offset=None, limit=None,):
9761
    self.offset = offset
9762
    self.limit = limit
9763
 
9764
  def read(self, iprot):
9765
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9766
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9767
      return
9768
    iprot.readStructBegin()
9769
    while True:
9770
      (fname, ftype, fid) = iprot.readFieldBegin()
9771
      if ftype == TType.STOP:
9772
        break
9773
      if fid == 1:
9774
        if ftype == TType.I32:
9775
          self.offset = iprot.readI32();
9776
        else:
9777
          iprot.skip(ftype)
9778
      elif fid == 2:
9779
        if ftype == TType.I32:
9780
          self.limit = iprot.readI32();
9781
        else:
9782
          iprot.skip(ftype)
9783
      else:
9784
        iprot.skip(ftype)
9785
      iprot.readFieldEnd()
9786
    iprot.readStructEnd()
9787
 
9788
  def write(self, oprot):
9789
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9790
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9791
      return
9792
    oprot.writeStructBegin('getIgnoredInventoryUpdateItemids_args')
9793
    if self.offset is not None:
9794
      oprot.writeFieldBegin('offset', TType.I32, 1)
9795
      oprot.writeI32(self.offset)
9796
      oprot.writeFieldEnd()
9797
    if self.limit is not None:
9798
      oprot.writeFieldBegin('limit', TType.I32, 2)
9799
      oprot.writeI32(self.limit)
9800
      oprot.writeFieldEnd()
9801
    oprot.writeFieldStop()
9802
    oprot.writeStructEnd()
9803
 
9804
  def validate(self):
9805
    return
9806
 
9807
 
9808
  def __repr__(self):
9809
    L = ['%s=%r' % (key, value)
9810
      for key, value in self.__dict__.iteritems()]
9811
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9812
 
9813
  def __eq__(self, other):
9814
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9815
 
9816
  def __ne__(self, other):
9817
    return not (self == other)
9818
 
9819
class getIgnoredInventoryUpdateItemids_result:
9820
  """
9821
  Attributes:
9822
   - success
9823
  """
9824
 
9825
  thrift_spec = (
9826
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9827
  )
9828
 
9829
  def __init__(self, success=None,):
9830
    self.success = success
9831
 
9832
  def read(self, iprot):
9833
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9834
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9835
      return
9836
    iprot.readStructBegin()
9837
    while True:
9838
      (fname, ftype, fid) = iprot.readFieldBegin()
9839
      if ftype == TType.STOP:
9840
        break
9841
      if fid == 0:
9842
        if ftype == TType.LIST:
9843
          self.success = []
8182 amar.kumar 9844
          (_etype189, _size186) = iprot.readListBegin()
9845
          for _i190 in xrange(_size186):
9846
            _elem191 = iprot.readI64();
9847
            self.success.append(_elem191)
6531 vikram.rag 9848
          iprot.readListEnd()
9849
        else:
9850
          iprot.skip(ftype)
9851
      else:
9852
        iprot.skip(ftype)
9853
      iprot.readFieldEnd()
9854
    iprot.readStructEnd()
9855
 
9856
  def write(self, oprot):
9857
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9858
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9859
      return
9860
    oprot.writeStructBegin('getIgnoredInventoryUpdateItemids_result')
9861
    if self.success is not None:
9862
      oprot.writeFieldBegin('success', TType.LIST, 0)
9863
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 9864
      for iter192 in self.success:
9865
        oprot.writeI64(iter192)
6531 vikram.rag 9866
      oprot.writeListEnd()
9867
      oprot.writeFieldEnd()
9868
    oprot.writeFieldStop()
9869
    oprot.writeStructEnd()
9870
 
9871
  def validate(self):
9872
    return
9873
 
9874
 
9875
  def __repr__(self):
9876
    L = ['%s=%r' % (key, value)
9877
      for key, value in self.__dict__.iteritems()]
9878
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9879
 
9880
  def __eq__(self, other):
9881
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9882
 
9883
  def __ne__(self, other):
9884
    return not (self == other)
6821 amar.kumar 9885
 
9886
class updateItemStockPurchaseParams_args:
9887
  """
9888
  Attributes:
9889
   - item_id
9890
   - numOfDaysStock
9891
   - minStockLevel
9892
  """
9893
 
9894
  thrift_spec = (
9895
    None, # 0
9896
    (1, TType.I64, 'item_id', None, None, ), # 1
9897
    (2, TType.I32, 'numOfDaysStock', None, None, ), # 2
9898
    (3, TType.I64, 'minStockLevel', None, None, ), # 3
9899
  )
9900
 
9901
  def __init__(self, item_id=None, numOfDaysStock=None, minStockLevel=None,):
9902
    self.item_id = item_id
9903
    self.numOfDaysStock = numOfDaysStock
9904
    self.minStockLevel = minStockLevel
9905
 
9906
  def read(self, iprot):
9907
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9908
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9909
      return
9910
    iprot.readStructBegin()
9911
    while True:
9912
      (fname, ftype, fid) = iprot.readFieldBegin()
9913
      if ftype == TType.STOP:
9914
        break
9915
      if fid == 1:
9916
        if ftype == TType.I64:
9917
          self.item_id = iprot.readI64();
9918
        else:
9919
          iprot.skip(ftype)
9920
      elif fid == 2:
9921
        if ftype == TType.I32:
9922
          self.numOfDaysStock = iprot.readI32();
9923
        else:
9924
          iprot.skip(ftype)
9925
      elif fid == 3:
9926
        if ftype == TType.I64:
9927
          self.minStockLevel = iprot.readI64();
9928
        else:
9929
          iprot.skip(ftype)
9930
      else:
9931
        iprot.skip(ftype)
9932
      iprot.readFieldEnd()
9933
    iprot.readStructEnd()
9934
 
9935
  def write(self, oprot):
9936
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9937
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9938
      return
9939
    oprot.writeStructBegin('updateItemStockPurchaseParams_args')
9940
    if self.item_id is not None:
9941
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9942
      oprot.writeI64(self.item_id)
9943
      oprot.writeFieldEnd()
9944
    if self.numOfDaysStock is not None:
9945
      oprot.writeFieldBegin('numOfDaysStock', TType.I32, 2)
9946
      oprot.writeI32(self.numOfDaysStock)
9947
      oprot.writeFieldEnd()
9948
    if self.minStockLevel is not None:
9949
      oprot.writeFieldBegin('minStockLevel', TType.I64, 3)
9950
      oprot.writeI64(self.minStockLevel)
9951
      oprot.writeFieldEnd()
9952
    oprot.writeFieldStop()
9953
    oprot.writeStructEnd()
9954
 
9955
  def validate(self):
9956
    return
9957
 
9958
 
9959
  def __repr__(self):
9960
    L = ['%s=%r' % (key, value)
9961
      for key, value in self.__dict__.iteritems()]
9962
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9963
 
9964
  def __eq__(self, other):
9965
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9966
 
9967
  def __ne__(self, other):
9968
    return not (self == other)
9969
 
9970
class updateItemStockPurchaseParams_result:
9971
 
9972
  thrift_spec = (
9973
  )
9974
 
9975
  def read(self, iprot):
9976
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9977
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9978
      return
9979
    iprot.readStructBegin()
9980
    while True:
9981
      (fname, ftype, fid) = iprot.readFieldBegin()
9982
      if ftype == TType.STOP:
9983
        break
9984
      else:
9985
        iprot.skip(ftype)
9986
      iprot.readFieldEnd()
9987
    iprot.readStructEnd()
9988
 
9989
  def write(self, oprot):
9990
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9991
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9992
      return
9993
    oprot.writeStructBegin('updateItemStockPurchaseParams_result')
9994
    oprot.writeFieldStop()
9995
    oprot.writeStructEnd()
9996
 
9997
  def validate(self):
9998
    return
9999
 
10000
 
10001
  def __repr__(self):
10002
    L = ['%s=%r' % (key, value)
10003
      for key, value in self.__dict__.iteritems()]
10004
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10005
 
10006
  def __eq__(self, other):
10007
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10008
 
10009
  def __ne__(self, other):
10010
    return not (self == other)
10011
 
10012
class getItemStockPurchaseParams_args:
10013
  """
10014
  Attributes:
10015
   - itemId
10016
  """
10017
 
10018
  thrift_spec = (
10019
    None, # 0
10020
    (1, TType.I64, 'itemId', None, None, ), # 1
10021
  )
10022
 
10023
  def __init__(self, itemId=None,):
10024
    self.itemId = itemId
10025
 
10026
  def read(self, iprot):
10027
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10028
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10029
      return
10030
    iprot.readStructBegin()
10031
    while True:
10032
      (fname, ftype, fid) = iprot.readFieldBegin()
10033
      if ftype == TType.STOP:
10034
        break
10035
      if fid == 1:
10036
        if ftype == TType.I64:
10037
          self.itemId = iprot.readI64();
10038
        else:
10039
          iprot.skip(ftype)
10040
      else:
10041
        iprot.skip(ftype)
10042
      iprot.readFieldEnd()
10043
    iprot.readStructEnd()
10044
 
10045
  def write(self, oprot):
10046
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10047
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10048
      return
10049
    oprot.writeStructBegin('getItemStockPurchaseParams_args')
10050
    if self.itemId is not None:
10051
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10052
      oprot.writeI64(self.itemId)
10053
      oprot.writeFieldEnd()
10054
    oprot.writeFieldStop()
10055
    oprot.writeStructEnd()
10056
 
10057
  def validate(self):
10058
    return
10059
 
10060
 
10061
  def __repr__(self):
10062
    L = ['%s=%r' % (key, value)
10063
      for key, value in self.__dict__.iteritems()]
10064
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10065
 
10066
  def __eq__(self, other):
10067
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10068
 
10069
  def __ne__(self, other):
10070
    return not (self == other)
10071
 
10072
class getItemStockPurchaseParams_result:
10073
  """
10074
  Attributes:
10075
   - success
10076
  """
10077
 
10078
  thrift_spec = (
10079
    (0, TType.STRUCT, 'success', (ItemStockPurchaseParams, ItemStockPurchaseParams.thrift_spec), None, ), # 0
10080
  )
10081
 
10082
  def __init__(self, success=None,):
10083
    self.success = success
10084
 
10085
  def read(self, iprot):
10086
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10087
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10088
      return
10089
    iprot.readStructBegin()
10090
    while True:
10091
      (fname, ftype, fid) = iprot.readFieldBegin()
10092
      if ftype == TType.STOP:
10093
        break
10094
      if fid == 0:
10095
        if ftype == TType.STRUCT:
10096
          self.success = ItemStockPurchaseParams()
10097
          self.success.read(iprot)
10098
        else:
10099
          iprot.skip(ftype)
10100
      else:
10101
        iprot.skip(ftype)
10102
      iprot.readFieldEnd()
10103
    iprot.readStructEnd()
10104
 
10105
  def write(self, oprot):
10106
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10107
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10108
      return
10109
    oprot.writeStructBegin('getItemStockPurchaseParams_result')
10110
    if self.success is not None:
10111
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10112
      self.success.write(oprot)
10113
      oprot.writeFieldEnd()
10114
    oprot.writeFieldStop()
10115
    oprot.writeStructEnd()
10116
 
10117
  def validate(self):
10118
    return
10119
 
10120
 
10121
  def __repr__(self):
10122
    L = ['%s=%r' % (key, value)
10123
      for key, value in self.__dict__.iteritems()]
10124
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10125
 
10126
  def __eq__(self, other):
10127
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10128
 
10129
  def __ne__(self, other):
10130
    return not (self == other)
10131
 
10132
class addOosStatusForItem_args:
10133
  """
10134
  Attributes:
10135
   - oosStatusMap
10136
   - date
10137
  """
10138
 
10139
  thrift_spec = (
10140
    None, # 0
10141
    (1, TType.MAP, 'oosStatusMap', (TType.I64,None,TType.BOOL,None), None, ), # 1
10142
    (2, TType.I64, 'date', None, None, ), # 2
10143
  )
10144
 
10145
  def __init__(self, oosStatusMap=None, date=None,):
10146
    self.oosStatusMap = oosStatusMap
10147
    self.date = date
10148
 
10149
  def read(self, iprot):
10150
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10151
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10152
      return
10153
    iprot.readStructBegin()
10154
    while True:
10155
      (fname, ftype, fid) = iprot.readFieldBegin()
10156
      if ftype == TType.STOP:
10157
        break
10158
      if fid == 1:
10159
        if ftype == TType.MAP:
10160
          self.oosStatusMap = {}
8182 amar.kumar 10161
          (_ktype194, _vtype195, _size193 ) = iprot.readMapBegin() 
10162
          for _i197 in xrange(_size193):
10163
            _key198 = iprot.readI64();
10164
            _val199 = iprot.readBool();
10165
            self.oosStatusMap[_key198] = _val199
6821 amar.kumar 10166
          iprot.readMapEnd()
10167
        else:
10168
          iprot.skip(ftype)
10169
      elif fid == 2:
10170
        if ftype == TType.I64:
10171
          self.date = iprot.readI64();
10172
        else:
10173
          iprot.skip(ftype)
10174
      else:
10175
        iprot.skip(ftype)
10176
      iprot.readFieldEnd()
10177
    iprot.readStructEnd()
10178
 
10179
  def write(self, oprot):
10180
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10181
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10182
      return
10183
    oprot.writeStructBegin('addOosStatusForItem_args')
10184
    if self.oosStatusMap is not None:
10185
      oprot.writeFieldBegin('oosStatusMap', TType.MAP, 1)
10186
      oprot.writeMapBegin(TType.I64, TType.BOOL, len(self.oosStatusMap))
8182 amar.kumar 10187
      for kiter200,viter201 in self.oosStatusMap.items():
10188
        oprot.writeI64(kiter200)
10189
        oprot.writeBool(viter201)
6821 amar.kumar 10190
      oprot.writeMapEnd()
10191
      oprot.writeFieldEnd()
10192
    if self.date is not None:
10193
      oprot.writeFieldBegin('date', TType.I64, 2)
10194
      oprot.writeI64(self.date)
10195
      oprot.writeFieldEnd()
10196
    oprot.writeFieldStop()
10197
    oprot.writeStructEnd()
10198
 
10199
  def validate(self):
10200
    return
10201
 
10202
 
10203
  def __repr__(self):
10204
    L = ['%s=%r' % (key, value)
10205
      for key, value in self.__dict__.iteritems()]
10206
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10207
 
10208
  def __eq__(self, other):
10209
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10210
 
10211
  def __ne__(self, other):
10212
    return not (self == other)
10213
 
10214
class addOosStatusForItem_result:
10215
 
10216
  thrift_spec = (
10217
  )
10218
 
10219
  def read(self, iprot):
10220
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10221
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10222
      return
10223
    iprot.readStructBegin()
10224
    while True:
10225
      (fname, ftype, fid) = iprot.readFieldBegin()
10226
      if ftype == TType.STOP:
10227
        break
10228
      else:
10229
        iprot.skip(ftype)
10230
      iprot.readFieldEnd()
10231
    iprot.readStructEnd()
10232
 
10233
  def write(self, oprot):
10234
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10235
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10236
      return
10237
    oprot.writeStructBegin('addOosStatusForItem_result')
10238
    oprot.writeFieldStop()
10239
    oprot.writeStructEnd()
10240
 
10241
  def validate(self):
10242
    return
10243
 
10244
 
10245
  def __repr__(self):
10246
    L = ['%s=%r' % (key, value)
10247
      for key, value in self.__dict__.iteritems()]
10248
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10249
 
10250
  def __eq__(self, other):
10251
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10252
 
10253
  def __ne__(self, other):
10254
    return not (self == other)
6832 amar.kumar 10255
 
10256
class getOosStatusesForXDaysForItem_args:
10257
  """
10258
  Attributes:
10259
   - itemId
10260
   - days
10261
  """
10262
 
10263
  thrift_spec = (
10264
    None, # 0
10265
    (1, TType.I64, 'itemId', None, None, ), # 1
9761 amar.kumar 10266
    (2, TType.I32, 'days', None, None, ), # 2
6832 amar.kumar 10267
  )
10268
 
9761 amar.kumar 10269
  def __init__(self, itemId=None, days=None,):
6832 amar.kumar 10270
    self.itemId = itemId
10271
    self.days = days
10272
 
10273
  def read(self, iprot):
10274
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10275
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10276
      return
10277
    iprot.readStructBegin()
10278
    while True:
10279
      (fname, ftype, fid) = iprot.readFieldBegin()
10280
      if ftype == TType.STOP:
10281
        break
10282
      if fid == 1:
10283
        if ftype == TType.I64:
10284
          self.itemId = iprot.readI64();
10285
        else:
10286
          iprot.skip(ftype)
10287
      elif fid == 2:
10288
        if ftype == TType.I32:
10289
          self.days = iprot.readI32();
10290
        else:
10291
          iprot.skip(ftype)
10292
      else:
10293
        iprot.skip(ftype)
10294
      iprot.readFieldEnd()
10295
    iprot.readStructEnd()
10296
 
10297
  def write(self, oprot):
10298
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10299
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10300
      return
10301
    oprot.writeStructBegin('getOosStatusesForXDaysForItem_args')
10302
    if self.itemId is not None:
10303
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10304
      oprot.writeI64(self.itemId)
10305
      oprot.writeFieldEnd()
10306
    if self.days is not None:
9761 amar.kumar 10307
      oprot.writeFieldBegin('days', TType.I32, 2)
6832 amar.kumar 10308
      oprot.writeI32(self.days)
10309
      oprot.writeFieldEnd()
10310
    oprot.writeFieldStop()
10311
    oprot.writeStructEnd()
10312
 
10313
  def validate(self):
10314
    return
10315
 
10316
 
10317
  def __repr__(self):
10318
    L = ['%s=%r' % (key, value)
10319
      for key, value in self.__dict__.iteritems()]
10320
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10321
 
10322
  def __eq__(self, other):
10323
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10324
 
10325
  def __ne__(self, other):
10326
    return not (self == other)
10327
 
10328
class getOosStatusesForXDaysForItem_result:
10329
  """
10330
  Attributes:
10331
   - success
10332
  """
10333
 
10334
  thrift_spec = (
10335
    (0, TType.LIST, 'success', (TType.STRUCT,(OOSStatus, OOSStatus.thrift_spec)), None, ), # 0
10336
  )
10337
 
10338
  def __init__(self, success=None,):
10339
    self.success = success
10340
 
10341
  def read(self, iprot):
10342
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10343
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10344
      return
10345
    iprot.readStructBegin()
10346
    while True:
10347
      (fname, ftype, fid) = iprot.readFieldBegin()
10348
      if ftype == TType.STOP:
10349
        break
10350
      if fid == 0:
10351
        if ftype == TType.LIST:
10352
          self.success = []
8182 amar.kumar 10353
          (_etype205, _size202) = iprot.readListBegin()
10354
          for _i206 in xrange(_size202):
10355
            _elem207 = OOSStatus()
10356
            _elem207.read(iprot)
10357
            self.success.append(_elem207)
6832 amar.kumar 10358
          iprot.readListEnd()
10359
        else:
10360
          iprot.skip(ftype)
10361
      else:
10362
        iprot.skip(ftype)
10363
      iprot.readFieldEnd()
10364
    iprot.readStructEnd()
10365
 
10366
  def write(self, oprot):
10367
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10368
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10369
      return
10370
    oprot.writeStructBegin('getOosStatusesForXDaysForItem_result')
10371
    if self.success is not None:
10372
      oprot.writeFieldBegin('success', TType.LIST, 0)
10373
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 10374
      for iter208 in self.success:
10375
        iter208.write(oprot)
6832 amar.kumar 10376
      oprot.writeListEnd()
10377
      oprot.writeFieldEnd()
10378
    oprot.writeFieldStop()
10379
    oprot.writeStructEnd()
10380
 
10381
  def validate(self):
10382
    return
10383
 
10384
 
10385
  def __repr__(self):
10386
    L = ['%s=%r' % (key, value)
10387
      for key, value in self.__dict__.iteritems()]
10388
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10389
 
10390
  def __eq__(self, other):
10391
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10392
 
10393
  def __ne__(self, other):
10394
    return not (self == other)
6857 amar.kumar 10395
 
10396
class getNonZeroItemStockPurchaseParams_args:
10397
 
10398
  thrift_spec = (
10399
  )
10400
 
10401
  def read(self, iprot):
10402
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10403
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10404
      return
10405
    iprot.readStructBegin()
10406
    while True:
10407
      (fname, ftype, fid) = iprot.readFieldBegin()
10408
      if ftype == TType.STOP:
10409
        break
10410
      else:
10411
        iprot.skip(ftype)
10412
      iprot.readFieldEnd()
10413
    iprot.readStructEnd()
10414
 
10415
  def write(self, oprot):
10416
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10417
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10418
      return
10419
    oprot.writeStructBegin('getNonZeroItemStockPurchaseParams_args')
10420
    oprot.writeFieldStop()
10421
    oprot.writeStructEnd()
10422
 
10423
  def validate(self):
10424
    return
10425
 
10426
 
10427
  def __repr__(self):
10428
    L = ['%s=%r' % (key, value)
10429
      for key, value in self.__dict__.iteritems()]
10430
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10431
 
10432
  def __eq__(self, other):
10433
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10434
 
10435
  def __ne__(self, other):
10436
    return not (self == other)
10437
 
10438
class getNonZeroItemStockPurchaseParams_result:
10439
  """
10440
  Attributes:
10441
   - success
10442
  """
10443
 
10444
  thrift_spec = (
10445
    (0, TType.LIST, 'success', (TType.STRUCT,(ItemStockPurchaseParams, ItemStockPurchaseParams.thrift_spec)), None, ), # 0
10446
  )
10447
 
10448
  def __init__(self, success=None,):
10449
    self.success = success
10450
 
10451
  def read(self, iprot):
10452
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10453
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10454
      return
10455
    iprot.readStructBegin()
10456
    while True:
10457
      (fname, ftype, fid) = iprot.readFieldBegin()
10458
      if ftype == TType.STOP:
10459
        break
10460
      if fid == 0:
10461
        if ftype == TType.LIST:
10462
          self.success = []
8182 amar.kumar 10463
          (_etype212, _size209) = iprot.readListBegin()
10464
          for _i213 in xrange(_size209):
10465
            _elem214 = ItemStockPurchaseParams()
10466
            _elem214.read(iprot)
10467
            self.success.append(_elem214)
6857 amar.kumar 10468
          iprot.readListEnd()
10469
        else:
10470
          iprot.skip(ftype)
10471
      else:
10472
        iprot.skip(ftype)
10473
      iprot.readFieldEnd()
10474
    iprot.readStructEnd()
10475
 
10476
  def write(self, oprot):
10477
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10478
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10479
      return
10480
    oprot.writeStructBegin('getNonZeroItemStockPurchaseParams_result')
10481
    if self.success is not None:
10482
      oprot.writeFieldBegin('success', TType.LIST, 0)
10483
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 10484
      for iter215 in self.success:
10485
        iter215.write(oprot)
6857 amar.kumar 10486
      oprot.writeListEnd()
10487
      oprot.writeFieldEnd()
10488
    oprot.writeFieldStop()
10489
    oprot.writeStructEnd()
10490
 
10491
  def validate(self):
10492
    return
10493
 
10494
 
10495
  def __repr__(self):
10496
    L = ['%s=%r' % (key, value)
10497
      for key, value in self.__dict__.iteritems()]
10498
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10499
 
10500
  def __eq__(self, other):
10501
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10502
 
10503
  def __ne__(self, other):
10504
    return not (self == other)
7149 amar.kumar 10505
 
10506
class getBillableInventoryAndPendingOrders_args:
10507
 
10508
  thrift_spec = (
10509
  )
10510
 
10511
  def read(self, iprot):
10512
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10513
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10514
      return
10515
    iprot.readStructBegin()
10516
    while True:
10517
      (fname, ftype, fid) = iprot.readFieldBegin()
10518
      if ftype == TType.STOP:
10519
        break
10520
      else:
10521
        iprot.skip(ftype)
10522
      iprot.readFieldEnd()
10523
    iprot.readStructEnd()
10524
 
10525
  def write(self, oprot):
10526
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10527
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10528
      return
10529
    oprot.writeStructBegin('getBillableInventoryAndPendingOrders_args')
10530
    oprot.writeFieldStop()
10531
    oprot.writeStructEnd()
10532
 
10533
  def validate(self):
10534
    return
10535
 
10536
 
10537
  def __repr__(self):
10538
    L = ['%s=%r' % (key, value)
10539
      for key, value in self.__dict__.iteritems()]
10540
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10541
 
10542
  def __eq__(self, other):
10543
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10544
 
10545
  def __ne__(self, other):
10546
    return not (self == other)
10547
 
10548
class getBillableInventoryAndPendingOrders_result:
10549
  """
10550
  Attributes:
10551
   - success
10552
  """
10553
 
10554
  thrift_spec = (
10555
    (0, TType.LIST, 'success', (TType.STRUCT,(AvailableAndReservedStock, AvailableAndReservedStock.thrift_spec)), None, ), # 0
10556
  )
10557
 
10558
  def __init__(self, success=None,):
10559
    self.success = success
10560
 
10561
  def read(self, iprot):
10562
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10563
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10564
      return
10565
    iprot.readStructBegin()
10566
    while True:
10567
      (fname, ftype, fid) = iprot.readFieldBegin()
10568
      if ftype == TType.STOP:
10569
        break
10570
      if fid == 0:
10571
        if ftype == TType.LIST:
10572
          self.success = []
8182 amar.kumar 10573
          (_etype219, _size216) = iprot.readListBegin()
10574
          for _i220 in xrange(_size216):
10575
            _elem221 = AvailableAndReservedStock()
10576
            _elem221.read(iprot)
10577
            self.success.append(_elem221)
7149 amar.kumar 10578
          iprot.readListEnd()
10579
        else:
10580
          iprot.skip(ftype)
10581
      else:
10582
        iprot.skip(ftype)
10583
      iprot.readFieldEnd()
10584
    iprot.readStructEnd()
10585
 
10586
  def write(self, oprot):
10587
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10588
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10589
      return
10590
    oprot.writeStructBegin('getBillableInventoryAndPendingOrders_result')
10591
    if self.success is not None:
10592
      oprot.writeFieldBegin('success', TType.LIST, 0)
10593
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 10594
      for iter222 in self.success:
10595
        iter222.write(oprot)
7149 amar.kumar 10596
      oprot.writeListEnd()
10597
      oprot.writeFieldEnd()
10598
    oprot.writeFieldStop()
10599
    oprot.writeStructEnd()
10600
 
10601
  def validate(self):
10602
    return
10603
 
10604
 
10605
  def __repr__(self):
10606
    L = ['%s=%r' % (key, value)
10607
      for key, value in self.__dict__.iteritems()]
10608
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10609
 
10610
  def __eq__(self, other):
10611
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10612
 
10613
  def __ne__(self, other):
10614
    return not (self == other)
7281 kshitij.so 10615
 
10616
class getWarehouseName_args:
10617
  """
10618
  Attributes:
10619
   - warehouse_id
10620
  """
10621
 
10622
  thrift_spec = (
10623
    None, # 0
10624
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
10625
  )
10626
 
10627
  def __init__(self, warehouse_id=None,):
10628
    self.warehouse_id = warehouse_id
10629
 
10630
  def read(self, iprot):
10631
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10632
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10633
      return
10634
    iprot.readStructBegin()
10635
    while True:
10636
      (fname, ftype, fid) = iprot.readFieldBegin()
10637
      if ftype == TType.STOP:
10638
        break
10639
      if fid == 1:
10640
        if ftype == TType.I64:
10641
          self.warehouse_id = iprot.readI64();
10642
        else:
10643
          iprot.skip(ftype)
10644
      else:
10645
        iprot.skip(ftype)
10646
      iprot.readFieldEnd()
10647
    iprot.readStructEnd()
10648
 
10649
  def write(self, oprot):
10650
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10651
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10652
      return
10653
    oprot.writeStructBegin('getWarehouseName_args')
10654
    if self.warehouse_id is not None:
10655
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
10656
      oprot.writeI64(self.warehouse_id)
10657
      oprot.writeFieldEnd()
10658
    oprot.writeFieldStop()
10659
    oprot.writeStructEnd()
10660
 
10661
  def validate(self):
10662
    return
10663
 
10664
 
10665
  def __repr__(self):
10666
    L = ['%s=%r' % (key, value)
10667
      for key, value in self.__dict__.iteritems()]
10668
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10669
 
10670
  def __eq__(self, other):
10671
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10672
 
10673
  def __ne__(self, other):
10674
    return not (self == other)
10675
 
10676
class getWarehouseName_result:
10677
  """
10678
  Attributes:
10679
   - success
10680
  """
10681
 
10682
  thrift_spec = (
10683
    (0, TType.STRING, 'success', None, None, ), # 0
10684
  )
10685
 
10686
  def __init__(self, success=None,):
10687
    self.success = success
10688
 
10689
  def read(self, iprot):
10690
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10691
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10692
      return
10693
    iprot.readStructBegin()
10694
    while True:
10695
      (fname, ftype, fid) = iprot.readFieldBegin()
10696
      if ftype == TType.STOP:
10697
        break
10698
      if fid == 0:
10699
        if ftype == TType.STRING:
10700
          self.success = iprot.readString();
10701
        else:
10702
          iprot.skip(ftype)
10703
      else:
10704
        iprot.skip(ftype)
10705
      iprot.readFieldEnd()
10706
    iprot.readStructEnd()
10707
 
10708
  def write(self, oprot):
10709
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10710
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10711
      return
10712
    oprot.writeStructBegin('getWarehouseName_result')
10713
    if self.success is not None:
10714
      oprot.writeFieldBegin('success', TType.STRING, 0)
10715
      oprot.writeString(self.success)
10716
      oprot.writeFieldEnd()
10717
    oprot.writeFieldStop()
10718
    oprot.writeStructEnd()
10719
 
10720
  def validate(self):
10721
    return
10722
 
10723
 
10724
  def __repr__(self):
10725
    L = ['%s=%r' % (key, value)
10726
      for key, value in self.__dict__.iteritems()]
10727
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10728
 
10729
  def __eq__(self, other):
10730
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10731
 
10732
  def __ne__(self, other):
10733
    return not (self == other)
10734
 
10735
class getAmazonInventoryForItem_args:
10736
  """
10737
  Attributes:
10738
   - item_id
10739
  """
10740
 
10741
  thrift_spec = (
10742
    None, # 0
10743
    (1, TType.I64, 'item_id', None, None, ), # 1
10744
  )
10745
 
10746
  def __init__(self, item_id=None,):
10747
    self.item_id = item_id
10748
 
10749
  def read(self, iprot):
10750
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10751
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10752
      return
10753
    iprot.readStructBegin()
10754
    while True:
10755
      (fname, ftype, fid) = iprot.readFieldBegin()
10756
      if ftype == TType.STOP:
10757
        break
10758
      if fid == 1:
10759
        if ftype == TType.I64:
10760
          self.item_id = iprot.readI64();
10761
        else:
10762
          iprot.skip(ftype)
10763
      else:
10764
        iprot.skip(ftype)
10765
      iprot.readFieldEnd()
10766
    iprot.readStructEnd()
10767
 
10768
  def write(self, oprot):
10769
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10770
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10771
      return
10772
    oprot.writeStructBegin('getAmazonInventoryForItem_args')
10773
    if self.item_id is not None:
10774
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10775
      oprot.writeI64(self.item_id)
10776
      oprot.writeFieldEnd()
10777
    oprot.writeFieldStop()
10778
    oprot.writeStructEnd()
10779
 
10780
  def validate(self):
10781
    return
10782
 
10783
 
10784
  def __repr__(self):
10785
    L = ['%s=%r' % (key, value)
10786
      for key, value in self.__dict__.iteritems()]
10787
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10788
 
10789
  def __eq__(self, other):
10790
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10791
 
10792
  def __ne__(self, other):
10793
    return not (self == other)
10794
 
10795
class getAmazonInventoryForItem_result:
10796
  """
10797
  Attributes:
10798
   - success
10799
  """
10800
 
10801
  thrift_spec = (
10802
    (0, TType.STRUCT, 'success', (AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec), None, ), # 0
10803
  )
10804
 
10805
  def __init__(self, success=None,):
10806
    self.success = success
10807
 
10808
  def read(self, iprot):
10809
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10810
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10811
      return
10812
    iprot.readStructBegin()
10813
    while True:
10814
      (fname, ftype, fid) = iprot.readFieldBegin()
10815
      if ftype == TType.STOP:
10816
        break
10817
      if fid == 0:
10818
        if ftype == TType.STRUCT:
10819
          self.success = AmazonInventorySnapshot()
10820
          self.success.read(iprot)
10821
        else:
10822
          iprot.skip(ftype)
10823
      else:
10824
        iprot.skip(ftype)
10825
      iprot.readFieldEnd()
10826
    iprot.readStructEnd()
10827
 
10828
  def write(self, oprot):
10829
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10830
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10831
      return
10832
    oprot.writeStructBegin('getAmazonInventoryForItem_result')
10833
    if self.success is not None:
10834
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10835
      self.success.write(oprot)
10836
      oprot.writeFieldEnd()
10837
    oprot.writeFieldStop()
10838
    oprot.writeStructEnd()
10839
 
10840
  def validate(self):
10841
    return
10842
 
10843
 
10844
  def __repr__(self):
10845
    L = ['%s=%r' % (key, value)
10846
      for key, value in self.__dict__.iteritems()]
10847
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10848
 
10849
  def __eq__(self, other):
10850
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10851
 
10852
  def __ne__(self, other):
10853
    return not (self == other)
10854
 
10855
class getAllAmazonInventory_args:
10856
 
10857
  thrift_spec = (
10858
  )
10859
 
10860
  def read(self, iprot):
10861
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10862
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10863
      return
10864
    iprot.readStructBegin()
10865
    while True:
10866
      (fname, ftype, fid) = iprot.readFieldBegin()
10867
      if ftype == TType.STOP:
10868
        break
10869
      else:
10870
        iprot.skip(ftype)
10871
      iprot.readFieldEnd()
10872
    iprot.readStructEnd()
10873
 
10874
  def write(self, oprot):
10875
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10876
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10877
      return
10878
    oprot.writeStructBegin('getAllAmazonInventory_args')
10879
    oprot.writeFieldStop()
10880
    oprot.writeStructEnd()
10881
 
10882
  def validate(self):
10883
    return
10884
 
10885
 
10886
  def __repr__(self):
10887
    L = ['%s=%r' % (key, value)
10888
      for key, value in self.__dict__.iteritems()]
10889
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10890
 
10891
  def __eq__(self, other):
10892
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10893
 
10894
  def __ne__(self, other):
10895
    return not (self == other)
10896
 
10897
class getAllAmazonInventory_result:
10898
  """
10899
  Attributes:
10900
   - success
10901
  """
10902
 
10903
  thrift_spec = (
10904
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec)), None, ), # 0
10905
  )
10906
 
10907
  def __init__(self, success=None,):
10908
    self.success = success
10909
 
10910
  def read(self, iprot):
10911
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10912
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10913
      return
10914
    iprot.readStructBegin()
10915
    while True:
10916
      (fname, ftype, fid) = iprot.readFieldBegin()
10917
      if ftype == TType.STOP:
10918
        break
10919
      if fid == 0:
10920
        if ftype == TType.LIST:
10921
          self.success = []
8182 amar.kumar 10922
          (_etype226, _size223) = iprot.readListBegin()
10923
          for _i227 in xrange(_size223):
10924
            _elem228 = AmazonInventorySnapshot()
10925
            _elem228.read(iprot)
10926
            self.success.append(_elem228)
7281 kshitij.so 10927
          iprot.readListEnd()
10928
        else:
10929
          iprot.skip(ftype)
10930
      else:
10931
        iprot.skip(ftype)
10932
      iprot.readFieldEnd()
10933
    iprot.readStructEnd()
10934
 
10935
  def write(self, oprot):
10936
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10937
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10938
      return
10939
    oprot.writeStructBegin('getAllAmazonInventory_result')
10940
    if self.success is not None:
10941
      oprot.writeFieldBegin('success', TType.LIST, 0)
10942
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 10943
      for iter229 in self.success:
10944
        iter229.write(oprot)
7281 kshitij.so 10945
      oprot.writeListEnd()
10946
      oprot.writeFieldEnd()
10947
    oprot.writeFieldStop()
10948
    oprot.writeStructEnd()
10949
 
10950
  def validate(self):
10951
    return
10952
 
10953
 
10954
  def __repr__(self):
10955
    L = ['%s=%r' % (key, value)
10956
      for key, value in self.__dict__.iteritems()]
10957
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10958
 
10959
  def __eq__(self, other):
10960
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10961
 
10962
  def __ne__(self, other):
10963
    return not (self == other)
10964
 
10965
class addOrUpdateAmazonInventoryForItem_args:
10966
  """
10967
  Attributes:
10968
   - amazonInventorySnapshot
10969
  """
10970
 
10971
  thrift_spec = (
10972
    None, # 0
10973
    (1, TType.STRUCT, 'amazonInventorySnapshot', (AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec), None, ), # 1
10974
  )
10975
 
10976
  def __init__(self, amazonInventorySnapshot=None,):
10977
    self.amazonInventorySnapshot = amazonInventorySnapshot
10978
 
10979
  def read(self, iprot):
10980
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10981
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10982
      return
10983
    iprot.readStructBegin()
10984
    while True:
10985
      (fname, ftype, fid) = iprot.readFieldBegin()
10986
      if ftype == TType.STOP:
10987
        break
10988
      if fid == 1:
10989
        if ftype == TType.STRUCT:
10990
          self.amazonInventorySnapshot = AmazonInventorySnapshot()
10991
          self.amazonInventorySnapshot.read(iprot)
10992
        else:
10993
          iprot.skip(ftype)
10994
      else:
10995
        iprot.skip(ftype)
10996
      iprot.readFieldEnd()
10997
    iprot.readStructEnd()
10998
 
10999
  def write(self, oprot):
11000
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11001
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11002
      return
11003
    oprot.writeStructBegin('addOrUpdateAmazonInventoryForItem_args')
11004
    if self.amazonInventorySnapshot is not None:
11005
      oprot.writeFieldBegin('amazonInventorySnapshot', TType.STRUCT, 1)
11006
      self.amazonInventorySnapshot.write(oprot)
11007
      oprot.writeFieldEnd()
11008
    oprot.writeFieldStop()
11009
    oprot.writeStructEnd()
11010
 
11011
  def validate(self):
11012
    return
11013
 
11014
 
11015
  def __repr__(self):
11016
    L = ['%s=%r' % (key, value)
11017
      for key, value in self.__dict__.iteritems()]
11018
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11019
 
11020
  def __eq__(self, other):
11021
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11022
 
11023
  def __ne__(self, other):
11024
    return not (self == other)
11025
 
11026
class addOrUpdateAmazonInventoryForItem_result:
11027
 
11028
  thrift_spec = (
11029
  )
11030
 
11031
  def read(self, iprot):
11032
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11033
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11034
      return
11035
    iprot.readStructBegin()
11036
    while True:
11037
      (fname, ftype, fid) = iprot.readFieldBegin()
11038
      if ftype == TType.STOP:
11039
        break
11040
      else:
11041
        iprot.skip(ftype)
11042
      iprot.readFieldEnd()
11043
    iprot.readStructEnd()
11044
 
11045
  def write(self, oprot):
11046
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11047
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11048
      return
11049
    oprot.writeStructBegin('addOrUpdateAmazonInventoryForItem_result')
11050
    oprot.writeFieldStop()
11051
    oprot.writeStructEnd()
11052
 
11053
  def validate(self):
11054
    return
11055
 
11056
 
11057
  def __repr__(self):
11058
    L = ['%s=%r' % (key, value)
11059
      for key, value in self.__dict__.iteritems()]
11060
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11061
 
11062
  def __eq__(self, other):
11063
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11064
 
11065
  def __ne__(self, other):
11066
    return not (self == other)
7972 amar.kumar 11067
 
11068
class getLastNdaySaleForItem_args:
11069
  """
11070
  Attributes:
11071
   - itemId
11072
   - numberOfDays
11073
  """
11074
 
11075
  thrift_spec = (
11076
    None, # 0
11077
    (1, TType.I64, 'itemId', None, None, ), # 1
11078
    (2, TType.I64, 'numberOfDays', None, None, ), # 2
11079
  )
11080
 
11081
  def __init__(self, itemId=None, numberOfDays=None,):
11082
    self.itemId = itemId
11083
    self.numberOfDays = numberOfDays
11084
 
11085
  def read(self, iprot):
11086
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11087
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11088
      return
11089
    iprot.readStructBegin()
11090
    while True:
11091
      (fname, ftype, fid) = iprot.readFieldBegin()
11092
      if ftype == TType.STOP:
11093
        break
11094
      if fid == 1:
11095
        if ftype == TType.I64:
11096
          self.itemId = iprot.readI64();
11097
        else:
11098
          iprot.skip(ftype)
11099
      elif fid == 2:
11100
        if ftype == TType.I64:
11101
          self.numberOfDays = iprot.readI64();
11102
        else:
11103
          iprot.skip(ftype)
11104
      else:
11105
        iprot.skip(ftype)
11106
      iprot.readFieldEnd()
11107
    iprot.readStructEnd()
11108
 
11109
  def write(self, oprot):
11110
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11111
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11112
      return
11113
    oprot.writeStructBegin('getLastNdaySaleForItem_args')
11114
    if self.itemId is not None:
11115
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11116
      oprot.writeI64(self.itemId)
11117
      oprot.writeFieldEnd()
11118
    if self.numberOfDays is not None:
11119
      oprot.writeFieldBegin('numberOfDays', TType.I64, 2)
11120
      oprot.writeI64(self.numberOfDays)
11121
      oprot.writeFieldEnd()
11122
    oprot.writeFieldStop()
11123
    oprot.writeStructEnd()
11124
 
11125
  def validate(self):
11126
    return
11127
 
11128
 
11129
  def __repr__(self):
11130
    L = ['%s=%r' % (key, value)
11131
      for key, value in self.__dict__.iteritems()]
11132
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11133
 
11134
  def __eq__(self, other):
11135
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11136
 
11137
  def __ne__(self, other):
11138
    return not (self == other)
11139
 
11140
class getLastNdaySaleForItem_result:
11141
  """
11142
  Attributes:
11143
   - success
11144
  """
11145
 
11146
  thrift_spec = (
11147
    (0, TType.STRING, 'success', None, None, ), # 0
11148
  )
11149
 
11150
  def __init__(self, success=None,):
11151
    self.success = success
11152
 
11153
  def read(self, iprot):
11154
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11155
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11156
      return
11157
    iprot.readStructBegin()
11158
    while True:
11159
      (fname, ftype, fid) = iprot.readFieldBegin()
11160
      if ftype == TType.STOP:
11161
        break
11162
      if fid == 0:
11163
        if ftype == TType.STRING:
11164
          self.success = iprot.readString();
11165
        else:
11166
          iprot.skip(ftype)
11167
      else:
11168
        iprot.skip(ftype)
11169
      iprot.readFieldEnd()
11170
    iprot.readStructEnd()
11171
 
11172
  def write(self, oprot):
11173
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11174
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11175
      return
11176
    oprot.writeStructBegin('getLastNdaySaleForItem_result')
11177
    if self.success is not None:
11178
      oprot.writeFieldBegin('success', TType.STRING, 0)
11179
      oprot.writeString(self.success)
11180
      oprot.writeFieldEnd()
11181
    oprot.writeFieldStop()
11182
    oprot.writeStructEnd()
11183
 
11184
  def validate(self):
11185
    return
11186
 
11187
 
11188
  def __repr__(self):
11189
    L = ['%s=%r' % (key, value)
11190
      for key, value in self.__dict__.iteritems()]
11191
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11192
 
11193
  def __eq__(self, other):
11194
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11195
 
11196
  def __ne__(self, other):
11197
    return not (self == other)
8182 amar.kumar 11198
 
8282 kshitij.so 11199
class addOrUpdateAmazonFbaInventory_args:
11200
  """
11201
  Attributes:
11202
   - amazonfbainventorysnapshot
11203
  """
11204
 
11205
  thrift_spec = (
11206
    None, # 0
11207
    (1, TType.STRUCT, 'amazonfbainventorysnapshot', (AmazonFbaInventorySnapshot, AmazonFbaInventorySnapshot.thrift_spec), None, ), # 1
11208
  )
11209
 
11210
  def __init__(self, amazonfbainventorysnapshot=None,):
11211
    self.amazonfbainventorysnapshot = amazonfbainventorysnapshot
11212
 
11213
  def read(self, iprot):
11214
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11215
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11216
      return
11217
    iprot.readStructBegin()
11218
    while True:
11219
      (fname, ftype, fid) = iprot.readFieldBegin()
11220
      if ftype == TType.STOP:
11221
        break
11222
      if fid == 1:
11223
        if ftype == TType.STRUCT:
11224
          self.amazonfbainventorysnapshot = AmazonFbaInventorySnapshot()
11225
          self.amazonfbainventorysnapshot.read(iprot)
11226
        else:
11227
          iprot.skip(ftype)
11228
      else:
11229
        iprot.skip(ftype)
11230
      iprot.readFieldEnd()
11231
    iprot.readStructEnd()
11232
 
11233
  def write(self, oprot):
11234
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11235
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11236
      return
11237
    oprot.writeStructBegin('addOrUpdateAmazonFbaInventory_args')
11238
    if self.amazonfbainventorysnapshot is not None:
11239
      oprot.writeFieldBegin('amazonfbainventorysnapshot', TType.STRUCT, 1)
11240
      self.amazonfbainventorysnapshot.write(oprot)
11241
      oprot.writeFieldEnd()
11242
    oprot.writeFieldStop()
11243
    oprot.writeStructEnd()
11244
 
11245
  def validate(self):
11246
    return
11247
 
11248
 
11249
  def __repr__(self):
11250
    L = ['%s=%r' % (key, value)
11251
      for key, value in self.__dict__.iteritems()]
11252
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11253
 
11254
  def __eq__(self, other):
11255
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11256
 
11257
  def __ne__(self, other):
11258
    return not (self == other)
11259
 
11260
class addOrUpdateAmazonFbaInventory_result:
11261
 
11262
  thrift_spec = (
11263
  )
11264
 
11265
  def read(self, iprot):
11266
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11267
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11268
      return
11269
    iprot.readStructBegin()
11270
    while True:
11271
      (fname, ftype, fid) = iprot.readFieldBegin()
11272
      if ftype == TType.STOP:
11273
        break
11274
      else:
11275
        iprot.skip(ftype)
11276
      iprot.readFieldEnd()
11277
    iprot.readStructEnd()
11278
 
11279
  def write(self, oprot):
11280
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11281
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11282
      return
11283
    oprot.writeStructBegin('addOrUpdateAmazonFbaInventory_result')
11284
    oprot.writeFieldStop()
11285
    oprot.writeStructEnd()
11286
 
11287
  def validate(self):
11288
    return
11289
 
11290
 
11291
  def __repr__(self):
11292
    L = ['%s=%r' % (key, value)
11293
      for key, value in self.__dict__.iteritems()]
11294
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11295
 
11296
  def __eq__(self, other):
11297
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11298
 
11299
  def __ne__(self, other):
11300
    return not (self == other)
11301
 
8182 amar.kumar 11302
class addUpdateHoldInventory_args:
11303
  """
11304
  Attributes:
11305
   - itemId
11306
   - warehouseId
11307
   - holdQuantity
11308
   - source
11309
  """
11310
 
11311
  thrift_spec = (
11312
    None, # 0
11313
    (1, TType.I64, 'itemId', None, None, ), # 1
11314
    (2, TType.I64, 'warehouseId', None, None, ), # 2
11315
    (3, TType.I64, 'holdQuantity', None, None, ), # 3
11316
    (4, TType.I64, 'source', None, None, ), # 4
11317
  )
11318
 
11319
  def __init__(self, itemId=None, warehouseId=None, holdQuantity=None, source=None,):
11320
    self.itemId = itemId
11321
    self.warehouseId = warehouseId
11322
    self.holdQuantity = holdQuantity
11323
    self.source = source
11324
 
11325
  def read(self, iprot):
11326
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11327
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11328
      return
11329
    iprot.readStructBegin()
11330
    while True:
11331
      (fname, ftype, fid) = iprot.readFieldBegin()
11332
      if ftype == TType.STOP:
11333
        break
11334
      if fid == 1:
11335
        if ftype == TType.I64:
11336
          self.itemId = iprot.readI64();
11337
        else:
11338
          iprot.skip(ftype)
11339
      elif fid == 2:
11340
        if ftype == TType.I64:
11341
          self.warehouseId = iprot.readI64();
11342
        else:
11343
          iprot.skip(ftype)
11344
      elif fid == 3:
11345
        if ftype == TType.I64:
11346
          self.holdQuantity = iprot.readI64();
11347
        else:
11348
          iprot.skip(ftype)
11349
      elif fid == 4:
11350
        if ftype == TType.I64:
11351
          self.source = iprot.readI64();
11352
        else:
11353
          iprot.skip(ftype)
11354
      else:
11355
        iprot.skip(ftype)
11356
      iprot.readFieldEnd()
11357
    iprot.readStructEnd()
11358
 
11359
  def write(self, oprot):
11360
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11361
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11362
      return
11363
    oprot.writeStructBegin('addUpdateHoldInventory_args')
11364
    if self.itemId is not None:
11365
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11366
      oprot.writeI64(self.itemId)
11367
      oprot.writeFieldEnd()
11368
    if self.warehouseId is not None:
11369
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
11370
      oprot.writeI64(self.warehouseId)
11371
      oprot.writeFieldEnd()
11372
    if self.holdQuantity is not None:
11373
      oprot.writeFieldBegin('holdQuantity', TType.I64, 3)
11374
      oprot.writeI64(self.holdQuantity)
11375
      oprot.writeFieldEnd()
11376
    if self.source is not None:
11377
      oprot.writeFieldBegin('source', TType.I64, 4)
11378
      oprot.writeI64(self.source)
11379
      oprot.writeFieldEnd()
11380
    oprot.writeFieldStop()
11381
    oprot.writeStructEnd()
11382
 
11383
  def validate(self):
11384
    return
11385
 
11386
 
11387
  def __repr__(self):
11388
    L = ['%s=%r' % (key, value)
11389
      for key, value in self.__dict__.iteritems()]
11390
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11391
 
11392
  def __eq__(self, other):
11393
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11394
 
11395
  def __ne__(self, other):
11396
    return not (self == other)
11397
 
11398
class addUpdateHoldInventory_result:
11399
 
11400
  thrift_spec = (
11401
  )
11402
 
11403
  def read(self, iprot):
11404
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11405
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11406
      return
11407
    iprot.readStructBegin()
11408
    while True:
11409
      (fname, ftype, fid) = iprot.readFieldBegin()
11410
      if ftype == TType.STOP:
11411
        break
11412
      else:
11413
        iprot.skip(ftype)
11414
      iprot.readFieldEnd()
11415
    iprot.readStructEnd()
11416
 
11417
  def write(self, oprot):
11418
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11419
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11420
      return
11421
    oprot.writeStructBegin('addUpdateHoldInventory_result')
11422
    oprot.writeFieldStop()
11423
    oprot.writeStructEnd()
11424
 
11425
  def validate(self):
11426
    return
11427
 
11428
 
11429
  def __repr__(self):
11430
    L = ['%s=%r' % (key, value)
11431
      for key, value in self.__dict__.iteritems()]
11432
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11433
 
11434
  def __eq__(self, other):
11435
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11436
 
11437
  def __ne__(self, other):
11438
    return not (self == other)
8282 kshitij.so 11439
 
11440
class getAmazonFbaItemInventory_args:
11441
  """
11442
  Attributes:
11443
   - itemId
11444
  """
11445
 
11446
  thrift_spec = (
11447
    None, # 0
11448
    (1, TType.I64, 'itemId', None, None, ), # 1
11449
  )
11450
 
11451
  def __init__(self, itemId=None,):
11452
    self.itemId = itemId
11453
 
11454
  def read(self, iprot):
11455
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11456
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11457
      return
11458
    iprot.readStructBegin()
11459
    while True:
11460
      (fname, ftype, fid) = iprot.readFieldBegin()
11461
      if ftype == TType.STOP:
11462
        break
11463
      if fid == 1:
11464
        if ftype == TType.I64:
11465
          self.itemId = iprot.readI64();
11466
        else:
11467
          iprot.skip(ftype)
11468
      else:
11469
        iprot.skip(ftype)
11470
      iprot.readFieldEnd()
11471
    iprot.readStructEnd()
11472
 
11473
  def write(self, oprot):
11474
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11475
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11476
      return
11477
    oprot.writeStructBegin('getAmazonFbaItemInventory_args')
11478
    if self.itemId is not None:
11479
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11480
      oprot.writeI64(self.itemId)
11481
      oprot.writeFieldEnd()
11482
    oprot.writeFieldStop()
11483
    oprot.writeStructEnd()
11484
 
11485
  def validate(self):
11486
    return
11487
 
11488
 
11489
  def __repr__(self):
11490
    L = ['%s=%r' % (key, value)
11491
      for key, value in self.__dict__.iteritems()]
11492
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11493
 
11494
  def __eq__(self, other):
11495
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11496
 
11497
  def __ne__(self, other):
11498
    return not (self == other)
11499
 
11500
class getAmazonFbaItemInventory_result:
11501
  """
11502
  Attributes:
11503
   - success
11504
  """
11505
 
11506
  thrift_spec = (
11507
    (0, TType.I64, 'success', None, None, ), # 0
11508
  )
11509
 
11510
  def __init__(self, success=None,):
11511
    self.success = success
11512
 
11513
  def read(self, iprot):
11514
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11515
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11516
      return
11517
    iprot.readStructBegin()
11518
    while True:
11519
      (fname, ftype, fid) = iprot.readFieldBegin()
11520
      if ftype == TType.STOP:
11521
        break
11522
      if fid == 0:
11523
        if ftype == TType.I64:
11524
          self.success = iprot.readI64();
11525
        else:
11526
          iprot.skip(ftype)
11527
      else:
11528
        iprot.skip(ftype)
11529
      iprot.readFieldEnd()
11530
    iprot.readStructEnd()
11531
 
11532
  def write(self, oprot):
11533
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11534
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11535
      return
11536
    oprot.writeStructBegin('getAmazonFbaItemInventory_result')
11537
    if self.success is not None:
11538
      oprot.writeFieldBegin('success', TType.I64, 0)
11539
      oprot.writeI64(self.success)
11540
      oprot.writeFieldEnd()
11541
    oprot.writeFieldStop()
11542
    oprot.writeStructEnd()
11543
 
11544
  def validate(self):
11545
    return
11546
 
11547
 
11548
  def __repr__(self):
11549
    L = ['%s=%r' % (key, value)
11550
      for key, value in self.__dict__.iteritems()]
11551
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11552
 
11553
  def __eq__(self, other):
11554
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11555
 
11556
  def __ne__(self, other):
11557
    return not (self == other)
11558
 
8363 vikram.rag 11559
class getAllAmazonFbaItemInventory_args:
8282 kshitij.so 11560
 
11561
  thrift_spec = (
11562
  )
11563
 
11564
  def read(self, iprot):
11565
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11566
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11567
      return
11568
    iprot.readStructBegin()
11569
    while True:
11570
      (fname, ftype, fid) = iprot.readFieldBegin()
11571
      if ftype == TType.STOP:
11572
        break
11573
      else:
11574
        iprot.skip(ftype)
11575
      iprot.readFieldEnd()
11576
    iprot.readStructEnd()
11577
 
11578
  def write(self, oprot):
11579
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11580
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11581
      return
8363 vikram.rag 11582
    oprot.writeStructBegin('getAllAmazonFbaItemInventory_args')
8282 kshitij.so 11583
    oprot.writeFieldStop()
11584
    oprot.writeStructEnd()
11585
 
11586
  def validate(self):
11587
    return
11588
 
11589
 
11590
  def __repr__(self):
11591
    L = ['%s=%r' % (key, value)
11592
      for key, value in self.__dict__.iteritems()]
11593
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11594
 
11595
  def __eq__(self, other):
11596
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11597
 
11598
  def __ne__(self, other):
11599
    return not (self == other)
11600
 
8363 vikram.rag 11601
class getAllAmazonFbaItemInventory_result:
8282 kshitij.so 11602
  """
11603
  Attributes:
11604
   - success
11605
  """
11606
 
11607
  thrift_spec = (
11608
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonFbaInventorySnapshot, AmazonFbaInventorySnapshot.thrift_spec)), None, ), # 0
11609
  )
11610
 
11611
  def __init__(self, success=None,):
11612
    self.success = success
11613
 
11614
  def read(self, iprot):
11615
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11616
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11617
      return
11618
    iprot.readStructBegin()
11619
    while True:
11620
      (fname, ftype, fid) = iprot.readFieldBegin()
11621
      if ftype == TType.STOP:
11622
        break
11623
      if fid == 0:
11624
        if ftype == TType.LIST:
11625
          self.success = []
11626
          (_etype233, _size230) = iprot.readListBegin()
11627
          for _i234 in xrange(_size230):
11628
            _elem235 = AmazonFbaInventorySnapshot()
11629
            _elem235.read(iprot)
11630
            self.success.append(_elem235)
11631
          iprot.readListEnd()
11632
        else:
11633
          iprot.skip(ftype)
11634
      else:
11635
        iprot.skip(ftype)
11636
      iprot.readFieldEnd()
11637
    iprot.readStructEnd()
11638
 
11639
  def write(self, oprot):
11640
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11641
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11642
      return
8363 vikram.rag 11643
    oprot.writeStructBegin('getAllAmazonFbaItemInventory_result')
8282 kshitij.so 11644
    if self.success is not None:
11645
      oprot.writeFieldBegin('success', TType.LIST, 0)
11646
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11647
      for iter236 in self.success:
11648
        iter236.write(oprot)
11649
      oprot.writeListEnd()
11650
      oprot.writeFieldEnd()
11651
    oprot.writeFieldStop()
11652
    oprot.writeStructEnd()
11653
 
11654
  def validate(self):
11655
    return
11656
 
11657
 
11658
  def __repr__(self):
11659
    L = ['%s=%r' % (key, value)
11660
      for key, value in self.__dict__.iteritems()]
11661
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11662
 
11663
  def __eq__(self, other):
11664
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11665
 
11666
  def __ne__(self, other):
11667
    return not (self == other)
8363 vikram.rag 11668
 
11669
class getOursGoodWarehouseIdsForLocation_args:
11670
  """
11671
  Attributes:
11672
   - state_id
11673
  """
11674
 
11675
  thrift_spec = (
11676
    None, # 0
11677
    (1, TType.I64, 'state_id', None, None, ), # 1
11678
  )
11679
 
11680
  def __init__(self, state_id=None,):
11681
    self.state_id = state_id
11682
 
11683
  def read(self, iprot):
11684
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11685
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11686
      return
11687
    iprot.readStructBegin()
11688
    while True:
11689
      (fname, ftype, fid) = iprot.readFieldBegin()
11690
      if ftype == TType.STOP:
11691
        break
11692
      if fid == 1:
11693
        if ftype == TType.I64:
11694
          self.state_id = iprot.readI64();
11695
        else:
11696
          iprot.skip(ftype)
11697
      else:
11698
        iprot.skip(ftype)
11699
      iprot.readFieldEnd()
11700
    iprot.readStructEnd()
11701
 
11702
  def write(self, oprot):
11703
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11704
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11705
      return
11706
    oprot.writeStructBegin('getOursGoodWarehouseIdsForLocation_args')
11707
    if self.state_id is not None:
11708
      oprot.writeFieldBegin('state_id', TType.I64, 1)
11709
      oprot.writeI64(self.state_id)
11710
      oprot.writeFieldEnd()
11711
    oprot.writeFieldStop()
11712
    oprot.writeStructEnd()
11713
 
11714
  def validate(self):
11715
    return
11716
 
11717
 
11718
  def __repr__(self):
11719
    L = ['%s=%r' % (key, value)
11720
      for key, value in self.__dict__.iteritems()]
11721
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11722
 
11723
  def __eq__(self, other):
11724
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11725
 
11726
  def __ne__(self, other):
11727
    return not (self == other)
11728
 
11729
class getOursGoodWarehouseIdsForLocation_result:
11730
  """
11731
  Attributes:
11732
   - success
11733
  """
11734
 
11735
  thrift_spec = (
11736
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
11737
  )
11738
 
11739
  def __init__(self, success=None,):
11740
    self.success = success
11741
 
11742
  def read(self, iprot):
11743
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11744
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11745
      return
11746
    iprot.readStructBegin()
11747
    while True:
11748
      (fname, ftype, fid) = iprot.readFieldBegin()
11749
      if ftype == TType.STOP:
11750
        break
11751
      if fid == 0:
11752
        if ftype == TType.LIST:
11753
          self.success = []
11754
          (_etype240, _size237) = iprot.readListBegin()
11755
          for _i241 in xrange(_size237):
11756
            _elem242 = iprot.readI64();
11757
            self.success.append(_elem242)
11758
          iprot.readListEnd()
11759
        else:
11760
          iprot.skip(ftype)
11761
      else:
11762
        iprot.skip(ftype)
11763
      iprot.readFieldEnd()
11764
    iprot.readStructEnd()
11765
 
11766
  def write(self, oprot):
11767
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11768
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11769
      return
11770
    oprot.writeStructBegin('getOursGoodWarehouseIdsForLocation_result')
11771
    if self.success is not None:
11772
      oprot.writeFieldBegin('success', TType.LIST, 0)
11773
      oprot.writeListBegin(TType.I64, len(self.success))
11774
      for iter243 in self.success:
11775
        oprot.writeI64(iter243)
11776
      oprot.writeListEnd()
11777
      oprot.writeFieldEnd()
11778
    oprot.writeFieldStop()
11779
    oprot.writeStructEnd()
11780
 
11781
  def validate(self):
11782
    return
11783
 
11784
 
11785
  def __repr__(self):
11786
    L = ['%s=%r' % (key, value)
11787
      for key, value in self.__dict__.iteritems()]
11788
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11789
 
11790
  def __eq__(self, other):
11791
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11792
 
11793
  def __ne__(self, other):
11794
    return not (self == other)
8955 vikram.rag 11795
 
11796
class getHoldInventoryDetailForItemForWarehouseIdExceptSource_args:
11797
  """
11798
  Attributes:
11799
   - id
11800
   - warehouse_id
11801
   - source
11802
  """
11803
 
11804
  thrift_spec = (
11805
    None, # 0
11806
    (1, TType.I64, 'id', None, None, ), # 1
11807
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
11808
    (3, TType.I64, 'source', None, None, ), # 3
11809
  )
11810
 
11811
  def __init__(self, id=None, warehouse_id=None, source=None,):
11812
    self.id = id
11813
    self.warehouse_id = warehouse_id
11814
    self.source = source
11815
 
11816
  def read(self, iprot):
11817
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11818
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11819
      return
11820
    iprot.readStructBegin()
11821
    while True:
11822
      (fname, ftype, fid) = iprot.readFieldBegin()
11823
      if ftype == TType.STOP:
11824
        break
11825
      if fid == 1:
11826
        if ftype == TType.I64:
11827
          self.id = iprot.readI64();
11828
        else:
11829
          iprot.skip(ftype)
11830
      elif fid == 2:
11831
        if ftype == TType.I64:
11832
          self.warehouse_id = iprot.readI64();
11833
        else:
11834
          iprot.skip(ftype)
11835
      elif fid == 3:
11836
        if ftype == TType.I64:
11837
          self.source = iprot.readI64();
11838
        else:
11839
          iprot.skip(ftype)
11840
      else:
11841
        iprot.skip(ftype)
11842
      iprot.readFieldEnd()
11843
    iprot.readStructEnd()
11844
 
11845
  def write(self, oprot):
11846
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11847
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11848
      return
11849
    oprot.writeStructBegin('getHoldInventoryDetailForItemForWarehouseIdExceptSource_args')
11850
    if self.id is not None:
11851
      oprot.writeFieldBegin('id', TType.I64, 1)
11852
      oprot.writeI64(self.id)
11853
      oprot.writeFieldEnd()
11854
    if self.warehouse_id is not None:
11855
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
11856
      oprot.writeI64(self.warehouse_id)
11857
      oprot.writeFieldEnd()
11858
    if self.source is not None:
11859
      oprot.writeFieldBegin('source', TType.I64, 3)
11860
      oprot.writeI64(self.source)
11861
      oprot.writeFieldEnd()
11862
    oprot.writeFieldStop()
11863
    oprot.writeStructEnd()
11864
 
11865
  def validate(self):
11866
    return
11867
 
11868
 
11869
  def __repr__(self):
11870
    L = ['%s=%r' % (key, value)
11871
      for key, value in self.__dict__.iteritems()]
11872
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11873
 
11874
  def __eq__(self, other):
11875
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11876
 
11877
  def __ne__(self, other):
11878
    return not (self == other)
11879
 
11880
class getHoldInventoryDetailForItemForWarehouseIdExceptSource_result:
11881
  """
11882
  Attributes:
11883
   - success
11884
  """
11885
 
11886
  thrift_spec = (
11887
    (0, TType.I64, 'success', None, None, ), # 0
11888
  )
11889
 
11890
  def __init__(self, success=None,):
11891
    self.success = success
11892
 
11893
  def read(self, iprot):
11894
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11895
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11896
      return
11897
    iprot.readStructBegin()
11898
    while True:
11899
      (fname, ftype, fid) = iprot.readFieldBegin()
11900
      if ftype == TType.STOP:
11901
        break
11902
      if fid == 0:
11903
        if ftype == TType.I64:
11904
          self.success = iprot.readI64();
11905
        else:
11906
          iprot.skip(ftype)
11907
      else:
11908
        iprot.skip(ftype)
11909
      iprot.readFieldEnd()
11910
    iprot.readStructEnd()
11911
 
11912
  def write(self, oprot):
11913
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11914
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11915
      return
11916
    oprot.writeStructBegin('getHoldInventoryDetailForItemForWarehouseIdExceptSource_result')
11917
    if self.success is not None:
11918
      oprot.writeFieldBegin('success', TType.I64, 0)
11919
      oprot.writeI64(self.success)
11920
      oprot.writeFieldEnd()
11921
    oprot.writeFieldStop()
11922
    oprot.writeStructEnd()
11923
 
11924
  def validate(self):
11925
    return
11926
 
11927
 
11928
  def __repr__(self):
11929
    L = ['%s=%r' % (key, value)
11930
      for key, value in self.__dict__.iteritems()]
11931
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11932
 
11933
  def __eq__(self, other):
11934
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11935
 
11936
  def __ne__(self, other):
11937
    return not (self == other)
9404 vikram.rag 11938
 
11939
class getSnapdealInventoryForItem_args:
11940
  """
11941
  Attributes:
11942
   - item_id
11943
  """
11944
 
11945
  thrift_spec = (
11946
    None, # 0
11947
    (1, TType.I64, 'item_id', None, None, ), # 1
11948
  )
11949
 
11950
  def __init__(self, item_id=None,):
11951
    self.item_id = item_id
11952
 
11953
  def read(self, iprot):
11954
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11955
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11956
      return
11957
    iprot.readStructBegin()
11958
    while True:
11959
      (fname, ftype, fid) = iprot.readFieldBegin()
11960
      if ftype == TType.STOP:
11961
        break
11962
      if fid == 1:
11963
        if ftype == TType.I64:
11964
          self.item_id = iprot.readI64();
11965
        else:
11966
          iprot.skip(ftype)
11967
      else:
11968
        iprot.skip(ftype)
11969
      iprot.readFieldEnd()
11970
    iprot.readStructEnd()
11971
 
11972
  def write(self, oprot):
11973
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11974
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11975
      return
11976
    oprot.writeStructBegin('getSnapdealInventoryForItem_args')
11977
    if self.item_id is not None:
11978
      oprot.writeFieldBegin('item_id', TType.I64, 1)
11979
      oprot.writeI64(self.item_id)
11980
      oprot.writeFieldEnd()
11981
    oprot.writeFieldStop()
11982
    oprot.writeStructEnd()
11983
 
11984
  def validate(self):
11985
    return
11986
 
11987
 
11988
  def __repr__(self):
11989
    L = ['%s=%r' % (key, value)
11990
      for key, value in self.__dict__.iteritems()]
11991
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11992
 
11993
  def __eq__(self, other):
11994
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11995
 
11996
  def __ne__(self, other):
11997
    return not (self == other)
11998
 
11999
class getSnapdealInventoryForItem_result:
12000
  """
12001
  Attributes:
12002
   - success
12003
  """
12004
 
12005
  thrift_spec = (
12006
    (0, TType.STRUCT, 'success', (SnapdealInventoryItem, SnapdealInventoryItem.thrift_spec), None, ), # 0
12007
  )
12008
 
12009
  def __init__(self, success=None,):
12010
    self.success = success
12011
 
12012
  def read(self, iprot):
12013
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12014
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12015
      return
12016
    iprot.readStructBegin()
12017
    while True:
12018
      (fname, ftype, fid) = iprot.readFieldBegin()
12019
      if ftype == TType.STOP:
12020
        break
12021
      if fid == 0:
12022
        if ftype == TType.STRUCT:
12023
          self.success = SnapdealInventoryItem()
12024
          self.success.read(iprot)
12025
        else:
12026
          iprot.skip(ftype)
12027
      else:
12028
        iprot.skip(ftype)
12029
      iprot.readFieldEnd()
12030
    iprot.readStructEnd()
12031
 
12032
  def write(self, oprot):
12033
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12034
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12035
      return
12036
    oprot.writeStructBegin('getSnapdealInventoryForItem_result')
12037
    if self.success is not None:
12038
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
12039
      self.success.write(oprot)
12040
      oprot.writeFieldEnd()
12041
    oprot.writeFieldStop()
12042
    oprot.writeStructEnd()
12043
 
12044
  def validate(self):
12045
    return
12046
 
12047
 
12048
  def __repr__(self):
12049
    L = ['%s=%r' % (key, value)
12050
      for key, value in self.__dict__.iteritems()]
12051
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12052
 
12053
  def __eq__(self, other):
12054
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12055
 
12056
  def __ne__(self, other):
12057
    return not (self == other)
12058
 
12059
class addOrUpdateSnapdealInventoryForItem_args:
12060
  """
12061
  Attributes:
12062
   - snapdealinventoryitem
12063
  """
12064
 
12065
  thrift_spec = (
12066
    None, # 0
12067
    (1, TType.STRUCT, 'snapdealinventoryitem', (SnapdealInventoryItem, SnapdealInventoryItem.thrift_spec), None, ), # 1
12068
  )
12069
 
12070
  def __init__(self, snapdealinventoryitem=None,):
12071
    self.snapdealinventoryitem = snapdealinventoryitem
12072
 
12073
  def read(self, iprot):
12074
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12075
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12076
      return
12077
    iprot.readStructBegin()
12078
    while True:
12079
      (fname, ftype, fid) = iprot.readFieldBegin()
12080
      if ftype == TType.STOP:
12081
        break
12082
      if fid == 1:
12083
        if ftype == TType.STRUCT:
12084
          self.snapdealinventoryitem = SnapdealInventoryItem()
12085
          self.snapdealinventoryitem.read(iprot)
12086
        else:
12087
          iprot.skip(ftype)
12088
      else:
12089
        iprot.skip(ftype)
12090
      iprot.readFieldEnd()
12091
    iprot.readStructEnd()
12092
 
12093
  def write(self, oprot):
12094
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12095
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12096
      return
12097
    oprot.writeStructBegin('addOrUpdateSnapdealInventoryForItem_args')
12098
    if self.snapdealinventoryitem is not None:
12099
      oprot.writeFieldBegin('snapdealinventoryitem', TType.STRUCT, 1)
12100
      self.snapdealinventoryitem.write(oprot)
12101
      oprot.writeFieldEnd()
12102
    oprot.writeFieldStop()
12103
    oprot.writeStructEnd()
12104
 
12105
  def validate(self):
12106
    return
12107
 
12108
 
12109
  def __repr__(self):
12110
    L = ['%s=%r' % (key, value)
12111
      for key, value in self.__dict__.iteritems()]
12112
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12113
 
12114
  def __eq__(self, other):
12115
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12116
 
12117
  def __ne__(self, other):
12118
    return not (self == other)
12119
 
12120
class addOrUpdateSnapdealInventoryForItem_result:
12121
 
12122
  thrift_spec = (
12123
  )
12124
 
12125
  def read(self, iprot):
12126
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12127
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12128
      return
12129
    iprot.readStructBegin()
12130
    while True:
12131
      (fname, ftype, fid) = iprot.readFieldBegin()
12132
      if ftype == TType.STOP:
12133
        break
12134
      else:
12135
        iprot.skip(ftype)
12136
      iprot.readFieldEnd()
12137
    iprot.readStructEnd()
12138
 
12139
  def write(self, oprot):
12140
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12141
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12142
      return
12143
    oprot.writeStructBegin('addOrUpdateSnapdealInventoryForItem_result')
12144
    oprot.writeFieldStop()
12145
    oprot.writeStructEnd()
12146
 
12147
  def validate(self):
12148
    return
12149
 
12150
 
12151
  def __repr__(self):
12152
    L = ['%s=%r' % (key, value)
12153
      for key, value in self.__dict__.iteritems()]
12154
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12155
 
12156
  def __eq__(self, other):
12157
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12158
 
12159
  def __ne__(self, other):
12160
    return not (self == other)
12161
 
12162
class getNlcForWarehouse_args:
12163
  """
12164
  Attributes:
12165
   - warehouse_id
12166
   - item_id
12167
  """
12168
 
12169
  thrift_spec = (
12170
    None, # 0
12171
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
12172
    (2, TType.I64, 'item_id', None, None, ), # 2
12173
  )
12174
 
12175
  def __init__(self, warehouse_id=None, item_id=None,):
12176
    self.warehouse_id = warehouse_id
12177
    self.item_id = item_id
12178
 
12179
  def read(self, iprot):
12180
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12181
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12182
      return
12183
    iprot.readStructBegin()
12184
    while True:
12185
      (fname, ftype, fid) = iprot.readFieldBegin()
12186
      if ftype == TType.STOP:
12187
        break
12188
      if fid == 1:
12189
        if ftype == TType.I64:
12190
          self.warehouse_id = iprot.readI64();
12191
        else:
12192
          iprot.skip(ftype)
12193
      elif fid == 2:
12194
        if ftype == TType.I64:
12195
          self.item_id = iprot.readI64();
12196
        else:
12197
          iprot.skip(ftype)
12198
      else:
12199
        iprot.skip(ftype)
12200
      iprot.readFieldEnd()
12201
    iprot.readStructEnd()
12202
 
12203
  def write(self, oprot):
12204
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12205
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12206
      return
12207
    oprot.writeStructBegin('getNlcForWarehouse_args')
12208
    if self.warehouse_id is not None:
12209
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
12210
      oprot.writeI64(self.warehouse_id)
12211
      oprot.writeFieldEnd()
12212
    if self.item_id is not None:
12213
      oprot.writeFieldBegin('item_id', TType.I64, 2)
12214
      oprot.writeI64(self.item_id)
12215
      oprot.writeFieldEnd()
12216
    oprot.writeFieldStop()
12217
    oprot.writeStructEnd()
12218
 
12219
  def validate(self):
12220
    return
12221
 
12222
 
12223
  def __repr__(self):
12224
    L = ['%s=%r' % (key, value)
12225
      for key, value in self.__dict__.iteritems()]
12226
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12227
 
12228
  def __eq__(self, other):
12229
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12230
 
12231
  def __ne__(self, other):
12232
    return not (self == other)
12233
 
12234
class getNlcForWarehouse_result:
12235
  """
12236
  Attributes:
12237
   - success
12238
  """
12239
 
12240
  thrift_spec = (
12241
    (0, TType.DOUBLE, 'success', None, None, ), # 0
12242
  )
12243
 
12244
  def __init__(self, success=None,):
12245
    self.success = success
12246
 
12247
  def read(self, iprot):
12248
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12249
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12250
      return
12251
    iprot.readStructBegin()
12252
    while True:
12253
      (fname, ftype, fid) = iprot.readFieldBegin()
12254
      if ftype == TType.STOP:
12255
        break
12256
      if fid == 0:
12257
        if ftype == TType.DOUBLE:
12258
          self.success = iprot.readDouble();
12259
        else:
12260
          iprot.skip(ftype)
12261
      else:
12262
        iprot.skip(ftype)
12263
      iprot.readFieldEnd()
12264
    iprot.readStructEnd()
12265
 
12266
  def write(self, oprot):
12267
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12268
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12269
      return
12270
    oprot.writeStructBegin('getNlcForWarehouse_result')
12271
    if self.success is not None:
12272
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
12273
      oprot.writeDouble(self.success)
12274
      oprot.writeFieldEnd()
12275
    oprot.writeFieldStop()
12276
    oprot.writeStructEnd()
12277
 
12278
  def validate(self):
12279
    return
12280
 
12281
 
12282
  def __repr__(self):
12283
    L = ['%s=%r' % (key, value)
12284
      for key, value in self.__dict__.iteritems()]
12285
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12286
 
12287
  def __eq__(self, other):
12288
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12289
 
12290
  def __ne__(self, other):
12291
    return not (self == other)
9456 vikram.rag 12292
 
9640 amar.kumar 12293
class getHeldInventoryMapForItem_args:
12294
  """
12295
  Attributes:
12296
   - item_id
12297
   - warehouse_id
12298
  """
12299
 
12300
  thrift_spec = (
12301
    None, # 0
12302
    (1, TType.I64, 'item_id', None, None, ), # 1
12303
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
12304
  )
12305
 
12306
  def __init__(self, item_id=None, warehouse_id=None,):
12307
    self.item_id = item_id
12308
    self.warehouse_id = warehouse_id
12309
 
12310
  def read(self, iprot):
12311
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12312
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12313
      return
12314
    iprot.readStructBegin()
12315
    while True:
12316
      (fname, ftype, fid) = iprot.readFieldBegin()
12317
      if ftype == TType.STOP:
12318
        break
12319
      if fid == 1:
12320
        if ftype == TType.I64:
12321
          self.item_id = iprot.readI64();
12322
        else:
12323
          iprot.skip(ftype)
12324
      elif fid == 2:
12325
        if ftype == TType.I64:
12326
          self.warehouse_id = iprot.readI64();
12327
        else:
12328
          iprot.skip(ftype)
12329
      else:
12330
        iprot.skip(ftype)
12331
      iprot.readFieldEnd()
12332
    iprot.readStructEnd()
12333
 
12334
  def write(self, oprot):
12335
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12336
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12337
      return
12338
    oprot.writeStructBegin('getHeldInventoryMapForItem_args')
12339
    if self.item_id is not None:
12340
      oprot.writeFieldBegin('item_id', TType.I64, 1)
12341
      oprot.writeI64(self.item_id)
12342
      oprot.writeFieldEnd()
12343
    if self.warehouse_id is not None:
12344
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
12345
      oprot.writeI64(self.warehouse_id)
12346
      oprot.writeFieldEnd()
12347
    oprot.writeFieldStop()
12348
    oprot.writeStructEnd()
12349
 
12350
  def validate(self):
12351
    return
12352
 
12353
 
12354
  def __repr__(self):
12355
    L = ['%s=%r' % (key, value)
12356
      for key, value in self.__dict__.iteritems()]
12357
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12358
 
12359
  def __eq__(self, other):
12360
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12361
 
12362
  def __ne__(self, other):
12363
    return not (self == other)
12364
 
12365
class getHeldInventoryMapForItem_result:
12366
  """
12367
  Attributes:
12368
   - success
12369
  """
12370
 
12371
  thrift_spec = (
12372
    (0, TType.MAP, 'success', (TType.I32,None,TType.I64,None), None, ), # 0
12373
  )
12374
 
12375
  def __init__(self, success=None,):
12376
    self.success = success
12377
 
12378
  def read(self, iprot):
12379
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12380
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12381
      return
12382
    iprot.readStructBegin()
12383
    while True:
12384
      (fname, ftype, fid) = iprot.readFieldBegin()
12385
      if ftype == TType.STOP:
12386
        break
12387
      if fid == 0:
12388
        if ftype == TType.MAP:
12389
          self.success = {}
12390
          (_ktype245, _vtype246, _size244 ) = iprot.readMapBegin() 
12391
          for _i248 in xrange(_size244):
12392
            _key249 = iprot.readI32();
12393
            _val250 = iprot.readI64();
12394
            self.success[_key249] = _val250
12395
          iprot.readMapEnd()
12396
        else:
12397
          iprot.skip(ftype)
12398
      else:
12399
        iprot.skip(ftype)
12400
      iprot.readFieldEnd()
12401
    iprot.readStructEnd()
12402
 
12403
  def write(self, oprot):
12404
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12405
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12406
      return
12407
    oprot.writeStructBegin('getHeldInventoryMapForItem_result')
12408
    if self.success is not None:
12409
      oprot.writeFieldBegin('success', TType.MAP, 0)
12410
      oprot.writeMapBegin(TType.I32, TType.I64, len(self.success))
12411
      for kiter251,viter252 in self.success.items():
12412
        oprot.writeI32(kiter251)
12413
        oprot.writeI64(viter252)
12414
      oprot.writeMapEnd()
12415
      oprot.writeFieldEnd()
12416
    oprot.writeFieldStop()
12417
    oprot.writeStructEnd()
12418
 
12419
  def validate(self):
12420
    return
12421
 
12422
 
12423
  def __repr__(self):
12424
    L = ['%s=%r' % (key, value)
12425
      for key, value in self.__dict__.iteritems()]
12426
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12427
 
12428
  def __eq__(self, other):
12429
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12430
 
12431
  def __ne__(self, other):
12432
    return not (self == other)
12433
 
9495 vikram.rag 12434
class addOrUpdateAllAmazonFbaInventory_args:
12435
  """
12436
  Attributes:
12437
   - allamazonfbainventorysnapshot
12438
  """
9456 vikram.rag 12439
 
9495 vikram.rag 12440
  thrift_spec = None
12441
  def __init__(self, allamazonfbainventorysnapshot=None,):
12442
    self.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot
9456 vikram.rag 12443
 
12444
  def read(self, iprot):
12445
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12446
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12447
      return
12448
    iprot.readStructBegin()
12449
    while True:
12450
      (fname, ftype, fid) = iprot.readFieldBegin()
12451
      if ftype == TType.STOP:
12452
        break
9495 vikram.rag 12453
      if fid == -1:
12454
        if ftype == TType.LIST:
12455
          self.allamazonfbainventorysnapshot = []
9640 amar.kumar 12456
          (_etype256, _size253) = iprot.readListBegin()
12457
          for _i257 in xrange(_size253):
12458
            _elem258 = AmazonFbaInventorySnapshot()
12459
            _elem258.read(iprot)
12460
            self.allamazonfbainventorysnapshot.append(_elem258)
9495 vikram.rag 12461
          iprot.readListEnd()
12462
        else:
12463
          iprot.skip(ftype)
9456 vikram.rag 12464
      else:
12465
        iprot.skip(ftype)
12466
      iprot.readFieldEnd()
12467
    iprot.readStructEnd()
12468
 
12469
  def write(self, oprot):
12470
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12471
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12472
      return
9495 vikram.rag 12473
    oprot.writeStructBegin('addOrUpdateAllAmazonFbaInventory_args')
12474
    if self.allamazonfbainventorysnapshot is not None:
12475
      oprot.writeFieldBegin('allamazonfbainventorysnapshot', TType.LIST, -1)
12476
      oprot.writeListBegin(TType.STRUCT, len(self.allamazonfbainventorysnapshot))
9640 amar.kumar 12477
      for iter259 in self.allamazonfbainventorysnapshot:
12478
        iter259.write(oprot)
9495 vikram.rag 12479
      oprot.writeListEnd()
12480
      oprot.writeFieldEnd()
9456 vikram.rag 12481
    oprot.writeFieldStop()
12482
    oprot.writeStructEnd()
12483
 
12484
  def validate(self):
12485
    return
12486
 
12487
 
12488
  def __repr__(self):
12489
    L = ['%s=%r' % (key, value)
12490
      for key, value in self.__dict__.iteritems()]
12491
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12492
 
12493
  def __eq__(self, other):
12494
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12495
 
12496
  def __ne__(self, other):
12497
    return not (self == other)
12498
 
9495 vikram.rag 12499
class addOrUpdateAllAmazonFbaInventory_result:
9456 vikram.rag 12500
 
12501
  thrift_spec = (
12502
  )
12503
 
12504
  def read(self, iprot):
12505
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12506
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12507
      return
12508
    iprot.readStructBegin()
12509
    while True:
12510
      (fname, ftype, fid) = iprot.readFieldBegin()
12511
      if ftype == TType.STOP:
12512
        break
12513
      else:
12514
        iprot.skip(ftype)
12515
      iprot.readFieldEnd()
12516
    iprot.readStructEnd()
12517
 
12518
  def write(self, oprot):
12519
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12520
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12521
      return
9495 vikram.rag 12522
    oprot.writeStructBegin('addOrUpdateAllAmazonFbaInventory_result')
9456 vikram.rag 12523
    oprot.writeFieldStop()
12524
    oprot.writeStructEnd()
12525
 
12526
  def validate(self):
12527
    return
12528
 
12529
 
12530
  def __repr__(self):
12531
    L = ['%s=%r' % (key, value)
12532
      for key, value in self.__dict__.iteritems()]
12533
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12534
 
12535
  def __eq__(self, other):
12536
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12537
 
12538
  def __ne__(self, other):
12539
    return not (self == other)
9482 vikram.rag 12540
 
9495 vikram.rag 12541
class addOrUpdateAllSnapdealInventory_args:
9482 vikram.rag 12542
  """
12543
  Attributes:
9495 vikram.rag 12544
   - allsnapdealinventorysnapshot
9482 vikram.rag 12545
  """
12546
 
12547
  thrift_spec = None
9495 vikram.rag 12548
  def __init__(self, allsnapdealinventorysnapshot=None,):
12549
    self.allsnapdealinventorysnapshot = allsnapdealinventorysnapshot
9482 vikram.rag 12550
 
12551
  def read(self, iprot):
12552
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12553
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12554
      return
12555
    iprot.readStructBegin()
12556
    while True:
12557
      (fname, ftype, fid) = iprot.readFieldBegin()
12558
      if ftype == TType.STOP:
12559
        break
12560
      if fid == -1:
12561
        if ftype == TType.LIST:
9495 vikram.rag 12562
          self.allsnapdealinventorysnapshot = []
9640 amar.kumar 12563
          (_etype263, _size260) = iprot.readListBegin()
12564
          for _i264 in xrange(_size260):
12565
            _elem265 = SnapdealInventoryItem()
12566
            _elem265.read(iprot)
12567
            self.allsnapdealinventorysnapshot.append(_elem265)
9482 vikram.rag 12568
          iprot.readListEnd()
12569
        else:
12570
          iprot.skip(ftype)
12571
      else:
12572
        iprot.skip(ftype)
12573
      iprot.readFieldEnd()
12574
    iprot.readStructEnd()
12575
 
12576
  def write(self, oprot):
12577
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12578
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12579
      return
9495 vikram.rag 12580
    oprot.writeStructBegin('addOrUpdateAllSnapdealInventory_args')
12581
    if self.allsnapdealinventorysnapshot is not None:
12582
      oprot.writeFieldBegin('allsnapdealinventorysnapshot', TType.LIST, -1)
12583
      oprot.writeListBegin(TType.STRUCT, len(self.allsnapdealinventorysnapshot))
9640 amar.kumar 12584
      for iter266 in self.allsnapdealinventorysnapshot:
12585
        iter266.write(oprot)
9482 vikram.rag 12586
      oprot.writeListEnd()
12587
      oprot.writeFieldEnd()
12588
    oprot.writeFieldStop()
12589
    oprot.writeStructEnd()
12590
 
12591
  def validate(self):
12592
    return
12593
 
12594
 
12595
  def __repr__(self):
12596
    L = ['%s=%r' % (key, value)
12597
      for key, value in self.__dict__.iteritems()]
12598
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12599
 
12600
  def __eq__(self, other):
12601
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12602
 
12603
  def __ne__(self, other):
12604
    return not (self == other)
12605
 
9495 vikram.rag 12606
class addOrUpdateAllSnapdealInventory_result:
9482 vikram.rag 12607
 
12608
  thrift_spec = (
12609
  )
12610
 
12611
  def read(self, iprot):
12612
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12613
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12614
      return
12615
    iprot.readStructBegin()
12616
    while True:
12617
      (fname, ftype, fid) = iprot.readFieldBegin()
12618
      if ftype == TType.STOP:
12619
        break
12620
      else:
12621
        iprot.skip(ftype)
12622
      iprot.readFieldEnd()
12623
    iprot.readStructEnd()
12624
 
12625
  def write(self, oprot):
12626
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12627
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12628
      return
9495 vikram.rag 12629
    oprot.writeStructBegin('addOrUpdateAllSnapdealInventory_result')
9482 vikram.rag 12630
    oprot.writeFieldStop()
12631
    oprot.writeStructEnd()
12632
 
12633
  def validate(self):
12634
    return
12635
 
12636
 
12637
  def __repr__(self):
12638
    L = ['%s=%r' % (key, value)
12639
      for key, value in self.__dict__.iteritems()]
12640
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12641
 
12642
  def __eq__(self, other):
12643
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12644
 
12645
  def __ne__(self, other):
12646
    return not (self == other)
9495 vikram.rag 12647
 
12648
class getSnapdealInventorySnapshot_args:
12649
 
12650
  thrift_spec = (
12651
  )
12652
 
12653
  def read(self, iprot):
12654
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12655
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12656
      return
12657
    iprot.readStructBegin()
12658
    while True:
12659
      (fname, ftype, fid) = iprot.readFieldBegin()
12660
      if ftype == TType.STOP:
12661
        break
12662
      else:
12663
        iprot.skip(ftype)
12664
      iprot.readFieldEnd()
12665
    iprot.readStructEnd()
12666
 
12667
  def write(self, oprot):
12668
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12669
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12670
      return
12671
    oprot.writeStructBegin('getSnapdealInventorySnapshot_args')
12672
    oprot.writeFieldStop()
12673
    oprot.writeStructEnd()
12674
 
12675
  def validate(self):
12676
    return
12677
 
12678
 
12679
  def __repr__(self):
12680
    L = ['%s=%r' % (key, value)
12681
      for key, value in self.__dict__.iteritems()]
12682
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12683
 
12684
  def __eq__(self, other):
12685
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12686
 
12687
  def __ne__(self, other):
12688
    return not (self == other)
12689
 
12690
class getSnapdealInventorySnapshot_result:
12691
  """
12692
  Attributes:
12693
   - success
12694
  """
12695
 
12696
  thrift_spec = (
12697
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealInventoryItem, SnapdealInventoryItem.thrift_spec)), None, ), # 0
12698
  )
12699
 
12700
  def __init__(self, success=None,):
12701
    self.success = success
12702
 
12703
  def read(self, iprot):
12704
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12705
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12706
      return
12707
    iprot.readStructBegin()
12708
    while True:
12709
      (fname, ftype, fid) = iprot.readFieldBegin()
12710
      if ftype == TType.STOP:
12711
        break
12712
      if fid == 0:
12713
        if ftype == TType.LIST:
12714
          self.success = []
9640 amar.kumar 12715
          (_etype270, _size267) = iprot.readListBegin()
12716
          for _i271 in xrange(_size267):
12717
            _elem272 = SnapdealInventoryItem()
12718
            _elem272.read(iprot)
12719
            self.success.append(_elem272)
9495 vikram.rag 12720
          iprot.readListEnd()
12721
        else:
12722
          iprot.skip(ftype)
12723
      else:
12724
        iprot.skip(ftype)
12725
      iprot.readFieldEnd()
12726
    iprot.readStructEnd()
12727
 
12728
  def write(self, oprot):
12729
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12730
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12731
      return
12732
    oprot.writeStructBegin('getSnapdealInventorySnapshot_result')
12733
    if self.success is not None:
12734
      oprot.writeFieldBegin('success', TType.LIST, 0)
12735
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9640 amar.kumar 12736
      for iter273 in self.success:
12737
        iter273.write(oprot)
9495 vikram.rag 12738
      oprot.writeListEnd()
12739
      oprot.writeFieldEnd()
12740
    oprot.writeFieldStop()
12741
    oprot.writeStructEnd()
12742
 
12743
  def validate(self):
12744
    return
12745
 
12746
 
12747
  def __repr__(self):
12748
    L = ['%s=%r' % (key, value)
12749
      for key, value in self.__dict__.iteritems()]
12750
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12751
 
12752
  def __eq__(self, other):
12753
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12754
 
12755
  def __ne__(self, other):
12756
    return not (self == other)
9761 amar.kumar 12757
 
12758
class getHoldInventoryDetails_args:
12759
  """
12760
  Attributes:
12761
   - itemId
12762
   - warehouseId
12763
   - source
12764
  """
12765
 
12766
  thrift_spec = (
12767
    None, # 0
12768
    (1, TType.I64, 'itemId', None, None, ), # 1
12769
    (2, TType.I64, 'warehouseId', None, None, ), # 2
12770
    (3, TType.I64, 'source', None, None, ), # 3
12771
  )
12772
 
12773
  def __init__(self, itemId=None, warehouseId=None, source=None,):
12774
    self.itemId = itemId
12775
    self.warehouseId = warehouseId
12776
    self.source = source
12777
 
12778
  def read(self, iprot):
12779
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12780
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12781
      return
12782
    iprot.readStructBegin()
12783
    while True:
12784
      (fname, ftype, fid) = iprot.readFieldBegin()
12785
      if ftype == TType.STOP:
12786
        break
12787
      if fid == 1:
12788
        if ftype == TType.I64:
12789
          self.itemId = iprot.readI64();
12790
        else:
12791
          iprot.skip(ftype)
12792
      elif fid == 2:
12793
        if ftype == TType.I64:
12794
          self.warehouseId = iprot.readI64();
12795
        else:
12796
          iprot.skip(ftype)
12797
      elif fid == 3:
12798
        if ftype == TType.I64:
12799
          self.source = iprot.readI64();
12800
        else:
12801
          iprot.skip(ftype)
12802
      else:
12803
        iprot.skip(ftype)
12804
      iprot.readFieldEnd()
12805
    iprot.readStructEnd()
12806
 
12807
  def write(self, oprot):
12808
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12809
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12810
      return
12811
    oprot.writeStructBegin('getHoldInventoryDetails_args')
12812
    if self.itemId is not None:
12813
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12814
      oprot.writeI64(self.itemId)
12815
      oprot.writeFieldEnd()
12816
    if self.warehouseId is not None:
12817
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
12818
      oprot.writeI64(self.warehouseId)
12819
      oprot.writeFieldEnd()
12820
    if self.source is not None:
12821
      oprot.writeFieldBegin('source', TType.I64, 3)
12822
      oprot.writeI64(self.source)
12823
      oprot.writeFieldEnd()
12824
    oprot.writeFieldStop()
12825
    oprot.writeStructEnd()
12826
 
12827
  def validate(self):
12828
    return
12829
 
12830
 
12831
  def __repr__(self):
12832
    L = ['%s=%r' % (key, value)
12833
      for key, value in self.__dict__.iteritems()]
12834
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12835
 
12836
  def __eq__(self, other):
12837
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12838
 
12839
  def __ne__(self, other):
12840
    return not (self == other)
12841
 
12842
class getHoldInventoryDetails_result:
12843
  """
12844
  Attributes:
12845
   - success
12846
  """
12847
 
12848
  thrift_spec = (
12849
    (0, TType.LIST, 'success', (TType.STRUCT,(HoldInventoryDetail, HoldInventoryDetail.thrift_spec)), None, ), # 0
12850
  )
12851
 
12852
  def __init__(self, success=None,):
12853
    self.success = success
12854
 
12855
  def read(self, iprot):
12856
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12857
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12858
      return
12859
    iprot.readStructBegin()
12860
    while True:
12861
      (fname, ftype, fid) = iprot.readFieldBegin()
12862
      if ftype == TType.STOP:
12863
        break
12864
      if fid == 0:
12865
        if ftype == TType.LIST:
12866
          self.success = []
12867
          (_etype277, _size274) = iprot.readListBegin()
12868
          for _i278 in xrange(_size274):
12869
            _elem279 = HoldInventoryDetail()
12870
            _elem279.read(iprot)
12871
            self.success.append(_elem279)
12872
          iprot.readListEnd()
12873
        else:
12874
          iprot.skip(ftype)
12875
      else:
12876
        iprot.skip(ftype)
12877
      iprot.readFieldEnd()
12878
    iprot.readStructEnd()
12879
 
12880
  def write(self, oprot):
12881
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12882
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12883
      return
12884
    oprot.writeStructBegin('getHoldInventoryDetails_result')
12885
    if self.success is not None:
12886
      oprot.writeFieldBegin('success', TType.LIST, 0)
12887
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12888
      for iter280 in self.success:
12889
        iter280.write(oprot)
12890
      oprot.writeListEnd()
12891
      oprot.writeFieldEnd()
12892
    oprot.writeFieldStop()
12893
    oprot.writeStructEnd()
12894
 
12895
  def validate(self):
12896
    return
12897
 
12898
 
12899
  def __repr__(self):
12900
    L = ['%s=%r' % (key, value)
12901
      for key, value in self.__dict__.iteritems()]
12902
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12903
 
12904
  def __eq__(self, other):
12905
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12906
 
12907
  def __ne__(self, other):
12908
    return not (self == other)