Subversion Repositories SmartDukaan

Rev

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

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