Subversion Repositories SmartDukaan

Rev

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