Subversion Repositories SmartDukaan

Rev

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

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