Subversion Repositories SmartDukaan

Rev

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

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