Subversion Repositories SmartDukaan

Rev

Rev 9762 | Rev 10097 | 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
 
9762 amar.kumar 459
  def getOosStatusesForXDaysForItem(self, itemId, sourceId, days):
6832 amar.kumar 460
    """
461
    Parameters:
462
     - itemId
9762 amar.kumar 463
     - sourceId
6832 amar.kumar 464
     - days
465
    """
466
    pass
6821 amar.kumar 467
 
6857 amar.kumar 468
  def getNonZeroItemStockPurchaseParams(self, ):
469
    pass
6832 amar.kumar 470
 
7149 amar.kumar 471
  def getBillableInventoryAndPendingOrders(self, ):
472
    """
473
    Returns a list of inventory stock for items for which there are pending orders or have billable inventory.
474
    """
475
    pass
6857 amar.kumar 476
 
7281 kshitij.so 477
  def getWarehouseName(self, warehouse_id):
478
    """
479
    Parameters:
480
     - warehouse_id
481
    """
482
    pass
7149 amar.kumar 483
 
7281 kshitij.so 484
  def getAmazonInventoryForItem(self, item_id):
485
    """
486
    Parameters:
487
     - item_id
488
    """
489
    pass
490
 
491
  def getAllAmazonInventory(self, ):
492
    pass
493
 
494
  def addOrUpdateAmazonInventoryForItem(self, amazonInventorySnapshot):
495
    """
496
    Parameters:
497
     - amazonInventorySnapshot
498
    """
499
    pass
500
 
7972 amar.kumar 501
  def getLastNdaySaleForItem(self, itemId, numberOfDays):
502
    """
503
    Parameters:
504
     - itemId
505
     - numberOfDays
506
    """
507
    pass
7281 kshitij.so 508
 
8282 kshitij.so 509
  def addOrUpdateAmazonFbaInventory(self, amazonfbainventorysnapshot):
510
    """
511
    Parameters:
512
     - amazonfbainventorysnapshot
513
    """
514
    pass
515
 
8182 amar.kumar 516
  def addUpdateHoldInventory(self, itemId, warehouseId, holdQuantity, source):
517
    """
518
    Parameters:
519
     - itemId
520
     - warehouseId
521
     - holdQuantity
522
     - source
523
    """
524
    pass
7972 amar.kumar 525
 
8282 kshitij.so 526
  def getAmazonFbaItemInventory(self, itemId):
527
    """
528
    Parameters:
529
     - itemId
530
    """
531
    pass
8182 amar.kumar 532
 
8363 vikram.rag 533
  def getAllAmazonFbaItemInventory(self, ):
8282 kshitij.so 534
    pass
535
 
8363 vikram.rag 536
  def getOursGoodWarehouseIdsForLocation(self, state_id):
537
    """
538
    Parameters:
539
     - state_id
540
    """
541
    pass
8282 kshitij.so 542
 
8955 vikram.rag 543
  def getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, id, warehouse_id, source):
544
    """
545
    Parameters:
546
     - id
547
     - warehouse_id
548
     - source
549
    """
550
    pass
8363 vikram.rag 551
 
9404 vikram.rag 552
  def getSnapdealInventoryForItem(self, item_id):
553
    """
554
    Parameters:
555
     - item_id
556
    """
557
    pass
8955 vikram.rag 558
 
9404 vikram.rag 559
  def addOrUpdateSnapdealInventoryForItem(self, snapdealinventoryitem):
560
    """
561
    Parameters:
562
     - snapdealinventoryitem
563
    """
564
    pass
565
 
566
  def getNlcForWarehouse(self, warehouse_id, item_id):
567
    """
568
    Parameters:
569
     - warehouse_id
570
     - item_id
571
    """
572
    pass
573
 
9640 amar.kumar 574
  def getHeldInventoryMapForItem(self, item_id, warehouse_id):
575
    """
576
    Parameters:
577
     - item_id
578
     - warehouse_id
579
    """
580
    pass
581
 
9482 vikram.rag 582
  def addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
583
    """
584
    Parameters:
585
     - allamazonfbainventorysnapshot
586
    """
587
    pass
9456 vikram.rag 588
 
9495 vikram.rag 589
  def addOrUpdateAllSnapdealInventory(self, allsnapdealinventorysnapshot):
590
    """
591
    Parameters:
592
     - allsnapdealinventorysnapshot
593
    """
594
    pass
9482 vikram.rag 595
 
9495 vikram.rag 596
  def getSnapdealInventorySnapshot(self, ):
597
    pass
598
 
9761 amar.kumar 599
  def getHoldInventoryDetails(self, itemId, warehouseId, source):
600
    """
601
    Parameters:
602
     - itemId
603
     - warehouseId
604
     - source
605
    """
606
    pass
9495 vikram.rag 607
 
10050 vikram.rag 608
  def addOrUpdateFlipkartInventorySnapshot(self, flipkartInventorySnapshot):
609
    """
610
    Parameters:
611
     - flipkartInventorySnapshot
612
    """
613
    pass
9761 amar.kumar 614
 
10050 vikram.rag 615
  def getFlipkartInventorySnapshot(self, ):
616
    pass
617
 
618
 
5944 mandeep.dh 619
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
620
  def __init__(self, iprot, oprot=None):
621
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
622
 
623
  def addWarehouse(self, warehouse):
624
    """
625
    Parameters:
626
     - warehouse
627
    """
628
    self.send_addWarehouse(warehouse)
629
    return self.recv_addWarehouse()
630
 
631
  def send_addWarehouse(self, warehouse):
632
    self._oprot.writeMessageBegin('addWarehouse', TMessageType.CALL, self._seqid)
633
    args = addWarehouse_args()
634
    args.warehouse = warehouse
635
    args.write(self._oprot)
636
    self._oprot.writeMessageEnd()
637
    self._oprot.trans.flush()
638
 
639
  def recv_addWarehouse(self, ):
640
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
641
    if mtype == TMessageType.EXCEPTION:
642
      x = TApplicationException()
643
      x.read(self._iprot)
644
      self._iprot.readMessageEnd()
645
      raise x
646
    result = addWarehouse_result()
647
    result.read(self._iprot)
648
    self._iprot.readMessageEnd()
649
    if result.success is not None:
650
      return result.success
651
    if result.cex is not None:
652
      raise result.cex
653
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addWarehouse failed: unknown result");
654
 
655
  def addVendor(self, vendor):
656
    """
657
    add a new vendor
658
 
659
    Parameters:
660
     - vendor
661
    """
662
    self.send_addVendor(vendor)
663
    return self.recv_addVendor()
664
 
665
  def send_addVendor(self, vendor):
666
    self._oprot.writeMessageBegin('addVendor', TMessageType.CALL, self._seqid)
667
    args = addVendor_args()
668
    args.vendor = vendor
669
    args.write(self._oprot)
670
    self._oprot.writeMessageEnd()
671
    self._oprot.trans.flush()
672
 
673
  def recv_addVendor(self, ):
674
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
675
    if mtype == TMessageType.EXCEPTION:
676
      x = TApplicationException()
677
      x.read(self._iprot)
678
      self._iprot.readMessageEnd()
679
      raise x
680
    result = addVendor_result()
681
    result.read(self._iprot)
682
    self._iprot.readMessageEnd()
683
    if result.success is not None:
684
      return result.success
685
    if result.cex is not None:
686
      raise result.cex
687
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addVendor failed: unknown result");
688
 
689
  def updateInventoryHistory(self, warehouse_id, timestamp, availability):
690
    """
691
    Stores the incremental warehouse updates of items.
692
 
693
    Parameters:
694
     - warehouse_id
695
     - timestamp
696
     - availability
697
    """
698
    self.send_updateInventoryHistory(warehouse_id, timestamp, availability)
699
    self.recv_updateInventoryHistory()
700
 
701
  def send_updateInventoryHistory(self, warehouse_id, timestamp, availability):
702
    self._oprot.writeMessageBegin('updateInventoryHistory', TMessageType.CALL, self._seqid)
703
    args = updateInventoryHistory_args()
704
    args.warehouse_id = warehouse_id
705
    args.timestamp = timestamp
706
    args.availability = availability
707
    args.write(self._oprot)
708
    self._oprot.writeMessageEnd()
709
    self._oprot.trans.flush()
710
 
711
  def recv_updateInventoryHistory(self, ):
712
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
713
    if mtype == TMessageType.EXCEPTION:
714
      x = TApplicationException()
715
      x.read(self._iprot)
716
      self._iprot.readMessageEnd()
717
      raise x
718
    result = updateInventoryHistory_result()
719
    result.read(self._iprot)
720
    self._iprot.readMessageEnd()
721
    if result.cex is not None:
722
      raise result.cex
723
    return
724
 
725
  def updateInventory(self, warehouse_id, timestamp, availability):
726
    """
727
    Stores the final inventory stocks of items.
728
 
729
    Parameters:
730
     - warehouse_id
731
     - timestamp
732
     - availability
733
    """
734
    self.send_updateInventory(warehouse_id, timestamp, availability)
735
    self.recv_updateInventory()
736
 
737
  def send_updateInventory(self, warehouse_id, timestamp, availability):
738
    self._oprot.writeMessageBegin('updateInventory', TMessageType.CALL, self._seqid)
739
    args = updateInventory_args()
740
    args.warehouse_id = warehouse_id
741
    args.timestamp = timestamp
742
    args.availability = availability
743
    args.write(self._oprot)
744
    self._oprot.writeMessageEnd()
745
    self._oprot.trans.flush()
746
 
747
  def recv_updateInventory(self, ):
748
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
749
    if mtype == TMessageType.EXCEPTION:
750
      x = TApplicationException()
751
      x.read(self._iprot)
752
      self._iprot.readMessageEnd()
753
      raise x
754
    result = updateInventory_result()
755
    result.read(self._iprot)
756
    self._iprot.readMessageEnd()
757
    if result.cex is not None:
758
      raise result.cex
759
    return
760
 
761
  def addInventory(self, itemId, warehouseId, quantity):
762
    """
763
    Add the inventory to existing stock.
764
 
765
    Parameters:
766
     - itemId
767
     - warehouseId
768
     - quantity
769
    """
770
    self.send_addInventory(itemId, warehouseId, quantity)
771
    self.recv_addInventory()
772
 
773
  def send_addInventory(self, itemId, warehouseId, quantity):
774
    self._oprot.writeMessageBegin('addInventory', TMessageType.CALL, self._seqid)
775
    args = addInventory_args()
776
    args.itemId = itemId
777
    args.warehouseId = warehouseId
778
    args.quantity = quantity
779
    args.write(self._oprot)
780
    self._oprot.writeMessageEnd()
781
    self._oprot.trans.flush()
782
 
783
  def recv_addInventory(self, ):
784
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
785
    if mtype == TMessageType.EXCEPTION:
786
      x = TApplicationException()
787
      x.read(self._iprot)
788
      self._iprot.readMessageEnd()
789
      raise x
790
    result = addInventory_result()
791
    result.read(self._iprot)
792
    self._iprot.readMessageEnd()
793
    if result.cex is not None:
794
      raise result.cex
795
    return
796
 
797
  def retireWarehouse(self, warehouse_id):
798
    """
799
    Parameters:
800
     - warehouse_id
801
    """
802
    self.send_retireWarehouse(warehouse_id)
803
    self.recv_retireWarehouse()
804
 
805
  def send_retireWarehouse(self, warehouse_id):
806
    self._oprot.writeMessageBegin('retireWarehouse', TMessageType.CALL, self._seqid)
807
    args = retireWarehouse_args()
808
    args.warehouse_id = warehouse_id
809
    args.write(self._oprot)
810
    self._oprot.writeMessageEnd()
811
    self._oprot.trans.flush()
812
 
813
  def recv_retireWarehouse(self, ):
814
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
815
    if mtype == TMessageType.EXCEPTION:
816
      x = TApplicationException()
817
      x.read(self._iprot)
818
      self._iprot.readMessageEnd()
819
      raise x
820
    result = retireWarehouse_result()
821
    result.read(self._iprot)
822
    self._iprot.readMessageEnd()
823
    if result.cex is not None:
824
      raise result.cex
825
    return
826
 
827
  def getItemInventoryByItemId(self, item_id):
828
    """
829
    Parameters:
830
     - item_id
831
    """
832
    self.send_getItemInventoryByItemId(item_id)
833
    return self.recv_getItemInventoryByItemId()
834
 
835
  def send_getItemInventoryByItemId(self, item_id):
836
    self._oprot.writeMessageBegin('getItemInventoryByItemId', TMessageType.CALL, self._seqid)
837
    args = getItemInventoryByItemId_args()
838
    args.item_id = item_id
839
    args.write(self._oprot)
840
    self._oprot.writeMessageEnd()
841
    self._oprot.trans.flush()
842
 
843
  def recv_getItemInventoryByItemId(self, ):
844
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
845
    if mtype == TMessageType.EXCEPTION:
846
      x = TApplicationException()
847
      x.read(self._iprot)
848
      self._iprot.readMessageEnd()
849
      raise x
850
    result = getItemInventoryByItemId_result()
851
    result.read(self._iprot)
852
    self._iprot.readMessageEnd()
853
    if result.success is not None:
854
      return result.success
855
    if result.cex is not None:
856
      raise result.cex
857
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemInventoryByItemId failed: unknown result");
858
 
859
  def getItemAvailibilityAtWarehouse(self, warehouse_id, item_id):
860
    """
861
    Parameters:
862
     - warehouse_id
863
     - item_id
864
    """
865
    self.send_getItemAvailibilityAtWarehouse(warehouse_id, item_id)
866
    return self.recv_getItemAvailibilityAtWarehouse()
867
 
868
  def send_getItemAvailibilityAtWarehouse(self, warehouse_id, item_id):
869
    self._oprot.writeMessageBegin('getItemAvailibilityAtWarehouse', TMessageType.CALL, self._seqid)
870
    args = getItemAvailibilityAtWarehouse_args()
871
    args.warehouse_id = warehouse_id
872
    args.item_id = item_id
873
    args.write(self._oprot)
874
    self._oprot.writeMessageEnd()
875
    self._oprot.trans.flush()
876
 
877
  def recv_getItemAvailibilityAtWarehouse(self, ):
878
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
879
    if mtype == TMessageType.EXCEPTION:
880
      x = TApplicationException()
881
      x.read(self._iprot)
882
      self._iprot.readMessageEnd()
883
      raise x
884
    result = getItemAvailibilityAtWarehouse_result()
885
    result.read(self._iprot)
886
    self._iprot.readMessageEnd()
887
    if result.success is not None:
888
      return result.success
889
    if result.cex is not None:
890
      raise result.cex
891
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailibilityAtWarehouse failed: unknown result");
892
 
5978 rajveer 893
  def getItemAvailabilityAtLocation(self, itemId, sourceId):
5944 mandeep.dh 894
    """
895
    Determines the warehouse that should be used to fulfil an order for the given item.
896
    It first checks all the warehouses which are in the logistics location given by the
897
    warehouse_loc parameter. If none of the warehouses there have any inventory, then the
898
    preferred warehouse for the item is used.
899
 
900
    Returns an ordered list of size 4 with following elements in the given order:
901
    1. Id of the fulfillment warehouse which was finally picked up.
902
    2. Expected delay added by the category manager.
903
    3. Id of the billing warehouse which was finally picked up.
904
 
905
    Parameters:
906
     - itemId
5978 rajveer 907
     - sourceId
5944 mandeep.dh 908
    """
5978 rajveer 909
    self.send_getItemAvailabilityAtLocation(itemId, sourceId)
5944 mandeep.dh 910
    return self.recv_getItemAvailabilityAtLocation()
911
 
5978 rajveer 912
  def send_getItemAvailabilityAtLocation(self, itemId, sourceId):
5944 mandeep.dh 913
    self._oprot.writeMessageBegin('getItemAvailabilityAtLocation', TMessageType.CALL, self._seqid)
914
    args = getItemAvailabilityAtLocation_args()
915
    args.itemId = itemId
5978 rajveer 916
    args.sourceId = sourceId
5944 mandeep.dh 917
    args.write(self._oprot)
918
    self._oprot.writeMessageEnd()
919
    self._oprot.trans.flush()
920
 
921
  def recv_getItemAvailabilityAtLocation(self, ):
922
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
923
    if mtype == TMessageType.EXCEPTION:
924
      x = TApplicationException()
925
      x.read(self._iprot)
926
      self._iprot.readMessageEnd()
927
      raise x
928
    result = getItemAvailabilityAtLocation_result()
929
    result.read(self._iprot)
930
    self._iprot.readMessageEnd()
931
    if result.success is not None:
932
      return result.success
933
    if result.isex is not None:
934
      raise result.isex
935
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailabilityAtLocation failed: unknown result");
936
 
937
  def getAllWarehouses(self, isActive):
938
    """
939
    Parameters:
940
     - isActive
941
    """
942
    self.send_getAllWarehouses(isActive)
943
    return self.recv_getAllWarehouses()
944
 
945
  def send_getAllWarehouses(self, isActive):
946
    self._oprot.writeMessageBegin('getAllWarehouses', TMessageType.CALL, self._seqid)
947
    args = getAllWarehouses_args()
948
    args.isActive = isActive
949
    args.write(self._oprot)
950
    self._oprot.writeMessageEnd()
951
    self._oprot.trans.flush()
952
 
953
  def recv_getAllWarehouses(self, ):
954
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
955
    if mtype == TMessageType.EXCEPTION:
956
      x = TApplicationException()
957
      x.read(self._iprot)
958
      self._iprot.readMessageEnd()
959
      raise x
960
    result = getAllWarehouses_result()
961
    result.read(self._iprot)
962
    self._iprot.readMessageEnd()
963
    if result.success is not None:
964
      return result.success
965
    if result.cex is not None:
966
      raise result.cex
967
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllWarehouses failed: unknown result");
968
 
969
  def getWarehouse(self, warehouse_id):
970
    """
971
    Returns the warehouse with the given id.
972
 
973
    Parameters:
974
     - warehouse_id
975
    """
976
    self.send_getWarehouse(warehouse_id)
977
    return self.recv_getWarehouse()
978
 
979
  def send_getWarehouse(self, warehouse_id):
980
    self._oprot.writeMessageBegin('getWarehouse', TMessageType.CALL, self._seqid)
981
    args = getWarehouse_args()
982
    args.warehouse_id = warehouse_id
983
    args.write(self._oprot)
984
    self._oprot.writeMessageEnd()
985
    self._oprot.trans.flush()
986
 
987
  def recv_getWarehouse(self, ):
988
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
989
    if mtype == TMessageType.EXCEPTION:
990
      x = TApplicationException()
991
      x.read(self._iprot)
992
      self._iprot.readMessageEnd()
993
      raise x
994
    result = getWarehouse_result()
995
    result.read(self._iprot)
996
    self._iprot.readMessageEnd()
997
    if result.success is not None:
998
      return result.success
999
    if result.cex is not None:
1000
      raise result.cex
1001
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouse failed: unknown result");
1002
 
1003
  def getAllItemsForWarehouse(self, warehouse_id):
1004
    """
1005
    Parameters:
1006
     - warehouse_id
1007
    """
1008
    self.send_getAllItemsForWarehouse(warehouse_id)
1009
    return self.recv_getAllItemsForWarehouse()
1010
 
1011
  def send_getAllItemsForWarehouse(self, warehouse_id):
1012
    self._oprot.writeMessageBegin('getAllItemsForWarehouse', TMessageType.CALL, self._seqid)
1013
    args = getAllItemsForWarehouse_args()
1014
    args.warehouse_id = warehouse_id
1015
    args.write(self._oprot)
1016
    self._oprot.writeMessageEnd()
1017
    self._oprot.trans.flush()
1018
 
1019
  def recv_getAllItemsForWarehouse(self, ):
1020
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1021
    if mtype == TMessageType.EXCEPTION:
1022
      x = TApplicationException()
1023
      x.read(self._iprot)
1024
      self._iprot.readMessageEnd()
1025
      raise x
1026
    result = getAllItemsForWarehouse_result()
1027
    result.read(self._iprot)
1028
    self._iprot.readMessageEnd()
1029
    if result.success is not None:
1030
      return result.success
1031
    if result.cex is not None:
1032
      raise result.cex
1033
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsForWarehouse failed: unknown result");
1034
 
5966 rajveer 1035
  def isOrderBillable(self, itemId, warehouseId, sourceId, orderId):
5944 mandeep.dh 1036
    """
5978 rajveer 1037
    Depending on reservation in the table, verify if we can bill this order or not.
5966 rajveer 1038
 
1039
    Parameters:
1040
     - itemId
1041
     - warehouseId
1042
     - sourceId
1043
     - orderId
1044
    """
1045
    self.send_isOrderBillable(itemId, warehouseId, sourceId, orderId)
1046
    return self.recv_isOrderBillable()
1047
 
1048
  def send_isOrderBillable(self, itemId, warehouseId, sourceId, orderId):
1049
    self._oprot.writeMessageBegin('isOrderBillable', TMessageType.CALL, self._seqid)
1050
    args = isOrderBillable_args()
1051
    args.itemId = itemId
1052
    args.warehouseId = warehouseId
1053
    args.sourceId = sourceId
1054
    args.orderId = orderId
1055
    args.write(self._oprot)
1056
    self._oprot.writeMessageEnd()
1057
    self._oprot.trans.flush()
1058
 
1059
  def recv_isOrderBillable(self, ):
1060
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1061
    if mtype == TMessageType.EXCEPTION:
1062
      x = TApplicationException()
1063
      x.read(self._iprot)
1064
      self._iprot.readMessageEnd()
1065
      raise x
1066
    result = isOrderBillable_result()
1067
    result.read(self._iprot)
1068
    self._iprot.readMessageEnd()
1069
    if result.success is not None:
1070
      return result.success
1071
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isOrderBillable failed: unknown result");
1072
 
1073
  def reserveItemInWarehouse(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
1074
    """
5944 mandeep.dh 1075
    Increases the reservation count for an item in a warehouse. Should always succeed normally.
1076
 
1077
    Parameters:
1078
     - itemId
1079
     - warehouseId
5966 rajveer 1080
     - sourceId
1081
     - orderId
1082
     - createdTimestamp
1083
     - promisedShippingTimestamp
5944 mandeep.dh 1084
     - quantity
1085
    """
5966 rajveer 1086
    self.send_reserveItemInWarehouse(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity)
5944 mandeep.dh 1087
    return self.recv_reserveItemInWarehouse()
1088
 
5966 rajveer 1089
  def send_reserveItemInWarehouse(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
5944 mandeep.dh 1090
    self._oprot.writeMessageBegin('reserveItemInWarehouse', TMessageType.CALL, self._seqid)
1091
    args = reserveItemInWarehouse_args()
1092
    args.itemId = itemId
1093
    args.warehouseId = warehouseId
5966 rajveer 1094
    args.sourceId = sourceId
1095
    args.orderId = orderId
1096
    args.createdTimestamp = createdTimestamp
1097
    args.promisedShippingTimestamp = promisedShippingTimestamp
5944 mandeep.dh 1098
    args.quantity = quantity
1099
    args.write(self._oprot)
1100
    self._oprot.writeMessageEnd()
1101
    self._oprot.trans.flush()
1102
 
1103
  def recv_reserveItemInWarehouse(self, ):
1104
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1105
    if mtype == TMessageType.EXCEPTION:
1106
      x = TApplicationException()
1107
      x.read(self._iprot)
1108
      self._iprot.readMessageEnd()
1109
      raise x
1110
    result = reserveItemInWarehouse_result()
1111
    result.read(self._iprot)
1112
    self._iprot.readMessageEnd()
1113
    if result.success is not None:
1114
      return result.success
1115
    if result.cex is not None:
1116
      raise result.cex
1117
    raise TApplicationException(TApplicationException.MISSING_RESULT, "reserveItemInWarehouse failed: unknown result");
1118
 
7968 amar.kumar 1119
  def updateReservationForOrder(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
1120
    """
1121
    Updates the reservation for Order
1122
 
1123
    Parameters:
1124
     - itemId
1125
     - warehouseId
1126
     - sourceId
1127
     - orderId
1128
     - createdTimestamp
1129
     - promisedShippingTimestamp
1130
     - quantity
1131
    """
1132
    self.send_updateReservationForOrder(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity)
1133
    return self.recv_updateReservationForOrder()
1134
 
1135
  def send_updateReservationForOrder(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
1136
    self._oprot.writeMessageBegin('updateReservationForOrder', TMessageType.CALL, self._seqid)
1137
    args = updateReservationForOrder_args()
1138
    args.itemId = itemId
1139
    args.warehouseId = warehouseId
1140
    args.sourceId = sourceId
1141
    args.orderId = orderId
1142
    args.createdTimestamp = createdTimestamp
1143
    args.promisedShippingTimestamp = promisedShippingTimestamp
1144
    args.quantity = quantity
1145
    args.write(self._oprot)
1146
    self._oprot.writeMessageEnd()
1147
    self._oprot.trans.flush()
1148
 
1149
  def recv_updateReservationForOrder(self, ):
1150
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1151
    if mtype == TMessageType.EXCEPTION:
1152
      x = TApplicationException()
1153
      x.read(self._iprot)
1154
      self._iprot.readMessageEnd()
1155
      raise x
1156
    result = updateReservationForOrder_result()
1157
    result.read(self._iprot)
1158
    self._iprot.readMessageEnd()
1159
    if result.success is not None:
1160
      return result.success
1161
    if result.cex is not None:
1162
      raise result.cex
1163
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateReservationForOrder failed: unknown result");
1164
 
5966 rajveer 1165
  def reduceReservationCount(self, itemId, warehouseId, sourceId, orderId, quantity):
5944 mandeep.dh 1166
    """
1167
    Decreases the reservation count for an item in a warehouse. Should always succeed normally.
1168
 
1169
    Parameters:
1170
     - itemId
1171
     - warehouseId
5966 rajveer 1172
     - sourceId
1173
     - orderId
5944 mandeep.dh 1174
     - quantity
1175
    """
5966 rajveer 1176
    self.send_reduceReservationCount(itemId, warehouseId, sourceId, orderId, quantity)
5944 mandeep.dh 1177
    return self.recv_reduceReservationCount()
1178
 
5966 rajveer 1179
  def send_reduceReservationCount(self, itemId, warehouseId, sourceId, orderId, quantity):
5944 mandeep.dh 1180
    self._oprot.writeMessageBegin('reduceReservationCount', TMessageType.CALL, self._seqid)
1181
    args = reduceReservationCount_args()
1182
    args.itemId = itemId
1183
    args.warehouseId = warehouseId
5966 rajveer 1184
    args.sourceId = sourceId
1185
    args.orderId = orderId
5944 mandeep.dh 1186
    args.quantity = quantity
1187
    args.write(self._oprot)
1188
    self._oprot.writeMessageEnd()
1189
    self._oprot.trans.flush()
1190
 
1191
  def recv_reduceReservationCount(self, ):
1192
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1193
    if mtype == TMessageType.EXCEPTION:
1194
      x = TApplicationException()
1195
      x.read(self._iprot)
1196
      self._iprot.readMessageEnd()
1197
      raise x
1198
    result = reduceReservationCount_result()
1199
    result.read(self._iprot)
1200
    self._iprot.readMessageEnd()
1201
    if result.success is not None:
1202
      return result.success
1203
    if result.cex is not None:
1204
      raise result.cex
1205
    raise TApplicationException(TApplicationException.MISSING_RESULT, "reduceReservationCount failed: unknown result");
1206
 
1207
  def getItemPricing(self, itemId, vendorId):
1208
    """
1209
    Returns the pricing information of an item associated with the vendor of the given warehouse.
1210
    Raises an exception if either the item, vendor or the associated pricing information can't be found.
1211
 
1212
    Parameters:
1213
     - itemId
1214
     - vendorId
1215
    """
1216
    self.send_getItemPricing(itemId, vendorId)
1217
    return self.recv_getItemPricing()
1218
 
1219
  def send_getItemPricing(self, itemId, vendorId):
1220
    self._oprot.writeMessageBegin('getItemPricing', TMessageType.CALL, self._seqid)
1221
    args = getItemPricing_args()
1222
    args.itemId = itemId
1223
    args.vendorId = vendorId
1224
    args.write(self._oprot)
1225
    self._oprot.writeMessageEnd()
1226
    self._oprot.trans.flush()
1227
 
1228
  def recv_getItemPricing(self, ):
1229
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1230
    if mtype == TMessageType.EXCEPTION:
1231
      x = TApplicationException()
1232
      x.read(self._iprot)
1233
      self._iprot.readMessageEnd()
1234
      raise x
1235
    result = getItemPricing_result()
1236
    result.read(self._iprot)
1237
    self._iprot.readMessageEnd()
1238
    if result.success is not None:
1239
      return result.success
1240
    if result.cex is not None:
1241
      raise result.cex
1242
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricing failed: unknown result");
1243
 
1244
  def getAllItemPricing(self, itemId):
1245
    """
1246
    Returns the list of vendor pricing information of an item.
1247
    Raises an exception if item not found corresponding to itemId
1248
 
1249
    Parameters:
1250
     - itemId
1251
    """
1252
    self.send_getAllItemPricing(itemId)
1253
    return self.recv_getAllItemPricing()
1254
 
1255
  def send_getAllItemPricing(self, itemId):
1256
    self._oprot.writeMessageBegin('getAllItemPricing', TMessageType.CALL, self._seqid)
1257
    args = getAllItemPricing_args()
1258
    args.itemId = itemId
1259
    args.write(self._oprot)
1260
    self._oprot.writeMessageEnd()
1261
    self._oprot.trans.flush()
1262
 
1263
  def recv_getAllItemPricing(self, ):
1264
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1265
    if mtype == TMessageType.EXCEPTION:
1266
      x = TApplicationException()
1267
      x.read(self._iprot)
1268
      self._iprot.readMessageEnd()
1269
      raise x
1270
    result = getAllItemPricing_result()
1271
    result.read(self._iprot)
1272
    self._iprot.readMessageEnd()
1273
    if result.success is not None:
1274
      return result.success
1275
    if result.cex is not None:
1276
      raise result.cex
1277
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemPricing failed: unknown result");
1278
 
1279
  def addVendorItemPricing(self, vendorItemPricing):
1280
    """
1281
    Adds vendor prices corresponding to the item. If pricing already exists then updates the prices.
1282
    Raises an exception if either the item or vendor can't be found corresponding to their ids.
1283
 
1284
    Parameters:
1285
     - vendorItemPricing
1286
    """
1287
    self.send_addVendorItemPricing(vendorItemPricing)
1288
    self.recv_addVendorItemPricing()
1289
 
1290
  def send_addVendorItemPricing(self, vendorItemPricing):
1291
    self._oprot.writeMessageBegin('addVendorItemPricing', TMessageType.CALL, self._seqid)
1292
    args = addVendorItemPricing_args()
1293
    args.vendorItemPricing = vendorItemPricing
1294
    args.write(self._oprot)
1295
    self._oprot.writeMessageEnd()
1296
    self._oprot.trans.flush()
1297
 
1298
  def recv_addVendorItemPricing(self, ):
1299
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1300
    if mtype == TMessageType.EXCEPTION:
1301
      x = TApplicationException()
1302
      x.read(self._iprot)
1303
      self._iprot.readMessageEnd()
1304
      raise x
1305
    result = addVendorItemPricing_result()
1306
    result.read(self._iprot)
1307
    self._iprot.readMessageEnd()
1308
    if result.cex is not None:
1309
      raise result.cex
1310
    return
1311
 
1312
  def getVendor(self, vendorId):
1313
    """
1314
    Returns a vendor given its id
1315
 
1316
    Parameters:
1317
     - vendorId
1318
    """
1319
    self.send_getVendor(vendorId)
1320
    return self.recv_getVendor()
1321
 
1322
  def send_getVendor(self, vendorId):
1323
    self._oprot.writeMessageBegin('getVendor', TMessageType.CALL, self._seqid)
1324
    args = getVendor_args()
1325
    args.vendorId = vendorId
1326
    args.write(self._oprot)
1327
    self._oprot.writeMessageEnd()
1328
    self._oprot.trans.flush()
1329
 
1330
  def recv_getVendor(self, ):
1331
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1332
    if mtype == TMessageType.EXCEPTION:
1333
      x = TApplicationException()
1334
      x.read(self._iprot)
1335
      self._iprot.readMessageEnd()
1336
      raise x
1337
    result = getVendor_result()
1338
    result.read(self._iprot)
1339
    self._iprot.readMessageEnd()
1340
    if result.success is not None:
1341
      return result.success
1342
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVendor failed: unknown result");
1343
 
1344
  def getAllVendors(self, ):
1345
    """
1346
    Return list of all vendors
1347
    """
1348
    self.send_getAllVendors()
1349
    return self.recv_getAllVendors()
1350
 
1351
  def send_getAllVendors(self, ):
1352
    self._oprot.writeMessageBegin('getAllVendors', TMessageType.CALL, self._seqid)
1353
    args = getAllVendors_args()
1354
    args.write(self._oprot)
1355
    self._oprot.writeMessageEnd()
1356
    self._oprot.trans.flush()
1357
 
1358
  def recv_getAllVendors(self, ):
1359
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1360
    if mtype == TMessageType.EXCEPTION:
1361
      x = TApplicationException()
1362
      x.read(self._iprot)
1363
      self._iprot.readMessageEnd()
1364
      raise x
1365
    result = getAllVendors_result()
1366
    result.read(self._iprot)
1367
    self._iprot.readMessageEnd()
1368
    if result.success is not None:
1369
      return result.success
1370
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllVendors failed: unknown result");
1371
 
1372
  def addVendorItemMapping(self, key, vendorItemMapping):
1373
    """
1374
    Adds VendorItemMapping. Updates VendorItemMapping if exists corresponding to the item key.
1375
 
1376
    Parameters:
1377
     - key
1378
     - vendorItemMapping
1379
    """
1380
    self.send_addVendorItemMapping(key, vendorItemMapping)
1381
    self.recv_addVendorItemMapping()
1382
 
1383
  def send_addVendorItemMapping(self, key, vendorItemMapping):
1384
    self._oprot.writeMessageBegin('addVendorItemMapping', TMessageType.CALL, self._seqid)
1385
    args = addVendorItemMapping_args()
1386
    args.key = key
1387
    args.vendorItemMapping = vendorItemMapping
1388
    args.write(self._oprot)
1389
    self._oprot.writeMessageEnd()
1390
    self._oprot.trans.flush()
1391
 
1392
  def recv_addVendorItemMapping(self, ):
1393
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1394
    if mtype == TMessageType.EXCEPTION:
1395
      x = TApplicationException()
1396
      x.read(self._iprot)
1397
      self._iprot.readMessageEnd()
1398
      raise x
1399
    result = addVendorItemMapping_result()
1400
    result.read(self._iprot)
1401
    self._iprot.readMessageEnd()
1402
    if result.cex is not None:
1403
      raise result.cex
1404
    return
1405
 
1406
  def getVendorItemMappings(self, itemId):
1407
    """
1408
    Returns the list of vendor item mapping corresponding to itemId passed as parameter.
1409
    Raises an exception if item not found corresponding to itemId
1410
 
1411
    Parameters:
1412
     - itemId
1413
    """
1414
    self.send_getVendorItemMappings(itemId)
1415
    return self.recv_getVendorItemMappings()
1416
 
1417
  def send_getVendorItemMappings(self, itemId):
1418
    self._oprot.writeMessageBegin('getVendorItemMappings', TMessageType.CALL, self._seqid)
1419
    args = getVendorItemMappings_args()
1420
    args.itemId = itemId
1421
    args.write(self._oprot)
1422
    self._oprot.writeMessageEnd()
1423
    self._oprot.trans.flush()
1424
 
1425
  def recv_getVendorItemMappings(self, ):
1426
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1427
    if mtype == TMessageType.EXCEPTION:
1428
      x = TApplicationException()
1429
      x.read(self._iprot)
1430
      self._iprot.readMessageEnd()
1431
      raise x
1432
    result = getVendorItemMappings_result()
1433
    result.read(self._iprot)
1434
    self._iprot.readMessageEnd()
1435
    if result.success is not None:
1436
      return result.success
1437
    if result.cex is not None:
1438
      raise result.cex
1439
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVendorItemMappings failed: unknown result");
1440
 
1441
  def getPendingOrdersInventory(self, vendorid):
1442
    """
1443
    Returns a list of inventory stock for items for which there are pending orders for the given vendor.
1444
 
1445
    Parameters:
1446
     - vendorid
1447
    """
1448
    self.send_getPendingOrdersInventory(vendorid)
1449
    return self.recv_getPendingOrdersInventory()
1450
 
1451
  def send_getPendingOrdersInventory(self, vendorid):
1452
    self._oprot.writeMessageBegin('getPendingOrdersInventory', TMessageType.CALL, self._seqid)
1453
    args = getPendingOrdersInventory_args()
1454
    args.vendorid = vendorid
1455
    args.write(self._oprot)
1456
    self._oprot.writeMessageEnd()
1457
    self._oprot.trans.flush()
1458
 
1459
  def recv_getPendingOrdersInventory(self, ):
1460
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1461
    if mtype == TMessageType.EXCEPTION:
1462
      x = TApplicationException()
1463
      x.read(self._iprot)
1464
      self._iprot.readMessageEnd()
1465
      raise x
1466
    result = getPendingOrdersInventory_result()
1467
    result.read(self._iprot)
1468
    self._iprot.readMessageEnd()
1469
    if result.success is not None:
1470
      return result.success
1471
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPendingOrdersInventory failed: unknown result");
1472
 
1473
  def getWarehouses(self, warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId):
1474
    """
1475
    This method returns all warehouses for a given warehosueType, inventoryType, vendor, billingWarehouse and shippingWarehouse.
1476
    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
1477
    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
1478
       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
1479
       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
1480
 
1481
    Parameters:
1482
     - warehouseType
1483
     - inventoryType
1484
     - vendorId
1485
     - billingWarehouseId
1486
     - shippingWarehouseId
1487
    """
1488
    self.send_getWarehouses(warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId)
1489
    return self.recv_getWarehouses()
1490
 
1491
  def send_getWarehouses(self, warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId):
1492
    self._oprot.writeMessageBegin('getWarehouses', TMessageType.CALL, self._seqid)
1493
    args = getWarehouses_args()
1494
    args.warehouseType = warehouseType
1495
    args.inventoryType = inventoryType
1496
    args.vendorId = vendorId
1497
    args.billingWarehouseId = billingWarehouseId
1498
    args.shippingWarehouseId = shippingWarehouseId
1499
    args.write(self._oprot)
1500
    self._oprot.writeMessageEnd()
1501
    self._oprot.trans.flush()
1502
 
1503
  def recv_getWarehouses(self, ):
1504
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1505
    if mtype == TMessageType.EXCEPTION:
1506
      x = TApplicationException()
1507
      x.read(self._iprot)
1508
      self._iprot.readMessageEnd()
1509
      raise x
1510
    result = getWarehouses_result()
1511
    result.read(self._iprot)
1512
    self._iprot.readMessageEnd()
1513
    if result.success is not None:
1514
      return result.success
1515
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouses failed: unknown result");
1516
 
1517
  def resetAvailability(self, itemKey, vendorId, quantity, warehouseId):
1518
    """
1519
    Resets availability of an item to the quantity mentioned in a warehouse.
1520
 
1521
    Parameters:
1522
     - itemKey
1523
     - vendorId
1524
     - quantity
1525
     - warehouseId
1526
    """
1527
    self.send_resetAvailability(itemKey, vendorId, quantity, warehouseId)
1528
    self.recv_resetAvailability()
1529
 
1530
  def send_resetAvailability(self, itemKey, vendorId, quantity, warehouseId):
1531
    self._oprot.writeMessageBegin('resetAvailability', TMessageType.CALL, self._seqid)
1532
    args = resetAvailability_args()
1533
    args.itemKey = itemKey
1534
    args.vendorId = vendorId
1535
    args.quantity = quantity
1536
    args.warehouseId = warehouseId
1537
    args.write(self._oprot)
1538
    self._oprot.writeMessageEnd()
1539
    self._oprot.trans.flush()
1540
 
1541
  def recv_resetAvailability(self, ):
1542
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1543
    if mtype == TMessageType.EXCEPTION:
1544
      x = TApplicationException()
1545
      x.read(self._iprot)
1546
      self._iprot.readMessageEnd()
1547
      raise x
1548
    result = resetAvailability_result()
1549
    result.read(self._iprot)
1550
    self._iprot.readMessageEnd()
1551
    if result.cex is not None:
1552
      raise result.cex
1553
    return
1554
 
1555
  def resetAvailabilityForWarehouse(self, warehouseId):
1556
    """
1557
    Resets availability of a warehouse to zero.
1558
 
1559
    Parameters:
1560
     - warehouseId
1561
    """
1562
    self.send_resetAvailabilityForWarehouse(warehouseId)
1563
    self.recv_resetAvailabilityForWarehouse()
1564
 
1565
  def send_resetAvailabilityForWarehouse(self, warehouseId):
1566
    self._oprot.writeMessageBegin('resetAvailabilityForWarehouse', TMessageType.CALL, self._seqid)
1567
    args = resetAvailabilityForWarehouse_args()
1568
    args.warehouseId = warehouseId
1569
    args.write(self._oprot)
1570
    self._oprot.writeMessageEnd()
1571
    self._oprot.trans.flush()
1572
 
1573
  def recv_resetAvailabilityForWarehouse(self, ):
1574
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1575
    if mtype == TMessageType.EXCEPTION:
1576
      x = TApplicationException()
1577
      x.read(self._iprot)
1578
      self._iprot.readMessageEnd()
1579
      raise x
1580
    result = resetAvailabilityForWarehouse_result()
1581
    result.read(self._iprot)
1582
    self._iprot.readMessageEnd()
1583
    if result.cex is not None:
1584
      raise result.cex
1585
    return
1586
 
1587
  def getItemKeysToBeProcessed(self, warehouseId):
1588
    """
1589
    Returns the list of item keys which need to be processed for a given warehouse.
1590
    This is currently used by Support application to send item keys whose inventory needs
1591
    to be updated from PLB
1592
 
1593
    Parameters:
1594
     - warehouseId
1595
    """
1596
    self.send_getItemKeysToBeProcessed(warehouseId)
1597
    return self.recv_getItemKeysToBeProcessed()
1598
 
1599
  def send_getItemKeysToBeProcessed(self, warehouseId):
1600
    self._oprot.writeMessageBegin('getItemKeysToBeProcessed', TMessageType.CALL, self._seqid)
1601
    args = getItemKeysToBeProcessed_args()
1602
    args.warehouseId = warehouseId
1603
    args.write(self._oprot)
1604
    self._oprot.writeMessageEnd()
1605
    self._oprot.trans.flush()
1606
 
1607
  def recv_getItemKeysToBeProcessed(self, ):
1608
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1609
    if mtype == TMessageType.EXCEPTION:
1610
      x = TApplicationException()
1611
      x.read(self._iprot)
1612
      self._iprot.readMessageEnd()
1613
      raise x
1614
    result = getItemKeysToBeProcessed_result()
1615
    result.read(self._iprot)
1616
    self._iprot.readMessageEnd()
1617
    if result.success is not None:
1618
      return result.success
1619
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemKeysToBeProcessed failed: unknown result");
1620
 
1621
  def markMissedInventoryUpdatesAsProcessed(self, itemKey, warehouseId):
1622
    """
1623
    Marks/Deletes missed inventory updates for a given key and warehouse.
1624
    This generally happens when updates from PLB are applied on the currentinventorysnapshot for an item
1625
 
1626
    Parameters:
1627
     - itemKey
1628
     - warehouseId
1629
    """
1630
    self.send_markMissedInventoryUpdatesAsProcessed(itemKey, warehouseId)
1631
    self.recv_markMissedInventoryUpdatesAsProcessed()
1632
 
1633
  def send_markMissedInventoryUpdatesAsProcessed(self, itemKey, warehouseId):
1634
    self._oprot.writeMessageBegin('markMissedInventoryUpdatesAsProcessed', TMessageType.CALL, self._seqid)
1635
    args = markMissedInventoryUpdatesAsProcessed_args()
1636
    args.itemKey = itemKey
1637
    args.warehouseId = warehouseId
1638
    args.write(self._oprot)
1639
    self._oprot.writeMessageEnd()
1640
    self._oprot.trans.flush()
1641
 
1642
  def recv_markMissedInventoryUpdatesAsProcessed(self, ):
1643
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1644
    if mtype == TMessageType.EXCEPTION:
1645
      x = TApplicationException()
1646
      x.read(self._iprot)
1647
      self._iprot.readMessageEnd()
1648
      raise x
1649
    result = markMissedInventoryUpdatesAsProcessed_result()
1650
    result.read(self._iprot)
1651
    self._iprot.readMessageEnd()
1652
    return
1653
 
1654
  def getIgnoredItemKeys(self, ):
1655
    """
1656
    Returns all the item key mappings that have been ignored until date. Value of map has the warehouse id
1657
    and the timestamp from where alert was raised.
1658
    """
1659
    self.send_getIgnoredItemKeys()
1660
    return self.recv_getIgnoredItemKeys()
1661
 
1662
  def send_getIgnoredItemKeys(self, ):
1663
    self._oprot.writeMessageBegin('getIgnoredItemKeys', TMessageType.CALL, self._seqid)
1664
    args = getIgnoredItemKeys_args()
1665
    args.write(self._oprot)
1666
    self._oprot.writeMessageEnd()
1667
    self._oprot.trans.flush()
1668
 
1669
  def recv_getIgnoredItemKeys(self, ):
1670
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1671
    if mtype == TMessageType.EXCEPTION:
1672
      x = TApplicationException()
1673
      x.read(self._iprot)
1674
      self._iprot.readMessageEnd()
1675
      raise x
1676
    result = getIgnoredItemKeys_result()
1677
    result.read(self._iprot)
1678
    self._iprot.readMessageEnd()
1679
    if result.success is not None:
1680
      return result.success
1681
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredItemKeys failed: unknown result");
1682
 
1683
  def addBadInventory(self, itemId, warehouseId, quantity):
1684
    """
1685
    Add the BAD type inventory to existing stock.
1686
 
1687
    Parameters:
1688
     - itemId
1689
     - warehouseId
1690
     - quantity
1691
    """
1692
    self.send_addBadInventory(itemId, warehouseId, quantity)
1693
    self.recv_addBadInventory()
1694
 
1695
  def send_addBadInventory(self, itemId, warehouseId, quantity):
1696
    self._oprot.writeMessageBegin('addBadInventory', TMessageType.CALL, self._seqid)
1697
    args = addBadInventory_args()
1698
    args.itemId = itemId
1699
    args.warehouseId = warehouseId
1700
    args.quantity = quantity
1701
    args.write(self._oprot)
1702
    self._oprot.writeMessageEnd()
1703
    self._oprot.trans.flush()
1704
 
1705
  def recv_addBadInventory(self, ):
1706
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1707
    if mtype == TMessageType.EXCEPTION:
1708
      x = TApplicationException()
1709
      x.read(self._iprot)
1710
      self._iprot.readMessageEnd()
1711
      raise x
1712
    result = addBadInventory_result()
1713
    result.read(self._iprot)
1714
    self._iprot.readMessageEnd()
1715
    if result.cex is not None:
1716
      raise result.cex
1717
    return
1718
 
1719
  def getShippingLocations(self, ):
1720
    """
1721
    Returns all shipping locations
1722
    """
1723
    self.send_getShippingLocations()
1724
    return self.recv_getShippingLocations()
1725
 
1726
  def send_getShippingLocations(self, ):
1727
    self._oprot.writeMessageBegin('getShippingLocations', TMessageType.CALL, self._seqid)
1728
    args = getShippingLocations_args()
1729
    args.write(self._oprot)
1730
    self._oprot.writeMessageEnd()
1731
    self._oprot.trans.flush()
1732
 
1733
  def recv_getShippingLocations(self, ):
1734
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1735
    if mtype == TMessageType.EXCEPTION:
1736
      x = TApplicationException()
1737
      x.read(self._iprot)
1738
      self._iprot.readMessageEnd()
1739
      raise x
1740
    result = getShippingLocations_result()
1741
    result.read(self._iprot)
1742
    self._iprot.readMessageEnd()
1743
    if result.success is not None:
1744
      return result.success
1745
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getShippingLocations failed: unknown result");
1746
 
1747
  def getAllVendorItemMappings(self, ):
1748
    """
1749
    Fetches all the vendor item mappings present.
1750
    """
1751
    self.send_getAllVendorItemMappings()
1752
    return self.recv_getAllVendorItemMappings()
1753
 
1754
  def send_getAllVendorItemMappings(self, ):
1755
    self._oprot.writeMessageBegin('getAllVendorItemMappings', TMessageType.CALL, self._seqid)
1756
    args = getAllVendorItemMappings_args()
1757
    args.write(self._oprot)
1758
    self._oprot.writeMessageEnd()
1759
    self._oprot.trans.flush()
1760
 
1761
  def recv_getAllVendorItemMappings(self, ):
1762
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1763
    if mtype == TMessageType.EXCEPTION:
1764
      x = TApplicationException()
1765
      x.read(self._iprot)
1766
      self._iprot.readMessageEnd()
1767
      raise x
1768
    result = getAllVendorItemMappings_result()
1769
    result.read(self._iprot)
1770
    self._iprot.readMessageEnd()
1771
    if result.success is not None:
1772
      return result.success
1773
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllVendorItemMappings failed: unknown result");
1774
 
1775
  def getInventorySnapshot(self, warehouseId):
1776
    """
1777
    Gets items' inventory for a warehouse
1778
    If warehouse is passed as zero, items' inventory across all warehouses is sent
1779
 
1780
    Parameters:
1781
     - warehouseId
1782
    """
1783
    self.send_getInventorySnapshot(warehouseId)
1784
    return self.recv_getInventorySnapshot()
1785
 
1786
  def send_getInventorySnapshot(self, warehouseId):
1787
    self._oprot.writeMessageBegin('getInventorySnapshot', TMessageType.CALL, self._seqid)
1788
    args = getInventorySnapshot_args()
1789
    args.warehouseId = warehouseId
1790
    args.write(self._oprot)
1791
    self._oprot.writeMessageEnd()
1792
    self._oprot.trans.flush()
1793
 
1794
  def recv_getInventorySnapshot(self, ):
1795
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1796
    if mtype == TMessageType.EXCEPTION:
1797
      x = TApplicationException()
1798
      x.read(self._iprot)
1799
      self._iprot.readMessageEnd()
1800
      raise x
1801
    result = getInventorySnapshot_result()
1802
    result.read(self._iprot)
1803
    self._iprot.readMessageEnd()
1804
    if result.success is not None:
1805
      return result.success
1806
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventorySnapshot failed: unknown result");
1807
 
1808
  def clearItemAvailabilityCache(self, ):
1809
    """
1810
    Clear item availability cache.
1811
    """
1812
    self.send_clearItemAvailabilityCache()
1813
    self.recv_clearItemAvailabilityCache()
1814
 
1815
  def send_clearItemAvailabilityCache(self, ):
1816
    self._oprot.writeMessageBegin('clearItemAvailabilityCache', TMessageType.CALL, self._seqid)
1817
    args = clearItemAvailabilityCache_args()
1818
    args.write(self._oprot)
1819
    self._oprot.writeMessageEnd()
1820
    self._oprot.trans.flush()
1821
 
1822
  def recv_clearItemAvailabilityCache(self, ):
1823
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1824
    if mtype == TMessageType.EXCEPTION:
1825
      x = TApplicationException()
1826
      x.read(self._iprot)
1827
      self._iprot.readMessageEnd()
1828
      raise x
1829
    result = clearItemAvailabilityCache_result()
1830
    result.read(self._iprot)
1831
    self._iprot.readMessageEnd()
1832
    return
1833
 
1834
  def updateVendorString(self, warehouseId, vendorString):
1835
    """
1836
    Parameters:
1837
     - warehouseId
1838
     - vendorString
1839
    """
1840
    self.send_updateVendorString(warehouseId, vendorString)
1841
    self.recv_updateVendorString()
1842
 
1843
  def send_updateVendorString(self, warehouseId, vendorString):
1844
    self._oprot.writeMessageBegin('updateVendorString', TMessageType.CALL, self._seqid)
1845
    args = updateVendorString_args()
1846
    args.warehouseId = warehouseId
1847
    args.vendorString = vendorString
1848
    args.write(self._oprot)
1849
    self._oprot.writeMessageEnd()
1850
    self._oprot.trans.flush()
1851
 
1852
  def recv_updateVendorString(self, ):
1853
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1854
    if mtype == TMessageType.EXCEPTION:
1855
      x = TApplicationException()
1856
      x.read(self._iprot)
1857
      self._iprot.readMessageEnd()
1858
      raise x
1859
    result = updateVendorString_result()
1860
    result.read(self._iprot)
1861
    self._iprot.readMessageEnd()
1862
    return
1863
 
6096 amit.gupta 1864
  def clearItemAvailabilityCacheForItem(self, item_id):
1865
    """
1866
    Parameters:
1867
     - item_id
1868
    """
1869
    self.send_clearItemAvailabilityCacheForItem(item_id)
1870
    self.recv_clearItemAvailabilityCacheForItem()
5944 mandeep.dh 1871
 
6096 amit.gupta 1872
  def send_clearItemAvailabilityCacheForItem(self, item_id):
1873
    self._oprot.writeMessageBegin('clearItemAvailabilityCacheForItem', TMessageType.CALL, self._seqid)
1874
    args = clearItemAvailabilityCacheForItem_args()
1875
    args.item_id = item_id
1876
    args.write(self._oprot)
1877
    self._oprot.writeMessageEnd()
1878
    self._oprot.trans.flush()
1879
 
1880
  def recv_clearItemAvailabilityCacheForItem(self, ):
1881
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1882
    if mtype == TMessageType.EXCEPTION:
1883
      x = TApplicationException()
1884
      x.read(self._iprot)
1885
      self._iprot.readMessageEnd()
1886
      raise x
1887
    result = clearItemAvailabilityCacheForItem_result()
1888
    result.read(self._iprot)
1889
    self._iprot.readMessageEnd()
1890
    return
1891
 
7718 amar.kumar 1892
  def getOurWarehouseIdForVendor(self, vendorId, billingWarehouseId):
6467 amar.kumar 1893
    """
1894
    Parameters:
1895
     - vendorId
7718 amar.kumar 1896
     - billingWarehouseId
6467 amar.kumar 1897
    """
7718 amar.kumar 1898
    self.send_getOurWarehouseIdForVendor(vendorId, billingWarehouseId)
6467 amar.kumar 1899
    return self.recv_getOurWarehouseIdForVendor()
6096 amit.gupta 1900
 
7718 amar.kumar 1901
  def send_getOurWarehouseIdForVendor(self, vendorId, billingWarehouseId):
6467 amar.kumar 1902
    self._oprot.writeMessageBegin('getOurWarehouseIdForVendor', TMessageType.CALL, self._seqid)
1903
    args = getOurWarehouseIdForVendor_args()
1904
    args.vendorId = vendorId
7718 amar.kumar 1905
    args.billingWarehouseId = billingWarehouseId
6467 amar.kumar 1906
    args.write(self._oprot)
1907
    self._oprot.writeMessageEnd()
1908
    self._oprot.trans.flush()
1909
 
1910
  def recv_getOurWarehouseIdForVendor(self, ):
1911
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1912
    if mtype == TMessageType.EXCEPTION:
1913
      x = TApplicationException()
1914
      x.read(self._iprot)
1915
      self._iprot.readMessageEnd()
1916
      raise x
1917
    result = getOurWarehouseIdForVendor_result()
1918
    result.read(self._iprot)
1919
    self._iprot.readMessageEnd()
1920
    if result.success is not None:
1921
      return result.success
1922
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOurWarehouseIdForVendor failed: unknown result");
1923
 
6484 amar.kumar 1924
  def getItemAvailabilitiesAtOurWarehouses(self, item_ids):
1925
    """
1926
    Parameters:
1927
     - item_ids
1928
    """
1929
    self.send_getItemAvailabilitiesAtOurWarehouses(item_ids)
1930
    return self.recv_getItemAvailabilitiesAtOurWarehouses()
6467 amar.kumar 1931
 
6484 amar.kumar 1932
  def send_getItemAvailabilitiesAtOurWarehouses(self, item_ids):
1933
    self._oprot.writeMessageBegin('getItemAvailabilitiesAtOurWarehouses', TMessageType.CALL, self._seqid)
1934
    args = getItemAvailabilitiesAtOurWarehouses_args()
1935
    args.item_ids = item_ids
1936
    args.write(self._oprot)
1937
    self._oprot.writeMessageEnd()
1938
    self._oprot.trans.flush()
1939
 
1940
  def recv_getItemAvailabilitiesAtOurWarehouses(self, ):
1941
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1942
    if mtype == TMessageType.EXCEPTION:
1943
      x = TApplicationException()
1944
      x.read(self._iprot)
1945
      self._iprot.readMessageEnd()
1946
      raise x
1947
    result = getItemAvailabilitiesAtOurWarehouses_result()
1948
    result.read(self._iprot)
1949
    self._iprot.readMessageEnd()
1950
    if result.success is not None:
1951
      return result.success
1952
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailabilitiesAtOurWarehouses failed: unknown result");
1953
 
6531 vikram.rag 1954
  def getMonitoredWarehouseForVendors(self, vendorIds):
1955
    """
1956
    Parameters:
1957
     - vendorIds
1958
    """
1959
    self.send_getMonitoredWarehouseForVendors(vendorIds)
1960
    return self.recv_getMonitoredWarehouseForVendors()
6484 amar.kumar 1961
 
6531 vikram.rag 1962
  def send_getMonitoredWarehouseForVendors(self, vendorIds):
1963
    self._oprot.writeMessageBegin('getMonitoredWarehouseForVendors', TMessageType.CALL, self._seqid)
1964
    args = getMonitoredWarehouseForVendors_args()
1965
    args.vendorIds = vendorIds
1966
    args.write(self._oprot)
1967
    self._oprot.writeMessageEnd()
1968
    self._oprot.trans.flush()
1969
 
1970
  def recv_getMonitoredWarehouseForVendors(self, ):
1971
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1972
    if mtype == TMessageType.EXCEPTION:
1973
      x = TApplicationException()
1974
      x.read(self._iprot)
1975
      self._iprot.readMessageEnd()
1976
      raise x
1977
    result = getMonitoredWarehouseForVendors_result()
1978
    result.read(self._iprot)
1979
    self._iprot.readMessageEnd()
1980
    if result.success is not None:
1981
      return result.success
1982
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMonitoredWarehouseForVendors failed: unknown result");
1983
 
1984
  def getIgnoredWarehouseidsAndItemids(self, ):
1985
    self.send_getIgnoredWarehouseidsAndItemids()
1986
    return self.recv_getIgnoredWarehouseidsAndItemids()
1987
 
1988
  def send_getIgnoredWarehouseidsAndItemids(self, ):
1989
    self._oprot.writeMessageBegin('getIgnoredWarehouseidsAndItemids', TMessageType.CALL, self._seqid)
1990
    args = getIgnoredWarehouseidsAndItemids_args()
1991
    args.write(self._oprot)
1992
    self._oprot.writeMessageEnd()
1993
    self._oprot.trans.flush()
1994
 
1995
  def recv_getIgnoredWarehouseidsAndItemids(self, ):
1996
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1997
    if mtype == TMessageType.EXCEPTION:
1998
      x = TApplicationException()
1999
      x.read(self._iprot)
2000
      self._iprot.readMessageEnd()
2001
      raise x
2002
    result = getIgnoredWarehouseidsAndItemids_result()
2003
    result.read(self._iprot)
2004
    self._iprot.readMessageEnd()
2005
    if result.success is not None:
2006
      return result.success
2007
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredWarehouseidsAndItemids failed: unknown result");
2008
 
2009
  def insertItemtoIgnoreInventoryUpdatelist(self, item_id, warehouse_id):
2010
    """
2011
    Parameters:
2012
     - item_id
2013
     - warehouse_id
2014
    """
2015
    self.send_insertItemtoIgnoreInventoryUpdatelist(item_id, warehouse_id)
2016
    return self.recv_insertItemtoIgnoreInventoryUpdatelist()
2017
 
2018
  def send_insertItemtoIgnoreInventoryUpdatelist(self, item_id, warehouse_id):
2019
    self._oprot.writeMessageBegin('insertItemtoIgnoreInventoryUpdatelist', TMessageType.CALL, self._seqid)
2020
    args = insertItemtoIgnoreInventoryUpdatelist_args()
2021
    args.item_id = item_id
2022
    args.warehouse_id = warehouse_id
2023
    args.write(self._oprot)
2024
    self._oprot.writeMessageEnd()
2025
    self._oprot.trans.flush()
2026
 
2027
  def recv_insertItemtoIgnoreInventoryUpdatelist(self, ):
2028
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2029
    if mtype == TMessageType.EXCEPTION:
2030
      x = TApplicationException()
2031
      x.read(self._iprot)
2032
      self._iprot.readMessageEnd()
2033
      raise x
2034
    result = insertItemtoIgnoreInventoryUpdatelist_result()
2035
    result.read(self._iprot)
2036
    self._iprot.readMessageEnd()
2037
    if result.success is not None:
2038
      return result.success
2039
    raise TApplicationException(TApplicationException.MISSING_RESULT, "insertItemtoIgnoreInventoryUpdatelist failed: unknown result");
2040
 
2041
  def deleteItemFromIgnoredInventoryUpdateList(self, item_id, warehouse_id):
2042
    """
2043
    Parameters:
2044
     - item_id
2045
     - warehouse_id
2046
    """
2047
    self.send_deleteItemFromIgnoredInventoryUpdateList(item_id, warehouse_id)
2048
    return self.recv_deleteItemFromIgnoredInventoryUpdateList()
2049
 
2050
  def send_deleteItemFromIgnoredInventoryUpdateList(self, item_id, warehouse_id):
2051
    self._oprot.writeMessageBegin('deleteItemFromIgnoredInventoryUpdateList', TMessageType.CALL, self._seqid)
2052
    args = deleteItemFromIgnoredInventoryUpdateList_args()
2053
    args.item_id = item_id
2054
    args.warehouse_id = warehouse_id
2055
    args.write(self._oprot)
2056
    self._oprot.writeMessageEnd()
2057
    self._oprot.trans.flush()
2058
 
2059
  def recv_deleteItemFromIgnoredInventoryUpdateList(self, ):
2060
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2061
    if mtype == TMessageType.EXCEPTION:
2062
      x = TApplicationException()
2063
      x.read(self._iprot)
2064
      self._iprot.readMessageEnd()
2065
      raise x
2066
    result = deleteItemFromIgnoredInventoryUpdateList_result()
2067
    result.read(self._iprot)
2068
    self._iprot.readMessageEnd()
2069
    if result.success is not None:
2070
      return result.success
2071
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteItemFromIgnoredInventoryUpdateList failed: unknown result");
2072
 
2073
  def getAllIgnoredInventoryupdateItemsCount(self, ):
2074
    self.send_getAllIgnoredInventoryupdateItemsCount()
2075
    return self.recv_getAllIgnoredInventoryupdateItemsCount()
2076
 
2077
  def send_getAllIgnoredInventoryupdateItemsCount(self, ):
2078
    self._oprot.writeMessageBegin('getAllIgnoredInventoryupdateItemsCount', TMessageType.CALL, self._seqid)
2079
    args = getAllIgnoredInventoryupdateItemsCount_args()
2080
    args.write(self._oprot)
2081
    self._oprot.writeMessageEnd()
2082
    self._oprot.trans.flush()
2083
 
2084
  def recv_getAllIgnoredInventoryupdateItemsCount(self, ):
2085
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2086
    if mtype == TMessageType.EXCEPTION:
2087
      x = TApplicationException()
2088
      x.read(self._iprot)
2089
      self._iprot.readMessageEnd()
2090
      raise x
2091
    result = getAllIgnoredInventoryupdateItemsCount_result()
2092
    result.read(self._iprot)
2093
    self._iprot.readMessageEnd()
2094
    if result.success is not None:
2095
      return result.success
2096
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryupdateItemsCount failed: unknown result");
2097
 
2098
  def getIgnoredInventoryUpdateItemids(self, offset, limit):
2099
    """
2100
    Parameters:
2101
     - offset
2102
     - limit
2103
    """
2104
    self.send_getIgnoredInventoryUpdateItemids(offset, limit)
2105
    return self.recv_getIgnoredInventoryUpdateItemids()
2106
 
2107
  def send_getIgnoredInventoryUpdateItemids(self, offset, limit):
2108
    self._oprot.writeMessageBegin('getIgnoredInventoryUpdateItemids', TMessageType.CALL, self._seqid)
2109
    args = getIgnoredInventoryUpdateItemids_args()
2110
    args.offset = offset
2111
    args.limit = limit
2112
    args.write(self._oprot)
2113
    self._oprot.writeMessageEnd()
2114
    self._oprot.trans.flush()
2115
 
2116
  def recv_getIgnoredInventoryUpdateItemids(self, ):
2117
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2118
    if mtype == TMessageType.EXCEPTION:
2119
      x = TApplicationException()
2120
      x.read(self._iprot)
2121
      self._iprot.readMessageEnd()
2122
      raise x
2123
    result = getIgnoredInventoryUpdateItemids_result()
2124
    result.read(self._iprot)
2125
    self._iprot.readMessageEnd()
2126
    if result.success is not None:
2127
      return result.success
2128
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredInventoryUpdateItemids failed: unknown result");
2129
 
6821 amar.kumar 2130
  def updateItemStockPurchaseParams(self, item_id, numOfDaysStock, minStockLevel):
2131
    """
2132
    Parameters:
2133
     - item_id
2134
     - numOfDaysStock
2135
     - minStockLevel
2136
    """
2137
    self.send_updateItemStockPurchaseParams(item_id, numOfDaysStock, minStockLevel)
2138
    self.recv_updateItemStockPurchaseParams()
6531 vikram.rag 2139
 
6821 amar.kumar 2140
  def send_updateItemStockPurchaseParams(self, item_id, numOfDaysStock, minStockLevel):
2141
    self._oprot.writeMessageBegin('updateItemStockPurchaseParams', TMessageType.CALL, self._seqid)
2142
    args = updateItemStockPurchaseParams_args()
2143
    args.item_id = item_id
2144
    args.numOfDaysStock = numOfDaysStock
2145
    args.minStockLevel = minStockLevel
2146
    args.write(self._oprot)
2147
    self._oprot.writeMessageEnd()
2148
    self._oprot.trans.flush()
2149
 
2150
  def recv_updateItemStockPurchaseParams(self, ):
2151
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2152
    if mtype == TMessageType.EXCEPTION:
2153
      x = TApplicationException()
2154
      x.read(self._iprot)
2155
      self._iprot.readMessageEnd()
2156
      raise x
2157
    result = updateItemStockPurchaseParams_result()
2158
    result.read(self._iprot)
2159
    self._iprot.readMessageEnd()
2160
    return
2161
 
2162
  def getItemStockPurchaseParams(self, itemId):
2163
    """
2164
    Parameters:
2165
     - itemId
2166
    """
2167
    self.send_getItemStockPurchaseParams(itemId)
2168
    return self.recv_getItemStockPurchaseParams()
2169
 
2170
  def send_getItemStockPurchaseParams(self, itemId):
2171
    self._oprot.writeMessageBegin('getItemStockPurchaseParams', TMessageType.CALL, self._seqid)
2172
    args = getItemStockPurchaseParams_args()
2173
    args.itemId = itemId
2174
    args.write(self._oprot)
2175
    self._oprot.writeMessageEnd()
2176
    self._oprot.trans.flush()
2177
 
2178
  def recv_getItemStockPurchaseParams(self, ):
2179
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2180
    if mtype == TMessageType.EXCEPTION:
2181
      x = TApplicationException()
2182
      x.read(self._iprot)
2183
      self._iprot.readMessageEnd()
2184
      raise x
2185
    result = getItemStockPurchaseParams_result()
2186
    result.read(self._iprot)
2187
    self._iprot.readMessageEnd()
2188
    if result.success is not None:
2189
      return result.success
2190
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStockPurchaseParams failed: unknown result");
2191
 
2192
  def addOosStatusForItem(self, oosStatusMap, date):
2193
    """
2194
    Parameters:
2195
     - oosStatusMap
2196
     - date
2197
    """
2198
    self.send_addOosStatusForItem(oosStatusMap, date)
2199
    self.recv_addOosStatusForItem()
2200
 
2201
  def send_addOosStatusForItem(self, oosStatusMap, date):
2202
    self._oprot.writeMessageBegin('addOosStatusForItem', TMessageType.CALL, self._seqid)
2203
    args = addOosStatusForItem_args()
2204
    args.oosStatusMap = oosStatusMap
2205
    args.date = date
2206
    args.write(self._oprot)
2207
    self._oprot.writeMessageEnd()
2208
    self._oprot.trans.flush()
2209
 
2210
  def recv_addOosStatusForItem(self, ):
2211
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2212
    if mtype == TMessageType.EXCEPTION:
2213
      x = TApplicationException()
2214
      x.read(self._iprot)
2215
      self._iprot.readMessageEnd()
2216
      raise x
2217
    result = addOosStatusForItem_result()
2218
    result.read(self._iprot)
2219
    self._iprot.readMessageEnd()
2220
    return
2221
 
9762 amar.kumar 2222
  def getOosStatusesForXDaysForItem(self, itemId, sourceId, days):
6832 amar.kumar 2223
    """
2224
    Parameters:
2225
     - itemId
9762 amar.kumar 2226
     - sourceId
6832 amar.kumar 2227
     - days
2228
    """
9762 amar.kumar 2229
    self.send_getOosStatusesForXDaysForItem(itemId, sourceId, days)
6832 amar.kumar 2230
    return self.recv_getOosStatusesForXDaysForItem()
6821 amar.kumar 2231
 
9762 amar.kumar 2232
  def send_getOosStatusesForXDaysForItem(self, itemId, sourceId, days):
6832 amar.kumar 2233
    self._oprot.writeMessageBegin('getOosStatusesForXDaysForItem', TMessageType.CALL, self._seqid)
2234
    args = getOosStatusesForXDaysForItem_args()
2235
    args.itemId = itemId
9762 amar.kumar 2236
    args.sourceId = sourceId
6832 amar.kumar 2237
    args.days = days
2238
    args.write(self._oprot)
2239
    self._oprot.writeMessageEnd()
2240
    self._oprot.trans.flush()
2241
 
2242
  def recv_getOosStatusesForXDaysForItem(self, ):
2243
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2244
    if mtype == TMessageType.EXCEPTION:
2245
      x = TApplicationException()
2246
      x.read(self._iprot)
2247
      self._iprot.readMessageEnd()
2248
      raise x
2249
    result = getOosStatusesForXDaysForItem_result()
2250
    result.read(self._iprot)
2251
    self._iprot.readMessageEnd()
2252
    if result.success is not None:
2253
      return result.success
2254
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOosStatusesForXDaysForItem failed: unknown result");
2255
 
6857 amar.kumar 2256
  def getNonZeroItemStockPurchaseParams(self, ):
2257
    self.send_getNonZeroItemStockPurchaseParams()
2258
    return self.recv_getNonZeroItemStockPurchaseParams()
6832 amar.kumar 2259
 
6857 amar.kumar 2260
  def send_getNonZeroItemStockPurchaseParams(self, ):
2261
    self._oprot.writeMessageBegin('getNonZeroItemStockPurchaseParams', TMessageType.CALL, self._seqid)
2262
    args = getNonZeroItemStockPurchaseParams_args()
2263
    args.write(self._oprot)
2264
    self._oprot.writeMessageEnd()
2265
    self._oprot.trans.flush()
2266
 
2267
  def recv_getNonZeroItemStockPurchaseParams(self, ):
2268
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2269
    if mtype == TMessageType.EXCEPTION:
2270
      x = TApplicationException()
2271
      x.read(self._iprot)
2272
      self._iprot.readMessageEnd()
2273
      raise x
2274
    result = getNonZeroItemStockPurchaseParams_result()
2275
    result.read(self._iprot)
2276
    self._iprot.readMessageEnd()
2277
    if result.success is not None:
2278
      return result.success
2279
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNonZeroItemStockPurchaseParams failed: unknown result");
2280
 
7149 amar.kumar 2281
  def getBillableInventoryAndPendingOrders(self, ):
2282
    """
2283
    Returns a list of inventory stock for items for which there are pending orders or have billable inventory.
2284
    """
2285
    self.send_getBillableInventoryAndPendingOrders()
2286
    return self.recv_getBillableInventoryAndPendingOrders()
6857 amar.kumar 2287
 
7149 amar.kumar 2288
  def send_getBillableInventoryAndPendingOrders(self, ):
2289
    self._oprot.writeMessageBegin('getBillableInventoryAndPendingOrders', TMessageType.CALL, self._seqid)
2290
    args = getBillableInventoryAndPendingOrders_args()
2291
    args.write(self._oprot)
2292
    self._oprot.writeMessageEnd()
2293
    self._oprot.trans.flush()
2294
 
2295
  def recv_getBillableInventoryAndPendingOrders(self, ):
2296
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2297
    if mtype == TMessageType.EXCEPTION:
2298
      x = TApplicationException()
2299
      x.read(self._iprot)
2300
      self._iprot.readMessageEnd()
2301
      raise x
2302
    result = getBillableInventoryAndPendingOrders_result()
2303
    result.read(self._iprot)
2304
    self._iprot.readMessageEnd()
2305
    if result.success is not None:
2306
      return result.success
2307
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBillableInventoryAndPendingOrders failed: unknown result");
2308
 
7281 kshitij.so 2309
  def getWarehouseName(self, warehouse_id):
2310
    """
2311
    Parameters:
2312
     - warehouse_id
2313
    """
2314
    self.send_getWarehouseName(warehouse_id)
2315
    return self.recv_getWarehouseName()
7149 amar.kumar 2316
 
7281 kshitij.so 2317
  def send_getWarehouseName(self, warehouse_id):
2318
    self._oprot.writeMessageBegin('getWarehouseName', TMessageType.CALL, self._seqid)
2319
    args = getWarehouseName_args()
2320
    args.warehouse_id = warehouse_id
2321
    args.write(self._oprot)
2322
    self._oprot.writeMessageEnd()
2323
    self._oprot.trans.flush()
2324
 
2325
  def recv_getWarehouseName(self, ):
2326
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2327
    if mtype == TMessageType.EXCEPTION:
2328
      x = TApplicationException()
2329
      x.read(self._iprot)
2330
      self._iprot.readMessageEnd()
2331
      raise x
2332
    result = getWarehouseName_result()
2333
    result.read(self._iprot)
2334
    self._iprot.readMessageEnd()
2335
    if result.success is not None:
2336
      return result.success
2337
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouseName failed: unknown result");
2338
 
2339
  def getAmazonInventoryForItem(self, item_id):
2340
    """
2341
    Parameters:
2342
     - item_id
2343
    """
2344
    self.send_getAmazonInventoryForItem(item_id)
2345
    return self.recv_getAmazonInventoryForItem()
2346
 
2347
  def send_getAmazonInventoryForItem(self, item_id):
2348
    self._oprot.writeMessageBegin('getAmazonInventoryForItem', TMessageType.CALL, self._seqid)
2349
    args = getAmazonInventoryForItem_args()
2350
    args.item_id = item_id
2351
    args.write(self._oprot)
2352
    self._oprot.writeMessageEnd()
2353
    self._oprot.trans.flush()
2354
 
2355
  def recv_getAmazonInventoryForItem(self, ):
2356
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2357
    if mtype == TMessageType.EXCEPTION:
2358
      x = TApplicationException()
2359
      x.read(self._iprot)
2360
      self._iprot.readMessageEnd()
2361
      raise x
2362
    result = getAmazonInventoryForItem_result()
2363
    result.read(self._iprot)
2364
    self._iprot.readMessageEnd()
2365
    if result.success is not None:
2366
      return result.success
2367
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonInventoryForItem failed: unknown result");
2368
 
2369
  def getAllAmazonInventory(self, ):
2370
    self.send_getAllAmazonInventory()
2371
    return self.recv_getAllAmazonInventory()
2372
 
2373
  def send_getAllAmazonInventory(self, ):
2374
    self._oprot.writeMessageBegin('getAllAmazonInventory', TMessageType.CALL, self._seqid)
2375
    args = getAllAmazonInventory_args()
2376
    args.write(self._oprot)
2377
    self._oprot.writeMessageEnd()
2378
    self._oprot.trans.flush()
2379
 
2380
  def recv_getAllAmazonInventory(self, ):
2381
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2382
    if mtype == TMessageType.EXCEPTION:
2383
      x = TApplicationException()
2384
      x.read(self._iprot)
2385
      self._iprot.readMessageEnd()
2386
      raise x
2387
    result = getAllAmazonInventory_result()
2388
    result.read(self._iprot)
2389
    self._iprot.readMessageEnd()
2390
    if result.success is not None:
2391
      return result.success
2392
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonInventory failed: unknown result");
2393
 
2394
  def addOrUpdateAmazonInventoryForItem(self, amazonInventorySnapshot):
2395
    """
2396
    Parameters:
2397
     - amazonInventorySnapshot
2398
    """
2399
    self.send_addOrUpdateAmazonInventoryForItem(amazonInventorySnapshot)
2400
    self.recv_addOrUpdateAmazonInventoryForItem()
2401
 
2402
  def send_addOrUpdateAmazonInventoryForItem(self, amazonInventorySnapshot):
2403
    self._oprot.writeMessageBegin('addOrUpdateAmazonInventoryForItem', TMessageType.CALL, self._seqid)
2404
    args = addOrUpdateAmazonInventoryForItem_args()
2405
    args.amazonInventorySnapshot = amazonInventorySnapshot
2406
    args.write(self._oprot)
2407
    self._oprot.writeMessageEnd()
2408
    self._oprot.trans.flush()
2409
 
2410
  def recv_addOrUpdateAmazonInventoryForItem(self, ):
2411
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2412
    if mtype == TMessageType.EXCEPTION:
2413
      x = TApplicationException()
2414
      x.read(self._iprot)
2415
      self._iprot.readMessageEnd()
2416
      raise x
2417
    result = addOrUpdateAmazonInventoryForItem_result()
2418
    result.read(self._iprot)
2419
    self._iprot.readMessageEnd()
2420
    return
2421
 
7972 amar.kumar 2422
  def getLastNdaySaleForItem(self, itemId, numberOfDays):
2423
    """
2424
    Parameters:
2425
     - itemId
2426
     - numberOfDays
2427
    """
2428
    self.send_getLastNdaySaleForItem(itemId, numberOfDays)
2429
    return self.recv_getLastNdaySaleForItem()
7281 kshitij.so 2430
 
7972 amar.kumar 2431
  def send_getLastNdaySaleForItem(self, itemId, numberOfDays):
2432
    self._oprot.writeMessageBegin('getLastNdaySaleForItem', TMessageType.CALL, self._seqid)
2433
    args = getLastNdaySaleForItem_args()
2434
    args.itemId = itemId
2435
    args.numberOfDays = numberOfDays
2436
    args.write(self._oprot)
2437
    self._oprot.writeMessageEnd()
2438
    self._oprot.trans.flush()
2439
 
2440
  def recv_getLastNdaySaleForItem(self, ):
2441
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2442
    if mtype == TMessageType.EXCEPTION:
2443
      x = TApplicationException()
2444
      x.read(self._iprot)
2445
      self._iprot.readMessageEnd()
2446
      raise x
2447
    result = getLastNdaySaleForItem_result()
2448
    result.read(self._iprot)
2449
    self._iprot.readMessageEnd()
2450
    if result.success is not None:
2451
      return result.success
2452
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLastNdaySaleForItem failed: unknown result");
2453
 
8282 kshitij.so 2454
  def addOrUpdateAmazonFbaInventory(self, amazonfbainventorysnapshot):
2455
    """
2456
    Parameters:
2457
     - amazonfbainventorysnapshot
2458
    """
2459
    self.send_addOrUpdateAmazonFbaInventory(amazonfbainventorysnapshot)
2460
    self.recv_addOrUpdateAmazonFbaInventory()
2461
 
2462
  def send_addOrUpdateAmazonFbaInventory(self, amazonfbainventorysnapshot):
2463
    self._oprot.writeMessageBegin('addOrUpdateAmazonFbaInventory', TMessageType.CALL, self._seqid)
2464
    args = addOrUpdateAmazonFbaInventory_args()
2465
    args.amazonfbainventorysnapshot = amazonfbainventorysnapshot
2466
    args.write(self._oprot)
2467
    self._oprot.writeMessageEnd()
2468
    self._oprot.trans.flush()
2469
 
2470
  def recv_addOrUpdateAmazonFbaInventory(self, ):
2471
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2472
    if mtype == TMessageType.EXCEPTION:
2473
      x = TApplicationException()
2474
      x.read(self._iprot)
2475
      self._iprot.readMessageEnd()
2476
      raise x
2477
    result = addOrUpdateAmazonFbaInventory_result()
2478
    result.read(self._iprot)
2479
    self._iprot.readMessageEnd()
2480
    return
2481
 
8182 amar.kumar 2482
  def addUpdateHoldInventory(self, itemId, warehouseId, holdQuantity, source):
2483
    """
2484
    Parameters:
2485
     - itemId
2486
     - warehouseId
2487
     - holdQuantity
2488
     - source
2489
    """
2490
    self.send_addUpdateHoldInventory(itemId, warehouseId, holdQuantity, source)
2491
    self.recv_addUpdateHoldInventory()
7972 amar.kumar 2492
 
8182 amar.kumar 2493
  def send_addUpdateHoldInventory(self, itemId, warehouseId, holdQuantity, source):
2494
    self._oprot.writeMessageBegin('addUpdateHoldInventory', TMessageType.CALL, self._seqid)
2495
    args = addUpdateHoldInventory_args()
2496
    args.itemId = itemId
2497
    args.warehouseId = warehouseId
2498
    args.holdQuantity = holdQuantity
2499
    args.source = source
2500
    args.write(self._oprot)
2501
    self._oprot.writeMessageEnd()
2502
    self._oprot.trans.flush()
2503
 
2504
  def recv_addUpdateHoldInventory(self, ):
2505
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2506
    if mtype == TMessageType.EXCEPTION:
2507
      x = TApplicationException()
2508
      x.read(self._iprot)
2509
      self._iprot.readMessageEnd()
2510
      raise x
2511
    result = addUpdateHoldInventory_result()
2512
    result.read(self._iprot)
2513
    self._iprot.readMessageEnd()
9762 amar.kumar 2514
    if result.cex is not None:
2515
      raise result.cex
8182 amar.kumar 2516
    return
2517
 
8282 kshitij.so 2518
  def getAmazonFbaItemInventory(self, itemId):
2519
    """
2520
    Parameters:
2521
     - itemId
2522
    """
2523
    self.send_getAmazonFbaItemInventory(itemId)
2524
    return self.recv_getAmazonFbaItemInventory()
8182 amar.kumar 2525
 
8282 kshitij.so 2526
  def send_getAmazonFbaItemInventory(self, itemId):
2527
    self._oprot.writeMessageBegin('getAmazonFbaItemInventory', TMessageType.CALL, self._seqid)
2528
    args = getAmazonFbaItemInventory_args()
2529
    args.itemId = itemId
2530
    args.write(self._oprot)
2531
    self._oprot.writeMessageEnd()
2532
    self._oprot.trans.flush()
2533
 
2534
  def recv_getAmazonFbaItemInventory(self, ):
2535
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2536
    if mtype == TMessageType.EXCEPTION:
2537
      x = TApplicationException()
2538
      x.read(self._iprot)
2539
      self._iprot.readMessageEnd()
2540
      raise x
2541
    result = getAmazonFbaItemInventory_result()
2542
    result.read(self._iprot)
2543
    self._iprot.readMessageEnd()
2544
    if result.success is not None:
2545
      return result.success
2546
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonFbaItemInventory failed: unknown result");
2547
 
8363 vikram.rag 2548
  def getAllAmazonFbaItemInventory(self, ):
2549
    self.send_getAllAmazonFbaItemInventory()
2550
    return self.recv_getAllAmazonFbaItemInventory()
8282 kshitij.so 2551
 
8363 vikram.rag 2552
  def send_getAllAmazonFbaItemInventory(self, ):
2553
    self._oprot.writeMessageBegin('getAllAmazonFbaItemInventory', TMessageType.CALL, self._seqid)
2554
    args = getAllAmazonFbaItemInventory_args()
8282 kshitij.so 2555
    args.write(self._oprot)
2556
    self._oprot.writeMessageEnd()
2557
    self._oprot.trans.flush()
2558
 
8363 vikram.rag 2559
  def recv_getAllAmazonFbaItemInventory(self, ):
8282 kshitij.so 2560
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2561
    if mtype == TMessageType.EXCEPTION:
2562
      x = TApplicationException()
2563
      x.read(self._iprot)
2564
      self._iprot.readMessageEnd()
2565
      raise x
8363 vikram.rag 2566
    result = getAllAmazonFbaItemInventory_result()
8282 kshitij.so 2567
    result.read(self._iprot)
2568
    self._iprot.readMessageEnd()
2569
    if result.success is not None:
2570
      return result.success
8363 vikram.rag 2571
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonFbaItemInventory failed: unknown result");
8282 kshitij.so 2572
 
8363 vikram.rag 2573
  def getOursGoodWarehouseIdsForLocation(self, state_id):
2574
    """
2575
    Parameters:
2576
     - state_id
2577
    """
2578
    self.send_getOursGoodWarehouseIdsForLocation(state_id)
2579
    return self.recv_getOursGoodWarehouseIdsForLocation()
8282 kshitij.so 2580
 
8363 vikram.rag 2581
  def send_getOursGoodWarehouseIdsForLocation(self, state_id):
2582
    self._oprot.writeMessageBegin('getOursGoodWarehouseIdsForLocation', TMessageType.CALL, self._seqid)
2583
    args = getOursGoodWarehouseIdsForLocation_args()
2584
    args.state_id = state_id
2585
    args.write(self._oprot)
2586
    self._oprot.writeMessageEnd()
2587
    self._oprot.trans.flush()
2588
 
2589
  def recv_getOursGoodWarehouseIdsForLocation(self, ):
2590
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2591
    if mtype == TMessageType.EXCEPTION:
2592
      x = TApplicationException()
2593
      x.read(self._iprot)
2594
      self._iprot.readMessageEnd()
2595
      raise x
2596
    result = getOursGoodWarehouseIdsForLocation_result()
2597
    result.read(self._iprot)
2598
    self._iprot.readMessageEnd()
2599
    if result.success is not None:
2600
      return result.success
2601
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOursGoodWarehouseIdsForLocation failed: unknown result");
2602
 
8955 vikram.rag 2603
  def getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, id, warehouse_id, source):
2604
    """
2605
    Parameters:
2606
     - id
2607
     - warehouse_id
2608
     - source
2609
    """
2610
    self.send_getHoldInventoryDetailForItemForWarehouseIdExceptSource(id, warehouse_id, source)
2611
    return self.recv_getHoldInventoryDetailForItemForWarehouseIdExceptSource()
8363 vikram.rag 2612
 
8955 vikram.rag 2613
  def send_getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, id, warehouse_id, source):
2614
    self._oprot.writeMessageBegin('getHoldInventoryDetailForItemForWarehouseIdExceptSource', TMessageType.CALL, self._seqid)
2615
    args = getHoldInventoryDetailForItemForWarehouseIdExceptSource_args()
2616
    args.id = id
2617
    args.warehouse_id = warehouse_id
2618
    args.source = source
2619
    args.write(self._oprot)
2620
    self._oprot.writeMessageEnd()
2621
    self._oprot.trans.flush()
2622
 
2623
  def recv_getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, ):
2624
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2625
    if mtype == TMessageType.EXCEPTION:
2626
      x = TApplicationException()
2627
      x.read(self._iprot)
2628
      self._iprot.readMessageEnd()
2629
      raise x
2630
    result = getHoldInventoryDetailForItemForWarehouseIdExceptSource_result()
2631
    result.read(self._iprot)
2632
    self._iprot.readMessageEnd()
2633
    if result.success is not None:
2634
      return result.success
2635
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHoldInventoryDetailForItemForWarehouseIdExceptSource failed: unknown result");
2636
 
9404 vikram.rag 2637
  def getSnapdealInventoryForItem(self, item_id):
2638
    """
2639
    Parameters:
2640
     - item_id
2641
    """
2642
    self.send_getSnapdealInventoryForItem(item_id)
2643
    return self.recv_getSnapdealInventoryForItem()
8955 vikram.rag 2644
 
9404 vikram.rag 2645
  def send_getSnapdealInventoryForItem(self, item_id):
2646
    self._oprot.writeMessageBegin('getSnapdealInventoryForItem', TMessageType.CALL, self._seqid)
2647
    args = getSnapdealInventoryForItem_args()
2648
    args.item_id = item_id
2649
    args.write(self._oprot)
2650
    self._oprot.writeMessageEnd()
2651
    self._oprot.trans.flush()
2652
 
2653
  def recv_getSnapdealInventoryForItem(self, ):
2654
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2655
    if mtype == TMessageType.EXCEPTION:
2656
      x = TApplicationException()
2657
      x.read(self._iprot)
2658
      self._iprot.readMessageEnd()
2659
      raise x
2660
    result = getSnapdealInventoryForItem_result()
2661
    result.read(self._iprot)
2662
    self._iprot.readMessageEnd()
2663
    if result.success is not None:
2664
      return result.success
2665
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealInventoryForItem failed: unknown result");
2666
 
2667
  def addOrUpdateSnapdealInventoryForItem(self, snapdealinventoryitem):
2668
    """
2669
    Parameters:
2670
     - snapdealinventoryitem
2671
    """
2672
    self.send_addOrUpdateSnapdealInventoryForItem(snapdealinventoryitem)
2673
    self.recv_addOrUpdateSnapdealInventoryForItem()
2674
 
2675
  def send_addOrUpdateSnapdealInventoryForItem(self, snapdealinventoryitem):
2676
    self._oprot.writeMessageBegin('addOrUpdateSnapdealInventoryForItem', TMessageType.CALL, self._seqid)
2677
    args = addOrUpdateSnapdealInventoryForItem_args()
2678
    args.snapdealinventoryitem = snapdealinventoryitem
2679
    args.write(self._oprot)
2680
    self._oprot.writeMessageEnd()
2681
    self._oprot.trans.flush()
2682
 
2683
  def recv_addOrUpdateSnapdealInventoryForItem(self, ):
2684
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2685
    if mtype == TMessageType.EXCEPTION:
2686
      x = TApplicationException()
2687
      x.read(self._iprot)
2688
      self._iprot.readMessageEnd()
2689
      raise x
2690
    result = addOrUpdateSnapdealInventoryForItem_result()
2691
    result.read(self._iprot)
2692
    self._iprot.readMessageEnd()
2693
    return
2694
 
2695
  def getNlcForWarehouse(self, warehouse_id, item_id):
2696
    """
2697
    Parameters:
2698
     - warehouse_id
2699
     - item_id
2700
    """
2701
    self.send_getNlcForWarehouse(warehouse_id, item_id)
2702
    return self.recv_getNlcForWarehouse()
2703
 
2704
  def send_getNlcForWarehouse(self, warehouse_id, item_id):
2705
    self._oprot.writeMessageBegin('getNlcForWarehouse', TMessageType.CALL, self._seqid)
2706
    args = getNlcForWarehouse_args()
2707
    args.warehouse_id = warehouse_id
2708
    args.item_id = item_id
2709
    args.write(self._oprot)
2710
    self._oprot.writeMessageEnd()
2711
    self._oprot.trans.flush()
2712
 
2713
  def recv_getNlcForWarehouse(self, ):
2714
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2715
    if mtype == TMessageType.EXCEPTION:
2716
      x = TApplicationException()
2717
      x.read(self._iprot)
2718
      self._iprot.readMessageEnd()
2719
      raise x
2720
    result = getNlcForWarehouse_result()
2721
    result.read(self._iprot)
2722
    self._iprot.readMessageEnd()
2723
    if result.success is not None:
2724
      return result.success
2725
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNlcForWarehouse failed: unknown result");
2726
 
9640 amar.kumar 2727
  def getHeldInventoryMapForItem(self, item_id, warehouse_id):
2728
    """
2729
    Parameters:
2730
     - item_id
2731
     - warehouse_id
2732
    """
2733
    self.send_getHeldInventoryMapForItem(item_id, warehouse_id)
2734
    return self.recv_getHeldInventoryMapForItem()
2735
 
2736
  def send_getHeldInventoryMapForItem(self, item_id, warehouse_id):
2737
    self._oprot.writeMessageBegin('getHeldInventoryMapForItem', TMessageType.CALL, self._seqid)
2738
    args = getHeldInventoryMapForItem_args()
2739
    args.item_id = item_id
2740
    args.warehouse_id = warehouse_id
2741
    args.write(self._oprot)
2742
    self._oprot.writeMessageEnd()
2743
    self._oprot.trans.flush()
2744
 
2745
  def recv_getHeldInventoryMapForItem(self, ):
2746
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2747
    if mtype == TMessageType.EXCEPTION:
2748
      x = TApplicationException()
2749
      x.read(self._iprot)
2750
      self._iprot.readMessageEnd()
2751
      raise x
2752
    result = getHeldInventoryMapForItem_result()
2753
    result.read(self._iprot)
2754
    self._iprot.readMessageEnd()
2755
    if result.success is not None:
2756
      return result.success
2757
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHeldInventoryMapForItem failed: unknown result");
2758
 
9495 vikram.rag 2759
  def addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
2760
    """
2761
    Parameters:
2762
     - allamazonfbainventorysnapshot
2763
    """
2764
    self.send_addOrUpdateAllAmazonFbaInventory(allamazonfbainventorysnapshot)
2765
    self.recv_addOrUpdateAllAmazonFbaInventory()
9404 vikram.rag 2766
 
9495 vikram.rag 2767
  def send_addOrUpdateAllAmazonFbaInventory(self, allamazonfbainventorysnapshot):
2768
    self._oprot.writeMessageBegin('addOrUpdateAllAmazonFbaInventory', TMessageType.CALL, self._seqid)
2769
    args = addOrUpdateAllAmazonFbaInventory_args()
2770
    args.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot
9456 vikram.rag 2771
    args.write(self._oprot)
2772
    self._oprot.writeMessageEnd()
2773
    self._oprot.trans.flush()
2774
 
9495 vikram.rag 2775
  def recv_addOrUpdateAllAmazonFbaInventory(self, ):
9456 vikram.rag 2776
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2777
    if mtype == TMessageType.EXCEPTION:
2778
      x = TApplicationException()
2779
      x.read(self._iprot)
2780
      self._iprot.readMessageEnd()
2781
      raise x
9495 vikram.rag 2782
    result = addOrUpdateAllAmazonFbaInventory_result()
9456 vikram.rag 2783
    result.read(self._iprot)
2784
    self._iprot.readMessageEnd()
9495 vikram.rag 2785
    return
9456 vikram.rag 2786
 
9495 vikram.rag 2787
  def addOrUpdateAllSnapdealInventory(self, allsnapdealinventorysnapshot):
9482 vikram.rag 2788
    """
2789
    Parameters:
9495 vikram.rag 2790
     - allsnapdealinventorysnapshot
9482 vikram.rag 2791
    """
9495 vikram.rag 2792
    self.send_addOrUpdateAllSnapdealInventory(allsnapdealinventorysnapshot)
2793
    self.recv_addOrUpdateAllSnapdealInventory()
9456 vikram.rag 2794
 
9495 vikram.rag 2795
  def send_addOrUpdateAllSnapdealInventory(self, allsnapdealinventorysnapshot):
2796
    self._oprot.writeMessageBegin('addOrUpdateAllSnapdealInventory', TMessageType.CALL, self._seqid)
2797
    args = addOrUpdateAllSnapdealInventory_args()
2798
    args.allsnapdealinventorysnapshot = allsnapdealinventorysnapshot
9482 vikram.rag 2799
    args.write(self._oprot)
2800
    self._oprot.writeMessageEnd()
2801
    self._oprot.trans.flush()
2802
 
9495 vikram.rag 2803
  def recv_addOrUpdateAllSnapdealInventory(self, ):
9482 vikram.rag 2804
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2805
    if mtype == TMessageType.EXCEPTION:
2806
      x = TApplicationException()
2807
      x.read(self._iprot)
2808
      self._iprot.readMessageEnd()
2809
      raise x
9495 vikram.rag 2810
    result = addOrUpdateAllSnapdealInventory_result()
9482 vikram.rag 2811
    result.read(self._iprot)
2812
    self._iprot.readMessageEnd()
2813
    return
2814
 
9495 vikram.rag 2815
  def getSnapdealInventorySnapshot(self, ):
2816
    self.send_getSnapdealInventorySnapshot()
2817
    return self.recv_getSnapdealInventorySnapshot()
9482 vikram.rag 2818
 
9495 vikram.rag 2819
  def send_getSnapdealInventorySnapshot(self, ):
2820
    self._oprot.writeMessageBegin('getSnapdealInventorySnapshot', TMessageType.CALL, self._seqid)
2821
    args = getSnapdealInventorySnapshot_args()
2822
    args.write(self._oprot)
2823
    self._oprot.writeMessageEnd()
2824
    self._oprot.trans.flush()
2825
 
2826
  def recv_getSnapdealInventorySnapshot(self, ):
2827
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2828
    if mtype == TMessageType.EXCEPTION:
2829
      x = TApplicationException()
2830
      x.read(self._iprot)
2831
      self._iprot.readMessageEnd()
2832
      raise x
2833
    result = getSnapdealInventorySnapshot_result()
2834
    result.read(self._iprot)
2835
    self._iprot.readMessageEnd()
2836
    if result.success is not None:
2837
      return result.success
2838
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealInventorySnapshot failed: unknown result");
2839
 
9761 amar.kumar 2840
  def getHoldInventoryDetails(self, itemId, warehouseId, source):
2841
    """
2842
    Parameters:
2843
     - itemId
2844
     - warehouseId
2845
     - source
2846
    """
2847
    self.send_getHoldInventoryDetails(itemId, warehouseId, source)
2848
    return self.recv_getHoldInventoryDetails()
9495 vikram.rag 2849
 
9761 amar.kumar 2850
  def send_getHoldInventoryDetails(self, itemId, warehouseId, source):
2851
    self._oprot.writeMessageBegin('getHoldInventoryDetails', TMessageType.CALL, self._seqid)
2852
    args = getHoldInventoryDetails_args()
2853
    args.itemId = itemId
2854
    args.warehouseId = warehouseId
2855
    args.source = source
2856
    args.write(self._oprot)
2857
    self._oprot.writeMessageEnd()
2858
    self._oprot.trans.flush()
2859
 
2860
  def recv_getHoldInventoryDetails(self, ):
2861
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2862
    if mtype == TMessageType.EXCEPTION:
2863
      x = TApplicationException()
2864
      x.read(self._iprot)
2865
      self._iprot.readMessageEnd()
2866
      raise x
2867
    result = getHoldInventoryDetails_result()
2868
    result.read(self._iprot)
2869
    self._iprot.readMessageEnd()
2870
    if result.success is not None:
2871
      return result.success
2872
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHoldInventoryDetails failed: unknown result");
2873
 
10050 vikram.rag 2874
  def addOrUpdateFlipkartInventorySnapshot(self, flipkartInventorySnapshot):
2875
    """
2876
    Parameters:
2877
     - flipkartInventorySnapshot
2878
    """
2879
    self.send_addOrUpdateFlipkartInventorySnapshot(flipkartInventorySnapshot)
2880
    self.recv_addOrUpdateFlipkartInventorySnapshot()
9761 amar.kumar 2881
 
10050 vikram.rag 2882
  def send_addOrUpdateFlipkartInventorySnapshot(self, flipkartInventorySnapshot):
2883
    self._oprot.writeMessageBegin('addOrUpdateFlipkartInventorySnapshot', TMessageType.CALL, self._seqid)
2884
    args = addOrUpdateFlipkartInventorySnapshot_args()
2885
    args.flipkartInventorySnapshot = flipkartInventorySnapshot
2886
    args.write(self._oprot)
2887
    self._oprot.writeMessageEnd()
2888
    self._oprot.trans.flush()
2889
 
2890
  def recv_addOrUpdateFlipkartInventorySnapshot(self, ):
2891
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2892
    if mtype == TMessageType.EXCEPTION:
2893
      x = TApplicationException()
2894
      x.read(self._iprot)
2895
      self._iprot.readMessageEnd()
2896
      raise x
2897
    result = addOrUpdateFlipkartInventorySnapshot_result()
2898
    result.read(self._iprot)
2899
    self._iprot.readMessageEnd()
2900
    return
2901
 
2902
  def getFlipkartInventorySnapshot(self, ):
2903
    self.send_getFlipkartInventorySnapshot()
2904
    return self.recv_getFlipkartInventorySnapshot()
2905
 
2906
  def send_getFlipkartInventorySnapshot(self, ):
2907
    self._oprot.writeMessageBegin('getFlipkartInventorySnapshot', TMessageType.CALL, self._seqid)
2908
    args = getFlipkartInventorySnapshot_args()
2909
    args.write(self._oprot)
2910
    self._oprot.writeMessageEnd()
2911
    self._oprot.trans.flush()
2912
 
2913
  def recv_getFlipkartInventorySnapshot(self, ):
2914
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2915
    if mtype == TMessageType.EXCEPTION:
2916
      x = TApplicationException()
2917
      x.read(self._iprot)
2918
      self._iprot.readMessageEnd()
2919
      raise x
2920
    result = getFlipkartInventorySnapshot_result()
2921
    result.read(self._iprot)
2922
    self._iprot.readMessageEnd()
2923
    if result.success is not None:
2924
      return result.success
2925
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartInventorySnapshot failed: unknown result");
2926
 
2927
 
5944 mandeep.dh 2928
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
2929
  def __init__(self, handler):
2930
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
2931
    self._processMap["addWarehouse"] = Processor.process_addWarehouse
2932
    self._processMap["addVendor"] = Processor.process_addVendor
2933
    self._processMap["updateInventoryHistory"] = Processor.process_updateInventoryHistory
2934
    self._processMap["updateInventory"] = Processor.process_updateInventory
2935
    self._processMap["addInventory"] = Processor.process_addInventory
2936
    self._processMap["retireWarehouse"] = Processor.process_retireWarehouse
2937
    self._processMap["getItemInventoryByItemId"] = Processor.process_getItemInventoryByItemId
2938
    self._processMap["getItemAvailibilityAtWarehouse"] = Processor.process_getItemAvailibilityAtWarehouse
2939
    self._processMap["getItemAvailabilityAtLocation"] = Processor.process_getItemAvailabilityAtLocation
2940
    self._processMap["getAllWarehouses"] = Processor.process_getAllWarehouses
2941
    self._processMap["getWarehouse"] = Processor.process_getWarehouse
2942
    self._processMap["getAllItemsForWarehouse"] = Processor.process_getAllItemsForWarehouse
5966 rajveer 2943
    self._processMap["isOrderBillable"] = Processor.process_isOrderBillable
5944 mandeep.dh 2944
    self._processMap["reserveItemInWarehouse"] = Processor.process_reserveItemInWarehouse
7968 amar.kumar 2945
    self._processMap["updateReservationForOrder"] = Processor.process_updateReservationForOrder
5944 mandeep.dh 2946
    self._processMap["reduceReservationCount"] = Processor.process_reduceReservationCount
2947
    self._processMap["getItemPricing"] = Processor.process_getItemPricing
2948
    self._processMap["getAllItemPricing"] = Processor.process_getAllItemPricing
2949
    self._processMap["addVendorItemPricing"] = Processor.process_addVendorItemPricing
2950
    self._processMap["getVendor"] = Processor.process_getVendor
2951
    self._processMap["getAllVendors"] = Processor.process_getAllVendors
2952
    self._processMap["addVendorItemMapping"] = Processor.process_addVendorItemMapping
2953
    self._processMap["getVendorItemMappings"] = Processor.process_getVendorItemMappings
2954
    self._processMap["getPendingOrdersInventory"] = Processor.process_getPendingOrdersInventory
2955
    self._processMap["getWarehouses"] = Processor.process_getWarehouses
2956
    self._processMap["resetAvailability"] = Processor.process_resetAvailability
2957
    self._processMap["resetAvailabilityForWarehouse"] = Processor.process_resetAvailabilityForWarehouse
2958
    self._processMap["getItemKeysToBeProcessed"] = Processor.process_getItemKeysToBeProcessed
2959
    self._processMap["markMissedInventoryUpdatesAsProcessed"] = Processor.process_markMissedInventoryUpdatesAsProcessed
2960
    self._processMap["getIgnoredItemKeys"] = Processor.process_getIgnoredItemKeys
2961
    self._processMap["addBadInventory"] = Processor.process_addBadInventory
2962
    self._processMap["getShippingLocations"] = Processor.process_getShippingLocations
2963
    self._processMap["getAllVendorItemMappings"] = Processor.process_getAllVendorItemMappings
2964
    self._processMap["getInventorySnapshot"] = Processor.process_getInventorySnapshot
2965
    self._processMap["clearItemAvailabilityCache"] = Processor.process_clearItemAvailabilityCache
2966
    self._processMap["updateVendorString"] = Processor.process_updateVendorString
6096 amit.gupta 2967
    self._processMap["clearItemAvailabilityCacheForItem"] = Processor.process_clearItemAvailabilityCacheForItem
6467 amar.kumar 2968
    self._processMap["getOurWarehouseIdForVendor"] = Processor.process_getOurWarehouseIdForVendor
6484 amar.kumar 2969
    self._processMap["getItemAvailabilitiesAtOurWarehouses"] = Processor.process_getItemAvailabilitiesAtOurWarehouses
6531 vikram.rag 2970
    self._processMap["getMonitoredWarehouseForVendors"] = Processor.process_getMonitoredWarehouseForVendors
2971
    self._processMap["getIgnoredWarehouseidsAndItemids"] = Processor.process_getIgnoredWarehouseidsAndItemids
2972
    self._processMap["insertItemtoIgnoreInventoryUpdatelist"] = Processor.process_insertItemtoIgnoreInventoryUpdatelist
2973
    self._processMap["deleteItemFromIgnoredInventoryUpdateList"] = Processor.process_deleteItemFromIgnoredInventoryUpdateList
2974
    self._processMap["getAllIgnoredInventoryupdateItemsCount"] = Processor.process_getAllIgnoredInventoryupdateItemsCount
2975
    self._processMap["getIgnoredInventoryUpdateItemids"] = Processor.process_getIgnoredInventoryUpdateItemids
6821 amar.kumar 2976
    self._processMap["updateItemStockPurchaseParams"] = Processor.process_updateItemStockPurchaseParams
2977
    self._processMap["getItemStockPurchaseParams"] = Processor.process_getItemStockPurchaseParams
2978
    self._processMap["addOosStatusForItem"] = Processor.process_addOosStatusForItem
6832 amar.kumar 2979
    self._processMap["getOosStatusesForXDaysForItem"] = Processor.process_getOosStatusesForXDaysForItem
6857 amar.kumar 2980
    self._processMap["getNonZeroItemStockPurchaseParams"] = Processor.process_getNonZeroItemStockPurchaseParams
7149 amar.kumar 2981
    self._processMap["getBillableInventoryAndPendingOrders"] = Processor.process_getBillableInventoryAndPendingOrders
7281 kshitij.so 2982
    self._processMap["getWarehouseName"] = Processor.process_getWarehouseName
2983
    self._processMap["getAmazonInventoryForItem"] = Processor.process_getAmazonInventoryForItem
2984
    self._processMap["getAllAmazonInventory"] = Processor.process_getAllAmazonInventory
2985
    self._processMap["addOrUpdateAmazonInventoryForItem"] = Processor.process_addOrUpdateAmazonInventoryForItem
7972 amar.kumar 2986
    self._processMap["getLastNdaySaleForItem"] = Processor.process_getLastNdaySaleForItem
8282 kshitij.so 2987
    self._processMap["addOrUpdateAmazonFbaInventory"] = Processor.process_addOrUpdateAmazonFbaInventory
8182 amar.kumar 2988
    self._processMap["addUpdateHoldInventory"] = Processor.process_addUpdateHoldInventory
8282 kshitij.so 2989
    self._processMap["getAmazonFbaItemInventory"] = Processor.process_getAmazonFbaItemInventory
8363 vikram.rag 2990
    self._processMap["getAllAmazonFbaItemInventory"] = Processor.process_getAllAmazonFbaItemInventory
2991
    self._processMap["getOursGoodWarehouseIdsForLocation"] = Processor.process_getOursGoodWarehouseIdsForLocation
8955 vikram.rag 2992
    self._processMap["getHoldInventoryDetailForItemForWarehouseIdExceptSource"] = Processor.process_getHoldInventoryDetailForItemForWarehouseIdExceptSource
9404 vikram.rag 2993
    self._processMap["getSnapdealInventoryForItem"] = Processor.process_getSnapdealInventoryForItem
2994
    self._processMap["addOrUpdateSnapdealInventoryForItem"] = Processor.process_addOrUpdateSnapdealInventoryForItem
2995
    self._processMap["getNlcForWarehouse"] = Processor.process_getNlcForWarehouse
9640 amar.kumar 2996
    self._processMap["getHeldInventoryMapForItem"] = Processor.process_getHeldInventoryMapForItem
9482 vikram.rag 2997
    self._processMap["addOrUpdateAllAmazonFbaInventory"] = Processor.process_addOrUpdateAllAmazonFbaInventory
9495 vikram.rag 2998
    self._processMap["addOrUpdateAllSnapdealInventory"] = Processor.process_addOrUpdateAllSnapdealInventory
2999
    self._processMap["getSnapdealInventorySnapshot"] = Processor.process_getSnapdealInventorySnapshot
9761 amar.kumar 3000
    self._processMap["getHoldInventoryDetails"] = Processor.process_getHoldInventoryDetails
10050 vikram.rag 3001
    self._processMap["addOrUpdateFlipkartInventorySnapshot"] = Processor.process_addOrUpdateFlipkartInventorySnapshot
3002
    self._processMap["getFlipkartInventorySnapshot"] = Processor.process_getFlipkartInventorySnapshot
5944 mandeep.dh 3003
 
3004
  def process(self, iprot, oprot):
3005
    (name, type, seqid) = iprot.readMessageBegin()
3006
    if name not in self._processMap:
3007
      iprot.skip(TType.STRUCT)
3008
      iprot.readMessageEnd()
3009
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
3010
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
3011
      x.write(oprot)
3012
      oprot.writeMessageEnd()
3013
      oprot.trans.flush()
3014
      return
3015
    else:
3016
      self._processMap[name](self, seqid, iprot, oprot)
3017
    return True
3018
 
3019
  def process_addWarehouse(self, seqid, iprot, oprot):
3020
    args = addWarehouse_args()
3021
    args.read(iprot)
3022
    iprot.readMessageEnd()
3023
    result = addWarehouse_result()
3024
    try:
3025
      result.success = self._handler.addWarehouse(args.warehouse)
3026
    except InventoryServiceException, cex:
3027
      result.cex = cex
3028
    oprot.writeMessageBegin("addWarehouse", TMessageType.REPLY, seqid)
3029
    result.write(oprot)
3030
    oprot.writeMessageEnd()
3031
    oprot.trans.flush()
3032
 
3033
  def process_addVendor(self, seqid, iprot, oprot):
3034
    args = addVendor_args()
3035
    args.read(iprot)
3036
    iprot.readMessageEnd()
3037
    result = addVendor_result()
3038
    try:
3039
      result.success = self._handler.addVendor(args.vendor)
3040
    except InventoryServiceException, cex:
3041
      result.cex = cex
3042
    oprot.writeMessageBegin("addVendor", TMessageType.REPLY, seqid)
3043
    result.write(oprot)
3044
    oprot.writeMessageEnd()
3045
    oprot.trans.flush()
3046
 
3047
  def process_updateInventoryHistory(self, seqid, iprot, oprot):
3048
    args = updateInventoryHistory_args()
3049
    args.read(iprot)
3050
    iprot.readMessageEnd()
3051
    result = updateInventoryHistory_result()
3052
    try:
3053
      self._handler.updateInventoryHistory(args.warehouse_id, args.timestamp, args.availability)
3054
    except InventoryServiceException, cex:
3055
      result.cex = cex
3056
    oprot.writeMessageBegin("updateInventoryHistory", TMessageType.REPLY, seqid)
3057
    result.write(oprot)
3058
    oprot.writeMessageEnd()
3059
    oprot.trans.flush()
3060
 
3061
  def process_updateInventory(self, seqid, iprot, oprot):
3062
    args = updateInventory_args()
3063
    args.read(iprot)
3064
    iprot.readMessageEnd()
3065
    result = updateInventory_result()
3066
    try:
3067
      self._handler.updateInventory(args.warehouse_id, args.timestamp, args.availability)
3068
    except InventoryServiceException, cex:
3069
      result.cex = cex
3070
    oprot.writeMessageBegin("updateInventory", TMessageType.REPLY, seqid)
3071
    result.write(oprot)
3072
    oprot.writeMessageEnd()
3073
    oprot.trans.flush()
3074
 
3075
  def process_addInventory(self, seqid, iprot, oprot):
3076
    args = addInventory_args()
3077
    args.read(iprot)
3078
    iprot.readMessageEnd()
3079
    result = addInventory_result()
3080
    try:
3081
      self._handler.addInventory(args.itemId, args.warehouseId, args.quantity)
3082
    except InventoryServiceException, cex:
3083
      result.cex = cex
3084
    oprot.writeMessageBegin("addInventory", TMessageType.REPLY, seqid)
3085
    result.write(oprot)
3086
    oprot.writeMessageEnd()
3087
    oprot.trans.flush()
3088
 
3089
  def process_retireWarehouse(self, seqid, iprot, oprot):
3090
    args = retireWarehouse_args()
3091
    args.read(iprot)
3092
    iprot.readMessageEnd()
3093
    result = retireWarehouse_result()
3094
    try:
3095
      self._handler.retireWarehouse(args.warehouse_id)
3096
    except InventoryServiceException, cex:
3097
      result.cex = cex
3098
    oprot.writeMessageBegin("retireWarehouse", TMessageType.REPLY, seqid)
3099
    result.write(oprot)
3100
    oprot.writeMessageEnd()
3101
    oprot.trans.flush()
3102
 
3103
  def process_getItemInventoryByItemId(self, seqid, iprot, oprot):
3104
    args = getItemInventoryByItemId_args()
3105
    args.read(iprot)
3106
    iprot.readMessageEnd()
3107
    result = getItemInventoryByItemId_result()
3108
    try:
3109
      result.success = self._handler.getItemInventoryByItemId(args.item_id)
3110
    except InventoryServiceException, cex:
3111
      result.cex = cex
3112
    oprot.writeMessageBegin("getItemInventoryByItemId", TMessageType.REPLY, seqid)
3113
    result.write(oprot)
3114
    oprot.writeMessageEnd()
3115
    oprot.trans.flush()
3116
 
3117
  def process_getItemAvailibilityAtWarehouse(self, seqid, iprot, oprot):
3118
    args = getItemAvailibilityAtWarehouse_args()
3119
    args.read(iprot)
3120
    iprot.readMessageEnd()
3121
    result = getItemAvailibilityAtWarehouse_result()
3122
    try:
3123
      result.success = self._handler.getItemAvailibilityAtWarehouse(args.warehouse_id, args.item_id)
3124
    except InventoryServiceException, cex:
3125
      result.cex = cex
3126
    oprot.writeMessageBegin("getItemAvailibilityAtWarehouse", TMessageType.REPLY, seqid)
3127
    result.write(oprot)
3128
    oprot.writeMessageEnd()
3129
    oprot.trans.flush()
3130
 
3131
  def process_getItemAvailabilityAtLocation(self, seqid, iprot, oprot):
3132
    args = getItemAvailabilityAtLocation_args()
3133
    args.read(iprot)
3134
    iprot.readMessageEnd()
3135
    result = getItemAvailabilityAtLocation_result()
3136
    try:
5978 rajveer 3137
      result.success = self._handler.getItemAvailabilityAtLocation(args.itemId, args.sourceId)
5944 mandeep.dh 3138
    except InventoryServiceException, isex:
3139
      result.isex = isex
3140
    oprot.writeMessageBegin("getItemAvailabilityAtLocation", TMessageType.REPLY, seqid)
3141
    result.write(oprot)
3142
    oprot.writeMessageEnd()
3143
    oprot.trans.flush()
3144
 
3145
  def process_getAllWarehouses(self, seqid, iprot, oprot):
3146
    args = getAllWarehouses_args()
3147
    args.read(iprot)
3148
    iprot.readMessageEnd()
3149
    result = getAllWarehouses_result()
3150
    try:
3151
      result.success = self._handler.getAllWarehouses(args.isActive)
3152
    except InventoryServiceException, cex:
3153
      result.cex = cex
3154
    oprot.writeMessageBegin("getAllWarehouses", TMessageType.REPLY, seqid)
3155
    result.write(oprot)
3156
    oprot.writeMessageEnd()
3157
    oprot.trans.flush()
3158
 
3159
  def process_getWarehouse(self, seqid, iprot, oprot):
3160
    args = getWarehouse_args()
3161
    args.read(iprot)
3162
    iprot.readMessageEnd()
3163
    result = getWarehouse_result()
3164
    try:
3165
      result.success = self._handler.getWarehouse(args.warehouse_id)
3166
    except InventoryServiceException, cex:
3167
      result.cex = cex
3168
    oprot.writeMessageBegin("getWarehouse", TMessageType.REPLY, seqid)
3169
    result.write(oprot)
3170
    oprot.writeMessageEnd()
3171
    oprot.trans.flush()
3172
 
3173
  def process_getAllItemsForWarehouse(self, seqid, iprot, oprot):
3174
    args = getAllItemsForWarehouse_args()
3175
    args.read(iprot)
3176
    iprot.readMessageEnd()
3177
    result = getAllItemsForWarehouse_result()
3178
    try:
3179
      result.success = self._handler.getAllItemsForWarehouse(args.warehouse_id)
3180
    except InventoryServiceException, cex:
3181
      result.cex = cex
3182
    oprot.writeMessageBegin("getAllItemsForWarehouse", TMessageType.REPLY, seqid)
3183
    result.write(oprot)
3184
    oprot.writeMessageEnd()
3185
    oprot.trans.flush()
3186
 
5966 rajveer 3187
  def process_isOrderBillable(self, seqid, iprot, oprot):
3188
    args = isOrderBillable_args()
3189
    args.read(iprot)
3190
    iprot.readMessageEnd()
3191
    result = isOrderBillable_result()
3192
    result.success = self._handler.isOrderBillable(args.itemId, args.warehouseId, args.sourceId, args.orderId)
3193
    oprot.writeMessageBegin("isOrderBillable", TMessageType.REPLY, seqid)
3194
    result.write(oprot)
3195
    oprot.writeMessageEnd()
3196
    oprot.trans.flush()
3197
 
5944 mandeep.dh 3198
  def process_reserveItemInWarehouse(self, seqid, iprot, oprot):
3199
    args = reserveItemInWarehouse_args()
3200
    args.read(iprot)
3201
    iprot.readMessageEnd()
3202
    result = reserveItemInWarehouse_result()
3203
    try:
5966 rajveer 3204
      result.success = self._handler.reserveItemInWarehouse(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.createdTimestamp, args.promisedShippingTimestamp, args.quantity)
5944 mandeep.dh 3205
    except InventoryServiceException, cex:
3206
      result.cex = cex
3207
    oprot.writeMessageBegin("reserveItemInWarehouse", TMessageType.REPLY, seqid)
3208
    result.write(oprot)
3209
    oprot.writeMessageEnd()
3210
    oprot.trans.flush()
3211
 
7968 amar.kumar 3212
  def process_updateReservationForOrder(self, seqid, iprot, oprot):
3213
    args = updateReservationForOrder_args()
3214
    args.read(iprot)
3215
    iprot.readMessageEnd()
3216
    result = updateReservationForOrder_result()
3217
    try:
3218
      result.success = self._handler.updateReservationForOrder(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.createdTimestamp, args.promisedShippingTimestamp, args.quantity)
3219
    except InventoryServiceException, cex:
3220
      result.cex = cex
3221
    oprot.writeMessageBegin("updateReservationForOrder", TMessageType.REPLY, seqid)
3222
    result.write(oprot)
3223
    oprot.writeMessageEnd()
3224
    oprot.trans.flush()
3225
 
5944 mandeep.dh 3226
  def process_reduceReservationCount(self, seqid, iprot, oprot):
3227
    args = reduceReservationCount_args()
3228
    args.read(iprot)
3229
    iprot.readMessageEnd()
3230
    result = reduceReservationCount_result()
3231
    try:
5966 rajveer 3232
      result.success = self._handler.reduceReservationCount(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.quantity)
5944 mandeep.dh 3233
    except InventoryServiceException, cex:
3234
      result.cex = cex
3235
    oprot.writeMessageBegin("reduceReservationCount", TMessageType.REPLY, seqid)
3236
    result.write(oprot)
3237
    oprot.writeMessageEnd()
3238
    oprot.trans.flush()
3239
 
3240
  def process_getItemPricing(self, seqid, iprot, oprot):
3241
    args = getItemPricing_args()
3242
    args.read(iprot)
3243
    iprot.readMessageEnd()
3244
    result = getItemPricing_result()
3245
    try:
3246
      result.success = self._handler.getItemPricing(args.itemId, args.vendorId)
3247
    except InventoryServiceException, cex:
3248
      result.cex = cex
3249
    oprot.writeMessageBegin("getItemPricing", TMessageType.REPLY, seqid)
3250
    result.write(oprot)
3251
    oprot.writeMessageEnd()
3252
    oprot.trans.flush()
3253
 
3254
  def process_getAllItemPricing(self, seqid, iprot, oprot):
3255
    args = getAllItemPricing_args()
3256
    args.read(iprot)
3257
    iprot.readMessageEnd()
3258
    result = getAllItemPricing_result()
3259
    try:
3260
      result.success = self._handler.getAllItemPricing(args.itemId)
3261
    except InventoryServiceException, cex:
3262
      result.cex = cex
3263
    oprot.writeMessageBegin("getAllItemPricing", TMessageType.REPLY, seqid)
3264
    result.write(oprot)
3265
    oprot.writeMessageEnd()
3266
    oprot.trans.flush()
3267
 
3268
  def process_addVendorItemPricing(self, seqid, iprot, oprot):
3269
    args = addVendorItemPricing_args()
3270
    args.read(iprot)
3271
    iprot.readMessageEnd()
3272
    result = addVendorItemPricing_result()
3273
    try:
3274
      self._handler.addVendorItemPricing(args.vendorItemPricing)
3275
    except InventoryServiceException, cex:
3276
      result.cex = cex
3277
    oprot.writeMessageBegin("addVendorItemPricing", TMessageType.REPLY, seqid)
3278
    result.write(oprot)
3279
    oprot.writeMessageEnd()
3280
    oprot.trans.flush()
3281
 
3282
  def process_getVendor(self, seqid, iprot, oprot):
3283
    args = getVendor_args()
3284
    args.read(iprot)
3285
    iprot.readMessageEnd()
3286
    result = getVendor_result()
3287
    result.success = self._handler.getVendor(args.vendorId)
3288
    oprot.writeMessageBegin("getVendor", TMessageType.REPLY, seqid)
3289
    result.write(oprot)
3290
    oprot.writeMessageEnd()
3291
    oprot.trans.flush()
3292
 
3293
  def process_getAllVendors(self, seqid, iprot, oprot):
3294
    args = getAllVendors_args()
3295
    args.read(iprot)
3296
    iprot.readMessageEnd()
3297
    result = getAllVendors_result()
3298
    result.success = self._handler.getAllVendors()
3299
    oprot.writeMessageBegin("getAllVendors", TMessageType.REPLY, seqid)
3300
    result.write(oprot)
3301
    oprot.writeMessageEnd()
3302
    oprot.trans.flush()
3303
 
3304
  def process_addVendorItemMapping(self, seqid, iprot, oprot):
3305
    args = addVendorItemMapping_args()
3306
    args.read(iprot)
3307
    iprot.readMessageEnd()
3308
    result = addVendorItemMapping_result()
3309
    try:
3310
      self._handler.addVendorItemMapping(args.key, args.vendorItemMapping)
3311
    except InventoryServiceException, cex:
3312
      result.cex = cex
3313
    oprot.writeMessageBegin("addVendorItemMapping", TMessageType.REPLY, seqid)
3314
    result.write(oprot)
3315
    oprot.writeMessageEnd()
3316
    oprot.trans.flush()
3317
 
3318
  def process_getVendorItemMappings(self, seqid, iprot, oprot):
3319
    args = getVendorItemMappings_args()
3320
    args.read(iprot)
3321
    iprot.readMessageEnd()
3322
    result = getVendorItemMappings_result()
3323
    try:
3324
      result.success = self._handler.getVendorItemMappings(args.itemId)
3325
    except InventoryServiceException, cex:
3326
      result.cex = cex
3327
    oprot.writeMessageBegin("getVendorItemMappings", TMessageType.REPLY, seqid)
3328
    result.write(oprot)
3329
    oprot.writeMessageEnd()
3330
    oprot.trans.flush()
3331
 
3332
  def process_getPendingOrdersInventory(self, seqid, iprot, oprot):
3333
    args = getPendingOrdersInventory_args()
3334
    args.read(iprot)
3335
    iprot.readMessageEnd()
3336
    result = getPendingOrdersInventory_result()
3337
    result.success = self._handler.getPendingOrdersInventory(args.vendorid)
3338
    oprot.writeMessageBegin("getPendingOrdersInventory", TMessageType.REPLY, seqid)
3339
    result.write(oprot)
3340
    oprot.writeMessageEnd()
3341
    oprot.trans.flush()
3342
 
3343
  def process_getWarehouses(self, seqid, iprot, oprot):
3344
    args = getWarehouses_args()
3345
    args.read(iprot)
3346
    iprot.readMessageEnd()
3347
    result = getWarehouses_result()
3348
    result.success = self._handler.getWarehouses(args.warehouseType, args.inventoryType, args.vendorId, args.billingWarehouseId, args.shippingWarehouseId)
3349
    oprot.writeMessageBegin("getWarehouses", TMessageType.REPLY, seqid)
3350
    result.write(oprot)
3351
    oprot.writeMessageEnd()
3352
    oprot.trans.flush()
3353
 
3354
  def process_resetAvailability(self, seqid, iprot, oprot):
3355
    args = resetAvailability_args()
3356
    args.read(iprot)
3357
    iprot.readMessageEnd()
3358
    result = resetAvailability_result()
3359
    try:
3360
      self._handler.resetAvailability(args.itemKey, args.vendorId, args.quantity, args.warehouseId)
3361
    except InventoryServiceException, cex:
3362
      result.cex = cex
3363
    oprot.writeMessageBegin("resetAvailability", TMessageType.REPLY, seqid)
3364
    result.write(oprot)
3365
    oprot.writeMessageEnd()
3366
    oprot.trans.flush()
3367
 
3368
  def process_resetAvailabilityForWarehouse(self, seqid, iprot, oprot):
3369
    args = resetAvailabilityForWarehouse_args()
3370
    args.read(iprot)
3371
    iprot.readMessageEnd()
3372
    result = resetAvailabilityForWarehouse_result()
3373
    try:
3374
      self._handler.resetAvailabilityForWarehouse(args.warehouseId)
3375
    except InventoryServiceException, cex:
3376
      result.cex = cex
3377
    oprot.writeMessageBegin("resetAvailabilityForWarehouse", TMessageType.REPLY, seqid)
3378
    result.write(oprot)
3379
    oprot.writeMessageEnd()
3380
    oprot.trans.flush()
3381
 
3382
  def process_getItemKeysToBeProcessed(self, seqid, iprot, oprot):
3383
    args = getItemKeysToBeProcessed_args()
3384
    args.read(iprot)
3385
    iprot.readMessageEnd()
3386
    result = getItemKeysToBeProcessed_result()
3387
    result.success = self._handler.getItemKeysToBeProcessed(args.warehouseId)
3388
    oprot.writeMessageBegin("getItemKeysToBeProcessed", TMessageType.REPLY, seqid)
3389
    result.write(oprot)
3390
    oprot.writeMessageEnd()
3391
    oprot.trans.flush()
3392
 
3393
  def process_markMissedInventoryUpdatesAsProcessed(self, seqid, iprot, oprot):
3394
    args = markMissedInventoryUpdatesAsProcessed_args()
3395
    args.read(iprot)
3396
    iprot.readMessageEnd()
3397
    result = markMissedInventoryUpdatesAsProcessed_result()
3398
    self._handler.markMissedInventoryUpdatesAsProcessed(args.itemKey, args.warehouseId)
3399
    oprot.writeMessageBegin("markMissedInventoryUpdatesAsProcessed", TMessageType.REPLY, seqid)
3400
    result.write(oprot)
3401
    oprot.writeMessageEnd()
3402
    oprot.trans.flush()
3403
 
3404
  def process_getIgnoredItemKeys(self, seqid, iprot, oprot):
3405
    args = getIgnoredItemKeys_args()
3406
    args.read(iprot)
3407
    iprot.readMessageEnd()
3408
    result = getIgnoredItemKeys_result()
3409
    result.success = self._handler.getIgnoredItemKeys()
3410
    oprot.writeMessageBegin("getIgnoredItemKeys", TMessageType.REPLY, seqid)
3411
    result.write(oprot)
3412
    oprot.writeMessageEnd()
3413
    oprot.trans.flush()
3414
 
3415
  def process_addBadInventory(self, seqid, iprot, oprot):
3416
    args = addBadInventory_args()
3417
    args.read(iprot)
3418
    iprot.readMessageEnd()
3419
    result = addBadInventory_result()
3420
    try:
3421
      self._handler.addBadInventory(args.itemId, args.warehouseId, args.quantity)
3422
    except InventoryServiceException, cex:
3423
      result.cex = cex
3424
    oprot.writeMessageBegin("addBadInventory", TMessageType.REPLY, seqid)
3425
    result.write(oprot)
3426
    oprot.writeMessageEnd()
3427
    oprot.trans.flush()
3428
 
3429
  def process_getShippingLocations(self, seqid, iprot, oprot):
3430
    args = getShippingLocations_args()
3431
    args.read(iprot)
3432
    iprot.readMessageEnd()
3433
    result = getShippingLocations_result()
3434
    result.success = self._handler.getShippingLocations()
3435
    oprot.writeMessageBegin("getShippingLocations", TMessageType.REPLY, seqid)
3436
    result.write(oprot)
3437
    oprot.writeMessageEnd()
3438
    oprot.trans.flush()
3439
 
3440
  def process_getAllVendorItemMappings(self, seqid, iprot, oprot):
3441
    args = getAllVendorItemMappings_args()
3442
    args.read(iprot)
3443
    iprot.readMessageEnd()
3444
    result = getAllVendorItemMappings_result()
3445
    result.success = self._handler.getAllVendorItemMappings()
3446
    oprot.writeMessageBegin("getAllVendorItemMappings", TMessageType.REPLY, seqid)
3447
    result.write(oprot)
3448
    oprot.writeMessageEnd()
3449
    oprot.trans.flush()
3450
 
3451
  def process_getInventorySnapshot(self, seqid, iprot, oprot):
3452
    args = getInventorySnapshot_args()
3453
    args.read(iprot)
3454
    iprot.readMessageEnd()
3455
    result = getInventorySnapshot_result()
3456
    result.success = self._handler.getInventorySnapshot(args.warehouseId)
3457
    oprot.writeMessageBegin("getInventorySnapshot", TMessageType.REPLY, seqid)
3458
    result.write(oprot)
3459
    oprot.writeMessageEnd()
3460
    oprot.trans.flush()
3461
 
3462
  def process_clearItemAvailabilityCache(self, seqid, iprot, oprot):
3463
    args = clearItemAvailabilityCache_args()
3464
    args.read(iprot)
3465
    iprot.readMessageEnd()
3466
    result = clearItemAvailabilityCache_result()
3467
    self._handler.clearItemAvailabilityCache()
3468
    oprot.writeMessageBegin("clearItemAvailabilityCache", TMessageType.REPLY, seqid)
3469
    result.write(oprot)
3470
    oprot.writeMessageEnd()
3471
    oprot.trans.flush()
3472
 
3473
  def process_updateVendorString(self, seqid, iprot, oprot):
3474
    args = updateVendorString_args()
3475
    args.read(iprot)
3476
    iprot.readMessageEnd()
3477
    result = updateVendorString_result()
3478
    self._handler.updateVendorString(args.warehouseId, args.vendorString)
3479
    oprot.writeMessageBegin("updateVendorString", TMessageType.REPLY, seqid)
3480
    result.write(oprot)
3481
    oprot.writeMessageEnd()
3482
    oprot.trans.flush()
3483
 
6096 amit.gupta 3484
  def process_clearItemAvailabilityCacheForItem(self, seqid, iprot, oprot):
3485
    args = clearItemAvailabilityCacheForItem_args()
3486
    args.read(iprot)
3487
    iprot.readMessageEnd()
3488
    result = clearItemAvailabilityCacheForItem_result()
3489
    self._handler.clearItemAvailabilityCacheForItem(args.item_id)
3490
    oprot.writeMessageBegin("clearItemAvailabilityCacheForItem", TMessageType.REPLY, seqid)
3491
    result.write(oprot)
3492
    oprot.writeMessageEnd()
3493
    oprot.trans.flush()
5944 mandeep.dh 3494
 
6467 amar.kumar 3495
  def process_getOurWarehouseIdForVendor(self, seqid, iprot, oprot):
3496
    args = getOurWarehouseIdForVendor_args()
3497
    args.read(iprot)
3498
    iprot.readMessageEnd()
3499
    result = getOurWarehouseIdForVendor_result()
7718 amar.kumar 3500
    result.success = self._handler.getOurWarehouseIdForVendor(args.vendorId, args.billingWarehouseId)
6467 amar.kumar 3501
    oprot.writeMessageBegin("getOurWarehouseIdForVendor", TMessageType.REPLY, seqid)
3502
    result.write(oprot)
3503
    oprot.writeMessageEnd()
3504
    oprot.trans.flush()
6096 amit.gupta 3505
 
6484 amar.kumar 3506
  def process_getItemAvailabilitiesAtOurWarehouses(self, seqid, iprot, oprot):
3507
    args = getItemAvailabilitiesAtOurWarehouses_args()
3508
    args.read(iprot)
3509
    iprot.readMessageEnd()
3510
    result = getItemAvailabilitiesAtOurWarehouses_result()
3511
    result.success = self._handler.getItemAvailabilitiesAtOurWarehouses(args.item_ids)
3512
    oprot.writeMessageBegin("getItemAvailabilitiesAtOurWarehouses", TMessageType.REPLY, seqid)
3513
    result.write(oprot)
3514
    oprot.writeMessageEnd()
3515
    oprot.trans.flush()
6467 amar.kumar 3516
 
6531 vikram.rag 3517
  def process_getMonitoredWarehouseForVendors(self, seqid, iprot, oprot):
3518
    args = getMonitoredWarehouseForVendors_args()
3519
    args.read(iprot)
3520
    iprot.readMessageEnd()
3521
    result = getMonitoredWarehouseForVendors_result()
3522
    result.success = self._handler.getMonitoredWarehouseForVendors(args.vendorIds)
3523
    oprot.writeMessageBegin("getMonitoredWarehouseForVendors", TMessageType.REPLY, seqid)
3524
    result.write(oprot)
3525
    oprot.writeMessageEnd()
3526
    oprot.trans.flush()
6484 amar.kumar 3527
 
6531 vikram.rag 3528
  def process_getIgnoredWarehouseidsAndItemids(self, seqid, iprot, oprot):
3529
    args = getIgnoredWarehouseidsAndItemids_args()
3530
    args.read(iprot)
3531
    iprot.readMessageEnd()
3532
    result = getIgnoredWarehouseidsAndItemids_result()
3533
    result.success = self._handler.getIgnoredWarehouseidsAndItemids()
3534
    oprot.writeMessageBegin("getIgnoredWarehouseidsAndItemids", TMessageType.REPLY, seqid)
3535
    result.write(oprot)
3536
    oprot.writeMessageEnd()
3537
    oprot.trans.flush()
3538
 
3539
  def process_insertItemtoIgnoreInventoryUpdatelist(self, seqid, iprot, oprot):
3540
    args = insertItemtoIgnoreInventoryUpdatelist_args()
3541
    args.read(iprot)
3542
    iprot.readMessageEnd()
3543
    result = insertItemtoIgnoreInventoryUpdatelist_result()
3544
    result.success = self._handler.insertItemtoIgnoreInventoryUpdatelist(args.item_id, args.warehouse_id)
3545
    oprot.writeMessageBegin("insertItemtoIgnoreInventoryUpdatelist", TMessageType.REPLY, seqid)
3546
    result.write(oprot)
3547
    oprot.writeMessageEnd()
3548
    oprot.trans.flush()
3549
 
3550
  def process_deleteItemFromIgnoredInventoryUpdateList(self, seqid, iprot, oprot):
3551
    args = deleteItemFromIgnoredInventoryUpdateList_args()
3552
    args.read(iprot)
3553
    iprot.readMessageEnd()
3554
    result = deleteItemFromIgnoredInventoryUpdateList_result()
3555
    result.success = self._handler.deleteItemFromIgnoredInventoryUpdateList(args.item_id, args.warehouse_id)
3556
    oprot.writeMessageBegin("deleteItemFromIgnoredInventoryUpdateList", TMessageType.REPLY, seqid)
3557
    result.write(oprot)
3558
    oprot.writeMessageEnd()
3559
    oprot.trans.flush()
3560
 
3561
  def process_getAllIgnoredInventoryupdateItemsCount(self, seqid, iprot, oprot):
3562
    args = getAllIgnoredInventoryupdateItemsCount_args()
3563
    args.read(iprot)
3564
    iprot.readMessageEnd()
3565
    result = getAllIgnoredInventoryupdateItemsCount_result()
3566
    result.success = self._handler.getAllIgnoredInventoryupdateItemsCount()
3567
    oprot.writeMessageBegin("getAllIgnoredInventoryupdateItemsCount", TMessageType.REPLY, seqid)
3568
    result.write(oprot)
3569
    oprot.writeMessageEnd()
3570
    oprot.trans.flush()
3571
 
3572
  def process_getIgnoredInventoryUpdateItemids(self, seqid, iprot, oprot):
3573
    args = getIgnoredInventoryUpdateItemids_args()
3574
    args.read(iprot)
3575
    iprot.readMessageEnd()
3576
    result = getIgnoredInventoryUpdateItemids_result()
3577
    result.success = self._handler.getIgnoredInventoryUpdateItemids(args.offset, args.limit)
3578
    oprot.writeMessageBegin("getIgnoredInventoryUpdateItemids", TMessageType.REPLY, seqid)
3579
    result.write(oprot)
3580
    oprot.writeMessageEnd()
3581
    oprot.trans.flush()
3582
 
6821 amar.kumar 3583
  def process_updateItemStockPurchaseParams(self, seqid, iprot, oprot):
3584
    args = updateItemStockPurchaseParams_args()
3585
    args.read(iprot)
3586
    iprot.readMessageEnd()
3587
    result = updateItemStockPurchaseParams_result()
3588
    self._handler.updateItemStockPurchaseParams(args.item_id, args.numOfDaysStock, args.minStockLevel)
3589
    oprot.writeMessageBegin("updateItemStockPurchaseParams", TMessageType.REPLY, seqid)
3590
    result.write(oprot)
3591
    oprot.writeMessageEnd()
3592
    oprot.trans.flush()
6531 vikram.rag 3593
 
6821 amar.kumar 3594
  def process_getItemStockPurchaseParams(self, seqid, iprot, oprot):
3595
    args = getItemStockPurchaseParams_args()
3596
    args.read(iprot)
3597
    iprot.readMessageEnd()
3598
    result = getItemStockPurchaseParams_result()
3599
    result.success = self._handler.getItemStockPurchaseParams(args.itemId)
3600
    oprot.writeMessageBegin("getItemStockPurchaseParams", TMessageType.REPLY, seqid)
3601
    result.write(oprot)
3602
    oprot.writeMessageEnd()
3603
    oprot.trans.flush()
3604
 
3605
  def process_addOosStatusForItem(self, seqid, iprot, oprot):
3606
    args = addOosStatusForItem_args()
3607
    args.read(iprot)
3608
    iprot.readMessageEnd()
3609
    result = addOosStatusForItem_result()
3610
    self._handler.addOosStatusForItem(args.oosStatusMap, args.date)
3611
    oprot.writeMessageBegin("addOosStatusForItem", TMessageType.REPLY, seqid)
3612
    result.write(oprot)
3613
    oprot.writeMessageEnd()
3614
    oprot.trans.flush()
3615
 
6832 amar.kumar 3616
  def process_getOosStatusesForXDaysForItem(self, seqid, iprot, oprot):
3617
    args = getOosStatusesForXDaysForItem_args()
3618
    args.read(iprot)
3619
    iprot.readMessageEnd()
3620
    result = getOosStatusesForXDaysForItem_result()
9762 amar.kumar 3621
    result.success = self._handler.getOosStatusesForXDaysForItem(args.itemId, args.sourceId, args.days)
6832 amar.kumar 3622
    oprot.writeMessageBegin("getOosStatusesForXDaysForItem", TMessageType.REPLY, seqid)
3623
    result.write(oprot)
3624
    oprot.writeMessageEnd()
3625
    oprot.trans.flush()
6821 amar.kumar 3626
 
6857 amar.kumar 3627
  def process_getNonZeroItemStockPurchaseParams(self, seqid, iprot, oprot):
3628
    args = getNonZeroItemStockPurchaseParams_args()
3629
    args.read(iprot)
3630
    iprot.readMessageEnd()
3631
    result = getNonZeroItemStockPurchaseParams_result()
3632
    result.success = self._handler.getNonZeroItemStockPurchaseParams()
3633
    oprot.writeMessageBegin("getNonZeroItemStockPurchaseParams", TMessageType.REPLY, seqid)
3634
    result.write(oprot)
3635
    oprot.writeMessageEnd()
3636
    oprot.trans.flush()
6832 amar.kumar 3637
 
7149 amar.kumar 3638
  def process_getBillableInventoryAndPendingOrders(self, seqid, iprot, oprot):
3639
    args = getBillableInventoryAndPendingOrders_args()
3640
    args.read(iprot)
3641
    iprot.readMessageEnd()
3642
    result = getBillableInventoryAndPendingOrders_result()
3643
    result.success = self._handler.getBillableInventoryAndPendingOrders()
3644
    oprot.writeMessageBegin("getBillableInventoryAndPendingOrders", TMessageType.REPLY, seqid)
3645
    result.write(oprot)
3646
    oprot.writeMessageEnd()
3647
    oprot.trans.flush()
6857 amar.kumar 3648
 
7281 kshitij.so 3649
  def process_getWarehouseName(self, seqid, iprot, oprot):
3650
    args = getWarehouseName_args()
3651
    args.read(iprot)
3652
    iprot.readMessageEnd()
3653
    result = getWarehouseName_result()
3654
    result.success = self._handler.getWarehouseName(args.warehouse_id)
3655
    oprot.writeMessageBegin("getWarehouseName", TMessageType.REPLY, seqid)
3656
    result.write(oprot)
3657
    oprot.writeMessageEnd()
3658
    oprot.trans.flush()
7149 amar.kumar 3659
 
7281 kshitij.so 3660
  def process_getAmazonInventoryForItem(self, seqid, iprot, oprot):
3661
    args = getAmazonInventoryForItem_args()
3662
    args.read(iprot)
3663
    iprot.readMessageEnd()
3664
    result = getAmazonInventoryForItem_result()
3665
    result.success = self._handler.getAmazonInventoryForItem(args.item_id)
3666
    oprot.writeMessageBegin("getAmazonInventoryForItem", TMessageType.REPLY, seqid)
3667
    result.write(oprot)
3668
    oprot.writeMessageEnd()
3669
    oprot.trans.flush()
3670
 
3671
  def process_getAllAmazonInventory(self, seqid, iprot, oprot):
3672
    args = getAllAmazonInventory_args()
3673
    args.read(iprot)
3674
    iprot.readMessageEnd()
3675
    result = getAllAmazonInventory_result()
3676
    result.success = self._handler.getAllAmazonInventory()
3677
    oprot.writeMessageBegin("getAllAmazonInventory", TMessageType.REPLY, seqid)
3678
    result.write(oprot)
3679
    oprot.writeMessageEnd()
3680
    oprot.trans.flush()
3681
 
3682
  def process_addOrUpdateAmazonInventoryForItem(self, seqid, iprot, oprot):
3683
    args = addOrUpdateAmazonInventoryForItem_args()
3684
    args.read(iprot)
3685
    iprot.readMessageEnd()
3686
    result = addOrUpdateAmazonInventoryForItem_result()
3687
    self._handler.addOrUpdateAmazonInventoryForItem(args.amazonInventorySnapshot)
3688
    oprot.writeMessageBegin("addOrUpdateAmazonInventoryForItem", TMessageType.REPLY, seqid)
3689
    result.write(oprot)
3690
    oprot.writeMessageEnd()
3691
    oprot.trans.flush()
3692
 
7972 amar.kumar 3693
  def process_getLastNdaySaleForItem(self, seqid, iprot, oprot):
3694
    args = getLastNdaySaleForItem_args()
3695
    args.read(iprot)
3696
    iprot.readMessageEnd()
3697
    result = getLastNdaySaleForItem_result()
3698
    result.success = self._handler.getLastNdaySaleForItem(args.itemId, args.numberOfDays)
3699
    oprot.writeMessageBegin("getLastNdaySaleForItem", TMessageType.REPLY, seqid)
3700
    result.write(oprot)
3701
    oprot.writeMessageEnd()
3702
    oprot.trans.flush()
7281 kshitij.so 3703
 
8282 kshitij.so 3704
  def process_addOrUpdateAmazonFbaInventory(self, seqid, iprot, oprot):
3705
    args = addOrUpdateAmazonFbaInventory_args()
3706
    args.read(iprot)
3707
    iprot.readMessageEnd()
3708
    result = addOrUpdateAmazonFbaInventory_result()
3709
    self._handler.addOrUpdateAmazonFbaInventory(args.amazonfbainventorysnapshot)
3710
    oprot.writeMessageBegin("addOrUpdateAmazonFbaInventory", TMessageType.REPLY, seqid)
3711
    result.write(oprot)
3712
    oprot.writeMessageEnd()
3713
    oprot.trans.flush()
3714
 
8182 amar.kumar 3715
  def process_addUpdateHoldInventory(self, seqid, iprot, oprot):
3716
    args = addUpdateHoldInventory_args()
3717
    args.read(iprot)
3718
    iprot.readMessageEnd()
3719
    result = addUpdateHoldInventory_result()
9762 amar.kumar 3720
    try:
3721
      self._handler.addUpdateHoldInventory(args.itemId, args.warehouseId, args.holdQuantity, args.source)
3722
    except InventoryServiceException, cex:
3723
      result.cex = cex
8182 amar.kumar 3724
    oprot.writeMessageBegin("addUpdateHoldInventory", TMessageType.REPLY, seqid)
3725
    result.write(oprot)
3726
    oprot.writeMessageEnd()
3727
    oprot.trans.flush()
7972 amar.kumar 3728
 
8282 kshitij.so 3729
  def process_getAmazonFbaItemInventory(self, seqid, iprot, oprot):
3730
    args = getAmazonFbaItemInventory_args()
3731
    args.read(iprot)
3732
    iprot.readMessageEnd()
3733
    result = getAmazonFbaItemInventory_result()
3734
    result.success = self._handler.getAmazonFbaItemInventory(args.itemId)
3735
    oprot.writeMessageBegin("getAmazonFbaItemInventory", TMessageType.REPLY, seqid)
3736
    result.write(oprot)
3737
    oprot.writeMessageEnd()
3738
    oprot.trans.flush()
8182 amar.kumar 3739
 
8363 vikram.rag 3740
  def process_getAllAmazonFbaItemInventory(self, seqid, iprot, oprot):
3741
    args = getAllAmazonFbaItemInventory_args()
8282 kshitij.so 3742
    args.read(iprot)
3743
    iprot.readMessageEnd()
8363 vikram.rag 3744
    result = getAllAmazonFbaItemInventory_result()
3745
    result.success = self._handler.getAllAmazonFbaItemInventory()
3746
    oprot.writeMessageBegin("getAllAmazonFbaItemInventory", TMessageType.REPLY, seqid)
8282 kshitij.so 3747
    result.write(oprot)
3748
    oprot.writeMessageEnd()
3749
    oprot.trans.flush()
3750
 
8363 vikram.rag 3751
  def process_getOursGoodWarehouseIdsForLocation(self, seqid, iprot, oprot):
3752
    args = getOursGoodWarehouseIdsForLocation_args()
3753
    args.read(iprot)
3754
    iprot.readMessageEnd()
3755
    result = getOursGoodWarehouseIdsForLocation_result()
3756
    result.success = self._handler.getOursGoodWarehouseIdsForLocation(args.state_id)
3757
    oprot.writeMessageBegin("getOursGoodWarehouseIdsForLocation", TMessageType.REPLY, seqid)
3758
    result.write(oprot)
3759
    oprot.writeMessageEnd()
3760
    oprot.trans.flush()
8282 kshitij.so 3761
 
8955 vikram.rag 3762
  def process_getHoldInventoryDetailForItemForWarehouseIdExceptSource(self, seqid, iprot, oprot):
3763
    args = getHoldInventoryDetailForItemForWarehouseIdExceptSource_args()
3764
    args.read(iprot)
3765
    iprot.readMessageEnd()
3766
    result = getHoldInventoryDetailForItemForWarehouseIdExceptSource_result()
3767
    result.success = self._handler.getHoldInventoryDetailForItemForWarehouseIdExceptSource(args.id, args.warehouse_id, args.source)
3768
    oprot.writeMessageBegin("getHoldInventoryDetailForItemForWarehouseIdExceptSource", TMessageType.REPLY, seqid)
3769
    result.write(oprot)
3770
    oprot.writeMessageEnd()
3771
    oprot.trans.flush()
8363 vikram.rag 3772
 
9404 vikram.rag 3773
  def process_getSnapdealInventoryForItem(self, seqid, iprot, oprot):
3774
    args = getSnapdealInventoryForItem_args()
3775
    args.read(iprot)
3776
    iprot.readMessageEnd()
3777
    result = getSnapdealInventoryForItem_result()
3778
    result.success = self._handler.getSnapdealInventoryForItem(args.item_id)
3779
    oprot.writeMessageBegin("getSnapdealInventoryForItem", TMessageType.REPLY, seqid)
3780
    result.write(oprot)
3781
    oprot.writeMessageEnd()
3782
    oprot.trans.flush()
8955 vikram.rag 3783
 
9404 vikram.rag 3784
  def process_addOrUpdateSnapdealInventoryForItem(self, seqid, iprot, oprot):
3785
    args = addOrUpdateSnapdealInventoryForItem_args()
3786
    args.read(iprot)
3787
    iprot.readMessageEnd()
3788
    result = addOrUpdateSnapdealInventoryForItem_result()
3789
    self._handler.addOrUpdateSnapdealInventoryForItem(args.snapdealinventoryitem)
3790
    oprot.writeMessageBegin("addOrUpdateSnapdealInventoryForItem", TMessageType.REPLY, seqid)
3791
    result.write(oprot)
3792
    oprot.writeMessageEnd()
3793
    oprot.trans.flush()
3794
 
3795
  def process_getNlcForWarehouse(self, seqid, iprot, oprot):
3796
    args = getNlcForWarehouse_args()
3797
    args.read(iprot)
3798
    iprot.readMessageEnd()
3799
    result = getNlcForWarehouse_result()
3800
    result.success = self._handler.getNlcForWarehouse(args.warehouse_id, args.item_id)
3801
    oprot.writeMessageBegin("getNlcForWarehouse", TMessageType.REPLY, seqid)
3802
    result.write(oprot)
3803
    oprot.writeMessageEnd()
3804
    oprot.trans.flush()
3805
 
9640 amar.kumar 3806
  def process_getHeldInventoryMapForItem(self, seqid, iprot, oprot):
3807
    args = getHeldInventoryMapForItem_args()
3808
    args.read(iprot)
3809
    iprot.readMessageEnd()
3810
    result = getHeldInventoryMapForItem_result()
3811
    result.success = self._handler.getHeldInventoryMapForItem(args.item_id, args.warehouse_id)
3812
    oprot.writeMessageBegin("getHeldInventoryMapForItem", TMessageType.REPLY, seqid)
3813
    result.write(oprot)
3814
    oprot.writeMessageEnd()
3815
    oprot.trans.flush()
3816
 
9495 vikram.rag 3817
  def process_addOrUpdateAllAmazonFbaInventory(self, seqid, iprot, oprot):
3818
    args = addOrUpdateAllAmazonFbaInventory_args()
9456 vikram.rag 3819
    args.read(iprot)
3820
    iprot.readMessageEnd()
9495 vikram.rag 3821
    result = addOrUpdateAllAmazonFbaInventory_result()
3822
    self._handler.addOrUpdateAllAmazonFbaInventory(args.allamazonfbainventorysnapshot)
3823
    oprot.writeMessageBegin("addOrUpdateAllAmazonFbaInventory", TMessageType.REPLY, seqid)
9456 vikram.rag 3824
    result.write(oprot)
3825
    oprot.writeMessageEnd()
3826
    oprot.trans.flush()
9404 vikram.rag 3827
 
9495 vikram.rag 3828
  def process_addOrUpdateAllSnapdealInventory(self, seqid, iprot, oprot):
3829
    args = addOrUpdateAllSnapdealInventory_args()
9482 vikram.rag 3830
    args.read(iprot)
3831
    iprot.readMessageEnd()
9495 vikram.rag 3832
    result = addOrUpdateAllSnapdealInventory_result()
3833
    self._handler.addOrUpdateAllSnapdealInventory(args.allsnapdealinventorysnapshot)
3834
    oprot.writeMessageBegin("addOrUpdateAllSnapdealInventory", TMessageType.REPLY, seqid)
9482 vikram.rag 3835
    result.write(oprot)
3836
    oprot.writeMessageEnd()
3837
    oprot.trans.flush()
9456 vikram.rag 3838
 
9495 vikram.rag 3839
  def process_getSnapdealInventorySnapshot(self, seqid, iprot, oprot):
3840
    args = getSnapdealInventorySnapshot_args()
3841
    args.read(iprot)
3842
    iprot.readMessageEnd()
3843
    result = getSnapdealInventorySnapshot_result()
3844
    result.success = self._handler.getSnapdealInventorySnapshot()
3845
    oprot.writeMessageBegin("getSnapdealInventorySnapshot", TMessageType.REPLY, seqid)
3846
    result.write(oprot)
3847
    oprot.writeMessageEnd()
3848
    oprot.trans.flush()
9482 vikram.rag 3849
 
9761 amar.kumar 3850
  def process_getHoldInventoryDetails(self, seqid, iprot, oprot):
3851
    args = getHoldInventoryDetails_args()
3852
    args.read(iprot)
3853
    iprot.readMessageEnd()
3854
    result = getHoldInventoryDetails_result()
3855
    result.success = self._handler.getHoldInventoryDetails(args.itemId, args.warehouseId, args.source)
3856
    oprot.writeMessageBegin("getHoldInventoryDetails", TMessageType.REPLY, seqid)
3857
    result.write(oprot)
3858
    oprot.writeMessageEnd()
3859
    oprot.trans.flush()
9495 vikram.rag 3860
 
10050 vikram.rag 3861
  def process_addOrUpdateFlipkartInventorySnapshot(self, seqid, iprot, oprot):
3862
    args = addOrUpdateFlipkartInventorySnapshot_args()
3863
    args.read(iprot)
3864
    iprot.readMessageEnd()
3865
    result = addOrUpdateFlipkartInventorySnapshot_result()
3866
    self._handler.addOrUpdateFlipkartInventorySnapshot(args.flipkartInventorySnapshot)
3867
    oprot.writeMessageBegin("addOrUpdateFlipkartInventorySnapshot", TMessageType.REPLY, seqid)
3868
    result.write(oprot)
3869
    oprot.writeMessageEnd()
3870
    oprot.trans.flush()
9761 amar.kumar 3871
 
10050 vikram.rag 3872
  def process_getFlipkartInventorySnapshot(self, seqid, iprot, oprot):
3873
    args = getFlipkartInventorySnapshot_args()
3874
    args.read(iprot)
3875
    iprot.readMessageEnd()
3876
    result = getFlipkartInventorySnapshot_result()
3877
    result.success = self._handler.getFlipkartInventorySnapshot()
3878
    oprot.writeMessageBegin("getFlipkartInventorySnapshot", TMessageType.REPLY, seqid)
3879
    result.write(oprot)
3880
    oprot.writeMessageEnd()
3881
    oprot.trans.flush()
3882
 
3883
 
5944 mandeep.dh 3884
# HELPER FUNCTIONS AND STRUCTURES
3885
 
3886
class addWarehouse_args:
3887
  """
3888
  Attributes:
3889
   - warehouse
3890
  """
3891
 
3892
  thrift_spec = (
3893
    None, # 0
3894
    (1, TType.STRUCT, 'warehouse', (Warehouse, Warehouse.thrift_spec), None, ), # 1
3895
  )
3896
 
3897
  def __init__(self, warehouse=None,):
3898
    self.warehouse = warehouse
3899
 
3900
  def read(self, iprot):
3901
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3902
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3903
      return
3904
    iprot.readStructBegin()
3905
    while True:
3906
      (fname, ftype, fid) = iprot.readFieldBegin()
3907
      if ftype == TType.STOP:
3908
        break
3909
      if fid == 1:
3910
        if ftype == TType.STRUCT:
3911
          self.warehouse = Warehouse()
3912
          self.warehouse.read(iprot)
3913
        else:
3914
          iprot.skip(ftype)
3915
      else:
3916
        iprot.skip(ftype)
3917
      iprot.readFieldEnd()
3918
    iprot.readStructEnd()
3919
 
3920
  def write(self, oprot):
3921
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3922
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3923
      return
3924
    oprot.writeStructBegin('addWarehouse_args')
3925
    if self.warehouse is not None:
3926
      oprot.writeFieldBegin('warehouse', TType.STRUCT, 1)
3927
      self.warehouse.write(oprot)
3928
      oprot.writeFieldEnd()
3929
    oprot.writeFieldStop()
3930
    oprot.writeStructEnd()
3931
 
3932
  def validate(self):
3933
    return
3934
 
3935
 
3936
  def __repr__(self):
3937
    L = ['%s=%r' % (key, value)
3938
      for key, value in self.__dict__.iteritems()]
3939
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3940
 
3941
  def __eq__(self, other):
3942
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3943
 
3944
  def __ne__(self, other):
3945
    return not (self == other)
3946
 
3947
class addWarehouse_result:
3948
  """
3949
  Attributes:
3950
   - success
3951
   - cex
3952
  """
3953
 
3954
  thrift_spec = (
3955
    (0, TType.I64, 'success', None, None, ), # 0
3956
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
3957
  )
3958
 
3959
  def __init__(self, success=None, cex=None,):
3960
    self.success = success
3961
    self.cex = cex
3962
 
3963
  def read(self, iprot):
3964
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3965
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3966
      return
3967
    iprot.readStructBegin()
3968
    while True:
3969
      (fname, ftype, fid) = iprot.readFieldBegin()
3970
      if ftype == TType.STOP:
3971
        break
3972
      if fid == 0:
3973
        if ftype == TType.I64:
3974
          self.success = iprot.readI64();
3975
        else:
3976
          iprot.skip(ftype)
3977
      elif fid == 1:
3978
        if ftype == TType.STRUCT:
3979
          self.cex = InventoryServiceException()
3980
          self.cex.read(iprot)
3981
        else:
3982
          iprot.skip(ftype)
3983
      else:
3984
        iprot.skip(ftype)
3985
      iprot.readFieldEnd()
3986
    iprot.readStructEnd()
3987
 
3988
  def write(self, oprot):
3989
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3990
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3991
      return
3992
    oprot.writeStructBegin('addWarehouse_result')
3993
    if self.success is not None:
3994
      oprot.writeFieldBegin('success', TType.I64, 0)
3995
      oprot.writeI64(self.success)
3996
      oprot.writeFieldEnd()
3997
    if self.cex is not None:
3998
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
3999
      self.cex.write(oprot)
4000
      oprot.writeFieldEnd()
4001
    oprot.writeFieldStop()
4002
    oprot.writeStructEnd()
4003
 
4004
  def validate(self):
4005
    return
4006
 
4007
 
4008
  def __repr__(self):
4009
    L = ['%s=%r' % (key, value)
4010
      for key, value in self.__dict__.iteritems()]
4011
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4012
 
4013
  def __eq__(self, other):
4014
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4015
 
4016
  def __ne__(self, other):
4017
    return not (self == other)
4018
 
4019
class addVendor_args:
4020
  """
4021
  Attributes:
4022
   - vendor
4023
  """
4024
 
4025
  thrift_spec = (
4026
    None, # 0
4027
    (1, TType.STRUCT, 'vendor', (Vendor, Vendor.thrift_spec), None, ), # 1
4028
  )
4029
 
4030
  def __init__(self, vendor=None,):
4031
    self.vendor = vendor
4032
 
4033
  def read(self, iprot):
4034
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4035
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4036
      return
4037
    iprot.readStructBegin()
4038
    while True:
4039
      (fname, ftype, fid) = iprot.readFieldBegin()
4040
      if ftype == TType.STOP:
4041
        break
4042
      if fid == 1:
4043
        if ftype == TType.STRUCT:
4044
          self.vendor = Vendor()
4045
          self.vendor.read(iprot)
4046
        else:
4047
          iprot.skip(ftype)
4048
      else:
4049
        iprot.skip(ftype)
4050
      iprot.readFieldEnd()
4051
    iprot.readStructEnd()
4052
 
4053
  def write(self, oprot):
4054
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4055
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4056
      return
4057
    oprot.writeStructBegin('addVendor_args')
4058
    if self.vendor is not None:
4059
      oprot.writeFieldBegin('vendor', TType.STRUCT, 1)
4060
      self.vendor.write(oprot)
4061
      oprot.writeFieldEnd()
4062
    oprot.writeFieldStop()
4063
    oprot.writeStructEnd()
4064
 
4065
  def validate(self):
4066
    return
4067
 
4068
 
4069
  def __repr__(self):
4070
    L = ['%s=%r' % (key, value)
4071
      for key, value in self.__dict__.iteritems()]
4072
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4073
 
4074
  def __eq__(self, other):
4075
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4076
 
4077
  def __ne__(self, other):
4078
    return not (self == other)
4079
 
4080
class addVendor_result:
4081
  """
4082
  Attributes:
4083
   - success
4084
   - cex
4085
  """
4086
 
4087
  thrift_spec = (
4088
    (0, TType.I64, 'success', None, None, ), # 0
4089
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4090
  )
4091
 
4092
  def __init__(self, success=None, cex=None,):
4093
    self.success = success
4094
    self.cex = cex
4095
 
4096
  def read(self, iprot):
4097
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4098
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4099
      return
4100
    iprot.readStructBegin()
4101
    while True:
4102
      (fname, ftype, fid) = iprot.readFieldBegin()
4103
      if ftype == TType.STOP:
4104
        break
4105
      if fid == 0:
4106
        if ftype == TType.I64:
4107
          self.success = iprot.readI64();
4108
        else:
4109
          iprot.skip(ftype)
4110
      elif fid == 1:
4111
        if ftype == TType.STRUCT:
4112
          self.cex = InventoryServiceException()
4113
          self.cex.read(iprot)
4114
        else:
4115
          iprot.skip(ftype)
4116
      else:
4117
        iprot.skip(ftype)
4118
      iprot.readFieldEnd()
4119
    iprot.readStructEnd()
4120
 
4121
  def write(self, oprot):
4122
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4123
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4124
      return
4125
    oprot.writeStructBegin('addVendor_result')
4126
    if self.success is not None:
4127
      oprot.writeFieldBegin('success', TType.I64, 0)
4128
      oprot.writeI64(self.success)
4129
      oprot.writeFieldEnd()
4130
    if self.cex is not None:
4131
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4132
      self.cex.write(oprot)
4133
      oprot.writeFieldEnd()
4134
    oprot.writeFieldStop()
4135
    oprot.writeStructEnd()
4136
 
4137
  def validate(self):
4138
    return
4139
 
4140
 
4141
  def __repr__(self):
4142
    L = ['%s=%r' % (key, value)
4143
      for key, value in self.__dict__.iteritems()]
4144
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4145
 
4146
  def __eq__(self, other):
4147
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4148
 
4149
  def __ne__(self, other):
4150
    return not (self == other)
4151
 
4152
class updateInventoryHistory_args:
4153
  """
4154
  Attributes:
4155
   - warehouse_id
4156
   - timestamp
4157
   - availability
4158
  """
4159
 
4160
  thrift_spec = (
4161
    None, # 0
4162
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
4163
    (2, TType.STRING, 'timestamp', None, None, ), # 2
4164
    (3, TType.MAP, 'availability', (TType.STRING,None,TType.I64,None), None, ), # 3
4165
  )
4166
 
4167
  def __init__(self, warehouse_id=None, timestamp=None, availability=None,):
4168
    self.warehouse_id = warehouse_id
4169
    self.timestamp = timestamp
4170
    self.availability = availability
4171
 
4172
  def read(self, iprot):
4173
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4174
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4175
      return
4176
    iprot.readStructBegin()
4177
    while True:
4178
      (fname, ftype, fid) = iprot.readFieldBegin()
4179
      if ftype == TType.STOP:
4180
        break
4181
      if fid == 1:
4182
        if ftype == TType.I64:
4183
          self.warehouse_id = iprot.readI64();
4184
        else:
4185
          iprot.skip(ftype)
4186
      elif fid == 2:
4187
        if ftype == TType.STRING:
4188
          self.timestamp = iprot.readString();
4189
        else:
4190
          iprot.skip(ftype)
4191
      elif fid == 3:
4192
        if ftype == TType.MAP:
4193
          self.availability = {}
8182 amar.kumar 4194
          (_ktype28, _vtype29, _size27 ) = iprot.readMapBegin() 
4195
          for _i31 in xrange(_size27):
4196
            _key32 = iprot.readString();
4197
            _val33 = iprot.readI64();
4198
            self.availability[_key32] = _val33
5944 mandeep.dh 4199
          iprot.readMapEnd()
4200
        else:
4201
          iprot.skip(ftype)
4202
      else:
4203
        iprot.skip(ftype)
4204
      iprot.readFieldEnd()
4205
    iprot.readStructEnd()
4206
 
4207
  def write(self, oprot):
4208
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4209
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4210
      return
4211
    oprot.writeStructBegin('updateInventoryHistory_args')
4212
    if self.warehouse_id is not None:
4213
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
4214
      oprot.writeI64(self.warehouse_id)
4215
      oprot.writeFieldEnd()
4216
    if self.timestamp is not None:
4217
      oprot.writeFieldBegin('timestamp', TType.STRING, 2)
4218
      oprot.writeString(self.timestamp)
4219
      oprot.writeFieldEnd()
4220
    if self.availability is not None:
4221
      oprot.writeFieldBegin('availability', TType.MAP, 3)
4222
      oprot.writeMapBegin(TType.STRING, TType.I64, len(self.availability))
8182 amar.kumar 4223
      for kiter34,viter35 in self.availability.items():
4224
        oprot.writeString(kiter34)
4225
        oprot.writeI64(viter35)
5944 mandeep.dh 4226
      oprot.writeMapEnd()
4227
      oprot.writeFieldEnd()
4228
    oprot.writeFieldStop()
4229
    oprot.writeStructEnd()
4230
 
4231
  def validate(self):
4232
    return
4233
 
4234
 
4235
  def __repr__(self):
4236
    L = ['%s=%r' % (key, value)
4237
      for key, value in self.__dict__.iteritems()]
4238
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4239
 
4240
  def __eq__(self, other):
4241
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4242
 
4243
  def __ne__(self, other):
4244
    return not (self == other)
4245
 
4246
class updateInventoryHistory_result:
4247
  """
4248
  Attributes:
4249
   - cex
4250
  """
4251
 
4252
  thrift_spec = (
4253
    None, # 0
4254
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4255
  )
4256
 
4257
  def __init__(self, cex=None,):
4258
    self.cex = cex
4259
 
4260
  def read(self, iprot):
4261
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4262
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4263
      return
4264
    iprot.readStructBegin()
4265
    while True:
4266
      (fname, ftype, fid) = iprot.readFieldBegin()
4267
      if ftype == TType.STOP:
4268
        break
4269
      if fid == 1:
4270
        if ftype == TType.STRUCT:
4271
          self.cex = InventoryServiceException()
4272
          self.cex.read(iprot)
4273
        else:
4274
          iprot.skip(ftype)
4275
      else:
4276
        iprot.skip(ftype)
4277
      iprot.readFieldEnd()
4278
    iprot.readStructEnd()
4279
 
4280
  def write(self, oprot):
4281
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4282
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4283
      return
4284
    oprot.writeStructBegin('updateInventoryHistory_result')
4285
    if self.cex is not None:
4286
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4287
      self.cex.write(oprot)
4288
      oprot.writeFieldEnd()
4289
    oprot.writeFieldStop()
4290
    oprot.writeStructEnd()
4291
 
4292
  def validate(self):
4293
    return
4294
 
4295
 
4296
  def __repr__(self):
4297
    L = ['%s=%r' % (key, value)
4298
      for key, value in self.__dict__.iteritems()]
4299
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4300
 
4301
  def __eq__(self, other):
4302
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4303
 
4304
  def __ne__(self, other):
4305
    return not (self == other)
4306
 
4307
class updateInventory_args:
4308
  """
4309
  Attributes:
4310
   - warehouse_id
4311
   - timestamp
4312
   - availability
4313
  """
4314
 
4315
  thrift_spec = (
4316
    None, # 0
4317
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
4318
    (2, TType.STRING, 'timestamp', None, None, ), # 2
4319
    (3, TType.MAP, 'availability', (TType.STRING,None,TType.I64,None), None, ), # 3
4320
  )
4321
 
4322
  def __init__(self, warehouse_id=None, timestamp=None, availability=None,):
4323
    self.warehouse_id = warehouse_id
4324
    self.timestamp = timestamp
4325
    self.availability = availability
4326
 
4327
  def read(self, iprot):
4328
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4329
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4330
      return
4331
    iprot.readStructBegin()
4332
    while True:
4333
      (fname, ftype, fid) = iprot.readFieldBegin()
4334
      if ftype == TType.STOP:
4335
        break
4336
      if fid == 1:
4337
        if ftype == TType.I64:
4338
          self.warehouse_id = iprot.readI64();
4339
        else:
4340
          iprot.skip(ftype)
4341
      elif fid == 2:
4342
        if ftype == TType.STRING:
4343
          self.timestamp = iprot.readString();
4344
        else:
4345
          iprot.skip(ftype)
4346
      elif fid == 3:
4347
        if ftype == TType.MAP:
4348
          self.availability = {}
8182 amar.kumar 4349
          (_ktype37, _vtype38, _size36 ) = iprot.readMapBegin() 
4350
          for _i40 in xrange(_size36):
4351
            _key41 = iprot.readString();
4352
            _val42 = iprot.readI64();
4353
            self.availability[_key41] = _val42
5944 mandeep.dh 4354
          iprot.readMapEnd()
4355
        else:
4356
          iprot.skip(ftype)
4357
      else:
4358
        iprot.skip(ftype)
4359
      iprot.readFieldEnd()
4360
    iprot.readStructEnd()
4361
 
4362
  def write(self, oprot):
4363
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4364
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4365
      return
4366
    oprot.writeStructBegin('updateInventory_args')
4367
    if self.warehouse_id is not None:
4368
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
4369
      oprot.writeI64(self.warehouse_id)
4370
      oprot.writeFieldEnd()
4371
    if self.timestamp is not None:
4372
      oprot.writeFieldBegin('timestamp', TType.STRING, 2)
4373
      oprot.writeString(self.timestamp)
4374
      oprot.writeFieldEnd()
4375
    if self.availability is not None:
4376
      oprot.writeFieldBegin('availability', TType.MAP, 3)
4377
      oprot.writeMapBegin(TType.STRING, TType.I64, len(self.availability))
8182 amar.kumar 4378
      for kiter43,viter44 in self.availability.items():
4379
        oprot.writeString(kiter43)
4380
        oprot.writeI64(viter44)
5944 mandeep.dh 4381
      oprot.writeMapEnd()
4382
      oprot.writeFieldEnd()
4383
    oprot.writeFieldStop()
4384
    oprot.writeStructEnd()
4385
 
4386
  def validate(self):
4387
    return
4388
 
4389
 
4390
  def __repr__(self):
4391
    L = ['%s=%r' % (key, value)
4392
      for key, value in self.__dict__.iteritems()]
4393
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4394
 
4395
  def __eq__(self, other):
4396
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4397
 
4398
  def __ne__(self, other):
4399
    return not (self == other)
4400
 
4401
class updateInventory_result:
4402
  """
4403
  Attributes:
4404
   - cex
4405
  """
4406
 
4407
  thrift_spec = (
4408
    None, # 0
4409
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4410
  )
4411
 
4412
  def __init__(self, cex=None,):
4413
    self.cex = cex
4414
 
4415
  def read(self, iprot):
4416
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4417
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4418
      return
4419
    iprot.readStructBegin()
4420
    while True:
4421
      (fname, ftype, fid) = iprot.readFieldBegin()
4422
      if ftype == TType.STOP:
4423
        break
4424
      if fid == 1:
4425
        if ftype == TType.STRUCT:
4426
          self.cex = InventoryServiceException()
4427
          self.cex.read(iprot)
4428
        else:
4429
          iprot.skip(ftype)
4430
      else:
4431
        iprot.skip(ftype)
4432
      iprot.readFieldEnd()
4433
    iprot.readStructEnd()
4434
 
4435
  def write(self, oprot):
4436
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4437
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4438
      return
4439
    oprot.writeStructBegin('updateInventory_result')
4440
    if self.cex is not None:
4441
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4442
      self.cex.write(oprot)
4443
      oprot.writeFieldEnd()
4444
    oprot.writeFieldStop()
4445
    oprot.writeStructEnd()
4446
 
4447
  def validate(self):
4448
    return
4449
 
4450
 
4451
  def __repr__(self):
4452
    L = ['%s=%r' % (key, value)
4453
      for key, value in self.__dict__.iteritems()]
4454
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4455
 
4456
  def __eq__(self, other):
4457
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4458
 
4459
  def __ne__(self, other):
4460
    return not (self == other)
4461
 
4462
class addInventory_args:
4463
  """
4464
  Attributes:
4465
   - itemId
4466
   - warehouseId
4467
   - quantity
4468
  """
4469
 
4470
  thrift_spec = (
4471
    None, # 0
4472
    (1, TType.I64, 'itemId', None, None, ), # 1
4473
    (2, TType.I64, 'warehouseId', None, None, ), # 2
4474
    (3, TType.I64, 'quantity', None, None, ), # 3
4475
  )
4476
 
4477
  def __init__(self, itemId=None, warehouseId=None, quantity=None,):
4478
    self.itemId = itemId
4479
    self.warehouseId = warehouseId
4480
    self.quantity = quantity
4481
 
4482
  def read(self, iprot):
4483
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4484
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4485
      return
4486
    iprot.readStructBegin()
4487
    while True:
4488
      (fname, ftype, fid) = iprot.readFieldBegin()
4489
      if ftype == TType.STOP:
4490
        break
4491
      if fid == 1:
4492
        if ftype == TType.I64:
4493
          self.itemId = iprot.readI64();
4494
        else:
4495
          iprot.skip(ftype)
4496
      elif fid == 2:
4497
        if ftype == TType.I64:
4498
          self.warehouseId = iprot.readI64();
4499
        else:
4500
          iprot.skip(ftype)
4501
      elif fid == 3:
4502
        if ftype == TType.I64:
4503
          self.quantity = iprot.readI64();
4504
        else:
4505
          iprot.skip(ftype)
4506
      else:
4507
        iprot.skip(ftype)
4508
      iprot.readFieldEnd()
4509
    iprot.readStructEnd()
4510
 
4511
  def write(self, oprot):
4512
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4513
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4514
      return
4515
    oprot.writeStructBegin('addInventory_args')
4516
    if self.itemId is not None:
4517
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4518
      oprot.writeI64(self.itemId)
4519
      oprot.writeFieldEnd()
4520
    if self.warehouseId is not None:
4521
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
4522
      oprot.writeI64(self.warehouseId)
4523
      oprot.writeFieldEnd()
4524
    if self.quantity is not None:
4525
      oprot.writeFieldBegin('quantity', TType.I64, 3)
4526
      oprot.writeI64(self.quantity)
4527
      oprot.writeFieldEnd()
4528
    oprot.writeFieldStop()
4529
    oprot.writeStructEnd()
4530
 
4531
  def validate(self):
4532
    return
4533
 
4534
 
4535
  def __repr__(self):
4536
    L = ['%s=%r' % (key, value)
4537
      for key, value in self.__dict__.iteritems()]
4538
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4539
 
4540
  def __eq__(self, other):
4541
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4542
 
4543
  def __ne__(self, other):
4544
    return not (self == other)
4545
 
4546
class addInventory_result:
4547
  """
4548
  Attributes:
4549
   - cex
4550
  """
4551
 
4552
  thrift_spec = (
4553
    None, # 0
4554
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4555
  )
4556
 
4557
  def __init__(self, cex=None,):
4558
    self.cex = cex
4559
 
4560
  def read(self, iprot):
4561
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4562
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4563
      return
4564
    iprot.readStructBegin()
4565
    while True:
4566
      (fname, ftype, fid) = iprot.readFieldBegin()
4567
      if ftype == TType.STOP:
4568
        break
4569
      if fid == 1:
4570
        if ftype == TType.STRUCT:
4571
          self.cex = InventoryServiceException()
4572
          self.cex.read(iprot)
4573
        else:
4574
          iprot.skip(ftype)
4575
      else:
4576
        iprot.skip(ftype)
4577
      iprot.readFieldEnd()
4578
    iprot.readStructEnd()
4579
 
4580
  def write(self, oprot):
4581
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4582
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4583
      return
4584
    oprot.writeStructBegin('addInventory_result')
4585
    if self.cex is not None:
4586
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4587
      self.cex.write(oprot)
4588
      oprot.writeFieldEnd()
4589
    oprot.writeFieldStop()
4590
    oprot.writeStructEnd()
4591
 
4592
  def validate(self):
4593
    return
4594
 
4595
 
4596
  def __repr__(self):
4597
    L = ['%s=%r' % (key, value)
4598
      for key, value in self.__dict__.iteritems()]
4599
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4600
 
4601
  def __eq__(self, other):
4602
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4603
 
4604
  def __ne__(self, other):
4605
    return not (self == other)
4606
 
4607
class retireWarehouse_args:
4608
  """
4609
  Attributes:
4610
   - warehouse_id
4611
  """
4612
 
4613
  thrift_spec = (
4614
    None, # 0
4615
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
4616
  )
4617
 
4618
  def __init__(self, warehouse_id=None,):
4619
    self.warehouse_id = warehouse_id
4620
 
4621
  def read(self, iprot):
4622
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4623
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4624
      return
4625
    iprot.readStructBegin()
4626
    while True:
4627
      (fname, ftype, fid) = iprot.readFieldBegin()
4628
      if ftype == TType.STOP:
4629
        break
4630
      if fid == 1:
4631
        if ftype == TType.I64:
4632
          self.warehouse_id = iprot.readI64();
4633
        else:
4634
          iprot.skip(ftype)
4635
      else:
4636
        iprot.skip(ftype)
4637
      iprot.readFieldEnd()
4638
    iprot.readStructEnd()
4639
 
4640
  def write(self, oprot):
4641
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4642
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4643
      return
4644
    oprot.writeStructBegin('retireWarehouse_args')
4645
    if self.warehouse_id is not None:
4646
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
4647
      oprot.writeI64(self.warehouse_id)
4648
      oprot.writeFieldEnd()
4649
    oprot.writeFieldStop()
4650
    oprot.writeStructEnd()
4651
 
4652
  def validate(self):
4653
    return
4654
 
4655
 
4656
  def __repr__(self):
4657
    L = ['%s=%r' % (key, value)
4658
      for key, value in self.__dict__.iteritems()]
4659
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4660
 
4661
  def __eq__(self, other):
4662
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4663
 
4664
  def __ne__(self, other):
4665
    return not (self == other)
4666
 
4667
class retireWarehouse_result:
4668
  """
4669
  Attributes:
4670
   - cex
4671
  """
4672
 
4673
  thrift_spec = (
4674
    None, # 0
4675
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4676
  )
4677
 
4678
  def __init__(self, cex=None,):
4679
    self.cex = cex
4680
 
4681
  def read(self, iprot):
4682
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4683
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4684
      return
4685
    iprot.readStructBegin()
4686
    while True:
4687
      (fname, ftype, fid) = iprot.readFieldBegin()
4688
      if ftype == TType.STOP:
4689
        break
4690
      if fid == 1:
4691
        if ftype == TType.STRUCT:
4692
          self.cex = InventoryServiceException()
4693
          self.cex.read(iprot)
4694
        else:
4695
          iprot.skip(ftype)
4696
      else:
4697
        iprot.skip(ftype)
4698
      iprot.readFieldEnd()
4699
    iprot.readStructEnd()
4700
 
4701
  def write(self, oprot):
4702
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4703
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4704
      return
4705
    oprot.writeStructBegin('retireWarehouse_result')
4706
    if self.cex is not None:
4707
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4708
      self.cex.write(oprot)
4709
      oprot.writeFieldEnd()
4710
    oprot.writeFieldStop()
4711
    oprot.writeStructEnd()
4712
 
4713
  def validate(self):
4714
    return
4715
 
4716
 
4717
  def __repr__(self):
4718
    L = ['%s=%r' % (key, value)
4719
      for key, value in self.__dict__.iteritems()]
4720
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4721
 
4722
  def __eq__(self, other):
4723
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4724
 
4725
  def __ne__(self, other):
4726
    return not (self == other)
4727
 
4728
class getItemInventoryByItemId_args:
4729
  """
4730
  Attributes:
4731
   - item_id
4732
  """
4733
 
4734
  thrift_spec = (
4735
    None, # 0
4736
    (1, TType.I64, 'item_id', None, None, ), # 1
4737
  )
4738
 
4739
  def __init__(self, item_id=None,):
4740
    self.item_id = item_id
4741
 
4742
  def read(self, iprot):
4743
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4744
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4745
      return
4746
    iprot.readStructBegin()
4747
    while True:
4748
      (fname, ftype, fid) = iprot.readFieldBegin()
4749
      if ftype == TType.STOP:
4750
        break
4751
      if fid == 1:
4752
        if ftype == TType.I64:
4753
          self.item_id = iprot.readI64();
4754
        else:
4755
          iprot.skip(ftype)
4756
      else:
4757
        iprot.skip(ftype)
4758
      iprot.readFieldEnd()
4759
    iprot.readStructEnd()
4760
 
4761
  def write(self, oprot):
4762
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4763
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4764
      return
4765
    oprot.writeStructBegin('getItemInventoryByItemId_args')
4766
    if self.item_id is not None:
4767
      oprot.writeFieldBegin('item_id', TType.I64, 1)
4768
      oprot.writeI64(self.item_id)
4769
      oprot.writeFieldEnd()
4770
    oprot.writeFieldStop()
4771
    oprot.writeStructEnd()
4772
 
4773
  def validate(self):
4774
    return
4775
 
4776
 
4777
  def __repr__(self):
4778
    L = ['%s=%r' % (key, value)
4779
      for key, value in self.__dict__.iteritems()]
4780
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4781
 
4782
  def __eq__(self, other):
4783
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4784
 
4785
  def __ne__(self, other):
4786
    return not (self == other)
4787
 
4788
class getItemInventoryByItemId_result:
4789
  """
4790
  Attributes:
4791
   - success
4792
   - cex
4793
  """
4794
 
4795
  thrift_spec = (
4796
    (0, TType.STRUCT, 'success', (ItemInventory, ItemInventory.thrift_spec), None, ), # 0
4797
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4798
  )
4799
 
4800
  def __init__(self, success=None, cex=None,):
4801
    self.success = success
4802
    self.cex = cex
4803
 
4804
  def read(self, iprot):
4805
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4806
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4807
      return
4808
    iprot.readStructBegin()
4809
    while True:
4810
      (fname, ftype, fid) = iprot.readFieldBegin()
4811
      if ftype == TType.STOP:
4812
        break
4813
      if fid == 0:
4814
        if ftype == TType.STRUCT:
4815
          self.success = ItemInventory()
4816
          self.success.read(iprot)
4817
        else:
4818
          iprot.skip(ftype)
4819
      elif fid == 1:
4820
        if ftype == TType.STRUCT:
4821
          self.cex = InventoryServiceException()
4822
          self.cex.read(iprot)
4823
        else:
4824
          iprot.skip(ftype)
4825
      else:
4826
        iprot.skip(ftype)
4827
      iprot.readFieldEnd()
4828
    iprot.readStructEnd()
4829
 
4830
  def write(self, oprot):
4831
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4832
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4833
      return
4834
    oprot.writeStructBegin('getItemInventoryByItemId_result')
4835
    if self.success is not None:
4836
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4837
      self.success.write(oprot)
4838
      oprot.writeFieldEnd()
4839
    if self.cex is not None:
4840
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4841
      self.cex.write(oprot)
4842
      oprot.writeFieldEnd()
4843
    oprot.writeFieldStop()
4844
    oprot.writeStructEnd()
4845
 
4846
  def validate(self):
4847
    return
4848
 
4849
 
4850
  def __repr__(self):
4851
    L = ['%s=%r' % (key, value)
4852
      for key, value in self.__dict__.iteritems()]
4853
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4854
 
4855
  def __eq__(self, other):
4856
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4857
 
4858
  def __ne__(self, other):
4859
    return not (self == other)
4860
 
4861
class getItemAvailibilityAtWarehouse_args:
4862
  """
4863
  Attributes:
4864
   - warehouse_id
4865
   - item_id
4866
  """
4867
 
4868
  thrift_spec = (
4869
    None, # 0
4870
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
4871
    (2, TType.I64, 'item_id', None, None, ), # 2
4872
  )
4873
 
4874
  def __init__(self, warehouse_id=None, item_id=None,):
4875
    self.warehouse_id = warehouse_id
4876
    self.item_id = item_id
4877
 
4878
  def read(self, iprot):
4879
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4880
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4881
      return
4882
    iprot.readStructBegin()
4883
    while True:
4884
      (fname, ftype, fid) = iprot.readFieldBegin()
4885
      if ftype == TType.STOP:
4886
        break
4887
      if fid == 1:
4888
        if ftype == TType.I64:
4889
          self.warehouse_id = iprot.readI64();
4890
        else:
4891
          iprot.skip(ftype)
4892
      elif fid == 2:
4893
        if ftype == TType.I64:
4894
          self.item_id = iprot.readI64();
4895
        else:
4896
          iprot.skip(ftype)
4897
      else:
4898
        iprot.skip(ftype)
4899
      iprot.readFieldEnd()
4900
    iprot.readStructEnd()
4901
 
4902
  def write(self, oprot):
4903
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4904
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4905
      return
4906
    oprot.writeStructBegin('getItemAvailibilityAtWarehouse_args')
4907
    if self.warehouse_id is not None:
4908
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
4909
      oprot.writeI64(self.warehouse_id)
4910
      oprot.writeFieldEnd()
4911
    if self.item_id is not None:
4912
      oprot.writeFieldBegin('item_id', TType.I64, 2)
4913
      oprot.writeI64(self.item_id)
4914
      oprot.writeFieldEnd()
4915
    oprot.writeFieldStop()
4916
    oprot.writeStructEnd()
4917
 
4918
  def validate(self):
4919
    return
4920
 
4921
 
4922
  def __repr__(self):
4923
    L = ['%s=%r' % (key, value)
4924
      for key, value in self.__dict__.iteritems()]
4925
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4926
 
4927
  def __eq__(self, other):
4928
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4929
 
4930
  def __ne__(self, other):
4931
    return not (self == other)
4932
 
4933
class getItemAvailibilityAtWarehouse_result:
4934
  """
4935
  Attributes:
4936
   - success
4937
   - cex
4938
  """
4939
 
4940
  thrift_spec = (
4941
    (0, TType.I64, 'success', None, None, ), # 0
4942
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4943
  )
4944
 
4945
  def __init__(self, success=None, cex=None,):
4946
    self.success = success
4947
    self.cex = cex
4948
 
4949
  def read(self, iprot):
4950
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4951
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4952
      return
4953
    iprot.readStructBegin()
4954
    while True:
4955
      (fname, ftype, fid) = iprot.readFieldBegin()
4956
      if ftype == TType.STOP:
4957
        break
4958
      if fid == 0:
4959
        if ftype == TType.I64:
4960
          self.success = iprot.readI64();
4961
        else:
4962
          iprot.skip(ftype)
4963
      elif fid == 1:
4964
        if ftype == TType.STRUCT:
4965
          self.cex = InventoryServiceException()
4966
          self.cex.read(iprot)
4967
        else:
4968
          iprot.skip(ftype)
4969
      else:
4970
        iprot.skip(ftype)
4971
      iprot.readFieldEnd()
4972
    iprot.readStructEnd()
4973
 
4974
  def write(self, oprot):
4975
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4976
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4977
      return
4978
    oprot.writeStructBegin('getItemAvailibilityAtWarehouse_result')
4979
    if self.success is not None:
4980
      oprot.writeFieldBegin('success', TType.I64, 0)
4981
      oprot.writeI64(self.success)
4982
      oprot.writeFieldEnd()
4983
    if self.cex is not None:
4984
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4985
      self.cex.write(oprot)
4986
      oprot.writeFieldEnd()
4987
    oprot.writeFieldStop()
4988
    oprot.writeStructEnd()
4989
 
4990
  def validate(self):
4991
    return
4992
 
4993
 
4994
  def __repr__(self):
4995
    L = ['%s=%r' % (key, value)
4996
      for key, value in self.__dict__.iteritems()]
4997
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4998
 
4999
  def __eq__(self, other):
5000
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5001
 
5002
  def __ne__(self, other):
5003
    return not (self == other)
5004
 
5005
class getItemAvailabilityAtLocation_args:
5006
  """
5007
  Attributes:
5008
   - itemId
5978 rajveer 5009
   - sourceId
5944 mandeep.dh 5010
  """
5011
 
5012
  thrift_spec = (
5013
    None, # 0
5014
    (1, TType.I64, 'itemId', None, None, ), # 1
5978 rajveer 5015
    (2, TType.I64, 'sourceId', None, None, ), # 2
5944 mandeep.dh 5016
  )
5017
 
5978 rajveer 5018
  def __init__(self, itemId=None, sourceId=None,):
5944 mandeep.dh 5019
    self.itemId = itemId
5978 rajveer 5020
    self.sourceId = sourceId
5944 mandeep.dh 5021
 
5022
  def read(self, iprot):
5023
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5024
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5025
      return
5026
    iprot.readStructBegin()
5027
    while True:
5028
      (fname, ftype, fid) = iprot.readFieldBegin()
5029
      if ftype == TType.STOP:
5030
        break
5031
      if fid == 1:
5032
        if ftype == TType.I64:
5033
          self.itemId = iprot.readI64();
5034
        else:
5035
          iprot.skip(ftype)
5978 rajveer 5036
      elif fid == 2:
5037
        if ftype == TType.I64:
5038
          self.sourceId = iprot.readI64();
5039
        else:
5040
          iprot.skip(ftype)
5944 mandeep.dh 5041
      else:
5042
        iprot.skip(ftype)
5043
      iprot.readFieldEnd()
5044
    iprot.readStructEnd()
5045
 
5046
  def write(self, oprot):
5047
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5048
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5049
      return
5050
    oprot.writeStructBegin('getItemAvailabilityAtLocation_args')
5051
    if self.itemId is not None:
5052
      oprot.writeFieldBegin('itemId', TType.I64, 1)
5053
      oprot.writeI64(self.itemId)
5054
      oprot.writeFieldEnd()
5978 rajveer 5055
    if self.sourceId is not None:
5056
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
5057
      oprot.writeI64(self.sourceId)
5058
      oprot.writeFieldEnd()
5944 mandeep.dh 5059
    oprot.writeFieldStop()
5060
    oprot.writeStructEnd()
5061
 
5062
  def validate(self):
5063
    return
5064
 
5065
 
5066
  def __repr__(self):
5067
    L = ['%s=%r' % (key, value)
5068
      for key, value in self.__dict__.iteritems()]
5069
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5070
 
5071
  def __eq__(self, other):
5072
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5073
 
5074
  def __ne__(self, other):
5075
    return not (self == other)
5076
 
5077
class getItemAvailabilityAtLocation_result:
5078
  """
5079
  Attributes:
5080
   - success
5081
   - isex
5082
  """
5083
 
5084
  thrift_spec = (
5085
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
5086
    (1, TType.STRUCT, 'isex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5087
  )
5088
 
5089
  def __init__(self, success=None, isex=None,):
5090
    self.success = success
5091
    self.isex = isex
5092
 
5093
  def read(self, iprot):
5094
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5095
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5096
      return
5097
    iprot.readStructBegin()
5098
    while True:
5099
      (fname, ftype, fid) = iprot.readFieldBegin()
5100
      if ftype == TType.STOP:
5101
        break
5102
      if fid == 0:
5103
        if ftype == TType.LIST:
5104
          self.success = []
8182 amar.kumar 5105
          (_etype48, _size45) = iprot.readListBegin()
5106
          for _i49 in xrange(_size45):
5107
            _elem50 = iprot.readI64();
5108
            self.success.append(_elem50)
5944 mandeep.dh 5109
          iprot.readListEnd()
5110
        else:
5111
          iprot.skip(ftype)
5112
      elif fid == 1:
5113
        if ftype == TType.STRUCT:
5114
          self.isex = InventoryServiceException()
5115
          self.isex.read(iprot)
5116
        else:
5117
          iprot.skip(ftype)
5118
      else:
5119
        iprot.skip(ftype)
5120
      iprot.readFieldEnd()
5121
    iprot.readStructEnd()
5122
 
5123
  def write(self, oprot):
5124
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5125
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5126
      return
5127
    oprot.writeStructBegin('getItemAvailabilityAtLocation_result')
5128
    if self.success is not None:
5129
      oprot.writeFieldBegin('success', TType.LIST, 0)
5130
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 5131
      for iter51 in self.success:
5132
        oprot.writeI64(iter51)
5944 mandeep.dh 5133
      oprot.writeListEnd()
5134
      oprot.writeFieldEnd()
5135
    if self.isex is not None:
5136
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
5137
      self.isex.write(oprot)
5138
      oprot.writeFieldEnd()
5139
    oprot.writeFieldStop()
5140
    oprot.writeStructEnd()
5141
 
5142
  def validate(self):
5143
    return
5144
 
5145
 
5146
  def __repr__(self):
5147
    L = ['%s=%r' % (key, value)
5148
      for key, value in self.__dict__.iteritems()]
5149
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5150
 
5151
  def __eq__(self, other):
5152
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5153
 
5154
  def __ne__(self, other):
5155
    return not (self == other)
5156
 
5157
class getAllWarehouses_args:
5158
  """
5159
  Attributes:
5160
   - isActive
5161
  """
5162
 
5163
  thrift_spec = (
5164
    None, # 0
5165
    (1, TType.BOOL, 'isActive', None, None, ), # 1
5166
  )
5167
 
5168
  def __init__(self, isActive=None,):
5169
    self.isActive = isActive
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 == 1:
5181
        if ftype == TType.BOOL:
5182
          self.isActive = iprot.readBool();
5183
        else:
5184
          iprot.skip(ftype)
5185
      else:
5186
        iprot.skip(ftype)
5187
      iprot.readFieldEnd()
5188
    iprot.readStructEnd()
5189
 
5190
  def write(self, oprot):
5191
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5192
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5193
      return
5194
    oprot.writeStructBegin('getAllWarehouses_args')
5195
    if self.isActive is not None:
5196
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
5197
      oprot.writeBool(self.isActive)
5198
      oprot.writeFieldEnd()
5199
    oprot.writeFieldStop()
5200
    oprot.writeStructEnd()
5201
 
5202
  def validate(self):
5203
    return
5204
 
5205
 
5206
  def __repr__(self):
5207
    L = ['%s=%r' % (key, value)
5208
      for key, value in self.__dict__.iteritems()]
5209
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5210
 
5211
  def __eq__(self, other):
5212
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5213
 
5214
  def __ne__(self, other):
5215
    return not (self == other)
5216
 
5217
class getAllWarehouses_result:
5218
  """
5219
  Attributes:
5220
   - success
5221
   - cex
5222
  """
5223
 
5224
  thrift_spec = (
5225
    (0, TType.LIST, 'success', (TType.STRUCT,(Warehouse, Warehouse.thrift_spec)), None, ), # 0
5226
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5227
  )
5228
 
5229
  def __init__(self, success=None, cex=None,):
5230
    self.success = success
5231
    self.cex = cex
5232
 
5233
  def read(self, iprot):
5234
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5235
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5236
      return
5237
    iprot.readStructBegin()
5238
    while True:
5239
      (fname, ftype, fid) = iprot.readFieldBegin()
5240
      if ftype == TType.STOP:
5241
        break
5242
      if fid == 0:
5243
        if ftype == TType.LIST:
5244
          self.success = []
8182 amar.kumar 5245
          (_etype55, _size52) = iprot.readListBegin()
5246
          for _i56 in xrange(_size52):
5247
            _elem57 = Warehouse()
5248
            _elem57.read(iprot)
5249
            self.success.append(_elem57)
5944 mandeep.dh 5250
          iprot.readListEnd()
5251
        else:
5252
          iprot.skip(ftype)
5253
      elif fid == 1:
5254
        if ftype == TType.STRUCT:
5255
          self.cex = InventoryServiceException()
5256
          self.cex.read(iprot)
5257
        else:
5258
          iprot.skip(ftype)
5259
      else:
5260
        iprot.skip(ftype)
5261
      iprot.readFieldEnd()
5262
    iprot.readStructEnd()
5263
 
5264
  def write(self, oprot):
5265
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5266
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5267
      return
5268
    oprot.writeStructBegin('getAllWarehouses_result')
5269
    if self.success is not None:
5270
      oprot.writeFieldBegin('success', TType.LIST, 0)
5271
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 5272
      for iter58 in self.success:
5273
        iter58.write(oprot)
5944 mandeep.dh 5274
      oprot.writeListEnd()
5275
      oprot.writeFieldEnd()
5276
    if self.cex is not None:
5277
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5278
      self.cex.write(oprot)
5279
      oprot.writeFieldEnd()
5280
    oprot.writeFieldStop()
5281
    oprot.writeStructEnd()
5282
 
5283
  def validate(self):
5284
    return
5285
 
5286
 
5287
  def __repr__(self):
5288
    L = ['%s=%r' % (key, value)
5289
      for key, value in self.__dict__.iteritems()]
5290
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5291
 
5292
  def __eq__(self, other):
5293
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5294
 
5295
  def __ne__(self, other):
5296
    return not (self == other)
5297
 
5298
class getWarehouse_args:
5299
  """
5300
  Attributes:
5301
   - warehouse_id
5302
  """
5303
 
5304
  thrift_spec = (
5305
    None, # 0
5306
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
5307
  )
5308
 
5309
  def __init__(self, warehouse_id=None,):
5310
    self.warehouse_id = warehouse_id
5311
 
5312
  def read(self, iprot):
5313
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5314
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5315
      return
5316
    iprot.readStructBegin()
5317
    while True:
5318
      (fname, ftype, fid) = iprot.readFieldBegin()
5319
      if ftype == TType.STOP:
5320
        break
5321
      if fid == 1:
5322
        if ftype == TType.I64:
5323
          self.warehouse_id = iprot.readI64();
5324
        else:
5325
          iprot.skip(ftype)
5326
      else:
5327
        iprot.skip(ftype)
5328
      iprot.readFieldEnd()
5329
    iprot.readStructEnd()
5330
 
5331
  def write(self, oprot):
5332
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5333
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5334
      return
5335
    oprot.writeStructBegin('getWarehouse_args')
5336
    if self.warehouse_id is not None:
5337
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
5338
      oprot.writeI64(self.warehouse_id)
5339
      oprot.writeFieldEnd()
5340
    oprot.writeFieldStop()
5341
    oprot.writeStructEnd()
5342
 
5343
  def validate(self):
5344
    return
5345
 
5346
 
5347
  def __repr__(self):
5348
    L = ['%s=%r' % (key, value)
5349
      for key, value in self.__dict__.iteritems()]
5350
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5351
 
5352
  def __eq__(self, other):
5353
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5354
 
5355
  def __ne__(self, other):
5356
    return not (self == other)
5357
 
5358
class getWarehouse_result:
5359
  """
5360
  Attributes:
5361
   - success
5362
   - cex
5363
  """
5364
 
5365
  thrift_spec = (
5366
    (0, TType.STRUCT, 'success', (Warehouse, Warehouse.thrift_spec), None, ), # 0
5367
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5368
  )
5369
 
5370
  def __init__(self, success=None, cex=None,):
5371
    self.success = success
5372
    self.cex = cex
5373
 
5374
  def read(self, iprot):
5375
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5376
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5377
      return
5378
    iprot.readStructBegin()
5379
    while True:
5380
      (fname, ftype, fid) = iprot.readFieldBegin()
5381
      if ftype == TType.STOP:
5382
        break
5383
      if fid == 0:
5384
        if ftype == TType.STRUCT:
5385
          self.success = Warehouse()
5386
          self.success.read(iprot)
5387
        else:
5388
          iprot.skip(ftype)
5389
      elif fid == 1:
5390
        if ftype == TType.STRUCT:
5391
          self.cex = InventoryServiceException()
5392
          self.cex.read(iprot)
5393
        else:
5394
          iprot.skip(ftype)
5395
      else:
5396
        iprot.skip(ftype)
5397
      iprot.readFieldEnd()
5398
    iprot.readStructEnd()
5399
 
5400
  def write(self, oprot):
5401
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5402
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5403
      return
5404
    oprot.writeStructBegin('getWarehouse_result')
5405
    if self.success is not None:
5406
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5407
      self.success.write(oprot)
5408
      oprot.writeFieldEnd()
5409
    if self.cex is not None:
5410
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5411
      self.cex.write(oprot)
5412
      oprot.writeFieldEnd()
5413
    oprot.writeFieldStop()
5414
    oprot.writeStructEnd()
5415
 
5416
  def validate(self):
5417
    return
5418
 
5419
 
5420
  def __repr__(self):
5421
    L = ['%s=%r' % (key, value)
5422
      for key, value in self.__dict__.iteritems()]
5423
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5424
 
5425
  def __eq__(self, other):
5426
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5427
 
5428
  def __ne__(self, other):
5429
    return not (self == other)
5430
 
5431
class getAllItemsForWarehouse_args:
5432
  """
5433
  Attributes:
5434
   - warehouse_id
5435
  """
5436
 
5437
  thrift_spec = (
5438
    None, # 0
5439
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
5440
  )
5441
 
5442
  def __init__(self, warehouse_id=None,):
5443
    self.warehouse_id = warehouse_id
5444
 
5445
  def read(self, iprot):
5446
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5447
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5448
      return
5449
    iprot.readStructBegin()
5450
    while True:
5451
      (fname, ftype, fid) = iprot.readFieldBegin()
5452
      if ftype == TType.STOP:
5453
        break
5454
      if fid == 1:
5455
        if ftype == TType.I64:
5456
          self.warehouse_id = iprot.readI64();
5457
        else:
5458
          iprot.skip(ftype)
5459
      else:
5460
        iprot.skip(ftype)
5461
      iprot.readFieldEnd()
5462
    iprot.readStructEnd()
5463
 
5464
  def write(self, oprot):
5465
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5466
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5467
      return
5468
    oprot.writeStructBegin('getAllItemsForWarehouse_args')
5469
    if self.warehouse_id is not None:
5470
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
5471
      oprot.writeI64(self.warehouse_id)
5472
      oprot.writeFieldEnd()
5473
    oprot.writeFieldStop()
5474
    oprot.writeStructEnd()
5475
 
5476
  def validate(self):
5477
    return
5478
 
5479
 
5480
  def __repr__(self):
5481
    L = ['%s=%r' % (key, value)
5482
      for key, value in self.__dict__.iteritems()]
5483
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5484
 
5485
  def __eq__(self, other):
5486
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5487
 
5488
  def __ne__(self, other):
5489
    return not (self == other)
5490
 
5491
class getAllItemsForWarehouse_result:
5492
  """
5493
  Attributes:
5494
   - success
5495
   - cex
5496
  """
5497
 
5498
  thrift_spec = (
5499
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
5500
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5501
  )
5502
 
5503
  def __init__(self, success=None, cex=None,):
5504
    self.success = success
5505
    self.cex = cex
5506
 
5507
  def read(self, iprot):
5508
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5509
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5510
      return
5511
    iprot.readStructBegin()
5512
    while True:
5513
      (fname, ftype, fid) = iprot.readFieldBegin()
5514
      if ftype == TType.STOP:
5515
        break
5516
      if fid == 0:
5517
        if ftype == TType.LIST:
5518
          self.success = []
8182 amar.kumar 5519
          (_etype62, _size59) = iprot.readListBegin()
5520
          for _i63 in xrange(_size59):
5521
            _elem64 = iprot.readI64();
5522
            self.success.append(_elem64)
5944 mandeep.dh 5523
          iprot.readListEnd()
5524
        else:
5525
          iprot.skip(ftype)
5526
      elif fid == 1:
5527
        if ftype == TType.STRUCT:
5528
          self.cex = InventoryServiceException()
5529
          self.cex.read(iprot)
5530
        else:
5531
          iprot.skip(ftype)
5532
      else:
5533
        iprot.skip(ftype)
5534
      iprot.readFieldEnd()
5535
    iprot.readStructEnd()
5536
 
5537
  def write(self, oprot):
5538
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5539
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5540
      return
5541
    oprot.writeStructBegin('getAllItemsForWarehouse_result')
5542
    if self.success is not None:
5543
      oprot.writeFieldBegin('success', TType.LIST, 0)
5544
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 5545
      for iter65 in self.success:
5546
        oprot.writeI64(iter65)
5944 mandeep.dh 5547
      oprot.writeListEnd()
5548
      oprot.writeFieldEnd()
5549
    if self.cex is not None:
5550
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5551
      self.cex.write(oprot)
5552
      oprot.writeFieldEnd()
5553
    oprot.writeFieldStop()
5554
    oprot.writeStructEnd()
5555
 
5556
  def validate(self):
5557
    return
5558
 
5559
 
5560
  def __repr__(self):
5561
    L = ['%s=%r' % (key, value)
5562
      for key, value in self.__dict__.iteritems()]
5563
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5564
 
5565
  def __eq__(self, other):
5566
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5567
 
5568
  def __ne__(self, other):
5569
    return not (self == other)
5570
 
5966 rajveer 5571
class isOrderBillable_args:
5572
  """
5573
  Attributes:
5574
   - itemId
5575
   - warehouseId
5576
   - sourceId
5577
   - orderId
5578
  """
5579
 
5580
  thrift_spec = (
5581
    None, # 0
5582
    (1, TType.I64, 'itemId', None, None, ), # 1
5583
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5584
    (3, TType.I64, 'sourceId', None, None, ), # 3
5585
    (4, TType.I64, 'orderId', None, None, ), # 4
5586
  )
5587
 
5588
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None,):
5589
    self.itemId = itemId
5590
    self.warehouseId = warehouseId
5591
    self.sourceId = sourceId
5592
    self.orderId = orderId
5593
 
5594
  def read(self, iprot):
5595
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5596
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5597
      return
5598
    iprot.readStructBegin()
5599
    while True:
5600
      (fname, ftype, fid) = iprot.readFieldBegin()
5601
      if ftype == TType.STOP:
5602
        break
5603
      if fid == 1:
5604
        if ftype == TType.I64:
5605
          self.itemId = iprot.readI64();
5606
        else:
5607
          iprot.skip(ftype)
5608
      elif fid == 2:
5609
        if ftype == TType.I64:
5610
          self.warehouseId = iprot.readI64();
5611
        else:
5612
          iprot.skip(ftype)
5613
      elif fid == 3:
5614
        if ftype == TType.I64:
5615
          self.sourceId = iprot.readI64();
5616
        else:
5617
          iprot.skip(ftype)
5618
      elif fid == 4:
5619
        if ftype == TType.I64:
5620
          self.orderId = iprot.readI64();
5621
        else:
5622
          iprot.skip(ftype)
5623
      else:
5624
        iprot.skip(ftype)
5625
      iprot.readFieldEnd()
5626
    iprot.readStructEnd()
5627
 
5628
  def write(self, oprot):
5629
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5630
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5631
      return
5632
    oprot.writeStructBegin('isOrderBillable_args')
5633
    if self.itemId is not None:
5634
      oprot.writeFieldBegin('itemId', TType.I64, 1)
5635
      oprot.writeI64(self.itemId)
5636
      oprot.writeFieldEnd()
5637
    if self.warehouseId is not None:
5638
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
5639
      oprot.writeI64(self.warehouseId)
5640
      oprot.writeFieldEnd()
5641
    if self.sourceId is not None:
5642
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
5643
      oprot.writeI64(self.sourceId)
5644
      oprot.writeFieldEnd()
5645
    if self.orderId is not None:
5646
      oprot.writeFieldBegin('orderId', TType.I64, 4)
5647
      oprot.writeI64(self.orderId)
5648
      oprot.writeFieldEnd()
5649
    oprot.writeFieldStop()
5650
    oprot.writeStructEnd()
5651
 
5652
  def validate(self):
5653
    return
5654
 
5655
 
5656
  def __repr__(self):
5657
    L = ['%s=%r' % (key, value)
5658
      for key, value in self.__dict__.iteritems()]
5659
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5660
 
5661
  def __eq__(self, other):
5662
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5663
 
5664
  def __ne__(self, other):
5665
    return not (self == other)
5666
 
5667
class isOrderBillable_result:
5668
  """
5669
  Attributes:
5670
   - success
5671
  """
5672
 
5673
  thrift_spec = (
5674
    (0, TType.BOOL, 'success', None, None, ), # 0
5675
  )
5676
 
5677
  def __init__(self, success=None,):
5678
    self.success = success
5679
 
5680
  def read(self, iprot):
5681
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5682
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5683
      return
5684
    iprot.readStructBegin()
5685
    while True:
5686
      (fname, ftype, fid) = iprot.readFieldBegin()
5687
      if ftype == TType.STOP:
5688
        break
5689
      if fid == 0:
5690
        if ftype == TType.BOOL:
5691
          self.success = iprot.readBool();
5692
        else:
5693
          iprot.skip(ftype)
5694
      else:
5695
        iprot.skip(ftype)
5696
      iprot.readFieldEnd()
5697
    iprot.readStructEnd()
5698
 
5699
  def write(self, oprot):
5700
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5701
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5702
      return
5703
    oprot.writeStructBegin('isOrderBillable_result')
5704
    if self.success is not None:
5705
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5706
      oprot.writeBool(self.success)
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
 
5944 mandeep.dh 5726
class reserveItemInWarehouse_args:
5727
  """
5728
  Attributes:
5729
   - itemId
5730
   - warehouseId
5966 rajveer 5731
   - sourceId
5732
   - orderId
5733
   - createdTimestamp
5734
   - promisedShippingTimestamp
5944 mandeep.dh 5735
   - quantity
5736
  """
5737
 
5738
  thrift_spec = (
5739
    None, # 0
5740
    (1, TType.I64, 'itemId', None, None, ), # 1
5741
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5966 rajveer 5742
    (3, TType.I64, 'sourceId', None, None, ), # 3
5743
    (4, TType.I64, 'orderId', None, None, ), # 4
5744
    (5, TType.I64, 'createdTimestamp', None, None, ), # 5
5745
    (6, TType.I64, 'promisedShippingTimestamp', None, None, ), # 6
5746
    (7, TType.DOUBLE, 'quantity', None, None, ), # 7
5944 mandeep.dh 5747
  )
5748
 
5966 rajveer 5749
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None, createdTimestamp=None, promisedShippingTimestamp=None, quantity=None,):
5944 mandeep.dh 5750
    self.itemId = itemId
5751
    self.warehouseId = warehouseId
5966 rajveer 5752
    self.sourceId = sourceId
5753
    self.orderId = orderId
5754
    self.createdTimestamp = createdTimestamp
5755
    self.promisedShippingTimestamp = promisedShippingTimestamp
5944 mandeep.dh 5756
    self.quantity = quantity
5757
 
5758
  def read(self, iprot):
5759
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5760
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5761
      return
5762
    iprot.readStructBegin()
5763
    while True:
5764
      (fname, ftype, fid) = iprot.readFieldBegin()
5765
      if ftype == TType.STOP:
5766
        break
5767
      if fid == 1:
5768
        if ftype == TType.I64:
5769
          self.itemId = iprot.readI64();
5770
        else:
5771
          iprot.skip(ftype)
5772
      elif fid == 2:
5773
        if ftype == TType.I64:
5774
          self.warehouseId = iprot.readI64();
5775
        else:
5776
          iprot.skip(ftype)
5777
      elif fid == 3:
5966 rajveer 5778
        if ftype == TType.I64:
5779
          self.sourceId = iprot.readI64();
5780
        else:
5781
          iprot.skip(ftype)
5782
      elif fid == 4:
5783
        if ftype == TType.I64:
5784
          self.orderId = iprot.readI64();
5785
        else:
5786
          iprot.skip(ftype)
5787
      elif fid == 5:
5788
        if ftype == TType.I64:
5789
          self.createdTimestamp = iprot.readI64();
5790
        else:
5791
          iprot.skip(ftype)
5792
      elif fid == 6:
5793
        if ftype == TType.I64:
5794
          self.promisedShippingTimestamp = iprot.readI64();
5795
        else:
5796
          iprot.skip(ftype)
5797
      elif fid == 7:
5944 mandeep.dh 5798
        if ftype == TType.DOUBLE:
5799
          self.quantity = iprot.readDouble();
5800
        else:
5801
          iprot.skip(ftype)
5802
      else:
5803
        iprot.skip(ftype)
5804
      iprot.readFieldEnd()
5805
    iprot.readStructEnd()
5806
 
5807
  def write(self, oprot):
5808
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5809
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5810
      return
5811
    oprot.writeStructBegin('reserveItemInWarehouse_args')
5812
    if self.itemId is not None:
5813
      oprot.writeFieldBegin('itemId', TType.I64, 1)
5814
      oprot.writeI64(self.itemId)
5815
      oprot.writeFieldEnd()
5816
    if self.warehouseId is not None:
5817
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
5818
      oprot.writeI64(self.warehouseId)
5819
      oprot.writeFieldEnd()
5966 rajveer 5820
    if self.sourceId is not None:
5821
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
5822
      oprot.writeI64(self.sourceId)
5823
      oprot.writeFieldEnd()
5824
    if self.orderId is not None:
5825
      oprot.writeFieldBegin('orderId', TType.I64, 4)
5826
      oprot.writeI64(self.orderId)
5827
      oprot.writeFieldEnd()
5828
    if self.createdTimestamp is not None:
5829
      oprot.writeFieldBegin('createdTimestamp', TType.I64, 5)
5830
      oprot.writeI64(self.createdTimestamp)
5831
      oprot.writeFieldEnd()
5832
    if self.promisedShippingTimestamp is not None:
5833
      oprot.writeFieldBegin('promisedShippingTimestamp', TType.I64, 6)
5834
      oprot.writeI64(self.promisedShippingTimestamp)
5835
      oprot.writeFieldEnd()
5944 mandeep.dh 5836
    if self.quantity is not None:
5966 rajveer 5837
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 7)
5944 mandeep.dh 5838
      oprot.writeDouble(self.quantity)
5839
      oprot.writeFieldEnd()
5840
    oprot.writeFieldStop()
5841
    oprot.writeStructEnd()
5842
 
5843
  def validate(self):
5844
    return
5845
 
5846
 
5847
  def __repr__(self):
5848
    L = ['%s=%r' % (key, value)
5849
      for key, value in self.__dict__.iteritems()]
5850
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5851
 
5852
  def __eq__(self, other):
5853
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5854
 
5855
  def __ne__(self, other):
5856
    return not (self == other)
5857
 
5858
class reserveItemInWarehouse_result:
5859
  """
5860
  Attributes:
5861
   - success
5862
   - cex
5863
  """
5864
 
5865
  thrift_spec = (
5866
    (0, TType.BOOL, 'success', None, None, ), # 0
5867
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5868
  )
5869
 
5870
  def __init__(self, success=None, cex=None,):
5871
    self.success = success
5872
    self.cex = cex
5873
 
5874
  def read(self, iprot):
5875
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5876
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5877
      return
5878
    iprot.readStructBegin()
5879
    while True:
5880
      (fname, ftype, fid) = iprot.readFieldBegin()
5881
      if ftype == TType.STOP:
5882
        break
5883
      if fid == 0:
5884
        if ftype == TType.BOOL:
5885
          self.success = iprot.readBool();
5886
        else:
5887
          iprot.skip(ftype)
5888
      elif fid == 1:
5889
        if ftype == TType.STRUCT:
5890
          self.cex = InventoryServiceException()
5891
          self.cex.read(iprot)
5892
        else:
5893
          iprot.skip(ftype)
5894
      else:
5895
        iprot.skip(ftype)
5896
      iprot.readFieldEnd()
5897
    iprot.readStructEnd()
5898
 
5899
  def write(self, oprot):
5900
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5901
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5902
      return
5903
    oprot.writeStructBegin('reserveItemInWarehouse_result')
5904
    if self.success is not None:
5905
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5906
      oprot.writeBool(self.success)
5907
      oprot.writeFieldEnd()
5908
    if self.cex is not None:
5909
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5910
      self.cex.write(oprot)
5911
      oprot.writeFieldEnd()
5912
    oprot.writeFieldStop()
5913
    oprot.writeStructEnd()
5914
 
5915
  def validate(self):
5916
    return
5917
 
5918
 
5919
  def __repr__(self):
5920
    L = ['%s=%r' % (key, value)
5921
      for key, value in self.__dict__.iteritems()]
5922
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5923
 
5924
  def __eq__(self, other):
5925
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5926
 
5927
  def __ne__(self, other):
5928
    return not (self == other)
5929
 
7968 amar.kumar 5930
class updateReservationForOrder_args:
5931
  """
5932
  Attributes:
5933
   - itemId
5934
   - warehouseId
5935
   - sourceId
5936
   - orderId
5937
   - createdTimestamp
5938
   - promisedShippingTimestamp
5939
   - quantity
5940
  """
5941
 
5942
  thrift_spec = (
5943
    None, # 0
5944
    (1, TType.I64, 'itemId', None, None, ), # 1
5945
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5946
    (3, TType.I64, 'sourceId', None, None, ), # 3
5947
    (4, TType.I64, 'orderId', None, None, ), # 4
5948
    (5, TType.I64, 'createdTimestamp', None, None, ), # 5
5949
    (6, TType.I64, 'promisedShippingTimestamp', None, None, ), # 6
5950
    (7, TType.DOUBLE, 'quantity', None, None, ), # 7
5951
  )
5952
 
5953
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None, createdTimestamp=None, promisedShippingTimestamp=None, quantity=None,):
5954
    self.itemId = itemId
5955
    self.warehouseId = warehouseId
5956
    self.sourceId = sourceId
5957
    self.orderId = orderId
5958
    self.createdTimestamp = createdTimestamp
5959
    self.promisedShippingTimestamp = promisedShippingTimestamp
5960
    self.quantity = quantity
5961
 
5962
  def read(self, iprot):
5963
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5964
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5965
      return
5966
    iprot.readStructBegin()
5967
    while True:
5968
      (fname, ftype, fid) = iprot.readFieldBegin()
5969
      if ftype == TType.STOP:
5970
        break
5971
      if fid == 1:
5972
        if ftype == TType.I64:
5973
          self.itemId = iprot.readI64();
5974
        else:
5975
          iprot.skip(ftype)
5976
      elif fid == 2:
5977
        if ftype == TType.I64:
5978
          self.warehouseId = iprot.readI64();
5979
        else:
5980
          iprot.skip(ftype)
5981
      elif fid == 3:
5982
        if ftype == TType.I64:
5983
          self.sourceId = iprot.readI64();
5984
        else:
5985
          iprot.skip(ftype)
5986
      elif fid == 4:
5987
        if ftype == TType.I64:
5988
          self.orderId = iprot.readI64();
5989
        else:
5990
          iprot.skip(ftype)
5991
      elif fid == 5:
5992
        if ftype == TType.I64:
5993
          self.createdTimestamp = iprot.readI64();
5994
        else:
5995
          iprot.skip(ftype)
5996
      elif fid == 6:
5997
        if ftype == TType.I64:
5998
          self.promisedShippingTimestamp = iprot.readI64();
5999
        else:
6000
          iprot.skip(ftype)
6001
      elif fid == 7:
6002
        if ftype == TType.DOUBLE:
6003
          self.quantity = iprot.readDouble();
6004
        else:
6005
          iprot.skip(ftype)
6006
      else:
6007
        iprot.skip(ftype)
6008
      iprot.readFieldEnd()
6009
    iprot.readStructEnd()
6010
 
6011
  def write(self, oprot):
6012
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6013
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6014
      return
6015
    oprot.writeStructBegin('updateReservationForOrder_args')
6016
    if self.itemId is not None:
6017
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6018
      oprot.writeI64(self.itemId)
6019
      oprot.writeFieldEnd()
6020
    if self.warehouseId is not None:
6021
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
6022
      oprot.writeI64(self.warehouseId)
6023
      oprot.writeFieldEnd()
6024
    if self.sourceId is not None:
6025
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
6026
      oprot.writeI64(self.sourceId)
6027
      oprot.writeFieldEnd()
6028
    if self.orderId is not None:
6029
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6030
      oprot.writeI64(self.orderId)
6031
      oprot.writeFieldEnd()
6032
    if self.createdTimestamp is not None:
6033
      oprot.writeFieldBegin('createdTimestamp', TType.I64, 5)
6034
      oprot.writeI64(self.createdTimestamp)
6035
      oprot.writeFieldEnd()
6036
    if self.promisedShippingTimestamp is not None:
6037
      oprot.writeFieldBegin('promisedShippingTimestamp', TType.I64, 6)
6038
      oprot.writeI64(self.promisedShippingTimestamp)
6039
      oprot.writeFieldEnd()
6040
    if self.quantity is not None:
6041
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 7)
6042
      oprot.writeDouble(self.quantity)
6043
      oprot.writeFieldEnd()
6044
    oprot.writeFieldStop()
6045
    oprot.writeStructEnd()
6046
 
6047
  def validate(self):
6048
    return
6049
 
6050
 
6051
  def __repr__(self):
6052
    L = ['%s=%r' % (key, value)
6053
      for key, value in self.__dict__.iteritems()]
6054
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6055
 
6056
  def __eq__(self, other):
6057
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6058
 
6059
  def __ne__(self, other):
6060
    return not (self == other)
6061
 
6062
class updateReservationForOrder_result:
6063
  """
6064
  Attributes:
6065
   - success
6066
   - cex
6067
  """
6068
 
6069
  thrift_spec = (
6070
    (0, TType.BOOL, 'success', None, None, ), # 0
6071
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6072
  )
6073
 
6074
  def __init__(self, success=None, cex=None,):
6075
    self.success = success
6076
    self.cex = cex
6077
 
6078
  def read(self, iprot):
6079
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6080
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6081
      return
6082
    iprot.readStructBegin()
6083
    while True:
6084
      (fname, ftype, fid) = iprot.readFieldBegin()
6085
      if ftype == TType.STOP:
6086
        break
6087
      if fid == 0:
6088
        if ftype == TType.BOOL:
6089
          self.success = iprot.readBool();
6090
        else:
6091
          iprot.skip(ftype)
6092
      elif fid == 1:
6093
        if ftype == TType.STRUCT:
6094
          self.cex = InventoryServiceException()
6095
          self.cex.read(iprot)
6096
        else:
6097
          iprot.skip(ftype)
6098
      else:
6099
        iprot.skip(ftype)
6100
      iprot.readFieldEnd()
6101
    iprot.readStructEnd()
6102
 
6103
  def write(self, oprot):
6104
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6105
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6106
      return
6107
    oprot.writeStructBegin('updateReservationForOrder_result')
6108
    if self.success is not None:
6109
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6110
      oprot.writeBool(self.success)
6111
      oprot.writeFieldEnd()
6112
    if self.cex is not None:
6113
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6114
      self.cex.write(oprot)
6115
      oprot.writeFieldEnd()
6116
    oprot.writeFieldStop()
6117
    oprot.writeStructEnd()
6118
 
6119
  def validate(self):
6120
    return
6121
 
6122
 
6123
  def __repr__(self):
6124
    L = ['%s=%r' % (key, value)
6125
      for key, value in self.__dict__.iteritems()]
6126
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6127
 
6128
  def __eq__(self, other):
6129
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6130
 
6131
  def __ne__(self, other):
6132
    return not (self == other)
6133
 
5944 mandeep.dh 6134
class reduceReservationCount_args:
6135
  """
6136
  Attributes:
6137
   - itemId
6138
   - warehouseId
5966 rajveer 6139
   - sourceId
6140
   - orderId
5944 mandeep.dh 6141
   - quantity
6142
  """
6143
 
6144
  thrift_spec = (
6145
    None, # 0
6146
    (1, TType.I64, 'itemId', None, None, ), # 1
6147
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5966 rajveer 6148
    (3, TType.I64, 'sourceId', None, None, ), # 3
6149
    (4, TType.I64, 'orderId', None, None, ), # 4
6150
    (5, TType.DOUBLE, 'quantity', None, None, ), # 5
5944 mandeep.dh 6151
  )
6152
 
5966 rajveer 6153
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None, quantity=None,):
5944 mandeep.dh 6154
    self.itemId = itemId
6155
    self.warehouseId = warehouseId
5966 rajveer 6156
    self.sourceId = sourceId
6157
    self.orderId = orderId
5944 mandeep.dh 6158
    self.quantity = quantity
6159
 
6160
  def read(self, iprot):
6161
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6162
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6163
      return
6164
    iprot.readStructBegin()
6165
    while True:
6166
      (fname, ftype, fid) = iprot.readFieldBegin()
6167
      if ftype == TType.STOP:
6168
        break
6169
      if fid == 1:
6170
        if ftype == TType.I64:
6171
          self.itemId = iprot.readI64();
6172
        else:
6173
          iprot.skip(ftype)
6174
      elif fid == 2:
6175
        if ftype == TType.I64:
6176
          self.warehouseId = iprot.readI64();
6177
        else:
6178
          iprot.skip(ftype)
6179
      elif fid == 3:
5966 rajveer 6180
        if ftype == TType.I64:
6181
          self.sourceId = iprot.readI64();
6182
        else:
6183
          iprot.skip(ftype)
6184
      elif fid == 4:
6185
        if ftype == TType.I64:
6186
          self.orderId = iprot.readI64();
6187
        else:
6188
          iprot.skip(ftype)
6189
      elif fid == 5:
5944 mandeep.dh 6190
        if ftype == TType.DOUBLE:
6191
          self.quantity = iprot.readDouble();
6192
        else:
6193
          iprot.skip(ftype)
6194
      else:
6195
        iprot.skip(ftype)
6196
      iprot.readFieldEnd()
6197
    iprot.readStructEnd()
6198
 
6199
  def write(self, oprot):
6200
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6201
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6202
      return
6203
    oprot.writeStructBegin('reduceReservationCount_args')
6204
    if self.itemId is not None:
6205
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6206
      oprot.writeI64(self.itemId)
6207
      oprot.writeFieldEnd()
6208
    if self.warehouseId is not None:
6209
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
6210
      oprot.writeI64(self.warehouseId)
6211
      oprot.writeFieldEnd()
5966 rajveer 6212
    if self.sourceId is not None:
6213
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
6214
      oprot.writeI64(self.sourceId)
6215
      oprot.writeFieldEnd()
6216
    if self.orderId is not None:
6217
      oprot.writeFieldBegin('orderId', TType.I64, 4)
6218
      oprot.writeI64(self.orderId)
6219
      oprot.writeFieldEnd()
5944 mandeep.dh 6220
    if self.quantity is not None:
5966 rajveer 6221
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 5)
5944 mandeep.dh 6222
      oprot.writeDouble(self.quantity)
6223
      oprot.writeFieldEnd()
6224
    oprot.writeFieldStop()
6225
    oprot.writeStructEnd()
6226
 
6227
  def validate(self):
6228
    return
6229
 
6230
 
6231
  def __repr__(self):
6232
    L = ['%s=%r' % (key, value)
6233
      for key, value in self.__dict__.iteritems()]
6234
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6235
 
6236
  def __eq__(self, other):
6237
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6238
 
6239
  def __ne__(self, other):
6240
    return not (self == other)
6241
 
6242
class reduceReservationCount_result:
6243
  """
6244
  Attributes:
6245
   - success
6246
   - cex
6247
  """
6248
 
6249
  thrift_spec = (
6250
    (0, TType.BOOL, 'success', None, None, ), # 0
6251
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6252
  )
6253
 
6254
  def __init__(self, success=None, cex=None,):
6255
    self.success = success
6256
    self.cex = cex
6257
 
6258
  def read(self, iprot):
6259
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6260
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6261
      return
6262
    iprot.readStructBegin()
6263
    while True:
6264
      (fname, ftype, fid) = iprot.readFieldBegin()
6265
      if ftype == TType.STOP:
6266
        break
6267
      if fid == 0:
6268
        if ftype == TType.BOOL:
6269
          self.success = iprot.readBool();
6270
        else:
6271
          iprot.skip(ftype)
6272
      elif fid == 1:
6273
        if ftype == TType.STRUCT:
6274
          self.cex = InventoryServiceException()
6275
          self.cex.read(iprot)
6276
        else:
6277
          iprot.skip(ftype)
6278
      else:
6279
        iprot.skip(ftype)
6280
      iprot.readFieldEnd()
6281
    iprot.readStructEnd()
6282
 
6283
  def write(self, oprot):
6284
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6285
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6286
      return
6287
    oprot.writeStructBegin('reduceReservationCount_result')
6288
    if self.success is not None:
6289
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6290
      oprot.writeBool(self.success)
6291
      oprot.writeFieldEnd()
6292
    if self.cex is not None:
6293
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6294
      self.cex.write(oprot)
6295
      oprot.writeFieldEnd()
6296
    oprot.writeFieldStop()
6297
    oprot.writeStructEnd()
6298
 
6299
  def validate(self):
6300
    return
6301
 
6302
 
6303
  def __repr__(self):
6304
    L = ['%s=%r' % (key, value)
6305
      for key, value in self.__dict__.iteritems()]
6306
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6307
 
6308
  def __eq__(self, other):
6309
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6310
 
6311
  def __ne__(self, other):
6312
    return not (self == other)
6313
 
6314
class getItemPricing_args:
6315
  """
6316
  Attributes:
6317
   - itemId
6318
   - vendorId
6319
  """
6320
 
6321
  thrift_spec = (
6322
    None, # 0
6323
    (1, TType.I64, 'itemId', None, None, ), # 1
6324
    (2, TType.I64, 'vendorId', None, None, ), # 2
6325
  )
6326
 
6327
  def __init__(self, itemId=None, vendorId=None,):
6328
    self.itemId = itemId
6329
    self.vendorId = vendorId
6330
 
6331
  def read(self, iprot):
6332
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6333
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6334
      return
6335
    iprot.readStructBegin()
6336
    while True:
6337
      (fname, ftype, fid) = iprot.readFieldBegin()
6338
      if ftype == TType.STOP:
6339
        break
6340
      if fid == 1:
6341
        if ftype == TType.I64:
6342
          self.itemId = iprot.readI64();
6343
        else:
6344
          iprot.skip(ftype)
6345
      elif fid == 2:
6346
        if ftype == TType.I64:
6347
          self.vendorId = iprot.readI64();
6348
        else:
6349
          iprot.skip(ftype)
6350
      else:
6351
        iprot.skip(ftype)
6352
      iprot.readFieldEnd()
6353
    iprot.readStructEnd()
6354
 
6355
  def write(self, oprot):
6356
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6357
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6358
      return
6359
    oprot.writeStructBegin('getItemPricing_args')
6360
    if self.itemId is not None:
6361
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6362
      oprot.writeI64(self.itemId)
6363
      oprot.writeFieldEnd()
6364
    if self.vendorId is not None:
6365
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
6366
      oprot.writeI64(self.vendorId)
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 getItemPricing_result:
6387
  """
6388
  Attributes:
6389
   - success
6390
   - cex
6391
  """
6392
 
6393
  thrift_spec = (
6394
    (0, TType.STRUCT, 'success', (VendorItemPricing, VendorItemPricing.thrift_spec), None, ), # 0
6395
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6396
  )
6397
 
6398
  def __init__(self, success=None, cex=None,):
6399
    self.success = success
6400
    self.cex = cex
6401
 
6402
  def read(self, iprot):
6403
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6404
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6405
      return
6406
    iprot.readStructBegin()
6407
    while True:
6408
      (fname, ftype, fid) = iprot.readFieldBegin()
6409
      if ftype == TType.STOP:
6410
        break
6411
      if fid == 0:
6412
        if ftype == TType.STRUCT:
6413
          self.success = VendorItemPricing()
6414
          self.success.read(iprot)
6415
        else:
6416
          iprot.skip(ftype)
6417
      elif fid == 1:
6418
        if ftype == TType.STRUCT:
6419
          self.cex = InventoryServiceException()
6420
          self.cex.read(iprot)
6421
        else:
6422
          iprot.skip(ftype)
6423
      else:
6424
        iprot.skip(ftype)
6425
      iprot.readFieldEnd()
6426
    iprot.readStructEnd()
6427
 
6428
  def write(self, oprot):
6429
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6430
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6431
      return
6432
    oprot.writeStructBegin('getItemPricing_result')
6433
    if self.success is not None:
6434
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6435
      self.success.write(oprot)
6436
      oprot.writeFieldEnd()
6437
    if self.cex is not None:
6438
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6439
      self.cex.write(oprot)
6440
      oprot.writeFieldEnd()
6441
    oprot.writeFieldStop()
6442
    oprot.writeStructEnd()
6443
 
6444
  def validate(self):
6445
    return
6446
 
6447
 
6448
  def __repr__(self):
6449
    L = ['%s=%r' % (key, value)
6450
      for key, value in self.__dict__.iteritems()]
6451
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6452
 
6453
  def __eq__(self, other):
6454
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6455
 
6456
  def __ne__(self, other):
6457
    return not (self == other)
6458
 
6459
class getAllItemPricing_args:
6460
  """
6461
  Attributes:
6462
   - itemId
6463
  """
6464
 
6465
  thrift_spec = (
6466
    None, # 0
6467
    (1, TType.I64, 'itemId', None, None, ), # 1
6468
  )
6469
 
6470
  def __init__(self, itemId=None,):
6471
    self.itemId = itemId
6472
 
6473
  def read(self, iprot):
6474
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6475
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6476
      return
6477
    iprot.readStructBegin()
6478
    while True:
6479
      (fname, ftype, fid) = iprot.readFieldBegin()
6480
      if ftype == TType.STOP:
6481
        break
6482
      if fid == 1:
6483
        if ftype == TType.I64:
6484
          self.itemId = iprot.readI64();
6485
        else:
6486
          iprot.skip(ftype)
6487
      else:
6488
        iprot.skip(ftype)
6489
      iprot.readFieldEnd()
6490
    iprot.readStructEnd()
6491
 
6492
  def write(self, oprot):
6493
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6494
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6495
      return
6496
    oprot.writeStructBegin('getAllItemPricing_args')
6497
    if self.itemId is not None:
6498
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6499
      oprot.writeI64(self.itemId)
6500
      oprot.writeFieldEnd()
6501
    oprot.writeFieldStop()
6502
    oprot.writeStructEnd()
6503
 
6504
  def validate(self):
6505
    return
6506
 
6507
 
6508
  def __repr__(self):
6509
    L = ['%s=%r' % (key, value)
6510
      for key, value in self.__dict__.iteritems()]
6511
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6512
 
6513
  def __eq__(self, other):
6514
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6515
 
6516
  def __ne__(self, other):
6517
    return not (self == other)
6518
 
6519
class getAllItemPricing_result:
6520
  """
6521
  Attributes:
6522
   - success
6523
   - cex
6524
  """
6525
 
6526
  thrift_spec = (
6527
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemPricing, VendorItemPricing.thrift_spec)), None, ), # 0
6528
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6529
  )
6530
 
6531
  def __init__(self, success=None, cex=None,):
6532
    self.success = success
6533
    self.cex = cex
6534
 
6535
  def read(self, iprot):
6536
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6537
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6538
      return
6539
    iprot.readStructBegin()
6540
    while True:
6541
      (fname, ftype, fid) = iprot.readFieldBegin()
6542
      if ftype == TType.STOP:
6543
        break
6544
      if fid == 0:
6545
        if ftype == TType.LIST:
6546
          self.success = []
8182 amar.kumar 6547
          (_etype69, _size66) = iprot.readListBegin()
6548
          for _i70 in xrange(_size66):
6549
            _elem71 = VendorItemPricing()
6550
            _elem71.read(iprot)
6551
            self.success.append(_elem71)
5944 mandeep.dh 6552
          iprot.readListEnd()
6553
        else:
6554
          iprot.skip(ftype)
6555
      elif fid == 1:
6556
        if ftype == TType.STRUCT:
6557
          self.cex = InventoryServiceException()
6558
          self.cex.read(iprot)
6559
        else:
6560
          iprot.skip(ftype)
6561
      else:
6562
        iprot.skip(ftype)
6563
      iprot.readFieldEnd()
6564
    iprot.readStructEnd()
6565
 
6566
  def write(self, oprot):
6567
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6568
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6569
      return
6570
    oprot.writeStructBegin('getAllItemPricing_result')
6571
    if self.success is not None:
6572
      oprot.writeFieldBegin('success', TType.LIST, 0)
6573
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 6574
      for iter72 in self.success:
6575
        iter72.write(oprot)
5944 mandeep.dh 6576
      oprot.writeListEnd()
6577
      oprot.writeFieldEnd()
6578
    if self.cex is not None:
6579
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6580
      self.cex.write(oprot)
6581
      oprot.writeFieldEnd()
6582
    oprot.writeFieldStop()
6583
    oprot.writeStructEnd()
6584
 
6585
  def validate(self):
6586
    return
6587
 
6588
 
6589
  def __repr__(self):
6590
    L = ['%s=%r' % (key, value)
6591
      for key, value in self.__dict__.iteritems()]
6592
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6593
 
6594
  def __eq__(self, other):
6595
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6596
 
6597
  def __ne__(self, other):
6598
    return not (self == other)
6599
 
6600
class addVendorItemPricing_args:
6601
  """
6602
  Attributes:
6603
   - vendorItemPricing
6604
  """
6605
 
6606
  thrift_spec = (
6607
    None, # 0
6608
    (1, TType.STRUCT, 'vendorItemPricing', (VendorItemPricing, VendorItemPricing.thrift_spec), None, ), # 1
6609
  )
6610
 
6611
  def __init__(self, vendorItemPricing=None,):
6612
    self.vendorItemPricing = vendorItemPricing
6613
 
6614
  def read(self, iprot):
6615
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6616
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6617
      return
6618
    iprot.readStructBegin()
6619
    while True:
6620
      (fname, ftype, fid) = iprot.readFieldBegin()
6621
      if ftype == TType.STOP:
6622
        break
6623
      if fid == 1:
6624
        if ftype == TType.STRUCT:
6625
          self.vendorItemPricing = VendorItemPricing()
6626
          self.vendorItemPricing.read(iprot)
6627
        else:
6628
          iprot.skip(ftype)
6629
      else:
6630
        iprot.skip(ftype)
6631
      iprot.readFieldEnd()
6632
    iprot.readStructEnd()
6633
 
6634
  def write(self, oprot):
6635
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6636
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6637
      return
6638
    oprot.writeStructBegin('addVendorItemPricing_args')
6639
    if self.vendorItemPricing is not None:
6640
      oprot.writeFieldBegin('vendorItemPricing', TType.STRUCT, 1)
6641
      self.vendorItemPricing.write(oprot)
6642
      oprot.writeFieldEnd()
6643
    oprot.writeFieldStop()
6644
    oprot.writeStructEnd()
6645
 
6646
  def validate(self):
6647
    return
6648
 
6649
 
6650
  def __repr__(self):
6651
    L = ['%s=%r' % (key, value)
6652
      for key, value in self.__dict__.iteritems()]
6653
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6654
 
6655
  def __eq__(self, other):
6656
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6657
 
6658
  def __ne__(self, other):
6659
    return not (self == other)
6660
 
6661
class addVendorItemPricing_result:
6662
  """
6663
  Attributes:
6664
   - cex
6665
  """
6666
 
6667
  thrift_spec = (
6668
    None, # 0
6669
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6670
  )
6671
 
6672
  def __init__(self, cex=None,):
6673
    self.cex = cex
6674
 
6675
  def read(self, iprot):
6676
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6677
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6678
      return
6679
    iprot.readStructBegin()
6680
    while True:
6681
      (fname, ftype, fid) = iprot.readFieldBegin()
6682
      if ftype == TType.STOP:
6683
        break
6684
      if fid == 1:
6685
        if ftype == TType.STRUCT:
6686
          self.cex = InventoryServiceException()
6687
          self.cex.read(iprot)
6688
        else:
6689
          iprot.skip(ftype)
6690
      else:
6691
        iprot.skip(ftype)
6692
      iprot.readFieldEnd()
6693
    iprot.readStructEnd()
6694
 
6695
  def write(self, oprot):
6696
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6697
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6698
      return
6699
    oprot.writeStructBegin('addVendorItemPricing_result')
6700
    if self.cex is not None:
6701
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6702
      self.cex.write(oprot)
6703
      oprot.writeFieldEnd()
6704
    oprot.writeFieldStop()
6705
    oprot.writeStructEnd()
6706
 
6707
  def validate(self):
6708
    return
6709
 
6710
 
6711
  def __repr__(self):
6712
    L = ['%s=%r' % (key, value)
6713
      for key, value in self.__dict__.iteritems()]
6714
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6715
 
6716
  def __eq__(self, other):
6717
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6718
 
6719
  def __ne__(self, other):
6720
    return not (self == other)
6721
 
6722
class getVendor_args:
6723
  """
6724
  Attributes:
6725
   - vendorId
6726
  """
6727
 
6728
  thrift_spec = (
6729
    None, # 0
6730
    (1, TType.I64, 'vendorId', None, None, ), # 1
6731
  )
6732
 
6733
  def __init__(self, vendorId=None,):
6734
    self.vendorId = vendorId
6735
 
6736
  def read(self, iprot):
6737
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6738
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6739
      return
6740
    iprot.readStructBegin()
6741
    while True:
6742
      (fname, ftype, fid) = iprot.readFieldBegin()
6743
      if ftype == TType.STOP:
6744
        break
6745
      if fid == 1:
6746
        if ftype == TType.I64:
6747
          self.vendorId = iprot.readI64();
6748
        else:
6749
          iprot.skip(ftype)
6750
      else:
6751
        iprot.skip(ftype)
6752
      iprot.readFieldEnd()
6753
    iprot.readStructEnd()
6754
 
6755
  def write(self, oprot):
6756
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6757
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6758
      return
6759
    oprot.writeStructBegin('getVendor_args')
6760
    if self.vendorId is not None:
6761
      oprot.writeFieldBegin('vendorId', TType.I64, 1)
6762
      oprot.writeI64(self.vendorId)
6763
      oprot.writeFieldEnd()
6764
    oprot.writeFieldStop()
6765
    oprot.writeStructEnd()
6766
 
6767
  def validate(self):
6768
    return
6769
 
6770
 
6771
  def __repr__(self):
6772
    L = ['%s=%r' % (key, value)
6773
      for key, value in self.__dict__.iteritems()]
6774
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6775
 
6776
  def __eq__(self, other):
6777
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6778
 
6779
  def __ne__(self, other):
6780
    return not (self == other)
6781
 
6782
class getVendor_result:
6783
  """
6784
  Attributes:
6785
   - success
6786
  """
6787
 
6788
  thrift_spec = (
6789
    (0, TType.STRUCT, 'success', (Vendor, Vendor.thrift_spec), None, ), # 0
6790
  )
6791
 
6792
  def __init__(self, success=None,):
6793
    self.success = success
6794
 
6795
  def read(self, iprot):
6796
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6797
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6798
      return
6799
    iprot.readStructBegin()
6800
    while True:
6801
      (fname, ftype, fid) = iprot.readFieldBegin()
6802
      if ftype == TType.STOP:
6803
        break
6804
      if fid == 0:
6805
        if ftype == TType.STRUCT:
6806
          self.success = Vendor()
6807
          self.success.read(iprot)
6808
        else:
6809
          iprot.skip(ftype)
6810
      else:
6811
        iprot.skip(ftype)
6812
      iprot.readFieldEnd()
6813
    iprot.readStructEnd()
6814
 
6815
  def write(self, oprot):
6816
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6817
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6818
      return
6819
    oprot.writeStructBegin('getVendor_result')
6820
    if self.success is not None:
6821
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6822
      self.success.write(oprot)
6823
      oprot.writeFieldEnd()
6824
    oprot.writeFieldStop()
6825
    oprot.writeStructEnd()
6826
 
6827
  def validate(self):
6828
    return
6829
 
6830
 
6831
  def __repr__(self):
6832
    L = ['%s=%r' % (key, value)
6833
      for key, value in self.__dict__.iteritems()]
6834
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6835
 
6836
  def __eq__(self, other):
6837
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6838
 
6839
  def __ne__(self, other):
6840
    return not (self == other)
6841
 
6842
class getAllVendors_args:
6843
 
6844
  thrift_spec = (
6845
  )
6846
 
6847
  def read(self, iprot):
6848
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6849
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6850
      return
6851
    iprot.readStructBegin()
6852
    while True:
6853
      (fname, ftype, fid) = iprot.readFieldBegin()
6854
      if ftype == TType.STOP:
6855
        break
6856
      else:
6857
        iprot.skip(ftype)
6858
      iprot.readFieldEnd()
6859
    iprot.readStructEnd()
6860
 
6861
  def write(self, oprot):
6862
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6863
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6864
      return
6865
    oprot.writeStructBegin('getAllVendors_args')
6866
    oprot.writeFieldStop()
6867
    oprot.writeStructEnd()
6868
 
6869
  def validate(self):
6870
    return
6871
 
6872
 
6873
  def __repr__(self):
6874
    L = ['%s=%r' % (key, value)
6875
      for key, value in self.__dict__.iteritems()]
6876
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6877
 
6878
  def __eq__(self, other):
6879
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6880
 
6881
  def __ne__(self, other):
6882
    return not (self == other)
6883
 
6884
class getAllVendors_result:
6885
  """
6886
  Attributes:
6887
   - success
6888
  """
6889
 
6890
  thrift_spec = (
6891
    (0, TType.LIST, 'success', (TType.STRUCT,(Vendor, Vendor.thrift_spec)), None, ), # 0
6892
  )
6893
 
6894
  def __init__(self, success=None,):
6895
    self.success = success
6896
 
6897
  def read(self, iprot):
6898
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6899
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6900
      return
6901
    iprot.readStructBegin()
6902
    while True:
6903
      (fname, ftype, fid) = iprot.readFieldBegin()
6904
      if ftype == TType.STOP:
6905
        break
6906
      if fid == 0:
6907
        if ftype == TType.LIST:
6908
          self.success = []
8182 amar.kumar 6909
          (_etype76, _size73) = iprot.readListBegin()
6910
          for _i77 in xrange(_size73):
6911
            _elem78 = Vendor()
6912
            _elem78.read(iprot)
6913
            self.success.append(_elem78)
5944 mandeep.dh 6914
          iprot.readListEnd()
6915
        else:
6916
          iprot.skip(ftype)
6917
      else:
6918
        iprot.skip(ftype)
6919
      iprot.readFieldEnd()
6920
    iprot.readStructEnd()
6921
 
6922
  def write(self, oprot):
6923
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6924
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6925
      return
6926
    oprot.writeStructBegin('getAllVendors_result')
6927
    if self.success is not None:
6928
      oprot.writeFieldBegin('success', TType.LIST, 0)
6929
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 6930
      for iter79 in self.success:
6931
        iter79.write(oprot)
5944 mandeep.dh 6932
      oprot.writeListEnd()
6933
      oprot.writeFieldEnd()
6934
    oprot.writeFieldStop()
6935
    oprot.writeStructEnd()
6936
 
6937
  def validate(self):
6938
    return
6939
 
6940
 
6941
  def __repr__(self):
6942
    L = ['%s=%r' % (key, value)
6943
      for key, value in self.__dict__.iteritems()]
6944
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6945
 
6946
  def __eq__(self, other):
6947
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6948
 
6949
  def __ne__(self, other):
6950
    return not (self == other)
6951
 
6952
class addVendorItemMapping_args:
6953
  """
6954
  Attributes:
6955
   - key
6956
   - vendorItemMapping
6957
  """
6958
 
6959
  thrift_spec = (
6960
    None, # 0
6961
    (1, TType.STRING, 'key', None, None, ), # 1
6962
    (2, TType.STRUCT, 'vendorItemMapping', (VendorItemMapping, VendorItemMapping.thrift_spec), None, ), # 2
6963
  )
6964
 
6965
  def __init__(self, key=None, vendorItemMapping=None,):
6966
    self.key = key
6967
    self.vendorItemMapping = vendorItemMapping
6968
 
6969
  def read(self, iprot):
6970
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6971
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6972
      return
6973
    iprot.readStructBegin()
6974
    while True:
6975
      (fname, ftype, fid) = iprot.readFieldBegin()
6976
      if ftype == TType.STOP:
6977
        break
6978
      if fid == 1:
6979
        if ftype == TType.STRING:
6980
          self.key = iprot.readString();
6981
        else:
6982
          iprot.skip(ftype)
6983
      elif fid == 2:
6984
        if ftype == TType.STRUCT:
6985
          self.vendorItemMapping = VendorItemMapping()
6986
          self.vendorItemMapping.read(iprot)
6987
        else:
6988
          iprot.skip(ftype)
6989
      else:
6990
        iprot.skip(ftype)
6991
      iprot.readFieldEnd()
6992
    iprot.readStructEnd()
6993
 
6994
  def write(self, oprot):
6995
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6996
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6997
      return
6998
    oprot.writeStructBegin('addVendorItemMapping_args')
6999
    if self.key is not None:
7000
      oprot.writeFieldBegin('key', TType.STRING, 1)
7001
      oprot.writeString(self.key)
7002
      oprot.writeFieldEnd()
7003
    if self.vendorItemMapping is not None:
7004
      oprot.writeFieldBegin('vendorItemMapping', TType.STRUCT, 2)
7005
      self.vendorItemMapping.write(oprot)
7006
      oprot.writeFieldEnd()
7007
    oprot.writeFieldStop()
7008
    oprot.writeStructEnd()
7009
 
7010
  def validate(self):
7011
    return
7012
 
7013
 
7014
  def __repr__(self):
7015
    L = ['%s=%r' % (key, value)
7016
      for key, value in self.__dict__.iteritems()]
7017
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7018
 
7019
  def __eq__(self, other):
7020
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7021
 
7022
  def __ne__(self, other):
7023
    return not (self == other)
7024
 
7025
class addVendorItemMapping_result:
7026
  """
7027
  Attributes:
7028
   - cex
7029
  """
7030
 
7031
  thrift_spec = (
7032
    None, # 0
7033
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7034
  )
7035
 
7036
  def __init__(self, cex=None,):
7037
    self.cex = cex
7038
 
7039
  def read(self, iprot):
7040
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7041
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7042
      return
7043
    iprot.readStructBegin()
7044
    while True:
7045
      (fname, ftype, fid) = iprot.readFieldBegin()
7046
      if ftype == TType.STOP:
7047
        break
7048
      if fid == 1:
7049
        if ftype == TType.STRUCT:
7050
          self.cex = InventoryServiceException()
7051
          self.cex.read(iprot)
7052
        else:
7053
          iprot.skip(ftype)
7054
      else:
7055
        iprot.skip(ftype)
7056
      iprot.readFieldEnd()
7057
    iprot.readStructEnd()
7058
 
7059
  def write(self, oprot):
7060
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7061
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7062
      return
7063
    oprot.writeStructBegin('addVendorItemMapping_result')
7064
    if self.cex is not None:
7065
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7066
      self.cex.write(oprot)
7067
      oprot.writeFieldEnd()
7068
    oprot.writeFieldStop()
7069
    oprot.writeStructEnd()
7070
 
7071
  def validate(self):
7072
    return
7073
 
7074
 
7075
  def __repr__(self):
7076
    L = ['%s=%r' % (key, value)
7077
      for key, value in self.__dict__.iteritems()]
7078
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7079
 
7080
  def __eq__(self, other):
7081
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7082
 
7083
  def __ne__(self, other):
7084
    return not (self == other)
7085
 
7086
class getVendorItemMappings_args:
7087
  """
7088
  Attributes:
7089
   - itemId
7090
  """
7091
 
7092
  thrift_spec = (
7093
    None, # 0
7094
    (1, TType.I64, 'itemId', None, None, ), # 1
7095
  )
7096
 
7097
  def __init__(self, itemId=None,):
7098
    self.itemId = itemId
7099
 
7100
  def read(self, iprot):
7101
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7102
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7103
      return
7104
    iprot.readStructBegin()
7105
    while True:
7106
      (fname, ftype, fid) = iprot.readFieldBegin()
7107
      if ftype == TType.STOP:
7108
        break
7109
      if fid == 1:
7110
        if ftype == TType.I64:
7111
          self.itemId = iprot.readI64();
7112
        else:
7113
          iprot.skip(ftype)
7114
      else:
7115
        iprot.skip(ftype)
7116
      iprot.readFieldEnd()
7117
    iprot.readStructEnd()
7118
 
7119
  def write(self, oprot):
7120
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7121
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7122
      return
7123
    oprot.writeStructBegin('getVendorItemMappings_args')
7124
    if self.itemId is not None:
7125
      oprot.writeFieldBegin('itemId', TType.I64, 1)
7126
      oprot.writeI64(self.itemId)
7127
      oprot.writeFieldEnd()
7128
    oprot.writeFieldStop()
7129
    oprot.writeStructEnd()
7130
 
7131
  def validate(self):
7132
    return
7133
 
7134
 
7135
  def __repr__(self):
7136
    L = ['%s=%r' % (key, value)
7137
      for key, value in self.__dict__.iteritems()]
7138
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7139
 
7140
  def __eq__(self, other):
7141
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7142
 
7143
  def __ne__(self, other):
7144
    return not (self == other)
7145
 
7146
class getVendorItemMappings_result:
7147
  """
7148
  Attributes:
7149
   - success
7150
   - cex
7151
  """
7152
 
7153
  thrift_spec = (
7154
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemMapping, VendorItemMapping.thrift_spec)), None, ), # 0
7155
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7156
  )
7157
 
7158
  def __init__(self, success=None, cex=None,):
7159
    self.success = success
7160
    self.cex = cex
7161
 
7162
  def read(self, iprot):
7163
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7164
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7165
      return
7166
    iprot.readStructBegin()
7167
    while True:
7168
      (fname, ftype, fid) = iprot.readFieldBegin()
7169
      if ftype == TType.STOP:
7170
        break
7171
      if fid == 0:
7172
        if ftype == TType.LIST:
7173
          self.success = []
8182 amar.kumar 7174
          (_etype83, _size80) = iprot.readListBegin()
7175
          for _i84 in xrange(_size80):
7176
            _elem85 = VendorItemMapping()
7177
            _elem85.read(iprot)
7178
            self.success.append(_elem85)
5944 mandeep.dh 7179
          iprot.readListEnd()
7180
        else:
7181
          iprot.skip(ftype)
7182
      elif fid == 1:
7183
        if ftype == TType.STRUCT:
7184
          self.cex = InventoryServiceException()
7185
          self.cex.read(iprot)
7186
        else:
7187
          iprot.skip(ftype)
7188
      else:
7189
        iprot.skip(ftype)
7190
      iprot.readFieldEnd()
7191
    iprot.readStructEnd()
7192
 
7193
  def write(self, oprot):
7194
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7195
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7196
      return
7197
    oprot.writeStructBegin('getVendorItemMappings_result')
7198
    if self.success is not None:
7199
      oprot.writeFieldBegin('success', TType.LIST, 0)
7200
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7201
      for iter86 in self.success:
7202
        iter86.write(oprot)
5944 mandeep.dh 7203
      oprot.writeListEnd()
7204
      oprot.writeFieldEnd()
7205
    if self.cex is not None:
7206
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7207
      self.cex.write(oprot)
7208
      oprot.writeFieldEnd()
7209
    oprot.writeFieldStop()
7210
    oprot.writeStructEnd()
7211
 
7212
  def validate(self):
7213
    return
7214
 
7215
 
7216
  def __repr__(self):
7217
    L = ['%s=%r' % (key, value)
7218
      for key, value in self.__dict__.iteritems()]
7219
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7220
 
7221
  def __eq__(self, other):
7222
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7223
 
7224
  def __ne__(self, other):
7225
    return not (self == other)
7226
 
7227
class getPendingOrdersInventory_args:
7228
  """
7229
  Attributes:
7230
   - vendorid
7231
  """
7232
 
7233
  thrift_spec = (
7234
    None, # 0
7235
    (1, TType.I64, 'vendorid', None, None, ), # 1
7236
  )
7237
 
7238
  def __init__(self, vendorid=None,):
7239
    self.vendorid = vendorid
7240
 
7241
  def read(self, iprot):
7242
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7243
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7244
      return
7245
    iprot.readStructBegin()
7246
    while True:
7247
      (fname, ftype, fid) = iprot.readFieldBegin()
7248
      if ftype == TType.STOP:
7249
        break
7250
      if fid == 1:
7251
        if ftype == TType.I64:
7252
          self.vendorid = iprot.readI64();
7253
        else:
7254
          iprot.skip(ftype)
7255
      else:
7256
        iprot.skip(ftype)
7257
      iprot.readFieldEnd()
7258
    iprot.readStructEnd()
7259
 
7260
  def write(self, oprot):
7261
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7262
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7263
      return
7264
    oprot.writeStructBegin('getPendingOrdersInventory_args')
7265
    if self.vendorid is not None:
7266
      oprot.writeFieldBegin('vendorid', TType.I64, 1)
7267
      oprot.writeI64(self.vendorid)
7268
      oprot.writeFieldEnd()
7269
    oprot.writeFieldStop()
7270
    oprot.writeStructEnd()
7271
 
7272
  def validate(self):
7273
    return
7274
 
7275
 
7276
  def __repr__(self):
7277
    L = ['%s=%r' % (key, value)
7278
      for key, value in self.__dict__.iteritems()]
7279
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7280
 
7281
  def __eq__(self, other):
7282
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7283
 
7284
  def __ne__(self, other):
7285
    return not (self == other)
7286
 
7287
class getPendingOrdersInventory_result:
7288
  """
7289
  Attributes:
7290
   - success
7291
  """
7292
 
7293
  thrift_spec = (
7294
    (0, TType.LIST, 'success', (TType.STRUCT,(AvailableAndReservedStock, AvailableAndReservedStock.thrift_spec)), None, ), # 0
7295
  )
7296
 
7297
  def __init__(self, success=None,):
7298
    self.success = success
7299
 
7300
  def read(self, iprot):
7301
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7302
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7303
      return
7304
    iprot.readStructBegin()
7305
    while True:
7306
      (fname, ftype, fid) = iprot.readFieldBegin()
7307
      if ftype == TType.STOP:
7308
        break
7309
      if fid == 0:
7310
        if ftype == TType.LIST:
7311
          self.success = []
8182 amar.kumar 7312
          (_etype90, _size87) = iprot.readListBegin()
7313
          for _i91 in xrange(_size87):
7314
            _elem92 = AvailableAndReservedStock()
7315
            _elem92.read(iprot)
7316
            self.success.append(_elem92)
5944 mandeep.dh 7317
          iprot.readListEnd()
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('getPendingOrdersInventory_result')
7330
    if self.success is not None:
7331
      oprot.writeFieldBegin('success', TType.LIST, 0)
7332
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7333
      for iter93 in self.success:
7334
        iter93.write(oprot)
5944 mandeep.dh 7335
      oprot.writeListEnd()
7336
      oprot.writeFieldEnd()
7337
    oprot.writeFieldStop()
7338
    oprot.writeStructEnd()
7339
 
7340
  def validate(self):
7341
    return
7342
 
7343
 
7344
  def __repr__(self):
7345
    L = ['%s=%r' % (key, value)
7346
      for key, value in self.__dict__.iteritems()]
7347
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7348
 
7349
  def __eq__(self, other):
7350
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7351
 
7352
  def __ne__(self, other):
7353
    return not (self == other)
7354
 
7355
class getWarehouses_args:
7356
  """
7357
  Attributes:
7358
   - warehouseType
7359
   - inventoryType
7360
   - vendorId
7361
   - billingWarehouseId
7362
   - shippingWarehouseId
7363
  """
7364
 
7365
  thrift_spec = (
7366
    None, # 0
7367
    (1, TType.I32, 'warehouseType', None, None, ), # 1
7368
    (2, TType.I32, 'inventoryType', None, None, ), # 2
7369
    (3, TType.I64, 'vendorId', None, None, ), # 3
7370
    (4, TType.I64, 'billingWarehouseId', None, None, ), # 4
7371
    (5, TType.I64, 'shippingWarehouseId', None, None, ), # 5
7372
  )
7373
 
7374
  def __init__(self, warehouseType=None, inventoryType=None, vendorId=None, billingWarehouseId=None, shippingWarehouseId=None,):
7375
    self.warehouseType = warehouseType
7376
    self.inventoryType = inventoryType
7377
    self.vendorId = vendorId
7378
    self.billingWarehouseId = billingWarehouseId
7379
    self.shippingWarehouseId = shippingWarehouseId
7380
 
7381
  def read(self, iprot):
7382
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7383
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7384
      return
7385
    iprot.readStructBegin()
7386
    while True:
7387
      (fname, ftype, fid) = iprot.readFieldBegin()
7388
      if ftype == TType.STOP:
7389
        break
7390
      if fid == 1:
7391
        if ftype == TType.I32:
7392
          self.warehouseType = iprot.readI32();
7393
        else:
7394
          iprot.skip(ftype)
7395
      elif fid == 2:
7396
        if ftype == TType.I32:
7397
          self.inventoryType = iprot.readI32();
7398
        else:
7399
          iprot.skip(ftype)
7400
      elif fid == 3:
7401
        if ftype == TType.I64:
7402
          self.vendorId = iprot.readI64();
7403
        else:
7404
          iprot.skip(ftype)
7405
      elif fid == 4:
7406
        if ftype == TType.I64:
7407
          self.billingWarehouseId = iprot.readI64();
7408
        else:
7409
          iprot.skip(ftype)
7410
      elif fid == 5:
7411
        if ftype == TType.I64:
7412
          self.shippingWarehouseId = iprot.readI64();
7413
        else:
7414
          iprot.skip(ftype)
7415
      else:
7416
        iprot.skip(ftype)
7417
      iprot.readFieldEnd()
7418
    iprot.readStructEnd()
7419
 
7420
  def write(self, oprot):
7421
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7422
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7423
      return
7424
    oprot.writeStructBegin('getWarehouses_args')
7425
    if self.warehouseType is not None:
7426
      oprot.writeFieldBegin('warehouseType', TType.I32, 1)
7427
      oprot.writeI32(self.warehouseType)
7428
      oprot.writeFieldEnd()
7429
    if self.inventoryType is not None:
7430
      oprot.writeFieldBegin('inventoryType', TType.I32, 2)
7431
      oprot.writeI32(self.inventoryType)
7432
      oprot.writeFieldEnd()
7433
    if self.vendorId is not None:
7434
      oprot.writeFieldBegin('vendorId', TType.I64, 3)
7435
      oprot.writeI64(self.vendorId)
7436
      oprot.writeFieldEnd()
7437
    if self.billingWarehouseId is not None:
7438
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 4)
7439
      oprot.writeI64(self.billingWarehouseId)
7440
      oprot.writeFieldEnd()
7441
    if self.shippingWarehouseId is not None:
7442
      oprot.writeFieldBegin('shippingWarehouseId', TType.I64, 5)
7443
      oprot.writeI64(self.shippingWarehouseId)
7444
      oprot.writeFieldEnd()
7445
    oprot.writeFieldStop()
7446
    oprot.writeStructEnd()
7447
 
7448
  def validate(self):
7449
    return
7450
 
7451
 
7452
  def __repr__(self):
7453
    L = ['%s=%r' % (key, value)
7454
      for key, value in self.__dict__.iteritems()]
7455
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7456
 
7457
  def __eq__(self, other):
7458
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7459
 
7460
  def __ne__(self, other):
7461
    return not (self == other)
7462
 
7463
class getWarehouses_result:
7464
  """
7465
  Attributes:
7466
   - success
7467
  """
7468
 
7469
  thrift_spec = (
7470
    (0, TType.LIST, 'success', (TType.STRUCT,(Warehouse, Warehouse.thrift_spec)), None, ), # 0
7471
  )
7472
 
7473
  def __init__(self, success=None,):
7474
    self.success = success
7475
 
7476
  def read(self, iprot):
7477
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7478
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7479
      return
7480
    iprot.readStructBegin()
7481
    while True:
7482
      (fname, ftype, fid) = iprot.readFieldBegin()
7483
      if ftype == TType.STOP:
7484
        break
7485
      if fid == 0:
7486
        if ftype == TType.LIST:
7487
          self.success = []
8182 amar.kumar 7488
          (_etype97, _size94) = iprot.readListBegin()
7489
          for _i98 in xrange(_size94):
7490
            _elem99 = Warehouse()
7491
            _elem99.read(iprot)
7492
            self.success.append(_elem99)
5944 mandeep.dh 7493
          iprot.readListEnd()
7494
        else:
7495
          iprot.skip(ftype)
7496
      else:
7497
        iprot.skip(ftype)
7498
      iprot.readFieldEnd()
7499
    iprot.readStructEnd()
7500
 
7501
  def write(self, oprot):
7502
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7503
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7504
      return
7505
    oprot.writeStructBegin('getWarehouses_result')
7506
    if self.success is not None:
7507
      oprot.writeFieldBegin('success', TType.LIST, 0)
7508
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 7509
      for iter100 in self.success:
7510
        iter100.write(oprot)
5944 mandeep.dh 7511
      oprot.writeListEnd()
7512
      oprot.writeFieldEnd()
7513
    oprot.writeFieldStop()
7514
    oprot.writeStructEnd()
7515
 
7516
  def validate(self):
7517
    return
7518
 
7519
 
7520
  def __repr__(self):
7521
    L = ['%s=%r' % (key, value)
7522
      for key, value in self.__dict__.iteritems()]
7523
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7524
 
7525
  def __eq__(self, other):
7526
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7527
 
7528
  def __ne__(self, other):
7529
    return not (self == other)
7530
 
7531
class resetAvailability_args:
7532
  """
7533
  Attributes:
7534
   - itemKey
7535
   - vendorId
7536
   - quantity
7537
   - warehouseId
7538
  """
7539
 
7540
  thrift_spec = (
7541
    None, # 0
7542
    (1, TType.STRING, 'itemKey', None, None, ), # 1
7543
    (2, TType.I64, 'vendorId', None, None, ), # 2
7544
    (3, TType.I64, 'quantity', None, None, ), # 3
7545
    (4, TType.I64, 'warehouseId', None, None, ), # 4
7546
  )
7547
 
7548
  def __init__(self, itemKey=None, vendorId=None, quantity=None, warehouseId=None,):
7549
    self.itemKey = itemKey
7550
    self.vendorId = vendorId
7551
    self.quantity = quantity
7552
    self.warehouseId = warehouseId
7553
 
7554
  def read(self, iprot):
7555
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7556
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7557
      return
7558
    iprot.readStructBegin()
7559
    while True:
7560
      (fname, ftype, fid) = iprot.readFieldBegin()
7561
      if ftype == TType.STOP:
7562
        break
7563
      if fid == 1:
7564
        if ftype == TType.STRING:
7565
          self.itemKey = iprot.readString();
7566
        else:
7567
          iprot.skip(ftype)
7568
      elif fid == 2:
7569
        if ftype == TType.I64:
7570
          self.vendorId = iprot.readI64();
7571
        else:
7572
          iprot.skip(ftype)
7573
      elif fid == 3:
7574
        if ftype == TType.I64:
7575
          self.quantity = iprot.readI64();
7576
        else:
7577
          iprot.skip(ftype)
7578
      elif fid == 4:
7579
        if ftype == TType.I64:
7580
          self.warehouseId = iprot.readI64();
7581
        else:
7582
          iprot.skip(ftype)
7583
      else:
7584
        iprot.skip(ftype)
7585
      iprot.readFieldEnd()
7586
    iprot.readStructEnd()
7587
 
7588
  def write(self, oprot):
7589
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7590
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7591
      return
7592
    oprot.writeStructBegin('resetAvailability_args')
7593
    if self.itemKey is not None:
7594
      oprot.writeFieldBegin('itemKey', TType.STRING, 1)
7595
      oprot.writeString(self.itemKey)
7596
      oprot.writeFieldEnd()
7597
    if self.vendorId is not None:
7598
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
7599
      oprot.writeI64(self.vendorId)
7600
      oprot.writeFieldEnd()
7601
    if self.quantity is not None:
7602
      oprot.writeFieldBegin('quantity', TType.I64, 3)
7603
      oprot.writeI64(self.quantity)
7604
      oprot.writeFieldEnd()
7605
    if self.warehouseId is not None:
7606
      oprot.writeFieldBegin('warehouseId', TType.I64, 4)
7607
      oprot.writeI64(self.warehouseId)
7608
      oprot.writeFieldEnd()
7609
    oprot.writeFieldStop()
7610
    oprot.writeStructEnd()
7611
 
7612
  def validate(self):
7613
    return
7614
 
7615
 
7616
  def __repr__(self):
7617
    L = ['%s=%r' % (key, value)
7618
      for key, value in self.__dict__.iteritems()]
7619
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7620
 
7621
  def __eq__(self, other):
7622
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7623
 
7624
  def __ne__(self, other):
7625
    return not (self == other)
7626
 
7627
class resetAvailability_result:
7628
  """
7629
  Attributes:
7630
   - cex
7631
  """
7632
 
7633
  thrift_spec = (
7634
    None, # 0
7635
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7636
  )
7637
 
7638
  def __init__(self, cex=None,):
7639
    self.cex = cex
7640
 
7641
  def read(self, iprot):
7642
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7643
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7644
      return
7645
    iprot.readStructBegin()
7646
    while True:
7647
      (fname, ftype, fid) = iprot.readFieldBegin()
7648
      if ftype == TType.STOP:
7649
        break
7650
      if fid == 1:
7651
        if ftype == TType.STRUCT:
7652
          self.cex = InventoryServiceException()
7653
          self.cex.read(iprot)
7654
        else:
7655
          iprot.skip(ftype)
7656
      else:
7657
        iprot.skip(ftype)
7658
      iprot.readFieldEnd()
7659
    iprot.readStructEnd()
7660
 
7661
  def write(self, oprot):
7662
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7663
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7664
      return
7665
    oprot.writeStructBegin('resetAvailability_result')
7666
    if self.cex is not None:
7667
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7668
      self.cex.write(oprot)
7669
      oprot.writeFieldEnd()
7670
    oprot.writeFieldStop()
7671
    oprot.writeStructEnd()
7672
 
7673
  def validate(self):
7674
    return
7675
 
7676
 
7677
  def __repr__(self):
7678
    L = ['%s=%r' % (key, value)
7679
      for key, value in self.__dict__.iteritems()]
7680
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7681
 
7682
  def __eq__(self, other):
7683
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7684
 
7685
  def __ne__(self, other):
7686
    return not (self == other)
7687
 
7688
class resetAvailabilityForWarehouse_args:
7689
  """
7690
  Attributes:
7691
   - warehouseId
7692
  """
7693
 
7694
  thrift_spec = (
7695
    None, # 0
7696
    (1, TType.I64, 'warehouseId', None, None, ), # 1
7697
  )
7698
 
7699
  def __init__(self, warehouseId=None,):
7700
    self.warehouseId = warehouseId
7701
 
7702
  def read(self, iprot):
7703
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7704
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7705
      return
7706
    iprot.readStructBegin()
7707
    while True:
7708
      (fname, ftype, fid) = iprot.readFieldBegin()
7709
      if ftype == TType.STOP:
7710
        break
7711
      if fid == 1:
7712
        if ftype == TType.I64:
7713
          self.warehouseId = iprot.readI64();
7714
        else:
7715
          iprot.skip(ftype)
7716
      else:
7717
        iprot.skip(ftype)
7718
      iprot.readFieldEnd()
7719
    iprot.readStructEnd()
7720
 
7721
  def write(self, oprot):
7722
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7723
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7724
      return
7725
    oprot.writeStructBegin('resetAvailabilityForWarehouse_args')
7726
    if self.warehouseId is not None:
7727
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
7728
      oprot.writeI64(self.warehouseId)
7729
      oprot.writeFieldEnd()
7730
    oprot.writeFieldStop()
7731
    oprot.writeStructEnd()
7732
 
7733
  def validate(self):
7734
    return
7735
 
7736
 
7737
  def __repr__(self):
7738
    L = ['%s=%r' % (key, value)
7739
      for key, value in self.__dict__.iteritems()]
7740
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7741
 
7742
  def __eq__(self, other):
7743
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7744
 
7745
  def __ne__(self, other):
7746
    return not (self == other)
7747
 
7748
class resetAvailabilityForWarehouse_result:
7749
  """
7750
  Attributes:
7751
   - cex
7752
  """
7753
 
7754
  thrift_spec = (
7755
    None, # 0
7756
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
7757
  )
7758
 
7759
  def __init__(self, cex=None,):
7760
    self.cex = cex
7761
 
7762
  def read(self, iprot):
7763
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7764
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7765
      return
7766
    iprot.readStructBegin()
7767
    while True:
7768
      (fname, ftype, fid) = iprot.readFieldBegin()
7769
      if ftype == TType.STOP:
7770
        break
7771
      if fid == 1:
7772
        if ftype == TType.STRUCT:
7773
          self.cex = InventoryServiceException()
7774
          self.cex.read(iprot)
7775
        else:
7776
          iprot.skip(ftype)
7777
      else:
7778
        iprot.skip(ftype)
7779
      iprot.readFieldEnd()
7780
    iprot.readStructEnd()
7781
 
7782
  def write(self, oprot):
7783
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7784
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7785
      return
7786
    oprot.writeStructBegin('resetAvailabilityForWarehouse_result')
7787
    if self.cex is not None:
7788
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7789
      self.cex.write(oprot)
7790
      oprot.writeFieldEnd()
7791
    oprot.writeFieldStop()
7792
    oprot.writeStructEnd()
7793
 
7794
  def validate(self):
7795
    return
7796
 
7797
 
7798
  def __repr__(self):
7799
    L = ['%s=%r' % (key, value)
7800
      for key, value in self.__dict__.iteritems()]
7801
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7802
 
7803
  def __eq__(self, other):
7804
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7805
 
7806
  def __ne__(self, other):
7807
    return not (self == other)
7808
 
7809
class getItemKeysToBeProcessed_args:
7810
  """
7811
  Attributes:
7812
   - warehouseId
7813
  """
7814
 
7815
  thrift_spec = (
7816
    None, # 0
7817
    (1, TType.I64, 'warehouseId', None, None, ), # 1
7818
  )
7819
 
7820
  def __init__(self, warehouseId=None,):
7821
    self.warehouseId = warehouseId
7822
 
7823
  def read(self, iprot):
7824
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7825
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7826
      return
7827
    iprot.readStructBegin()
7828
    while True:
7829
      (fname, ftype, fid) = iprot.readFieldBegin()
7830
      if ftype == TType.STOP:
7831
        break
7832
      if fid == 1:
7833
        if ftype == TType.I64:
7834
          self.warehouseId = iprot.readI64();
7835
        else:
7836
          iprot.skip(ftype)
7837
      else:
7838
        iprot.skip(ftype)
7839
      iprot.readFieldEnd()
7840
    iprot.readStructEnd()
7841
 
7842
  def write(self, oprot):
7843
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7844
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7845
      return
7846
    oprot.writeStructBegin('getItemKeysToBeProcessed_args')
7847
    if self.warehouseId is not None:
7848
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
7849
      oprot.writeI64(self.warehouseId)
7850
      oprot.writeFieldEnd()
7851
    oprot.writeFieldStop()
7852
    oprot.writeStructEnd()
7853
 
7854
  def validate(self):
7855
    return
7856
 
7857
 
7858
  def __repr__(self):
7859
    L = ['%s=%r' % (key, value)
7860
      for key, value in self.__dict__.iteritems()]
7861
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7862
 
7863
  def __eq__(self, other):
7864
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7865
 
7866
  def __ne__(self, other):
7867
    return not (self == other)
7868
 
7869
class getItemKeysToBeProcessed_result:
7870
  """
7871
  Attributes:
7872
   - success
7873
  """
7874
 
7875
  thrift_spec = (
7876
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
7877
  )
7878
 
7879
  def __init__(self, success=None,):
7880
    self.success = success
7881
 
7882
  def read(self, iprot):
7883
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7884
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7885
      return
7886
    iprot.readStructBegin()
7887
    while True:
7888
      (fname, ftype, fid) = iprot.readFieldBegin()
7889
      if ftype == TType.STOP:
7890
        break
7891
      if fid == 0:
7892
        if ftype == TType.LIST:
7893
          self.success = []
8182 amar.kumar 7894
          (_etype104, _size101) = iprot.readListBegin()
7895
          for _i105 in xrange(_size101):
7896
            _elem106 = iprot.readString();
7897
            self.success.append(_elem106)
5944 mandeep.dh 7898
          iprot.readListEnd()
7899
        else:
7900
          iprot.skip(ftype)
7901
      else:
7902
        iprot.skip(ftype)
7903
      iprot.readFieldEnd()
7904
    iprot.readStructEnd()
7905
 
7906
  def write(self, oprot):
7907
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7908
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7909
      return
7910
    oprot.writeStructBegin('getItemKeysToBeProcessed_result')
7911
    if self.success is not None:
7912
      oprot.writeFieldBegin('success', TType.LIST, 0)
7913
      oprot.writeListBegin(TType.STRING, len(self.success))
8182 amar.kumar 7914
      for iter107 in self.success:
7915
        oprot.writeString(iter107)
5944 mandeep.dh 7916
      oprot.writeListEnd()
7917
      oprot.writeFieldEnd()
7918
    oprot.writeFieldStop()
7919
    oprot.writeStructEnd()
7920
 
7921
  def validate(self):
7922
    return
7923
 
7924
 
7925
  def __repr__(self):
7926
    L = ['%s=%r' % (key, value)
7927
      for key, value in self.__dict__.iteritems()]
7928
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7929
 
7930
  def __eq__(self, other):
7931
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7932
 
7933
  def __ne__(self, other):
7934
    return not (self == other)
7935
 
7936
class markMissedInventoryUpdatesAsProcessed_args:
7937
  """
7938
  Attributes:
7939
   - itemKey
7940
   - warehouseId
7941
  """
7942
 
7943
  thrift_spec = (
7944
    None, # 0
7945
    (1, TType.STRING, 'itemKey', None, None, ), # 1
7946
    (2, TType.I64, 'warehouseId', None, None, ), # 2
7947
  )
7948
 
7949
  def __init__(self, itemKey=None, warehouseId=None,):
7950
    self.itemKey = itemKey
7951
    self.warehouseId = warehouseId
7952
 
7953
  def read(self, iprot):
7954
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7955
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7956
      return
7957
    iprot.readStructBegin()
7958
    while True:
7959
      (fname, ftype, fid) = iprot.readFieldBegin()
7960
      if ftype == TType.STOP:
7961
        break
7962
      if fid == 1:
7963
        if ftype == TType.STRING:
7964
          self.itemKey = iprot.readString();
7965
        else:
7966
          iprot.skip(ftype)
7967
      elif fid == 2:
7968
        if ftype == TType.I64:
7969
          self.warehouseId = iprot.readI64();
7970
        else:
7971
          iprot.skip(ftype)
7972
      else:
7973
        iprot.skip(ftype)
7974
      iprot.readFieldEnd()
7975
    iprot.readStructEnd()
7976
 
7977
  def write(self, oprot):
7978
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7979
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7980
      return
7981
    oprot.writeStructBegin('markMissedInventoryUpdatesAsProcessed_args')
7982
    if self.itemKey is not None:
7983
      oprot.writeFieldBegin('itemKey', TType.STRING, 1)
7984
      oprot.writeString(self.itemKey)
7985
      oprot.writeFieldEnd()
7986
    if self.warehouseId is not None:
7987
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
7988
      oprot.writeI64(self.warehouseId)
7989
      oprot.writeFieldEnd()
7990
    oprot.writeFieldStop()
7991
    oprot.writeStructEnd()
7992
 
7993
  def validate(self):
7994
    return
7995
 
7996
 
7997
  def __repr__(self):
7998
    L = ['%s=%r' % (key, value)
7999
      for key, value in self.__dict__.iteritems()]
8000
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8001
 
8002
  def __eq__(self, other):
8003
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8004
 
8005
  def __ne__(self, other):
8006
    return not (self == other)
8007
 
8008
class markMissedInventoryUpdatesAsProcessed_result:
8009
 
8010
  thrift_spec = (
8011
  )
8012
 
8013
  def read(self, iprot):
8014
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8015
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8016
      return
8017
    iprot.readStructBegin()
8018
    while True:
8019
      (fname, ftype, fid) = iprot.readFieldBegin()
8020
      if ftype == TType.STOP:
8021
        break
8022
      else:
8023
        iprot.skip(ftype)
8024
      iprot.readFieldEnd()
8025
    iprot.readStructEnd()
8026
 
8027
  def write(self, oprot):
8028
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8029
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8030
      return
8031
    oprot.writeStructBegin('markMissedInventoryUpdatesAsProcessed_result')
8032
    oprot.writeFieldStop()
8033
    oprot.writeStructEnd()
8034
 
8035
  def validate(self):
8036
    return
8037
 
8038
 
8039
  def __repr__(self):
8040
    L = ['%s=%r' % (key, value)
8041
      for key, value in self.__dict__.iteritems()]
8042
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8043
 
8044
  def __eq__(self, other):
8045
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8046
 
8047
  def __ne__(self, other):
8048
    return not (self == other)
8049
 
8050
class getIgnoredItemKeys_args:
8051
 
8052
  thrift_spec = (
8053
  )
8054
 
8055
  def read(self, iprot):
8056
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8057
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8058
      return
8059
    iprot.readStructBegin()
8060
    while True:
8061
      (fname, ftype, fid) = iprot.readFieldBegin()
8062
      if ftype == TType.STOP:
8063
        break
8064
      else:
8065
        iprot.skip(ftype)
8066
      iprot.readFieldEnd()
8067
    iprot.readStructEnd()
8068
 
8069
  def write(self, oprot):
8070
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8071
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8072
      return
8073
    oprot.writeStructBegin('getIgnoredItemKeys_args')
8074
    oprot.writeFieldStop()
8075
    oprot.writeStructEnd()
8076
 
8077
  def validate(self):
8078
    return
8079
 
8080
 
8081
  def __repr__(self):
8082
    L = ['%s=%r' % (key, value)
8083
      for key, value in self.__dict__.iteritems()]
8084
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8085
 
8086
  def __eq__(self, other):
8087
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8088
 
8089
  def __ne__(self, other):
8090
    return not (self == other)
8091
 
8092
class getIgnoredItemKeys_result:
8093
  """
8094
  Attributes:
8095
   - success
8096
  """
8097
 
8098
  thrift_spec = (
8099
    (0, TType.MAP, 'success', (TType.STRING,None,TType.MAP,(TType.I64,None,TType.I64,None)), None, ), # 0
8100
  )
8101
 
8102
  def __init__(self, success=None,):
8103
    self.success = success
8104
 
8105
  def read(self, iprot):
8106
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8107
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8108
      return
8109
    iprot.readStructBegin()
8110
    while True:
8111
      (fname, ftype, fid) = iprot.readFieldBegin()
8112
      if ftype == TType.STOP:
8113
        break
8114
      if fid == 0:
8115
        if ftype == TType.MAP:
8116
          self.success = {}
8182 amar.kumar 8117
          (_ktype109, _vtype110, _size108 ) = iprot.readMapBegin() 
8118
          for _i112 in xrange(_size108):
8119
            _key113 = iprot.readString();
8120
            _val114 = {}
8121
            (_ktype116, _vtype117, _size115 ) = iprot.readMapBegin() 
8122
            for _i119 in xrange(_size115):
8123
              _key120 = iprot.readI64();
8124
              _val121 = iprot.readI64();
8125
              _val114[_key120] = _val121
5944 mandeep.dh 8126
            iprot.readMapEnd()
8182 amar.kumar 8127
            self.success[_key113] = _val114
5944 mandeep.dh 8128
          iprot.readMapEnd()
8129
        else:
8130
          iprot.skip(ftype)
8131
      else:
8132
        iprot.skip(ftype)
8133
      iprot.readFieldEnd()
8134
    iprot.readStructEnd()
8135
 
8136
  def write(self, oprot):
8137
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8138
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8139
      return
8140
    oprot.writeStructBegin('getIgnoredItemKeys_result')
8141
    if self.success is not None:
8142
      oprot.writeFieldBegin('success', TType.MAP, 0)
8143
      oprot.writeMapBegin(TType.STRING, TType.MAP, len(self.success))
8182 amar.kumar 8144
      for kiter122,viter123 in self.success.items():
8145
        oprot.writeString(kiter122)
8146
        oprot.writeMapBegin(TType.I64, TType.I64, len(viter123))
8147
        for kiter124,viter125 in viter123.items():
8148
          oprot.writeI64(kiter124)
8149
          oprot.writeI64(viter125)
5944 mandeep.dh 8150
        oprot.writeMapEnd()
8151
      oprot.writeMapEnd()
8152
      oprot.writeFieldEnd()
8153
    oprot.writeFieldStop()
8154
    oprot.writeStructEnd()
8155
 
8156
  def validate(self):
8157
    return
8158
 
8159
 
8160
  def __repr__(self):
8161
    L = ['%s=%r' % (key, value)
8162
      for key, value in self.__dict__.iteritems()]
8163
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8164
 
8165
  def __eq__(self, other):
8166
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8167
 
8168
  def __ne__(self, other):
8169
    return not (self == other)
8170
 
8171
class addBadInventory_args:
8172
  """
8173
  Attributes:
8174
   - itemId
8175
   - warehouseId
8176
   - quantity
8177
  """
8178
 
8179
  thrift_spec = (
8180
    None, # 0
8181
    (1, TType.I64, 'itemId', None, None, ), # 1
8182
    (2, TType.I64, 'warehouseId', None, None, ), # 2
8183
    (3, TType.I64, 'quantity', None, None, ), # 3
8184
  )
8185
 
8186
  def __init__(self, itemId=None, warehouseId=None, quantity=None,):
8187
    self.itemId = itemId
8188
    self.warehouseId = warehouseId
8189
    self.quantity = quantity
8190
 
8191
  def read(self, iprot):
8192
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8193
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8194
      return
8195
    iprot.readStructBegin()
8196
    while True:
8197
      (fname, ftype, fid) = iprot.readFieldBegin()
8198
      if ftype == TType.STOP:
8199
        break
8200
      if fid == 1:
8201
        if ftype == TType.I64:
8202
          self.itemId = iprot.readI64();
8203
        else:
8204
          iprot.skip(ftype)
8205
      elif fid == 2:
8206
        if ftype == TType.I64:
8207
          self.warehouseId = iprot.readI64();
8208
        else:
8209
          iprot.skip(ftype)
8210
      elif fid == 3:
8211
        if ftype == TType.I64:
8212
          self.quantity = iprot.readI64();
8213
        else:
8214
          iprot.skip(ftype)
8215
      else:
8216
        iprot.skip(ftype)
8217
      iprot.readFieldEnd()
8218
    iprot.readStructEnd()
8219
 
8220
  def write(self, oprot):
8221
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8222
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8223
      return
8224
    oprot.writeStructBegin('addBadInventory_args')
8225
    if self.itemId is not None:
8226
      oprot.writeFieldBegin('itemId', TType.I64, 1)
8227
      oprot.writeI64(self.itemId)
8228
      oprot.writeFieldEnd()
8229
    if self.warehouseId is not None:
8230
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
8231
      oprot.writeI64(self.warehouseId)
8232
      oprot.writeFieldEnd()
8233
    if self.quantity is not None:
8234
      oprot.writeFieldBegin('quantity', TType.I64, 3)
8235
      oprot.writeI64(self.quantity)
8236
      oprot.writeFieldEnd()
8237
    oprot.writeFieldStop()
8238
    oprot.writeStructEnd()
8239
 
8240
  def validate(self):
8241
    return
8242
 
8243
 
8244
  def __repr__(self):
8245
    L = ['%s=%r' % (key, value)
8246
      for key, value in self.__dict__.iteritems()]
8247
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8248
 
8249
  def __eq__(self, other):
8250
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8251
 
8252
  def __ne__(self, other):
8253
    return not (self == other)
8254
 
8255
class addBadInventory_result:
8256
  """
8257
  Attributes:
8258
   - cex
8259
  """
8260
 
8261
  thrift_spec = (
8262
    None, # 0
8263
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
8264
  )
8265
 
8266
  def __init__(self, cex=None,):
8267
    self.cex = cex
8268
 
8269
  def read(self, iprot):
8270
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8271
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8272
      return
8273
    iprot.readStructBegin()
8274
    while True:
8275
      (fname, ftype, fid) = iprot.readFieldBegin()
8276
      if ftype == TType.STOP:
8277
        break
8278
      if fid == 1:
8279
        if ftype == TType.STRUCT:
8280
          self.cex = InventoryServiceException()
8281
          self.cex.read(iprot)
8282
        else:
8283
          iprot.skip(ftype)
8284
      else:
8285
        iprot.skip(ftype)
8286
      iprot.readFieldEnd()
8287
    iprot.readStructEnd()
8288
 
8289
  def write(self, oprot):
8290
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8291
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8292
      return
8293
    oprot.writeStructBegin('addBadInventory_result')
8294
    if self.cex is not None:
8295
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8296
      self.cex.write(oprot)
8297
      oprot.writeFieldEnd()
8298
    oprot.writeFieldStop()
8299
    oprot.writeStructEnd()
8300
 
8301
  def validate(self):
8302
    return
8303
 
8304
 
8305
  def __repr__(self):
8306
    L = ['%s=%r' % (key, value)
8307
      for key, value in self.__dict__.iteritems()]
8308
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8309
 
8310
  def __eq__(self, other):
8311
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8312
 
8313
  def __ne__(self, other):
8314
    return not (self == other)
8315
 
8316
class getShippingLocations_args:
8317
 
8318
  thrift_spec = (
8319
  )
8320
 
8321
  def read(self, iprot):
8322
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8323
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8324
      return
8325
    iprot.readStructBegin()
8326
    while True:
8327
      (fname, ftype, fid) = iprot.readFieldBegin()
8328
      if ftype == TType.STOP:
8329
        break
8330
      else:
8331
        iprot.skip(ftype)
8332
      iprot.readFieldEnd()
8333
    iprot.readStructEnd()
8334
 
8335
  def write(self, oprot):
8336
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8337
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8338
      return
8339
    oprot.writeStructBegin('getShippingLocations_args')
8340
    oprot.writeFieldStop()
8341
    oprot.writeStructEnd()
8342
 
8343
  def validate(self):
8344
    return
8345
 
8346
 
8347
  def __repr__(self):
8348
    L = ['%s=%r' % (key, value)
8349
      for key, value in self.__dict__.iteritems()]
8350
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8351
 
8352
  def __eq__(self, other):
8353
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8354
 
8355
  def __ne__(self, other):
8356
    return not (self == other)
8357
 
8358
class getShippingLocations_result:
8359
  """
8360
  Attributes:
8361
   - success
8362
  """
8363
 
8364
  thrift_spec = (
8365
    (0, TType.LIST, 'success', (TType.STRUCT,(Warehouse, Warehouse.thrift_spec)), None, ), # 0
8366
  )
8367
 
8368
  def __init__(self, success=None,):
8369
    self.success = success
8370
 
8371
  def read(self, iprot):
8372
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8373
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8374
      return
8375
    iprot.readStructBegin()
8376
    while True:
8377
      (fname, ftype, fid) = iprot.readFieldBegin()
8378
      if ftype == TType.STOP:
8379
        break
8380
      if fid == 0:
8381
        if ftype == TType.LIST:
8382
          self.success = []
8182 amar.kumar 8383
          (_etype129, _size126) = iprot.readListBegin()
8384
          for _i130 in xrange(_size126):
8385
            _elem131 = Warehouse()
8386
            _elem131.read(iprot)
8387
            self.success.append(_elem131)
5944 mandeep.dh 8388
          iprot.readListEnd()
8389
        else:
8390
          iprot.skip(ftype)
8391
      else:
8392
        iprot.skip(ftype)
8393
      iprot.readFieldEnd()
8394
    iprot.readStructEnd()
8395
 
8396
  def write(self, oprot):
8397
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8398
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8399
      return
8400
    oprot.writeStructBegin('getShippingLocations_result')
8401
    if self.success is not None:
8402
      oprot.writeFieldBegin('success', TType.LIST, 0)
8403
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 8404
      for iter132 in self.success:
8405
        iter132.write(oprot)
5944 mandeep.dh 8406
      oprot.writeListEnd()
8407
      oprot.writeFieldEnd()
8408
    oprot.writeFieldStop()
8409
    oprot.writeStructEnd()
8410
 
8411
  def validate(self):
8412
    return
8413
 
8414
 
8415
  def __repr__(self):
8416
    L = ['%s=%r' % (key, value)
8417
      for key, value in self.__dict__.iteritems()]
8418
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8419
 
8420
  def __eq__(self, other):
8421
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8422
 
8423
  def __ne__(self, other):
8424
    return not (self == other)
8425
 
8426
class getAllVendorItemMappings_args:
8427
 
8428
  thrift_spec = (
8429
  )
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
      else:
8441
        iprot.skip(ftype)
8442
      iprot.readFieldEnd()
8443
    iprot.readStructEnd()
8444
 
8445
  def write(self, oprot):
8446
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8447
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8448
      return
8449
    oprot.writeStructBegin('getAllVendorItemMappings_args')
8450
    oprot.writeFieldStop()
8451
    oprot.writeStructEnd()
8452
 
8453
  def validate(self):
8454
    return
8455
 
8456
 
8457
  def __repr__(self):
8458
    L = ['%s=%r' % (key, value)
8459
      for key, value in self.__dict__.iteritems()]
8460
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8461
 
8462
  def __eq__(self, other):
8463
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8464
 
8465
  def __ne__(self, other):
8466
    return not (self == other)
8467
 
8468
class getAllVendorItemMappings_result:
8469
  """
8470
  Attributes:
8471
   - success
8472
  """
8473
 
8474
  thrift_spec = (
8475
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemMapping, VendorItemMapping.thrift_spec)), None, ), # 0
8476
  )
8477
 
8478
  def __init__(self, success=None,):
8479
    self.success = success
8480
 
8481
  def read(self, iprot):
8482
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8483
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8484
      return
8485
    iprot.readStructBegin()
8486
    while True:
8487
      (fname, ftype, fid) = iprot.readFieldBegin()
8488
      if ftype == TType.STOP:
8489
        break
8490
      if fid == 0:
8491
        if ftype == TType.LIST:
8492
          self.success = []
8182 amar.kumar 8493
          (_etype136, _size133) = iprot.readListBegin()
8494
          for _i137 in xrange(_size133):
8495
            _elem138 = VendorItemMapping()
8496
            _elem138.read(iprot)
8497
            self.success.append(_elem138)
5944 mandeep.dh 8498
          iprot.readListEnd()
8499
        else:
8500
          iprot.skip(ftype)
8501
      else:
8502
        iprot.skip(ftype)
8503
      iprot.readFieldEnd()
8504
    iprot.readStructEnd()
8505
 
8506
  def write(self, oprot):
8507
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8508
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8509
      return
8510
    oprot.writeStructBegin('getAllVendorItemMappings_result')
8511
    if self.success is not None:
8512
      oprot.writeFieldBegin('success', TType.LIST, 0)
8513
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 8514
      for iter139 in self.success:
8515
        iter139.write(oprot)
5944 mandeep.dh 8516
      oprot.writeListEnd()
8517
      oprot.writeFieldEnd()
8518
    oprot.writeFieldStop()
8519
    oprot.writeStructEnd()
8520
 
8521
  def validate(self):
8522
    return
8523
 
8524
 
8525
  def __repr__(self):
8526
    L = ['%s=%r' % (key, value)
8527
      for key, value in self.__dict__.iteritems()]
8528
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8529
 
8530
  def __eq__(self, other):
8531
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8532
 
8533
  def __ne__(self, other):
8534
    return not (self == other)
8535
 
8536
class getInventorySnapshot_args:
8537
  """
8538
  Attributes:
8539
   - warehouseId
8540
  """
8541
 
8542
  thrift_spec = (
8543
    None, # 0
8544
    (1, TType.I64, 'warehouseId', None, None, ), # 1
8545
  )
8546
 
8547
  def __init__(self, warehouseId=None,):
8548
    self.warehouseId = warehouseId
8549
 
8550
  def read(self, iprot):
8551
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8552
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8553
      return
8554
    iprot.readStructBegin()
8555
    while True:
8556
      (fname, ftype, fid) = iprot.readFieldBegin()
8557
      if ftype == TType.STOP:
8558
        break
8559
      if fid == 1:
8560
        if ftype == TType.I64:
8561
          self.warehouseId = iprot.readI64();
8562
        else:
8563
          iprot.skip(ftype)
8564
      else:
8565
        iprot.skip(ftype)
8566
      iprot.readFieldEnd()
8567
    iprot.readStructEnd()
8568
 
8569
  def write(self, oprot):
8570
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8571
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8572
      return
8573
    oprot.writeStructBegin('getInventorySnapshot_args')
8574
    if self.warehouseId is not None:
8575
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
8576
      oprot.writeI64(self.warehouseId)
8577
      oprot.writeFieldEnd()
8578
    oprot.writeFieldStop()
8579
    oprot.writeStructEnd()
8580
 
8581
  def validate(self):
8582
    return
8583
 
8584
 
8585
  def __repr__(self):
8586
    L = ['%s=%r' % (key, value)
8587
      for key, value in self.__dict__.iteritems()]
8588
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8589
 
8590
  def __eq__(self, other):
8591
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8592
 
8593
  def __ne__(self, other):
8594
    return not (self == other)
8595
 
8596
class getInventorySnapshot_result:
8597
  """
8598
  Attributes:
8599
   - success
8600
  """
8601
 
8602
  thrift_spec = (
8603
    (0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(ItemInventory, ItemInventory.thrift_spec)), None, ), # 0
8604
  )
8605
 
8606
  def __init__(self, success=None,):
8607
    self.success = success
8608
 
8609
  def read(self, iprot):
8610
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8611
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8612
      return
8613
    iprot.readStructBegin()
8614
    while True:
8615
      (fname, ftype, fid) = iprot.readFieldBegin()
8616
      if ftype == TType.STOP:
8617
        break
8618
      if fid == 0:
8619
        if ftype == TType.MAP:
8620
          self.success = {}
8182 amar.kumar 8621
          (_ktype141, _vtype142, _size140 ) = iprot.readMapBegin() 
8622
          for _i144 in xrange(_size140):
8623
            _key145 = iprot.readI64();
8624
            _val146 = ItemInventory()
8625
            _val146.read(iprot)
8626
            self.success[_key145] = _val146
5944 mandeep.dh 8627
          iprot.readMapEnd()
8628
        else:
8629
          iprot.skip(ftype)
8630
      else:
8631
        iprot.skip(ftype)
8632
      iprot.readFieldEnd()
8633
    iprot.readStructEnd()
8634
 
8635
  def write(self, oprot):
8636
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8637
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8638
      return
8639
    oprot.writeStructBegin('getInventorySnapshot_result')
8640
    if self.success is not None:
8641
      oprot.writeFieldBegin('success', TType.MAP, 0)
8642
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))
8182 amar.kumar 8643
      for kiter147,viter148 in self.success.items():
8644
        oprot.writeI64(kiter147)
8645
        viter148.write(oprot)
5944 mandeep.dh 8646
      oprot.writeMapEnd()
8647
      oprot.writeFieldEnd()
8648
    oprot.writeFieldStop()
8649
    oprot.writeStructEnd()
8650
 
8651
  def validate(self):
8652
    return
8653
 
8654
 
8655
  def __repr__(self):
8656
    L = ['%s=%r' % (key, value)
8657
      for key, value in self.__dict__.iteritems()]
8658
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8659
 
8660
  def __eq__(self, other):
8661
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8662
 
8663
  def __ne__(self, other):
8664
    return not (self == other)
8665
 
8666
class clearItemAvailabilityCache_args:
8667
 
8668
  thrift_spec = (
8669
  )
8670
 
8671
  def read(self, iprot):
8672
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8673
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8674
      return
8675
    iprot.readStructBegin()
8676
    while True:
8677
      (fname, ftype, fid) = iprot.readFieldBegin()
8678
      if ftype == TType.STOP:
8679
        break
8680
      else:
8681
        iprot.skip(ftype)
8682
      iprot.readFieldEnd()
8683
    iprot.readStructEnd()
8684
 
8685
  def write(self, oprot):
8686
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8687
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8688
      return
8689
    oprot.writeStructBegin('clearItemAvailabilityCache_args')
8690
    oprot.writeFieldStop()
8691
    oprot.writeStructEnd()
8692
 
8693
  def validate(self):
8694
    return
8695
 
8696
 
8697
  def __repr__(self):
8698
    L = ['%s=%r' % (key, value)
8699
      for key, value in self.__dict__.iteritems()]
8700
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8701
 
8702
  def __eq__(self, other):
8703
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8704
 
8705
  def __ne__(self, other):
8706
    return not (self == other)
8707
 
8708
class clearItemAvailabilityCache_result:
8709
 
8710
  thrift_spec = (
8711
  )
8712
 
8713
  def read(self, iprot):
8714
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8715
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8716
      return
8717
    iprot.readStructBegin()
8718
    while True:
8719
      (fname, ftype, fid) = iprot.readFieldBegin()
8720
      if ftype == TType.STOP:
8721
        break
8722
      else:
8723
        iprot.skip(ftype)
8724
      iprot.readFieldEnd()
8725
    iprot.readStructEnd()
8726
 
8727
  def write(self, oprot):
8728
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8729
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8730
      return
8731
    oprot.writeStructBegin('clearItemAvailabilityCache_result')
8732
    oprot.writeFieldStop()
8733
    oprot.writeStructEnd()
8734
 
8735
  def validate(self):
8736
    return
8737
 
8738
 
8739
  def __repr__(self):
8740
    L = ['%s=%r' % (key, value)
8741
      for key, value in self.__dict__.iteritems()]
8742
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8743
 
8744
  def __eq__(self, other):
8745
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8746
 
8747
  def __ne__(self, other):
8748
    return not (self == other)
8749
 
8750
class updateVendorString_args:
8751
  """
8752
  Attributes:
8753
   - warehouseId
8754
   - vendorString
8755
  """
8756
 
8757
  thrift_spec = (
8758
    None, # 0
8759
    (1, TType.I64, 'warehouseId', None, None, ), # 1
8760
    (2, TType.STRING, 'vendorString', None, None, ), # 2
8761
  )
8762
 
8763
  def __init__(self, warehouseId=None, vendorString=None,):
8764
    self.warehouseId = warehouseId
8765
    self.vendorString = vendorString
8766
 
8767
  def read(self, iprot):
8768
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8769
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8770
      return
8771
    iprot.readStructBegin()
8772
    while True:
8773
      (fname, ftype, fid) = iprot.readFieldBegin()
8774
      if ftype == TType.STOP:
8775
        break
8776
      if fid == 1:
8777
        if ftype == TType.I64:
8778
          self.warehouseId = iprot.readI64();
8779
        else:
8780
          iprot.skip(ftype)
8781
      elif fid == 2:
8782
        if ftype == TType.STRING:
8783
          self.vendorString = iprot.readString();
8784
        else:
8785
          iprot.skip(ftype)
8786
      else:
8787
        iprot.skip(ftype)
8788
      iprot.readFieldEnd()
8789
    iprot.readStructEnd()
8790
 
8791
  def write(self, oprot):
8792
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8793
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8794
      return
8795
    oprot.writeStructBegin('updateVendorString_args')
8796
    if self.warehouseId is not None:
8797
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
8798
      oprot.writeI64(self.warehouseId)
8799
      oprot.writeFieldEnd()
8800
    if self.vendorString is not None:
8801
      oprot.writeFieldBegin('vendorString', TType.STRING, 2)
8802
      oprot.writeString(self.vendorString)
8803
      oprot.writeFieldEnd()
8804
    oprot.writeFieldStop()
8805
    oprot.writeStructEnd()
8806
 
8807
  def validate(self):
8808
    return
8809
 
8810
 
8811
  def __repr__(self):
8812
    L = ['%s=%r' % (key, value)
8813
      for key, value in self.__dict__.iteritems()]
8814
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8815
 
8816
  def __eq__(self, other):
8817
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8818
 
8819
  def __ne__(self, other):
8820
    return not (self == other)
8821
 
8822
class updateVendorString_result:
8823
 
8824
  thrift_spec = (
8825
  )
8826
 
8827
  def read(self, iprot):
8828
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8829
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8830
      return
8831
    iprot.readStructBegin()
8832
    while True:
8833
      (fname, ftype, fid) = iprot.readFieldBegin()
8834
      if ftype == TType.STOP:
8835
        break
8836
      else:
8837
        iprot.skip(ftype)
8838
      iprot.readFieldEnd()
8839
    iprot.readStructEnd()
8840
 
8841
  def write(self, oprot):
8842
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8843
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8844
      return
8845
    oprot.writeStructBegin('updateVendorString_result')
8846
    oprot.writeFieldStop()
8847
    oprot.writeStructEnd()
8848
 
8849
  def validate(self):
8850
    return
8851
 
8852
 
8853
  def __repr__(self):
8854
    L = ['%s=%r' % (key, value)
8855
      for key, value in self.__dict__.iteritems()]
8856
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8857
 
8858
  def __eq__(self, other):
8859
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8860
 
8861
  def __ne__(self, other):
8862
    return not (self == other)
6096 amit.gupta 8863
 
8864
class clearItemAvailabilityCacheForItem_args:
8865
  """
8866
  Attributes:
8867
   - item_id
8868
  """
8869
 
8870
  thrift_spec = (
8871
    None, # 0
8872
    (1, TType.I64, 'item_id', None, None, ), # 1
8873
  )
8874
 
8875
  def __init__(self, item_id=None,):
8876
    self.item_id = item_id
8877
 
8878
  def read(self, iprot):
8879
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8880
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8881
      return
8882
    iprot.readStructBegin()
8883
    while True:
8884
      (fname, ftype, fid) = iprot.readFieldBegin()
8885
      if ftype == TType.STOP:
8886
        break
8887
      if fid == 1:
8888
        if ftype == TType.I64:
8889
          self.item_id = iprot.readI64();
8890
        else:
8891
          iprot.skip(ftype)
8892
      else:
8893
        iprot.skip(ftype)
8894
      iprot.readFieldEnd()
8895
    iprot.readStructEnd()
8896
 
8897
  def write(self, oprot):
8898
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8899
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8900
      return
8901
    oprot.writeStructBegin('clearItemAvailabilityCacheForItem_args')
8902
    if self.item_id is not None:
8903
      oprot.writeFieldBegin('item_id', TType.I64, 1)
8904
      oprot.writeI64(self.item_id)
8905
      oprot.writeFieldEnd()
8906
    oprot.writeFieldStop()
8907
    oprot.writeStructEnd()
8908
 
8909
  def validate(self):
8910
    return
8911
 
8912
 
8913
  def __repr__(self):
8914
    L = ['%s=%r' % (key, value)
8915
      for key, value in self.__dict__.iteritems()]
8916
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8917
 
8918
  def __eq__(self, other):
8919
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8920
 
8921
  def __ne__(self, other):
8922
    return not (self == other)
8923
 
8924
class clearItemAvailabilityCacheForItem_result:
8925
 
8926
  thrift_spec = (
8927
  )
8928
 
8929
  def read(self, iprot):
8930
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8931
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8932
      return
8933
    iprot.readStructBegin()
8934
    while True:
8935
      (fname, ftype, fid) = iprot.readFieldBegin()
8936
      if ftype == TType.STOP:
8937
        break
8938
      else:
8939
        iprot.skip(ftype)
8940
      iprot.readFieldEnd()
8941
    iprot.readStructEnd()
8942
 
8943
  def write(self, oprot):
8944
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8945
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8946
      return
8947
    oprot.writeStructBegin('clearItemAvailabilityCacheForItem_result')
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)
6467 amar.kumar 8965
 
8966
class getOurWarehouseIdForVendor_args:
8967
  """
8968
  Attributes:
8969
   - vendorId
7718 amar.kumar 8970
   - billingWarehouseId
6467 amar.kumar 8971
  """
8972
 
8973
  thrift_spec = (
8974
    None, # 0
8975
    (1, TType.I64, 'vendorId', None, None, ), # 1
7718 amar.kumar 8976
    (2, TType.I64, 'billingWarehouseId', None, None, ), # 2
6467 amar.kumar 8977
  )
8978
 
7718 amar.kumar 8979
  def __init__(self, vendorId=None, billingWarehouseId=None,):
6467 amar.kumar 8980
    self.vendorId = vendorId
7718 amar.kumar 8981
    self.billingWarehouseId = billingWarehouseId
6467 amar.kumar 8982
 
8983
  def read(self, iprot):
8984
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8985
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8986
      return
8987
    iprot.readStructBegin()
8988
    while True:
8989
      (fname, ftype, fid) = iprot.readFieldBegin()
8990
      if ftype == TType.STOP:
8991
        break
8992
      if fid == 1:
8993
        if ftype == TType.I64:
8994
          self.vendorId = iprot.readI64();
8995
        else:
8996
          iprot.skip(ftype)
7718 amar.kumar 8997
      elif fid == 2:
8998
        if ftype == TType.I64:
8999
          self.billingWarehouseId = iprot.readI64();
9000
        else:
9001
          iprot.skip(ftype)
6467 amar.kumar 9002
      else:
9003
        iprot.skip(ftype)
9004
      iprot.readFieldEnd()
9005
    iprot.readStructEnd()
9006
 
9007
  def write(self, oprot):
9008
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9009
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9010
      return
9011
    oprot.writeStructBegin('getOurWarehouseIdForVendor_args')
9012
    if self.vendorId is not None:
9013
      oprot.writeFieldBegin('vendorId', TType.I64, 1)
9014
      oprot.writeI64(self.vendorId)
9015
      oprot.writeFieldEnd()
7718 amar.kumar 9016
    if self.billingWarehouseId is not None:
9017
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 2)
9018
      oprot.writeI64(self.billingWarehouseId)
9019
      oprot.writeFieldEnd()
6467 amar.kumar 9020
    oprot.writeFieldStop()
9021
    oprot.writeStructEnd()
9022
 
9023
  def validate(self):
9024
    return
9025
 
9026
 
9027
  def __repr__(self):
9028
    L = ['%s=%r' % (key, value)
9029
      for key, value in self.__dict__.iteritems()]
9030
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9031
 
9032
  def __eq__(self, other):
9033
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9034
 
9035
  def __ne__(self, other):
9036
    return not (self == other)
9037
 
9038
class getOurWarehouseIdForVendor_result:
9039
  """
9040
  Attributes:
9041
   - success
9042
  """
9043
 
9044
  thrift_spec = (
9045
    (0, TType.I64, 'success', None, None, ), # 0
9046
  )
9047
 
9048
  def __init__(self, success=None,):
9049
    self.success = success
9050
 
9051
  def read(self, iprot):
9052
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9053
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9054
      return
9055
    iprot.readStructBegin()
9056
    while True:
9057
      (fname, ftype, fid) = iprot.readFieldBegin()
9058
      if ftype == TType.STOP:
9059
        break
9060
      if fid == 0:
9061
        if ftype == TType.I64:
9062
          self.success = iprot.readI64();
9063
        else:
9064
          iprot.skip(ftype)
9065
      else:
9066
        iprot.skip(ftype)
9067
      iprot.readFieldEnd()
9068
    iprot.readStructEnd()
9069
 
9070
  def write(self, oprot):
9071
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9072
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9073
      return
9074
    oprot.writeStructBegin('getOurWarehouseIdForVendor_result')
9075
    if self.success is not None:
9076
      oprot.writeFieldBegin('success', TType.I64, 0)
9077
      oprot.writeI64(self.success)
9078
      oprot.writeFieldEnd()
9079
    oprot.writeFieldStop()
9080
    oprot.writeStructEnd()
9081
 
9082
  def validate(self):
9083
    return
9084
 
9085
 
9086
  def __repr__(self):
9087
    L = ['%s=%r' % (key, value)
9088
      for key, value in self.__dict__.iteritems()]
9089
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9090
 
9091
  def __eq__(self, other):
9092
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9093
 
9094
  def __ne__(self, other):
9095
    return not (self == other)
6484 amar.kumar 9096
 
9097
class getItemAvailabilitiesAtOurWarehouses_args:
9098
  """
9099
  Attributes:
9100
   - item_ids
9101
  """
9102
 
9103
  thrift_spec = (
9104
    None, # 0
9105
    (1, TType.LIST, 'item_ids', (TType.I64,None), None, ), # 1
9106
  )
9107
 
9108
  def __init__(self, item_ids=None,):
9109
    self.item_ids = item_ids
9110
 
9111
  def read(self, iprot):
9112
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9113
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9114
      return
9115
    iprot.readStructBegin()
9116
    while True:
9117
      (fname, ftype, fid) = iprot.readFieldBegin()
9118
      if ftype == TType.STOP:
9119
        break
9120
      if fid == 1:
9121
        if ftype == TType.LIST:
9122
          self.item_ids = []
8182 amar.kumar 9123
          (_etype152, _size149) = iprot.readListBegin()
9124
          for _i153 in xrange(_size149):
9125
            _elem154 = iprot.readI64();
9126
            self.item_ids.append(_elem154)
6484 amar.kumar 9127
          iprot.readListEnd()
9128
        else:
9129
          iprot.skip(ftype)
9130
      else:
9131
        iprot.skip(ftype)
9132
      iprot.readFieldEnd()
9133
    iprot.readStructEnd()
9134
 
9135
  def write(self, oprot):
9136
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9137
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9138
      return
9139
    oprot.writeStructBegin('getItemAvailabilitiesAtOurWarehouses_args')
9140
    if self.item_ids is not None:
9141
      oprot.writeFieldBegin('item_ids', TType.LIST, 1)
9142
      oprot.writeListBegin(TType.I64, len(self.item_ids))
8182 amar.kumar 9143
      for iter155 in self.item_ids:
9144
        oprot.writeI64(iter155)
6484 amar.kumar 9145
      oprot.writeListEnd()
9146
      oprot.writeFieldEnd()
9147
    oprot.writeFieldStop()
9148
    oprot.writeStructEnd()
9149
 
9150
  def validate(self):
9151
    return
9152
 
9153
 
9154
  def __repr__(self):
9155
    L = ['%s=%r' % (key, value)
9156
      for key, value in self.__dict__.iteritems()]
9157
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9158
 
9159
  def __eq__(self, other):
9160
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9161
 
9162
  def __ne__(self, other):
9163
    return not (self == other)
9164
 
9165
class getItemAvailabilitiesAtOurWarehouses_result:
9166
  """
9167
  Attributes:
9168
   - success
9169
  """
9170
 
9171
  thrift_spec = (
9172
    (0, TType.MAP, 'success', (TType.I64,None,TType.I64,None), None, ), # 0
9173
  )
9174
 
9175
  def __init__(self, success=None,):
9176
    self.success = success
9177
 
9178
  def read(self, iprot):
9179
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9180
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9181
      return
9182
    iprot.readStructBegin()
9183
    while True:
9184
      (fname, ftype, fid) = iprot.readFieldBegin()
9185
      if ftype == TType.STOP:
9186
        break
9187
      if fid == 0:
9188
        if ftype == TType.MAP:
9189
          self.success = {}
8182 amar.kumar 9190
          (_ktype157, _vtype158, _size156 ) = iprot.readMapBegin() 
9191
          for _i160 in xrange(_size156):
9192
            _key161 = iprot.readI64();
9193
            _val162 = iprot.readI64();
9194
            self.success[_key161] = _val162
6484 amar.kumar 9195
          iprot.readMapEnd()
9196
        else:
9197
          iprot.skip(ftype)
9198
      else:
9199
        iprot.skip(ftype)
9200
      iprot.readFieldEnd()
9201
    iprot.readStructEnd()
9202
 
9203
  def write(self, oprot):
9204
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9205
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9206
      return
9207
    oprot.writeStructBegin('getItemAvailabilitiesAtOurWarehouses_result')
9208
    if self.success is not None:
9209
      oprot.writeFieldBegin('success', TType.MAP, 0)
9210
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.success))
8182 amar.kumar 9211
      for kiter163,viter164 in self.success.items():
9212
        oprot.writeI64(kiter163)
9213
        oprot.writeI64(viter164)
6484 amar.kumar 9214
      oprot.writeMapEnd()
9215
      oprot.writeFieldEnd()
9216
    oprot.writeFieldStop()
9217
    oprot.writeStructEnd()
9218
 
9219
  def validate(self):
9220
    return
9221
 
9222
 
9223
  def __repr__(self):
9224
    L = ['%s=%r' % (key, value)
9225
      for key, value in self.__dict__.iteritems()]
9226
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9227
 
9228
  def __eq__(self, other):
9229
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9230
 
9231
  def __ne__(self, other):
9232
    return not (self == other)
6531 vikram.rag 9233
 
9234
class getMonitoredWarehouseForVendors_args:
9235
  """
9236
  Attributes:
9237
   - vendorIds
9238
  """
9239
 
9240
  thrift_spec = (
9241
    None, # 0
9242
    (1, TType.LIST, 'vendorIds', (TType.I64,None), None, ), # 1
9243
  )
9244
 
9245
  def __init__(self, vendorIds=None,):
9246
    self.vendorIds = vendorIds
9247
 
9248
  def read(self, iprot):
9249
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9250
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9251
      return
9252
    iprot.readStructBegin()
9253
    while True:
9254
      (fname, ftype, fid) = iprot.readFieldBegin()
9255
      if ftype == TType.STOP:
9256
        break
9257
      if fid == 1:
9258
        if ftype == TType.LIST:
9259
          self.vendorIds = []
8182 amar.kumar 9260
          (_etype168, _size165) = iprot.readListBegin()
9261
          for _i169 in xrange(_size165):
9262
            _elem170 = iprot.readI64();
9263
            self.vendorIds.append(_elem170)
6531 vikram.rag 9264
          iprot.readListEnd()
9265
        else:
9266
          iprot.skip(ftype)
9267
      else:
9268
        iprot.skip(ftype)
9269
      iprot.readFieldEnd()
9270
    iprot.readStructEnd()
9271
 
9272
  def write(self, oprot):
9273
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9274
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9275
      return
9276
    oprot.writeStructBegin('getMonitoredWarehouseForVendors_args')
9277
    if self.vendorIds is not None:
9278
      oprot.writeFieldBegin('vendorIds', TType.LIST, 1)
9279
      oprot.writeListBegin(TType.I64, len(self.vendorIds))
8182 amar.kumar 9280
      for iter171 in self.vendorIds:
9281
        oprot.writeI64(iter171)
6531 vikram.rag 9282
      oprot.writeListEnd()
9283
      oprot.writeFieldEnd()
9284
    oprot.writeFieldStop()
9285
    oprot.writeStructEnd()
9286
 
9287
  def validate(self):
9288
    return
9289
 
9290
 
9291
  def __repr__(self):
9292
    L = ['%s=%r' % (key, value)
9293
      for key, value in self.__dict__.iteritems()]
9294
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9295
 
9296
  def __eq__(self, other):
9297
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9298
 
9299
  def __ne__(self, other):
9300
    return not (self == other)
9301
 
9302
class getMonitoredWarehouseForVendors_result:
9303
  """
9304
  Attributes:
9305
   - success
9306
  """
9307
 
9308
  thrift_spec = (
9309
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9310
  )
9311
 
9312
  def __init__(self, success=None,):
9313
    self.success = success
9314
 
9315
  def read(self, iprot):
9316
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9317
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9318
      return
9319
    iprot.readStructBegin()
9320
    while True:
9321
      (fname, ftype, fid) = iprot.readFieldBegin()
9322
      if ftype == TType.STOP:
9323
        break
9324
      if fid == 0:
9325
        if ftype == TType.LIST:
9326
          self.success = []
8182 amar.kumar 9327
          (_etype175, _size172) = iprot.readListBegin()
9328
          for _i176 in xrange(_size172):
9329
            _elem177 = iprot.readI64();
9330
            self.success.append(_elem177)
6531 vikram.rag 9331
          iprot.readListEnd()
9332
        else:
9333
          iprot.skip(ftype)
9334
      else:
9335
        iprot.skip(ftype)
9336
      iprot.readFieldEnd()
9337
    iprot.readStructEnd()
9338
 
9339
  def write(self, oprot):
9340
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9341
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9342
      return
9343
    oprot.writeStructBegin('getMonitoredWarehouseForVendors_result')
9344
    if self.success is not None:
9345
      oprot.writeFieldBegin('success', TType.LIST, 0)
9346
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 9347
      for iter178 in self.success:
9348
        oprot.writeI64(iter178)
6531 vikram.rag 9349
      oprot.writeListEnd()
9350
      oprot.writeFieldEnd()
9351
    oprot.writeFieldStop()
9352
    oprot.writeStructEnd()
9353
 
9354
  def validate(self):
9355
    return
9356
 
9357
 
9358
  def __repr__(self):
9359
    L = ['%s=%r' % (key, value)
9360
      for key, value in self.__dict__.iteritems()]
9361
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9362
 
9363
  def __eq__(self, other):
9364
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9365
 
9366
  def __ne__(self, other):
9367
    return not (self == other)
9368
 
9369
class getIgnoredWarehouseidsAndItemids_args:
9370
 
9371
  thrift_spec = (
9372
  )
9373
 
9374
  def read(self, iprot):
9375
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9376
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9377
      return
9378
    iprot.readStructBegin()
9379
    while True:
9380
      (fname, ftype, fid) = iprot.readFieldBegin()
9381
      if ftype == TType.STOP:
9382
        break
9383
      else:
9384
        iprot.skip(ftype)
9385
      iprot.readFieldEnd()
9386
    iprot.readStructEnd()
9387
 
9388
  def write(self, oprot):
9389
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9390
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9391
      return
9392
    oprot.writeStructBegin('getIgnoredWarehouseidsAndItemids_args')
9393
    oprot.writeFieldStop()
9394
    oprot.writeStructEnd()
9395
 
9396
  def validate(self):
9397
    return
9398
 
9399
 
9400
  def __repr__(self):
9401
    L = ['%s=%r' % (key, value)
9402
      for key, value in self.__dict__.iteritems()]
9403
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9404
 
9405
  def __eq__(self, other):
9406
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9407
 
9408
  def __ne__(self, other):
9409
    return not (self == other)
9410
 
9411
class getIgnoredWarehouseidsAndItemids_result:
9412
  """
9413
  Attributes:
9414
   - success
9415
  """
9416
 
9417
  thrift_spec = (
9418
    (0, TType.LIST, 'success', (TType.STRUCT,(IgnoredInventoryUpdateItems, IgnoredInventoryUpdateItems.thrift_spec)), None, ), # 0
9419
  )
9420
 
9421
  def __init__(self, success=None,):
9422
    self.success = success
9423
 
9424
  def read(self, iprot):
9425
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9426
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9427
      return
9428
    iprot.readStructBegin()
9429
    while True:
9430
      (fname, ftype, fid) = iprot.readFieldBegin()
9431
      if ftype == TType.STOP:
9432
        break
9433
      if fid == 0:
9434
        if ftype == TType.LIST:
9435
          self.success = []
8182 amar.kumar 9436
          (_etype182, _size179) = iprot.readListBegin()
9437
          for _i183 in xrange(_size179):
9438
            _elem184 = IgnoredInventoryUpdateItems()
9439
            _elem184.read(iprot)
9440
            self.success.append(_elem184)
6531 vikram.rag 9441
          iprot.readListEnd()
9442
        else:
9443
          iprot.skip(ftype)
9444
      else:
9445
        iprot.skip(ftype)
9446
      iprot.readFieldEnd()
9447
    iprot.readStructEnd()
9448
 
9449
  def write(self, oprot):
9450
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9451
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9452
      return
9453
    oprot.writeStructBegin('getIgnoredWarehouseidsAndItemids_result')
9454
    if self.success is not None:
9455
      oprot.writeFieldBegin('success', TType.LIST, 0)
9456
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 9457
      for iter185 in self.success:
9458
        iter185.write(oprot)
6531 vikram.rag 9459
      oprot.writeListEnd()
9460
      oprot.writeFieldEnd()
9461
    oprot.writeFieldStop()
9462
    oprot.writeStructEnd()
9463
 
9464
  def validate(self):
9465
    return
9466
 
9467
 
9468
  def __repr__(self):
9469
    L = ['%s=%r' % (key, value)
9470
      for key, value in self.__dict__.iteritems()]
9471
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9472
 
9473
  def __eq__(self, other):
9474
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9475
 
9476
  def __ne__(self, other):
9477
    return not (self == other)
9478
 
9479
class insertItemtoIgnoreInventoryUpdatelist_args:
9480
  """
9481
  Attributes:
9482
   - item_id
9483
   - warehouse_id
9484
  """
9485
 
9486
  thrift_spec = (
9487
    None, # 0
9488
    (1, TType.I64, 'item_id', None, None, ), # 1
9489
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
9490
  )
9491
 
9492
  def __init__(self, item_id=None, warehouse_id=None,):
9493
    self.item_id = item_id
9494
    self.warehouse_id = warehouse_id
9495
 
9496
  def read(self, iprot):
9497
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9498
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9499
      return
9500
    iprot.readStructBegin()
9501
    while True:
9502
      (fname, ftype, fid) = iprot.readFieldBegin()
9503
      if ftype == TType.STOP:
9504
        break
9505
      if fid == 1:
9506
        if ftype == TType.I64:
9507
          self.item_id = iprot.readI64();
9508
        else:
9509
          iprot.skip(ftype)
9510
      elif fid == 2:
9511
        if ftype == TType.I64:
9512
          self.warehouse_id = iprot.readI64();
9513
        else:
9514
          iprot.skip(ftype)
9515
      else:
9516
        iprot.skip(ftype)
9517
      iprot.readFieldEnd()
9518
    iprot.readStructEnd()
9519
 
9520
  def write(self, oprot):
9521
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9522
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9523
      return
9524
    oprot.writeStructBegin('insertItemtoIgnoreInventoryUpdatelist_args')
9525
    if self.item_id is not None:
9526
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9527
      oprot.writeI64(self.item_id)
9528
      oprot.writeFieldEnd()
9529
    if self.warehouse_id is not None:
9530
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
9531
      oprot.writeI64(self.warehouse_id)
9532
      oprot.writeFieldEnd()
9533
    oprot.writeFieldStop()
9534
    oprot.writeStructEnd()
9535
 
9536
  def validate(self):
9537
    return
9538
 
9539
 
9540
  def __repr__(self):
9541
    L = ['%s=%r' % (key, value)
9542
      for key, value in self.__dict__.iteritems()]
9543
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9544
 
9545
  def __eq__(self, other):
9546
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9547
 
9548
  def __ne__(self, other):
9549
    return not (self == other)
9550
 
9551
class insertItemtoIgnoreInventoryUpdatelist_result:
9552
  """
9553
  Attributes:
9554
   - success
9555
  """
9556
 
9557
  thrift_spec = (
9558
    (0, TType.BOOL, 'success', None, None, ), # 0
9559
  )
9560
 
9561
  def __init__(self, success=None,):
9562
    self.success = success
9563
 
9564
  def read(self, iprot):
9565
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9566
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9567
      return
9568
    iprot.readStructBegin()
9569
    while True:
9570
      (fname, ftype, fid) = iprot.readFieldBegin()
9571
      if ftype == TType.STOP:
9572
        break
9573
      if fid == 0:
9574
        if ftype == TType.BOOL:
9575
          self.success = iprot.readBool();
9576
        else:
9577
          iprot.skip(ftype)
9578
      else:
9579
        iprot.skip(ftype)
9580
      iprot.readFieldEnd()
9581
    iprot.readStructEnd()
9582
 
9583
  def write(self, oprot):
9584
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9585
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9586
      return
9587
    oprot.writeStructBegin('insertItemtoIgnoreInventoryUpdatelist_result')
9588
    if self.success is not None:
9589
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9590
      oprot.writeBool(self.success)
9591
      oprot.writeFieldEnd()
9592
    oprot.writeFieldStop()
9593
    oprot.writeStructEnd()
9594
 
9595
  def validate(self):
9596
    return
9597
 
9598
 
9599
  def __repr__(self):
9600
    L = ['%s=%r' % (key, value)
9601
      for key, value in self.__dict__.iteritems()]
9602
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9603
 
9604
  def __eq__(self, other):
9605
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9606
 
9607
  def __ne__(self, other):
9608
    return not (self == other)
9609
 
9610
class deleteItemFromIgnoredInventoryUpdateList_args:
9611
  """
9612
  Attributes:
9613
   - item_id
9614
   - warehouse_id
9615
  """
9616
 
9617
  thrift_spec = (
9618
    None, # 0
9619
    (1, TType.I64, 'item_id', None, None, ), # 1
9620
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
9621
  )
9622
 
9623
  def __init__(self, item_id=None, warehouse_id=None,):
9624
    self.item_id = item_id
9625
    self.warehouse_id = warehouse_id
9626
 
9627
  def read(self, iprot):
9628
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9629
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9630
      return
9631
    iprot.readStructBegin()
9632
    while True:
9633
      (fname, ftype, fid) = iprot.readFieldBegin()
9634
      if ftype == TType.STOP:
9635
        break
9636
      if fid == 1:
9637
        if ftype == TType.I64:
9638
          self.item_id = iprot.readI64();
9639
        else:
9640
          iprot.skip(ftype)
9641
      elif fid == 2:
9642
        if ftype == TType.I64:
9643
          self.warehouse_id = iprot.readI64();
9644
        else:
9645
          iprot.skip(ftype)
9646
      else:
9647
        iprot.skip(ftype)
9648
      iprot.readFieldEnd()
9649
    iprot.readStructEnd()
9650
 
9651
  def write(self, oprot):
9652
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9653
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9654
      return
9655
    oprot.writeStructBegin('deleteItemFromIgnoredInventoryUpdateList_args')
9656
    if self.item_id is not None:
9657
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9658
      oprot.writeI64(self.item_id)
9659
      oprot.writeFieldEnd()
9660
    if self.warehouse_id is not None:
9661
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
9662
      oprot.writeI64(self.warehouse_id)
9663
      oprot.writeFieldEnd()
9664
    oprot.writeFieldStop()
9665
    oprot.writeStructEnd()
9666
 
9667
  def validate(self):
9668
    return
9669
 
9670
 
9671
  def __repr__(self):
9672
    L = ['%s=%r' % (key, value)
9673
      for key, value in self.__dict__.iteritems()]
9674
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9675
 
9676
  def __eq__(self, other):
9677
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9678
 
9679
  def __ne__(self, other):
9680
    return not (self == other)
9681
 
9682
class deleteItemFromIgnoredInventoryUpdateList_result:
9683
  """
9684
  Attributes:
9685
   - success
9686
  """
9687
 
9688
  thrift_spec = (
9689
    (0, TType.BOOL, 'success', None, None, ), # 0
9690
  )
9691
 
9692
  def __init__(self, success=None,):
9693
    self.success = success
9694
 
9695
  def read(self, iprot):
9696
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9697
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9698
      return
9699
    iprot.readStructBegin()
9700
    while True:
9701
      (fname, ftype, fid) = iprot.readFieldBegin()
9702
      if ftype == TType.STOP:
9703
        break
9704
      if fid == 0:
9705
        if ftype == TType.BOOL:
9706
          self.success = iprot.readBool();
9707
        else:
9708
          iprot.skip(ftype)
9709
      else:
9710
        iprot.skip(ftype)
9711
      iprot.readFieldEnd()
9712
    iprot.readStructEnd()
9713
 
9714
  def write(self, oprot):
9715
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9716
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9717
      return
9718
    oprot.writeStructBegin('deleteItemFromIgnoredInventoryUpdateList_result')
9719
    if self.success is not None:
9720
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9721
      oprot.writeBool(self.success)
9722
      oprot.writeFieldEnd()
9723
    oprot.writeFieldStop()
9724
    oprot.writeStructEnd()
9725
 
9726
  def validate(self):
9727
    return
9728
 
9729
 
9730
  def __repr__(self):
9731
    L = ['%s=%r' % (key, value)
9732
      for key, value in self.__dict__.iteritems()]
9733
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9734
 
9735
  def __eq__(self, other):
9736
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9737
 
9738
  def __ne__(self, other):
9739
    return not (self == other)
9740
 
9741
class getAllIgnoredInventoryupdateItemsCount_args:
9742
 
9743
  thrift_spec = (
9744
  )
9745
 
9746
  def read(self, iprot):
9747
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9748
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9749
      return
9750
    iprot.readStructBegin()
9751
    while True:
9752
      (fname, ftype, fid) = iprot.readFieldBegin()
9753
      if ftype == TType.STOP:
9754
        break
9755
      else:
9756
        iprot.skip(ftype)
9757
      iprot.readFieldEnd()
9758
    iprot.readStructEnd()
9759
 
9760
  def write(self, oprot):
9761
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9762
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9763
      return
9764
    oprot.writeStructBegin('getAllIgnoredInventoryupdateItemsCount_args')
9765
    oprot.writeFieldStop()
9766
    oprot.writeStructEnd()
9767
 
9768
  def validate(self):
9769
    return
9770
 
9771
 
9772
  def __repr__(self):
9773
    L = ['%s=%r' % (key, value)
9774
      for key, value in self.__dict__.iteritems()]
9775
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9776
 
9777
  def __eq__(self, other):
9778
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9779
 
9780
  def __ne__(self, other):
9781
    return not (self == other)
9782
 
9783
class getAllIgnoredInventoryupdateItemsCount_result:
9784
  """
9785
  Attributes:
9786
   - success
9787
  """
9788
 
9789
  thrift_spec = (
9790
    (0, TType.I32, 'success', None, None, ), # 0
9791
  )
9792
 
9793
  def __init__(self, success=None,):
9794
    self.success = success
9795
 
9796
  def read(self, iprot):
9797
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9798
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9799
      return
9800
    iprot.readStructBegin()
9801
    while True:
9802
      (fname, ftype, fid) = iprot.readFieldBegin()
9803
      if ftype == TType.STOP:
9804
        break
9805
      if fid == 0:
9806
        if ftype == TType.I32:
9807
          self.success = iprot.readI32();
9808
        else:
9809
          iprot.skip(ftype)
9810
      else:
9811
        iprot.skip(ftype)
9812
      iprot.readFieldEnd()
9813
    iprot.readStructEnd()
9814
 
9815
  def write(self, oprot):
9816
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9817
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9818
      return
9819
    oprot.writeStructBegin('getAllIgnoredInventoryupdateItemsCount_result')
9820
    if self.success is not None:
9821
      oprot.writeFieldBegin('success', TType.I32, 0)
9822
      oprot.writeI32(self.success)
9823
      oprot.writeFieldEnd()
9824
    oprot.writeFieldStop()
9825
    oprot.writeStructEnd()
9826
 
9827
  def validate(self):
9828
    return
9829
 
9830
 
9831
  def __repr__(self):
9832
    L = ['%s=%r' % (key, value)
9833
      for key, value in self.__dict__.iteritems()]
9834
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9835
 
9836
  def __eq__(self, other):
9837
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9838
 
9839
  def __ne__(self, other):
9840
    return not (self == other)
9841
 
9842
class getIgnoredInventoryUpdateItemids_args:
9843
  """
9844
  Attributes:
9845
   - offset
9846
   - limit
9847
  """
9848
 
9849
  thrift_spec = (
9850
    None, # 0
9851
    (1, TType.I32, 'offset', None, None, ), # 1
9852
    (2, TType.I32, 'limit', None, None, ), # 2
9853
  )
9854
 
9855
  def __init__(self, offset=None, limit=None,):
9856
    self.offset = offset
9857
    self.limit = limit
9858
 
9859
  def read(self, iprot):
9860
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9861
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9862
      return
9863
    iprot.readStructBegin()
9864
    while True:
9865
      (fname, ftype, fid) = iprot.readFieldBegin()
9866
      if ftype == TType.STOP:
9867
        break
9868
      if fid == 1:
9869
        if ftype == TType.I32:
9870
          self.offset = iprot.readI32();
9871
        else:
9872
          iprot.skip(ftype)
9873
      elif fid == 2:
9874
        if ftype == TType.I32:
9875
          self.limit = iprot.readI32();
9876
        else:
9877
          iprot.skip(ftype)
9878
      else:
9879
        iprot.skip(ftype)
9880
      iprot.readFieldEnd()
9881
    iprot.readStructEnd()
9882
 
9883
  def write(self, oprot):
9884
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9885
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9886
      return
9887
    oprot.writeStructBegin('getIgnoredInventoryUpdateItemids_args')
9888
    if self.offset is not None:
9889
      oprot.writeFieldBegin('offset', TType.I32, 1)
9890
      oprot.writeI32(self.offset)
9891
      oprot.writeFieldEnd()
9892
    if self.limit is not None:
9893
      oprot.writeFieldBegin('limit', TType.I32, 2)
9894
      oprot.writeI32(self.limit)
9895
      oprot.writeFieldEnd()
9896
    oprot.writeFieldStop()
9897
    oprot.writeStructEnd()
9898
 
9899
  def validate(self):
9900
    return
9901
 
9902
 
9903
  def __repr__(self):
9904
    L = ['%s=%r' % (key, value)
9905
      for key, value in self.__dict__.iteritems()]
9906
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9907
 
9908
  def __eq__(self, other):
9909
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9910
 
9911
  def __ne__(self, other):
9912
    return not (self == other)
9913
 
9914
class getIgnoredInventoryUpdateItemids_result:
9915
  """
9916
  Attributes:
9917
   - success
9918
  """
9919
 
9920
  thrift_spec = (
9921
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9922
  )
9923
 
9924
  def __init__(self, success=None,):
9925
    self.success = success
9926
 
9927
  def read(self, iprot):
9928
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9929
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9930
      return
9931
    iprot.readStructBegin()
9932
    while True:
9933
      (fname, ftype, fid) = iprot.readFieldBegin()
9934
      if ftype == TType.STOP:
9935
        break
9936
      if fid == 0:
9937
        if ftype == TType.LIST:
9938
          self.success = []
8182 amar.kumar 9939
          (_etype189, _size186) = iprot.readListBegin()
9940
          for _i190 in xrange(_size186):
9941
            _elem191 = iprot.readI64();
9942
            self.success.append(_elem191)
6531 vikram.rag 9943
          iprot.readListEnd()
9944
        else:
9945
          iprot.skip(ftype)
9946
      else:
9947
        iprot.skip(ftype)
9948
      iprot.readFieldEnd()
9949
    iprot.readStructEnd()
9950
 
9951
  def write(self, oprot):
9952
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9953
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9954
      return
9955
    oprot.writeStructBegin('getIgnoredInventoryUpdateItemids_result')
9956
    if self.success is not None:
9957
      oprot.writeFieldBegin('success', TType.LIST, 0)
9958
      oprot.writeListBegin(TType.I64, len(self.success))
8182 amar.kumar 9959
      for iter192 in self.success:
9960
        oprot.writeI64(iter192)
6531 vikram.rag 9961
      oprot.writeListEnd()
9962
      oprot.writeFieldEnd()
9963
    oprot.writeFieldStop()
9964
    oprot.writeStructEnd()
9965
 
9966
  def validate(self):
9967
    return
9968
 
9969
 
9970
  def __repr__(self):
9971
    L = ['%s=%r' % (key, value)
9972
      for key, value in self.__dict__.iteritems()]
9973
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9974
 
9975
  def __eq__(self, other):
9976
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9977
 
9978
  def __ne__(self, other):
9979
    return not (self == other)
6821 amar.kumar 9980
 
9981
class updateItemStockPurchaseParams_args:
9982
  """
9983
  Attributes:
9984
   - item_id
9985
   - numOfDaysStock
9986
   - minStockLevel
9987
  """
9988
 
9989
  thrift_spec = (
9990
    None, # 0
9991
    (1, TType.I64, 'item_id', None, None, ), # 1
9992
    (2, TType.I32, 'numOfDaysStock', None, None, ), # 2
9993
    (3, TType.I64, 'minStockLevel', None, None, ), # 3
9994
  )
9995
 
9996
  def __init__(self, item_id=None, numOfDaysStock=None, minStockLevel=None,):
9997
    self.item_id = item_id
9998
    self.numOfDaysStock = numOfDaysStock
9999
    self.minStockLevel = minStockLevel
10000
 
10001
  def read(self, iprot):
10002
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10003
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10004
      return
10005
    iprot.readStructBegin()
10006
    while True:
10007
      (fname, ftype, fid) = iprot.readFieldBegin()
10008
      if ftype == TType.STOP:
10009
        break
10010
      if fid == 1:
10011
        if ftype == TType.I64:
10012
          self.item_id = iprot.readI64();
10013
        else:
10014
          iprot.skip(ftype)
10015
      elif fid == 2:
10016
        if ftype == TType.I32:
10017
          self.numOfDaysStock = iprot.readI32();
10018
        else:
10019
          iprot.skip(ftype)
10020
      elif fid == 3:
10021
        if ftype == TType.I64:
10022
          self.minStockLevel = iprot.readI64();
10023
        else:
10024
          iprot.skip(ftype)
10025
      else:
10026
        iprot.skip(ftype)
10027
      iprot.readFieldEnd()
10028
    iprot.readStructEnd()
10029
 
10030
  def write(self, oprot):
10031
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10032
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10033
      return
10034
    oprot.writeStructBegin('updateItemStockPurchaseParams_args')
10035
    if self.item_id is not None:
10036
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10037
      oprot.writeI64(self.item_id)
10038
      oprot.writeFieldEnd()
10039
    if self.numOfDaysStock is not None:
10040
      oprot.writeFieldBegin('numOfDaysStock', TType.I32, 2)
10041
      oprot.writeI32(self.numOfDaysStock)
10042
      oprot.writeFieldEnd()
10043
    if self.minStockLevel is not None:
10044
      oprot.writeFieldBegin('minStockLevel', TType.I64, 3)
10045
      oprot.writeI64(self.minStockLevel)
10046
      oprot.writeFieldEnd()
10047
    oprot.writeFieldStop()
10048
    oprot.writeStructEnd()
10049
 
10050
  def validate(self):
10051
    return
10052
 
10053
 
10054
  def __repr__(self):
10055
    L = ['%s=%r' % (key, value)
10056
      for key, value in self.__dict__.iteritems()]
10057
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10058
 
10059
  def __eq__(self, other):
10060
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10061
 
10062
  def __ne__(self, other):
10063
    return not (self == other)
10064
 
10065
class updateItemStockPurchaseParams_result:
10066
 
10067
  thrift_spec = (
10068
  )
10069
 
10070
  def read(self, iprot):
10071
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10072
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10073
      return
10074
    iprot.readStructBegin()
10075
    while True:
10076
      (fname, ftype, fid) = iprot.readFieldBegin()
10077
      if ftype == TType.STOP:
10078
        break
10079
      else:
10080
        iprot.skip(ftype)
10081
      iprot.readFieldEnd()
10082
    iprot.readStructEnd()
10083
 
10084
  def write(self, oprot):
10085
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10086
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10087
      return
10088
    oprot.writeStructBegin('updateItemStockPurchaseParams_result')
10089
    oprot.writeFieldStop()
10090
    oprot.writeStructEnd()
10091
 
10092
  def validate(self):
10093
    return
10094
 
10095
 
10096
  def __repr__(self):
10097
    L = ['%s=%r' % (key, value)
10098
      for key, value in self.__dict__.iteritems()]
10099
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10100
 
10101
  def __eq__(self, other):
10102
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10103
 
10104
  def __ne__(self, other):
10105
    return not (self == other)
10106
 
10107
class getItemStockPurchaseParams_args:
10108
  """
10109
  Attributes:
10110
   - itemId
10111
  """
10112
 
10113
  thrift_spec = (
10114
    None, # 0
10115
    (1, TType.I64, 'itemId', None, None, ), # 1
10116
  )
10117
 
10118
  def __init__(self, itemId=None,):
10119
    self.itemId = itemId
10120
 
10121
  def read(self, iprot):
10122
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10123
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10124
      return
10125
    iprot.readStructBegin()
10126
    while True:
10127
      (fname, ftype, fid) = iprot.readFieldBegin()
10128
      if ftype == TType.STOP:
10129
        break
10130
      if fid == 1:
10131
        if ftype == TType.I64:
10132
          self.itemId = iprot.readI64();
10133
        else:
10134
          iprot.skip(ftype)
10135
      else:
10136
        iprot.skip(ftype)
10137
      iprot.readFieldEnd()
10138
    iprot.readStructEnd()
10139
 
10140
  def write(self, oprot):
10141
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10142
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10143
      return
10144
    oprot.writeStructBegin('getItemStockPurchaseParams_args')
10145
    if self.itemId is not None:
10146
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10147
      oprot.writeI64(self.itemId)
10148
      oprot.writeFieldEnd()
10149
    oprot.writeFieldStop()
10150
    oprot.writeStructEnd()
10151
 
10152
  def validate(self):
10153
    return
10154
 
10155
 
10156
  def __repr__(self):
10157
    L = ['%s=%r' % (key, value)
10158
      for key, value in self.__dict__.iteritems()]
10159
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10160
 
10161
  def __eq__(self, other):
10162
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10163
 
10164
  def __ne__(self, other):
10165
    return not (self == other)
10166
 
10167
class getItemStockPurchaseParams_result:
10168
  """
10169
  Attributes:
10170
   - success
10171
  """
10172
 
10173
  thrift_spec = (
10174
    (0, TType.STRUCT, 'success', (ItemStockPurchaseParams, ItemStockPurchaseParams.thrift_spec), None, ), # 0
10175
  )
10176
 
10177
  def __init__(self, success=None,):
10178
    self.success = success
10179
 
10180
  def read(self, iprot):
10181
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10182
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10183
      return
10184
    iprot.readStructBegin()
10185
    while True:
10186
      (fname, ftype, fid) = iprot.readFieldBegin()
10187
      if ftype == TType.STOP:
10188
        break
10189
      if fid == 0:
10190
        if ftype == TType.STRUCT:
10191
          self.success = ItemStockPurchaseParams()
10192
          self.success.read(iprot)
10193
        else:
10194
          iprot.skip(ftype)
10195
      else:
10196
        iprot.skip(ftype)
10197
      iprot.readFieldEnd()
10198
    iprot.readStructEnd()
10199
 
10200
  def write(self, oprot):
10201
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10202
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10203
      return
10204
    oprot.writeStructBegin('getItemStockPurchaseParams_result')
10205
    if self.success is not None:
10206
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10207
      self.success.write(oprot)
10208
      oprot.writeFieldEnd()
10209
    oprot.writeFieldStop()
10210
    oprot.writeStructEnd()
10211
 
10212
  def validate(self):
10213
    return
10214
 
10215
 
10216
  def __repr__(self):
10217
    L = ['%s=%r' % (key, value)
10218
      for key, value in self.__dict__.iteritems()]
10219
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10220
 
10221
  def __eq__(self, other):
10222
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10223
 
10224
  def __ne__(self, other):
10225
    return not (self == other)
10226
 
10227
class addOosStatusForItem_args:
10228
  """
10229
  Attributes:
10230
   - oosStatusMap
10231
   - date
10232
  """
10233
 
10234
  thrift_spec = (
10235
    None, # 0
10236
    (1, TType.MAP, 'oosStatusMap', (TType.I64,None,TType.BOOL,None), None, ), # 1
10237
    (2, TType.I64, 'date', None, None, ), # 2
10238
  )
10239
 
10240
  def __init__(self, oosStatusMap=None, date=None,):
10241
    self.oosStatusMap = oosStatusMap
10242
    self.date = date
10243
 
10244
  def read(self, iprot):
10245
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10246
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10247
      return
10248
    iprot.readStructBegin()
10249
    while True:
10250
      (fname, ftype, fid) = iprot.readFieldBegin()
10251
      if ftype == TType.STOP:
10252
        break
10253
      if fid == 1:
10254
        if ftype == TType.MAP:
10255
          self.oosStatusMap = {}
8182 amar.kumar 10256
          (_ktype194, _vtype195, _size193 ) = iprot.readMapBegin() 
10257
          for _i197 in xrange(_size193):
10258
            _key198 = iprot.readI64();
10259
            _val199 = iprot.readBool();
10260
            self.oosStatusMap[_key198] = _val199
6821 amar.kumar 10261
          iprot.readMapEnd()
10262
        else:
10263
          iprot.skip(ftype)
10264
      elif fid == 2:
10265
        if ftype == TType.I64:
10266
          self.date = iprot.readI64();
10267
        else:
10268
          iprot.skip(ftype)
10269
      else:
10270
        iprot.skip(ftype)
10271
      iprot.readFieldEnd()
10272
    iprot.readStructEnd()
10273
 
10274
  def write(self, oprot):
10275
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10276
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10277
      return
10278
    oprot.writeStructBegin('addOosStatusForItem_args')
10279
    if self.oosStatusMap is not None:
10280
      oprot.writeFieldBegin('oosStatusMap', TType.MAP, 1)
10281
      oprot.writeMapBegin(TType.I64, TType.BOOL, len(self.oosStatusMap))
8182 amar.kumar 10282
      for kiter200,viter201 in self.oosStatusMap.items():
10283
        oprot.writeI64(kiter200)
10284
        oprot.writeBool(viter201)
6821 amar.kumar 10285
      oprot.writeMapEnd()
10286
      oprot.writeFieldEnd()
10287
    if self.date is not None:
10288
      oprot.writeFieldBegin('date', TType.I64, 2)
10289
      oprot.writeI64(self.date)
10290
      oprot.writeFieldEnd()
10291
    oprot.writeFieldStop()
10292
    oprot.writeStructEnd()
10293
 
10294
  def validate(self):
10295
    return
10296
 
10297
 
10298
  def __repr__(self):
10299
    L = ['%s=%r' % (key, value)
10300
      for key, value in self.__dict__.iteritems()]
10301
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10302
 
10303
  def __eq__(self, other):
10304
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10305
 
10306
  def __ne__(self, other):
10307
    return not (self == other)
10308
 
10309
class addOosStatusForItem_result:
10310
 
10311
  thrift_spec = (
10312
  )
10313
 
10314
  def read(self, iprot):
10315
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10316
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10317
      return
10318
    iprot.readStructBegin()
10319
    while True:
10320
      (fname, ftype, fid) = iprot.readFieldBegin()
10321
      if ftype == TType.STOP:
10322
        break
10323
      else:
10324
        iprot.skip(ftype)
10325
      iprot.readFieldEnd()
10326
    iprot.readStructEnd()
10327
 
10328
  def write(self, oprot):
10329
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10330
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10331
      return
10332
    oprot.writeStructBegin('addOosStatusForItem_result')
10333
    oprot.writeFieldStop()
10334
    oprot.writeStructEnd()
10335
 
10336
  def validate(self):
10337
    return
10338
 
10339
 
10340
  def __repr__(self):
10341
    L = ['%s=%r' % (key, value)
10342
      for key, value in self.__dict__.iteritems()]
10343
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10344
 
10345
  def __eq__(self, other):
10346
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10347
 
10348
  def __ne__(self, other):
10349
    return not (self == other)
6832 amar.kumar 10350
 
10351
class getOosStatusesForXDaysForItem_args:
10352
  """
10353
  Attributes:
10354
   - itemId
9762 amar.kumar 10355
   - sourceId
6832 amar.kumar 10356
   - days
10357
  """
10358
 
10359
  thrift_spec = (
10360
    None, # 0
10361
    (1, TType.I64, 'itemId', None, None, ), # 1
9762 amar.kumar 10362
    (2, TType.I32, 'sourceId', None, None, ), # 2
10363
    (3, TType.I32, 'days', None, None, ), # 3
6832 amar.kumar 10364
  )
10365
 
9762 amar.kumar 10366
  def __init__(self, itemId=None, sourceId=None, days=None,):
6832 amar.kumar 10367
    self.itemId = itemId
9762 amar.kumar 10368
    self.sourceId = sourceId
6832 amar.kumar 10369
    self.days = days
10370
 
10371
  def read(self, iprot):
10372
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10373
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10374
      return
10375
    iprot.readStructBegin()
10376
    while True:
10377
      (fname, ftype, fid) = iprot.readFieldBegin()
10378
      if ftype == TType.STOP:
10379
        break
10380
      if fid == 1:
10381
        if ftype == TType.I64:
10382
          self.itemId = iprot.readI64();
10383
        else:
10384
          iprot.skip(ftype)
10385
      elif fid == 2:
10386
        if ftype == TType.I32:
9762 amar.kumar 10387
          self.sourceId = iprot.readI32();
10388
        else:
10389
          iprot.skip(ftype)
10390
      elif fid == 3:
10391
        if ftype == TType.I32:
6832 amar.kumar 10392
          self.days = iprot.readI32();
10393
        else:
10394
          iprot.skip(ftype)
10395
      else:
10396
        iprot.skip(ftype)
10397
      iprot.readFieldEnd()
10398
    iprot.readStructEnd()
10399
 
10400
  def write(self, oprot):
10401
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10402
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10403
      return
10404
    oprot.writeStructBegin('getOosStatusesForXDaysForItem_args')
10405
    if self.itemId is not None:
10406
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10407
      oprot.writeI64(self.itemId)
10408
      oprot.writeFieldEnd()
9762 amar.kumar 10409
    if self.sourceId is not None:
10410
      oprot.writeFieldBegin('sourceId', TType.I32, 2)
10411
      oprot.writeI32(self.sourceId)
10412
      oprot.writeFieldEnd()
6832 amar.kumar 10413
    if self.days is not None:
9762 amar.kumar 10414
      oprot.writeFieldBegin('days', TType.I32, 3)
6832 amar.kumar 10415
      oprot.writeI32(self.days)
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 getOosStatusesForXDaysForItem_result:
10436
  """
10437
  Attributes:
10438
   - success
10439
  """
10440
 
10441
  thrift_spec = (
10442
    (0, TType.LIST, 'success', (TType.STRUCT,(OOSStatus, OOSStatus.thrift_spec)), 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.LIST:
10459
          self.success = []
8182 amar.kumar 10460
          (_etype205, _size202) = iprot.readListBegin()
10461
          for _i206 in xrange(_size202):
10462
            _elem207 = OOSStatus()
10463
            _elem207.read(iprot)
10464
            self.success.append(_elem207)
6832 amar.kumar 10465
          iprot.readListEnd()
10466
        else:
10467
          iprot.skip(ftype)
10468
      else:
10469
        iprot.skip(ftype)
10470
      iprot.readFieldEnd()
10471
    iprot.readStructEnd()
10472
 
10473
  def write(self, oprot):
10474
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10475
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10476
      return
10477
    oprot.writeStructBegin('getOosStatusesForXDaysForItem_result')
10478
    if self.success is not None:
10479
      oprot.writeFieldBegin('success', TType.LIST, 0)
10480
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 10481
      for iter208 in self.success:
10482
        iter208.write(oprot)
6832 amar.kumar 10483
      oprot.writeListEnd()
10484
      oprot.writeFieldEnd()
10485
    oprot.writeFieldStop()
10486
    oprot.writeStructEnd()
10487
 
10488
  def validate(self):
10489
    return
10490
 
10491
 
10492
  def __repr__(self):
10493
    L = ['%s=%r' % (key, value)
10494
      for key, value in self.__dict__.iteritems()]
10495
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10496
 
10497
  def __eq__(self, other):
10498
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10499
 
10500
  def __ne__(self, other):
10501
    return not (self == other)
6857 amar.kumar 10502
 
10503
class getNonZeroItemStockPurchaseParams_args:
10504
 
10505
  thrift_spec = (
10506
  )
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
      else:
10518
        iprot.skip(ftype)
10519
      iprot.readFieldEnd()
10520
    iprot.readStructEnd()
10521
 
10522
  def write(self, oprot):
10523
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10524
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10525
      return
10526
    oprot.writeStructBegin('getNonZeroItemStockPurchaseParams_args')
10527
    oprot.writeFieldStop()
10528
    oprot.writeStructEnd()
10529
 
10530
  def validate(self):
10531
    return
10532
 
10533
 
10534
  def __repr__(self):
10535
    L = ['%s=%r' % (key, value)
10536
      for key, value in self.__dict__.iteritems()]
10537
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10538
 
10539
  def __eq__(self, other):
10540
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10541
 
10542
  def __ne__(self, other):
10543
    return not (self == other)
10544
 
10545
class getNonZeroItemStockPurchaseParams_result:
10546
  """
10547
  Attributes:
10548
   - success
10549
  """
10550
 
10551
  thrift_spec = (
10552
    (0, TType.LIST, 'success', (TType.STRUCT,(ItemStockPurchaseParams, ItemStockPurchaseParams.thrift_spec)), None, ), # 0
10553
  )
10554
 
10555
  def __init__(self, success=None,):
10556
    self.success = success
10557
 
10558
  def read(self, iprot):
10559
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10560
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10561
      return
10562
    iprot.readStructBegin()
10563
    while True:
10564
      (fname, ftype, fid) = iprot.readFieldBegin()
10565
      if ftype == TType.STOP:
10566
        break
10567
      if fid == 0:
10568
        if ftype == TType.LIST:
10569
          self.success = []
8182 amar.kumar 10570
          (_etype212, _size209) = iprot.readListBegin()
10571
          for _i213 in xrange(_size209):
10572
            _elem214 = ItemStockPurchaseParams()
10573
            _elem214.read(iprot)
10574
            self.success.append(_elem214)
6857 amar.kumar 10575
          iprot.readListEnd()
10576
        else:
10577
          iprot.skip(ftype)
10578
      else:
10579
        iprot.skip(ftype)
10580
      iprot.readFieldEnd()
10581
    iprot.readStructEnd()
10582
 
10583
  def write(self, oprot):
10584
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10585
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10586
      return
10587
    oprot.writeStructBegin('getNonZeroItemStockPurchaseParams_result')
10588
    if self.success is not None:
10589
      oprot.writeFieldBegin('success', TType.LIST, 0)
10590
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 10591
      for iter215 in self.success:
10592
        iter215.write(oprot)
6857 amar.kumar 10593
      oprot.writeListEnd()
10594
      oprot.writeFieldEnd()
10595
    oprot.writeFieldStop()
10596
    oprot.writeStructEnd()
10597
 
10598
  def validate(self):
10599
    return
10600
 
10601
 
10602
  def __repr__(self):
10603
    L = ['%s=%r' % (key, value)
10604
      for key, value in self.__dict__.iteritems()]
10605
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10606
 
10607
  def __eq__(self, other):
10608
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10609
 
10610
  def __ne__(self, other):
10611
    return not (self == other)
7149 amar.kumar 10612
 
10613
class getBillableInventoryAndPendingOrders_args:
10614
 
10615
  thrift_spec = (
10616
  )
10617
 
10618
  def read(self, iprot):
10619
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10620
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10621
      return
10622
    iprot.readStructBegin()
10623
    while True:
10624
      (fname, ftype, fid) = iprot.readFieldBegin()
10625
      if ftype == TType.STOP:
10626
        break
10627
      else:
10628
        iprot.skip(ftype)
10629
      iprot.readFieldEnd()
10630
    iprot.readStructEnd()
10631
 
10632
  def write(self, oprot):
10633
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10634
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10635
      return
10636
    oprot.writeStructBegin('getBillableInventoryAndPendingOrders_args')
10637
    oprot.writeFieldStop()
10638
    oprot.writeStructEnd()
10639
 
10640
  def validate(self):
10641
    return
10642
 
10643
 
10644
  def __repr__(self):
10645
    L = ['%s=%r' % (key, value)
10646
      for key, value in self.__dict__.iteritems()]
10647
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10648
 
10649
  def __eq__(self, other):
10650
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10651
 
10652
  def __ne__(self, other):
10653
    return not (self == other)
10654
 
10655
class getBillableInventoryAndPendingOrders_result:
10656
  """
10657
  Attributes:
10658
   - success
10659
  """
10660
 
10661
  thrift_spec = (
10662
    (0, TType.LIST, 'success', (TType.STRUCT,(AvailableAndReservedStock, AvailableAndReservedStock.thrift_spec)), None, ), # 0
10663
  )
10664
 
10665
  def __init__(self, success=None,):
10666
    self.success = success
10667
 
10668
  def read(self, iprot):
10669
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10670
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10671
      return
10672
    iprot.readStructBegin()
10673
    while True:
10674
      (fname, ftype, fid) = iprot.readFieldBegin()
10675
      if ftype == TType.STOP:
10676
        break
10677
      if fid == 0:
10678
        if ftype == TType.LIST:
10679
          self.success = []
8182 amar.kumar 10680
          (_etype219, _size216) = iprot.readListBegin()
10681
          for _i220 in xrange(_size216):
10682
            _elem221 = AvailableAndReservedStock()
10683
            _elem221.read(iprot)
10684
            self.success.append(_elem221)
7149 amar.kumar 10685
          iprot.readListEnd()
10686
        else:
10687
          iprot.skip(ftype)
10688
      else:
10689
        iprot.skip(ftype)
10690
      iprot.readFieldEnd()
10691
    iprot.readStructEnd()
10692
 
10693
  def write(self, oprot):
10694
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10695
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10696
      return
10697
    oprot.writeStructBegin('getBillableInventoryAndPendingOrders_result')
10698
    if self.success is not None:
10699
      oprot.writeFieldBegin('success', TType.LIST, 0)
10700
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 10701
      for iter222 in self.success:
10702
        iter222.write(oprot)
7149 amar.kumar 10703
      oprot.writeListEnd()
10704
      oprot.writeFieldEnd()
10705
    oprot.writeFieldStop()
10706
    oprot.writeStructEnd()
10707
 
10708
  def validate(self):
10709
    return
10710
 
10711
 
10712
  def __repr__(self):
10713
    L = ['%s=%r' % (key, value)
10714
      for key, value in self.__dict__.iteritems()]
10715
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10716
 
10717
  def __eq__(self, other):
10718
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10719
 
10720
  def __ne__(self, other):
10721
    return not (self == other)
7281 kshitij.so 10722
 
10723
class getWarehouseName_args:
10724
  """
10725
  Attributes:
10726
   - warehouse_id
10727
  """
10728
 
10729
  thrift_spec = (
10730
    None, # 0
10731
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
10732
  )
10733
 
10734
  def __init__(self, warehouse_id=None,):
10735
    self.warehouse_id = warehouse_id
10736
 
10737
  def read(self, iprot):
10738
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10739
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10740
      return
10741
    iprot.readStructBegin()
10742
    while True:
10743
      (fname, ftype, fid) = iprot.readFieldBegin()
10744
      if ftype == TType.STOP:
10745
        break
10746
      if fid == 1:
10747
        if ftype == TType.I64:
10748
          self.warehouse_id = iprot.readI64();
10749
        else:
10750
          iprot.skip(ftype)
10751
      else:
10752
        iprot.skip(ftype)
10753
      iprot.readFieldEnd()
10754
    iprot.readStructEnd()
10755
 
10756
  def write(self, oprot):
10757
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10758
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10759
      return
10760
    oprot.writeStructBegin('getWarehouseName_args')
10761
    if self.warehouse_id is not None:
10762
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
10763
      oprot.writeI64(self.warehouse_id)
10764
      oprot.writeFieldEnd()
10765
    oprot.writeFieldStop()
10766
    oprot.writeStructEnd()
10767
 
10768
  def validate(self):
10769
    return
10770
 
10771
 
10772
  def __repr__(self):
10773
    L = ['%s=%r' % (key, value)
10774
      for key, value in self.__dict__.iteritems()]
10775
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10776
 
10777
  def __eq__(self, other):
10778
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10779
 
10780
  def __ne__(self, other):
10781
    return not (self == other)
10782
 
10783
class getWarehouseName_result:
10784
  """
10785
  Attributes:
10786
   - success
10787
  """
10788
 
10789
  thrift_spec = (
10790
    (0, TType.STRING, 'success', None, None, ), # 0
10791
  )
10792
 
10793
  def __init__(self, success=None,):
10794
    self.success = success
10795
 
10796
  def read(self, iprot):
10797
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10798
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10799
      return
10800
    iprot.readStructBegin()
10801
    while True:
10802
      (fname, ftype, fid) = iprot.readFieldBegin()
10803
      if ftype == TType.STOP:
10804
        break
10805
      if fid == 0:
10806
        if ftype == TType.STRING:
10807
          self.success = iprot.readString();
10808
        else:
10809
          iprot.skip(ftype)
10810
      else:
10811
        iprot.skip(ftype)
10812
      iprot.readFieldEnd()
10813
    iprot.readStructEnd()
10814
 
10815
  def write(self, oprot):
10816
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10817
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10818
      return
10819
    oprot.writeStructBegin('getWarehouseName_result')
10820
    if self.success is not None:
10821
      oprot.writeFieldBegin('success', TType.STRING, 0)
10822
      oprot.writeString(self.success)
10823
      oprot.writeFieldEnd()
10824
    oprot.writeFieldStop()
10825
    oprot.writeStructEnd()
10826
 
10827
  def validate(self):
10828
    return
10829
 
10830
 
10831
  def __repr__(self):
10832
    L = ['%s=%r' % (key, value)
10833
      for key, value in self.__dict__.iteritems()]
10834
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10835
 
10836
  def __eq__(self, other):
10837
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10838
 
10839
  def __ne__(self, other):
10840
    return not (self == other)
10841
 
10842
class getAmazonInventoryForItem_args:
10843
  """
10844
  Attributes:
10845
   - item_id
10846
  """
10847
 
10848
  thrift_spec = (
10849
    None, # 0
10850
    (1, TType.I64, 'item_id', None, None, ), # 1
10851
  )
10852
 
10853
  def __init__(self, item_id=None,):
10854
    self.item_id = item_id
10855
 
10856
  def read(self, iprot):
10857
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10858
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10859
      return
10860
    iprot.readStructBegin()
10861
    while True:
10862
      (fname, ftype, fid) = iprot.readFieldBegin()
10863
      if ftype == TType.STOP:
10864
        break
10865
      if fid == 1:
10866
        if ftype == TType.I64:
10867
          self.item_id = iprot.readI64();
10868
        else:
10869
          iprot.skip(ftype)
10870
      else:
10871
        iprot.skip(ftype)
10872
      iprot.readFieldEnd()
10873
    iprot.readStructEnd()
10874
 
10875
  def write(self, oprot):
10876
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10877
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10878
      return
10879
    oprot.writeStructBegin('getAmazonInventoryForItem_args')
10880
    if self.item_id is not None:
10881
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10882
      oprot.writeI64(self.item_id)
10883
      oprot.writeFieldEnd()
10884
    oprot.writeFieldStop()
10885
    oprot.writeStructEnd()
10886
 
10887
  def validate(self):
10888
    return
10889
 
10890
 
10891
  def __repr__(self):
10892
    L = ['%s=%r' % (key, value)
10893
      for key, value in self.__dict__.iteritems()]
10894
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10895
 
10896
  def __eq__(self, other):
10897
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10898
 
10899
  def __ne__(self, other):
10900
    return not (self == other)
10901
 
10902
class getAmazonInventoryForItem_result:
10903
  """
10904
  Attributes:
10905
   - success
10906
  """
10907
 
10908
  thrift_spec = (
10909
    (0, TType.STRUCT, 'success', (AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec), None, ), # 0
10910
  )
10911
 
10912
  def __init__(self, success=None,):
10913
    self.success = success
10914
 
10915
  def read(self, iprot):
10916
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10917
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10918
      return
10919
    iprot.readStructBegin()
10920
    while True:
10921
      (fname, ftype, fid) = iprot.readFieldBegin()
10922
      if ftype == TType.STOP:
10923
        break
10924
      if fid == 0:
10925
        if ftype == TType.STRUCT:
10926
          self.success = AmazonInventorySnapshot()
10927
          self.success.read(iprot)
10928
        else:
10929
          iprot.skip(ftype)
10930
      else:
10931
        iprot.skip(ftype)
10932
      iprot.readFieldEnd()
10933
    iprot.readStructEnd()
10934
 
10935
  def write(self, oprot):
10936
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10937
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10938
      return
10939
    oprot.writeStructBegin('getAmazonInventoryForItem_result')
10940
    if self.success is not None:
10941
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10942
      self.success.write(oprot)
10943
      oprot.writeFieldEnd()
10944
    oprot.writeFieldStop()
10945
    oprot.writeStructEnd()
10946
 
10947
  def validate(self):
10948
    return
10949
 
10950
 
10951
  def __repr__(self):
10952
    L = ['%s=%r' % (key, value)
10953
      for key, value in self.__dict__.iteritems()]
10954
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10955
 
10956
  def __eq__(self, other):
10957
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10958
 
10959
  def __ne__(self, other):
10960
    return not (self == other)
10961
 
10962
class getAllAmazonInventory_args:
10963
 
10964
  thrift_spec = (
10965
  )
10966
 
10967
  def read(self, iprot):
10968
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10969
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10970
      return
10971
    iprot.readStructBegin()
10972
    while True:
10973
      (fname, ftype, fid) = iprot.readFieldBegin()
10974
      if ftype == TType.STOP:
10975
        break
10976
      else:
10977
        iprot.skip(ftype)
10978
      iprot.readFieldEnd()
10979
    iprot.readStructEnd()
10980
 
10981
  def write(self, oprot):
10982
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10983
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10984
      return
10985
    oprot.writeStructBegin('getAllAmazonInventory_args')
10986
    oprot.writeFieldStop()
10987
    oprot.writeStructEnd()
10988
 
10989
  def validate(self):
10990
    return
10991
 
10992
 
10993
  def __repr__(self):
10994
    L = ['%s=%r' % (key, value)
10995
      for key, value in self.__dict__.iteritems()]
10996
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10997
 
10998
  def __eq__(self, other):
10999
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11000
 
11001
  def __ne__(self, other):
11002
    return not (self == other)
11003
 
11004
class getAllAmazonInventory_result:
11005
  """
11006
  Attributes:
11007
   - success
11008
  """
11009
 
11010
  thrift_spec = (
11011
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec)), None, ), # 0
11012
  )
11013
 
11014
  def __init__(self, success=None,):
11015
    self.success = success
11016
 
11017
  def read(self, iprot):
11018
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11019
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11020
      return
11021
    iprot.readStructBegin()
11022
    while True:
11023
      (fname, ftype, fid) = iprot.readFieldBegin()
11024
      if ftype == TType.STOP:
11025
        break
11026
      if fid == 0:
11027
        if ftype == TType.LIST:
11028
          self.success = []
8182 amar.kumar 11029
          (_etype226, _size223) = iprot.readListBegin()
11030
          for _i227 in xrange(_size223):
11031
            _elem228 = AmazonInventorySnapshot()
11032
            _elem228.read(iprot)
11033
            self.success.append(_elem228)
7281 kshitij.so 11034
          iprot.readListEnd()
11035
        else:
11036
          iprot.skip(ftype)
11037
      else:
11038
        iprot.skip(ftype)
11039
      iprot.readFieldEnd()
11040
    iprot.readStructEnd()
11041
 
11042
  def write(self, oprot):
11043
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11044
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11045
      return
11046
    oprot.writeStructBegin('getAllAmazonInventory_result')
11047
    if self.success is not None:
11048
      oprot.writeFieldBegin('success', TType.LIST, 0)
11049
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8182 amar.kumar 11050
      for iter229 in self.success:
11051
        iter229.write(oprot)
7281 kshitij.so 11052
      oprot.writeListEnd()
11053
      oprot.writeFieldEnd()
11054
    oprot.writeFieldStop()
11055
    oprot.writeStructEnd()
11056
 
11057
  def validate(self):
11058
    return
11059
 
11060
 
11061
  def __repr__(self):
11062
    L = ['%s=%r' % (key, value)
11063
      for key, value in self.__dict__.iteritems()]
11064
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11065
 
11066
  def __eq__(self, other):
11067
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11068
 
11069
  def __ne__(self, other):
11070
    return not (self == other)
11071
 
11072
class addOrUpdateAmazonInventoryForItem_args:
11073
  """
11074
  Attributes:
11075
   - amazonInventorySnapshot
11076
  """
11077
 
11078
  thrift_spec = (
11079
    None, # 0
11080
    (1, TType.STRUCT, 'amazonInventorySnapshot', (AmazonInventorySnapshot, AmazonInventorySnapshot.thrift_spec), None, ), # 1
11081
  )
11082
 
11083
  def __init__(self, amazonInventorySnapshot=None,):
11084
    self.amazonInventorySnapshot = amazonInventorySnapshot
11085
 
11086
  def read(self, iprot):
11087
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11088
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11089
      return
11090
    iprot.readStructBegin()
11091
    while True:
11092
      (fname, ftype, fid) = iprot.readFieldBegin()
11093
      if ftype == TType.STOP:
11094
        break
11095
      if fid == 1:
11096
        if ftype == TType.STRUCT:
11097
          self.amazonInventorySnapshot = AmazonInventorySnapshot()
11098
          self.amazonInventorySnapshot.read(iprot)
11099
        else:
11100
          iprot.skip(ftype)
11101
      else:
11102
        iprot.skip(ftype)
11103
      iprot.readFieldEnd()
11104
    iprot.readStructEnd()
11105
 
11106
  def write(self, oprot):
11107
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11108
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11109
      return
11110
    oprot.writeStructBegin('addOrUpdateAmazonInventoryForItem_args')
11111
    if self.amazonInventorySnapshot is not None:
11112
      oprot.writeFieldBegin('amazonInventorySnapshot', TType.STRUCT, 1)
11113
      self.amazonInventorySnapshot.write(oprot)
11114
      oprot.writeFieldEnd()
11115
    oprot.writeFieldStop()
11116
    oprot.writeStructEnd()
11117
 
11118
  def validate(self):
11119
    return
11120
 
11121
 
11122
  def __repr__(self):
11123
    L = ['%s=%r' % (key, value)
11124
      for key, value in self.__dict__.iteritems()]
11125
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11126
 
11127
  def __eq__(self, other):
11128
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11129
 
11130
  def __ne__(self, other):
11131
    return not (self == other)
11132
 
11133
class addOrUpdateAmazonInventoryForItem_result:
11134
 
11135
  thrift_spec = (
11136
  )
11137
 
11138
  def read(self, iprot):
11139
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11140
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11141
      return
11142
    iprot.readStructBegin()
11143
    while True:
11144
      (fname, ftype, fid) = iprot.readFieldBegin()
11145
      if ftype == TType.STOP:
11146
        break
11147
      else:
11148
        iprot.skip(ftype)
11149
      iprot.readFieldEnd()
11150
    iprot.readStructEnd()
11151
 
11152
  def write(self, oprot):
11153
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11154
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11155
      return
11156
    oprot.writeStructBegin('addOrUpdateAmazonInventoryForItem_result')
11157
    oprot.writeFieldStop()
11158
    oprot.writeStructEnd()
11159
 
11160
  def validate(self):
11161
    return
11162
 
11163
 
11164
  def __repr__(self):
11165
    L = ['%s=%r' % (key, value)
11166
      for key, value in self.__dict__.iteritems()]
11167
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11168
 
11169
  def __eq__(self, other):
11170
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11171
 
11172
  def __ne__(self, other):
11173
    return not (self == other)
7972 amar.kumar 11174
 
11175
class getLastNdaySaleForItem_args:
11176
  """
11177
  Attributes:
11178
   - itemId
11179
   - numberOfDays
11180
  """
11181
 
11182
  thrift_spec = (
11183
    None, # 0
11184
    (1, TType.I64, 'itemId', None, None, ), # 1
11185
    (2, TType.I64, 'numberOfDays', None, None, ), # 2
11186
  )
11187
 
11188
  def __init__(self, itemId=None, numberOfDays=None,):
11189
    self.itemId = itemId
11190
    self.numberOfDays = numberOfDays
11191
 
11192
  def read(self, iprot):
11193
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11194
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11195
      return
11196
    iprot.readStructBegin()
11197
    while True:
11198
      (fname, ftype, fid) = iprot.readFieldBegin()
11199
      if ftype == TType.STOP:
11200
        break
11201
      if fid == 1:
11202
        if ftype == TType.I64:
11203
          self.itemId = iprot.readI64();
11204
        else:
11205
          iprot.skip(ftype)
11206
      elif fid == 2:
11207
        if ftype == TType.I64:
11208
          self.numberOfDays = iprot.readI64();
11209
        else:
11210
          iprot.skip(ftype)
11211
      else:
11212
        iprot.skip(ftype)
11213
      iprot.readFieldEnd()
11214
    iprot.readStructEnd()
11215
 
11216
  def write(self, oprot):
11217
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11218
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11219
      return
11220
    oprot.writeStructBegin('getLastNdaySaleForItem_args')
11221
    if self.itemId is not None:
11222
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11223
      oprot.writeI64(self.itemId)
11224
      oprot.writeFieldEnd()
11225
    if self.numberOfDays is not None:
11226
      oprot.writeFieldBegin('numberOfDays', TType.I64, 2)
11227
      oprot.writeI64(self.numberOfDays)
11228
      oprot.writeFieldEnd()
11229
    oprot.writeFieldStop()
11230
    oprot.writeStructEnd()
11231
 
11232
  def validate(self):
11233
    return
11234
 
11235
 
11236
  def __repr__(self):
11237
    L = ['%s=%r' % (key, value)
11238
      for key, value in self.__dict__.iteritems()]
11239
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11240
 
11241
  def __eq__(self, other):
11242
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11243
 
11244
  def __ne__(self, other):
11245
    return not (self == other)
11246
 
11247
class getLastNdaySaleForItem_result:
11248
  """
11249
  Attributes:
11250
   - success
11251
  """
11252
 
11253
  thrift_spec = (
11254
    (0, TType.STRING, 'success', None, None, ), # 0
11255
  )
11256
 
11257
  def __init__(self, success=None,):
11258
    self.success = success
11259
 
11260
  def read(self, iprot):
11261
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11262
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11263
      return
11264
    iprot.readStructBegin()
11265
    while True:
11266
      (fname, ftype, fid) = iprot.readFieldBegin()
11267
      if ftype == TType.STOP:
11268
        break
11269
      if fid == 0:
11270
        if ftype == TType.STRING:
11271
          self.success = iprot.readString();
11272
        else:
11273
          iprot.skip(ftype)
11274
      else:
11275
        iprot.skip(ftype)
11276
      iprot.readFieldEnd()
11277
    iprot.readStructEnd()
11278
 
11279
  def write(self, oprot):
11280
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11281
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11282
      return
11283
    oprot.writeStructBegin('getLastNdaySaleForItem_result')
11284
    if self.success is not None:
11285
      oprot.writeFieldBegin('success', TType.STRING, 0)
11286
      oprot.writeString(self.success)
11287
      oprot.writeFieldEnd()
11288
    oprot.writeFieldStop()
11289
    oprot.writeStructEnd()
11290
 
11291
  def validate(self):
11292
    return
11293
 
11294
 
11295
  def __repr__(self):
11296
    L = ['%s=%r' % (key, value)
11297
      for key, value in self.__dict__.iteritems()]
11298
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11299
 
11300
  def __eq__(self, other):
11301
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11302
 
11303
  def __ne__(self, other):
11304
    return not (self == other)
8182 amar.kumar 11305
 
8282 kshitij.so 11306
class addOrUpdateAmazonFbaInventory_args:
11307
  """
11308
  Attributes:
11309
   - amazonfbainventorysnapshot
11310
  """
11311
 
11312
  thrift_spec = (
11313
    None, # 0
11314
    (1, TType.STRUCT, 'amazonfbainventorysnapshot', (AmazonFbaInventorySnapshot, AmazonFbaInventorySnapshot.thrift_spec), None, ), # 1
11315
  )
11316
 
11317
  def __init__(self, amazonfbainventorysnapshot=None,):
11318
    self.amazonfbainventorysnapshot = amazonfbainventorysnapshot
11319
 
11320
  def read(self, iprot):
11321
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11322
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11323
      return
11324
    iprot.readStructBegin()
11325
    while True:
11326
      (fname, ftype, fid) = iprot.readFieldBegin()
11327
      if ftype == TType.STOP:
11328
        break
11329
      if fid == 1:
11330
        if ftype == TType.STRUCT:
11331
          self.amazonfbainventorysnapshot = AmazonFbaInventorySnapshot()
11332
          self.amazonfbainventorysnapshot.read(iprot)
11333
        else:
11334
          iprot.skip(ftype)
11335
      else:
11336
        iprot.skip(ftype)
11337
      iprot.readFieldEnd()
11338
    iprot.readStructEnd()
11339
 
11340
  def write(self, oprot):
11341
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11342
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11343
      return
11344
    oprot.writeStructBegin('addOrUpdateAmazonFbaInventory_args')
11345
    if self.amazonfbainventorysnapshot is not None:
11346
      oprot.writeFieldBegin('amazonfbainventorysnapshot', TType.STRUCT, 1)
11347
      self.amazonfbainventorysnapshot.write(oprot)
11348
      oprot.writeFieldEnd()
11349
    oprot.writeFieldStop()
11350
    oprot.writeStructEnd()
11351
 
11352
  def validate(self):
11353
    return
11354
 
11355
 
11356
  def __repr__(self):
11357
    L = ['%s=%r' % (key, value)
11358
      for key, value in self.__dict__.iteritems()]
11359
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11360
 
11361
  def __eq__(self, other):
11362
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11363
 
11364
  def __ne__(self, other):
11365
    return not (self == other)
11366
 
11367
class addOrUpdateAmazonFbaInventory_result:
11368
 
11369
  thrift_spec = (
11370
  )
11371
 
11372
  def read(self, iprot):
11373
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11374
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11375
      return
11376
    iprot.readStructBegin()
11377
    while True:
11378
      (fname, ftype, fid) = iprot.readFieldBegin()
11379
      if ftype == TType.STOP:
11380
        break
11381
      else:
11382
        iprot.skip(ftype)
11383
      iprot.readFieldEnd()
11384
    iprot.readStructEnd()
11385
 
11386
  def write(self, oprot):
11387
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11388
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11389
      return
11390
    oprot.writeStructBegin('addOrUpdateAmazonFbaInventory_result')
11391
    oprot.writeFieldStop()
11392
    oprot.writeStructEnd()
11393
 
11394
  def validate(self):
11395
    return
11396
 
11397
 
11398
  def __repr__(self):
11399
    L = ['%s=%r' % (key, value)
11400
      for key, value in self.__dict__.iteritems()]
11401
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11402
 
11403
  def __eq__(self, other):
11404
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11405
 
11406
  def __ne__(self, other):
11407
    return not (self == other)
11408
 
8182 amar.kumar 11409
class addUpdateHoldInventory_args:
11410
  """
11411
  Attributes:
11412
   - itemId
11413
   - warehouseId
11414
   - holdQuantity
11415
   - source
11416
  """
11417
 
11418
  thrift_spec = (
11419
    None, # 0
11420
    (1, TType.I64, 'itemId', None, None, ), # 1
11421
    (2, TType.I64, 'warehouseId', None, None, ), # 2
11422
    (3, TType.I64, 'holdQuantity', None, None, ), # 3
11423
    (4, TType.I64, 'source', None, None, ), # 4
11424
  )
11425
 
11426
  def __init__(self, itemId=None, warehouseId=None, holdQuantity=None, source=None,):
11427
    self.itemId = itemId
11428
    self.warehouseId = warehouseId
11429
    self.holdQuantity = holdQuantity
11430
    self.source = source
11431
 
11432
  def read(self, iprot):
11433
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11434
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11435
      return
11436
    iprot.readStructBegin()
11437
    while True:
11438
      (fname, ftype, fid) = iprot.readFieldBegin()
11439
      if ftype == TType.STOP:
11440
        break
11441
      if fid == 1:
11442
        if ftype == TType.I64:
11443
          self.itemId = iprot.readI64();
11444
        else:
11445
          iprot.skip(ftype)
11446
      elif fid == 2:
11447
        if ftype == TType.I64:
11448
          self.warehouseId = iprot.readI64();
11449
        else:
11450
          iprot.skip(ftype)
11451
      elif fid == 3:
11452
        if ftype == TType.I64:
11453
          self.holdQuantity = iprot.readI64();
11454
        else:
11455
          iprot.skip(ftype)
11456
      elif fid == 4:
11457
        if ftype == TType.I64:
11458
          self.source = iprot.readI64();
11459
        else:
11460
          iprot.skip(ftype)
11461
      else:
11462
        iprot.skip(ftype)
11463
      iprot.readFieldEnd()
11464
    iprot.readStructEnd()
11465
 
11466
  def write(self, oprot):
11467
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11468
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11469
      return
11470
    oprot.writeStructBegin('addUpdateHoldInventory_args')
11471
    if self.itemId is not None:
11472
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11473
      oprot.writeI64(self.itemId)
11474
      oprot.writeFieldEnd()
11475
    if self.warehouseId is not None:
11476
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
11477
      oprot.writeI64(self.warehouseId)
11478
      oprot.writeFieldEnd()
11479
    if self.holdQuantity is not None:
11480
      oprot.writeFieldBegin('holdQuantity', TType.I64, 3)
11481
      oprot.writeI64(self.holdQuantity)
11482
      oprot.writeFieldEnd()
11483
    if self.source is not None:
11484
      oprot.writeFieldBegin('source', TType.I64, 4)
11485
      oprot.writeI64(self.source)
11486
      oprot.writeFieldEnd()
11487
    oprot.writeFieldStop()
11488
    oprot.writeStructEnd()
11489
 
11490
  def validate(self):
11491
    return
11492
 
11493
 
11494
  def __repr__(self):
11495
    L = ['%s=%r' % (key, value)
11496
      for key, value in self.__dict__.iteritems()]
11497
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11498
 
11499
  def __eq__(self, other):
11500
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11501
 
11502
  def __ne__(self, other):
11503
    return not (self == other)
11504
 
11505
class addUpdateHoldInventory_result:
9762 amar.kumar 11506
  """
11507
  Attributes:
11508
   - cex
11509
  """
8182 amar.kumar 11510
 
11511
  thrift_spec = (
9762 amar.kumar 11512
    None, # 0
11513
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
8182 amar.kumar 11514
  )
11515
 
9762 amar.kumar 11516
  def __init__(self, cex=None,):
11517
    self.cex = cex
11518
 
8182 amar.kumar 11519
  def read(self, iprot):
11520
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11521
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11522
      return
11523
    iprot.readStructBegin()
11524
    while True:
11525
      (fname, ftype, fid) = iprot.readFieldBegin()
11526
      if ftype == TType.STOP:
11527
        break
9762 amar.kumar 11528
      if fid == 1:
11529
        if ftype == TType.STRUCT:
11530
          self.cex = InventoryServiceException()
11531
          self.cex.read(iprot)
11532
        else:
11533
          iprot.skip(ftype)
8182 amar.kumar 11534
      else:
11535
        iprot.skip(ftype)
11536
      iprot.readFieldEnd()
11537
    iprot.readStructEnd()
11538
 
11539
  def write(self, oprot):
11540
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11541
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11542
      return
11543
    oprot.writeStructBegin('addUpdateHoldInventory_result')
9762 amar.kumar 11544
    if self.cex is not None:
11545
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11546
      self.cex.write(oprot)
11547
      oprot.writeFieldEnd()
8182 amar.kumar 11548
    oprot.writeFieldStop()
11549
    oprot.writeStructEnd()
11550
 
11551
  def validate(self):
11552
    return
11553
 
11554
 
11555
  def __repr__(self):
11556
    L = ['%s=%r' % (key, value)
11557
      for key, value in self.__dict__.iteritems()]
11558
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11559
 
11560
  def __eq__(self, other):
11561
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11562
 
11563
  def __ne__(self, other):
11564
    return not (self == other)
8282 kshitij.so 11565
 
11566
class getAmazonFbaItemInventory_args:
11567
  """
11568
  Attributes:
11569
   - itemId
11570
  """
11571
 
11572
  thrift_spec = (
11573
    None, # 0
11574
    (1, TType.I64, 'itemId', None, None, ), # 1
11575
  )
11576
 
11577
  def __init__(self, itemId=None,):
11578
    self.itemId = itemId
11579
 
11580
  def read(self, iprot):
11581
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11582
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11583
      return
11584
    iprot.readStructBegin()
11585
    while True:
11586
      (fname, ftype, fid) = iprot.readFieldBegin()
11587
      if ftype == TType.STOP:
11588
        break
11589
      if fid == 1:
11590
        if ftype == TType.I64:
11591
          self.itemId = iprot.readI64();
11592
        else:
11593
          iprot.skip(ftype)
11594
      else:
11595
        iprot.skip(ftype)
11596
      iprot.readFieldEnd()
11597
    iprot.readStructEnd()
11598
 
11599
  def write(self, oprot):
11600
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11601
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11602
      return
11603
    oprot.writeStructBegin('getAmazonFbaItemInventory_args')
11604
    if self.itemId is not None:
11605
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11606
      oprot.writeI64(self.itemId)
11607
      oprot.writeFieldEnd()
11608
    oprot.writeFieldStop()
11609
    oprot.writeStructEnd()
11610
 
11611
  def validate(self):
11612
    return
11613
 
11614
 
11615
  def __repr__(self):
11616
    L = ['%s=%r' % (key, value)
11617
      for key, value in self.__dict__.iteritems()]
11618
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11619
 
11620
  def __eq__(self, other):
11621
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11622
 
11623
  def __ne__(self, other):
11624
    return not (self == other)
11625
 
11626
class getAmazonFbaItemInventory_result:
11627
  """
11628
  Attributes:
11629
   - success
11630
  """
11631
 
11632
  thrift_spec = (
11633
    (0, TType.I64, 'success', None, None, ), # 0
11634
  )
11635
 
11636
  def __init__(self, success=None,):
11637
    self.success = success
11638
 
11639
  def read(self, iprot):
11640
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11641
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11642
      return
11643
    iprot.readStructBegin()
11644
    while True:
11645
      (fname, ftype, fid) = iprot.readFieldBegin()
11646
      if ftype == TType.STOP:
11647
        break
11648
      if fid == 0:
11649
        if ftype == TType.I64:
11650
          self.success = iprot.readI64();
11651
        else:
11652
          iprot.skip(ftype)
11653
      else:
11654
        iprot.skip(ftype)
11655
      iprot.readFieldEnd()
11656
    iprot.readStructEnd()
11657
 
11658
  def write(self, oprot):
11659
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11660
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11661
      return
11662
    oprot.writeStructBegin('getAmazonFbaItemInventory_result')
11663
    if self.success is not None:
11664
      oprot.writeFieldBegin('success', TType.I64, 0)
11665
      oprot.writeI64(self.success)
11666
      oprot.writeFieldEnd()
11667
    oprot.writeFieldStop()
11668
    oprot.writeStructEnd()
11669
 
11670
  def validate(self):
11671
    return
11672
 
11673
 
11674
  def __repr__(self):
11675
    L = ['%s=%r' % (key, value)
11676
      for key, value in self.__dict__.iteritems()]
11677
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11678
 
11679
  def __eq__(self, other):
11680
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11681
 
11682
  def __ne__(self, other):
11683
    return not (self == other)
11684
 
8363 vikram.rag 11685
class getAllAmazonFbaItemInventory_args:
8282 kshitij.so 11686
 
11687
  thrift_spec = (
11688
  )
11689
 
11690
  def read(self, iprot):
11691
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11692
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11693
      return
11694
    iprot.readStructBegin()
11695
    while True:
11696
      (fname, ftype, fid) = iprot.readFieldBegin()
11697
      if ftype == TType.STOP:
11698
        break
11699
      else:
11700
        iprot.skip(ftype)
11701
      iprot.readFieldEnd()
11702
    iprot.readStructEnd()
11703
 
11704
  def write(self, oprot):
11705
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11706
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11707
      return
8363 vikram.rag 11708
    oprot.writeStructBegin('getAllAmazonFbaItemInventory_args')
8282 kshitij.so 11709
    oprot.writeFieldStop()
11710
    oprot.writeStructEnd()
11711
 
11712
  def validate(self):
11713
    return
11714
 
11715
 
11716
  def __repr__(self):
11717
    L = ['%s=%r' % (key, value)
11718
      for key, value in self.__dict__.iteritems()]
11719
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11720
 
11721
  def __eq__(self, other):
11722
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11723
 
11724
  def __ne__(self, other):
11725
    return not (self == other)
11726
 
8363 vikram.rag 11727
class getAllAmazonFbaItemInventory_result:
8282 kshitij.so 11728
  """
11729
  Attributes:
11730
   - success
11731
  """
11732
 
11733
  thrift_spec = (
11734
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonFbaInventorySnapshot, AmazonFbaInventorySnapshot.thrift_spec)), None, ), # 0
11735
  )
11736
 
11737
  def __init__(self, success=None,):
11738
    self.success = success
11739
 
11740
  def read(self, iprot):
11741
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11742
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11743
      return
11744
    iprot.readStructBegin()
11745
    while True:
11746
      (fname, ftype, fid) = iprot.readFieldBegin()
11747
      if ftype == TType.STOP:
11748
        break
11749
      if fid == 0:
11750
        if ftype == TType.LIST:
11751
          self.success = []
11752
          (_etype233, _size230) = iprot.readListBegin()
11753
          for _i234 in xrange(_size230):
11754
            _elem235 = AmazonFbaInventorySnapshot()
11755
            _elem235.read(iprot)
11756
            self.success.append(_elem235)
11757
          iprot.readListEnd()
11758
        else:
11759
          iprot.skip(ftype)
11760
      else:
11761
        iprot.skip(ftype)
11762
      iprot.readFieldEnd()
11763
    iprot.readStructEnd()
11764
 
11765
  def write(self, oprot):
11766
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11767
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11768
      return
8363 vikram.rag 11769
    oprot.writeStructBegin('getAllAmazonFbaItemInventory_result')
8282 kshitij.so 11770
    if self.success is not None:
11771
      oprot.writeFieldBegin('success', TType.LIST, 0)
11772
      oprot.writeListBegin(TType.STRUCT, len(self.success))
11773
      for iter236 in self.success:
11774
        iter236.write(oprot)
11775
      oprot.writeListEnd()
11776
      oprot.writeFieldEnd()
11777
    oprot.writeFieldStop()
11778
    oprot.writeStructEnd()
11779
 
11780
  def validate(self):
11781
    return
11782
 
11783
 
11784
  def __repr__(self):
11785
    L = ['%s=%r' % (key, value)
11786
      for key, value in self.__dict__.iteritems()]
11787
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11788
 
11789
  def __eq__(self, other):
11790
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11791
 
11792
  def __ne__(self, other):
11793
    return not (self == other)
8363 vikram.rag 11794
 
11795
class getOursGoodWarehouseIdsForLocation_args:
11796
  """
11797
  Attributes:
11798
   - state_id
11799
  """
11800
 
11801
  thrift_spec = (
11802
    None, # 0
11803
    (1, TType.I64, 'state_id', None, None, ), # 1
11804
  )
11805
 
11806
  def __init__(self, state_id=None,):
11807
    self.state_id = state_id
11808
 
11809
  def read(self, iprot):
11810
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11811
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11812
      return
11813
    iprot.readStructBegin()
11814
    while True:
11815
      (fname, ftype, fid) = iprot.readFieldBegin()
11816
      if ftype == TType.STOP:
11817
        break
11818
      if fid == 1:
11819
        if ftype == TType.I64:
11820
          self.state_id = iprot.readI64();
11821
        else:
11822
          iprot.skip(ftype)
11823
      else:
11824
        iprot.skip(ftype)
11825
      iprot.readFieldEnd()
11826
    iprot.readStructEnd()
11827
 
11828
  def write(self, oprot):
11829
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11830
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11831
      return
11832
    oprot.writeStructBegin('getOursGoodWarehouseIdsForLocation_args')
11833
    if self.state_id is not None:
11834
      oprot.writeFieldBegin('state_id', TType.I64, 1)
11835
      oprot.writeI64(self.state_id)
11836
      oprot.writeFieldEnd()
11837
    oprot.writeFieldStop()
11838
    oprot.writeStructEnd()
11839
 
11840
  def validate(self):
11841
    return
11842
 
11843
 
11844
  def __repr__(self):
11845
    L = ['%s=%r' % (key, value)
11846
      for key, value in self.__dict__.iteritems()]
11847
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11848
 
11849
  def __eq__(self, other):
11850
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11851
 
11852
  def __ne__(self, other):
11853
    return not (self == other)
11854
 
11855
class getOursGoodWarehouseIdsForLocation_result:
11856
  """
11857
  Attributes:
11858
   - success
11859
  """
11860
 
11861
  thrift_spec = (
11862
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
11863
  )
11864
 
11865
  def __init__(self, success=None,):
11866
    self.success = success
11867
 
11868
  def read(self, iprot):
11869
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11870
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11871
      return
11872
    iprot.readStructBegin()
11873
    while True:
11874
      (fname, ftype, fid) = iprot.readFieldBegin()
11875
      if ftype == TType.STOP:
11876
        break
11877
      if fid == 0:
11878
        if ftype == TType.LIST:
11879
          self.success = []
11880
          (_etype240, _size237) = iprot.readListBegin()
11881
          for _i241 in xrange(_size237):
11882
            _elem242 = iprot.readI64();
11883
            self.success.append(_elem242)
11884
          iprot.readListEnd()
11885
        else:
11886
          iprot.skip(ftype)
11887
      else:
11888
        iprot.skip(ftype)
11889
      iprot.readFieldEnd()
11890
    iprot.readStructEnd()
11891
 
11892
  def write(self, oprot):
11893
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11894
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11895
      return
11896
    oprot.writeStructBegin('getOursGoodWarehouseIdsForLocation_result')
11897
    if self.success is not None:
11898
      oprot.writeFieldBegin('success', TType.LIST, 0)
11899
      oprot.writeListBegin(TType.I64, len(self.success))
11900
      for iter243 in self.success:
11901
        oprot.writeI64(iter243)
11902
      oprot.writeListEnd()
11903
      oprot.writeFieldEnd()
11904
    oprot.writeFieldStop()
11905
    oprot.writeStructEnd()
11906
 
11907
  def validate(self):
11908
    return
11909
 
11910
 
11911
  def __repr__(self):
11912
    L = ['%s=%r' % (key, value)
11913
      for key, value in self.__dict__.iteritems()]
11914
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11915
 
11916
  def __eq__(self, other):
11917
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11918
 
11919
  def __ne__(self, other):
11920
    return not (self == other)
8955 vikram.rag 11921
 
11922
class getHoldInventoryDetailForItemForWarehouseIdExceptSource_args:
11923
  """
11924
  Attributes:
11925
   - id
11926
   - warehouse_id
11927
   - source
11928
  """
11929
 
11930
  thrift_spec = (
11931
    None, # 0
11932
    (1, TType.I64, 'id', None, None, ), # 1
11933
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
11934
    (3, TType.I64, 'source', None, None, ), # 3
11935
  )
11936
 
11937
  def __init__(self, id=None, warehouse_id=None, source=None,):
11938
    self.id = id
11939
    self.warehouse_id = warehouse_id
11940
    self.source = source
11941
 
11942
  def read(self, iprot):
11943
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11944
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11945
      return
11946
    iprot.readStructBegin()
11947
    while True:
11948
      (fname, ftype, fid) = iprot.readFieldBegin()
11949
      if ftype == TType.STOP:
11950
        break
11951
      if fid == 1:
11952
        if ftype == TType.I64:
11953
          self.id = iprot.readI64();
11954
        else:
11955
          iprot.skip(ftype)
11956
      elif fid == 2:
11957
        if ftype == TType.I64:
11958
          self.warehouse_id = iprot.readI64();
11959
        else:
11960
          iprot.skip(ftype)
11961
      elif fid == 3:
11962
        if ftype == TType.I64:
11963
          self.source = iprot.readI64();
11964
        else:
11965
          iprot.skip(ftype)
11966
      else:
11967
        iprot.skip(ftype)
11968
      iprot.readFieldEnd()
11969
    iprot.readStructEnd()
11970
 
11971
  def write(self, oprot):
11972
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11973
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11974
      return
11975
    oprot.writeStructBegin('getHoldInventoryDetailForItemForWarehouseIdExceptSource_args')
11976
    if self.id is not None:
11977
      oprot.writeFieldBegin('id', TType.I64, 1)
11978
      oprot.writeI64(self.id)
11979
      oprot.writeFieldEnd()
11980
    if self.warehouse_id is not None:
11981
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
11982
      oprot.writeI64(self.warehouse_id)
11983
      oprot.writeFieldEnd()
11984
    if self.source is not None:
11985
      oprot.writeFieldBegin('source', TType.I64, 3)
11986
      oprot.writeI64(self.source)
11987
      oprot.writeFieldEnd()
11988
    oprot.writeFieldStop()
11989
    oprot.writeStructEnd()
11990
 
11991
  def validate(self):
11992
    return
11993
 
11994
 
11995
  def __repr__(self):
11996
    L = ['%s=%r' % (key, value)
11997
      for key, value in self.__dict__.iteritems()]
11998
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11999
 
12000
  def __eq__(self, other):
12001
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12002
 
12003
  def __ne__(self, other):
12004
    return not (self == other)
12005
 
12006
class getHoldInventoryDetailForItemForWarehouseIdExceptSource_result:
12007
  """
12008
  Attributes:
12009
   - success
12010
  """
12011
 
12012
  thrift_spec = (
12013
    (0, TType.I64, 'success', None, None, ), # 0
12014
  )
12015
 
12016
  def __init__(self, success=None,):
12017
    self.success = success
12018
 
12019
  def read(self, iprot):
12020
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12021
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12022
      return
12023
    iprot.readStructBegin()
12024
    while True:
12025
      (fname, ftype, fid) = iprot.readFieldBegin()
12026
      if ftype == TType.STOP:
12027
        break
12028
      if fid == 0:
12029
        if ftype == TType.I64:
12030
          self.success = iprot.readI64();
12031
        else:
12032
          iprot.skip(ftype)
12033
      else:
12034
        iprot.skip(ftype)
12035
      iprot.readFieldEnd()
12036
    iprot.readStructEnd()
12037
 
12038
  def write(self, oprot):
12039
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12040
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12041
      return
12042
    oprot.writeStructBegin('getHoldInventoryDetailForItemForWarehouseIdExceptSource_result')
12043
    if self.success is not None:
12044
      oprot.writeFieldBegin('success', TType.I64, 0)
12045
      oprot.writeI64(self.success)
12046
      oprot.writeFieldEnd()
12047
    oprot.writeFieldStop()
12048
    oprot.writeStructEnd()
12049
 
12050
  def validate(self):
12051
    return
12052
 
12053
 
12054
  def __repr__(self):
12055
    L = ['%s=%r' % (key, value)
12056
      for key, value in self.__dict__.iteritems()]
12057
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12058
 
12059
  def __eq__(self, other):
12060
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12061
 
12062
  def __ne__(self, other):
12063
    return not (self == other)
9404 vikram.rag 12064
 
12065
class getSnapdealInventoryForItem_args:
12066
  """
12067
  Attributes:
12068
   - item_id
12069
  """
12070
 
12071
  thrift_spec = (
12072
    None, # 0
12073
    (1, TType.I64, 'item_id', None, None, ), # 1
12074
  )
12075
 
12076
  def __init__(self, item_id=None,):
12077
    self.item_id = item_id
12078
 
12079
  def read(self, iprot):
12080
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12081
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12082
      return
12083
    iprot.readStructBegin()
12084
    while True:
12085
      (fname, ftype, fid) = iprot.readFieldBegin()
12086
      if ftype == TType.STOP:
12087
        break
12088
      if fid == 1:
12089
        if ftype == TType.I64:
12090
          self.item_id = iprot.readI64();
12091
        else:
12092
          iprot.skip(ftype)
12093
      else:
12094
        iprot.skip(ftype)
12095
      iprot.readFieldEnd()
12096
    iprot.readStructEnd()
12097
 
12098
  def write(self, oprot):
12099
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12100
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12101
      return
12102
    oprot.writeStructBegin('getSnapdealInventoryForItem_args')
12103
    if self.item_id is not None:
12104
      oprot.writeFieldBegin('item_id', TType.I64, 1)
12105
      oprot.writeI64(self.item_id)
12106
      oprot.writeFieldEnd()
12107
    oprot.writeFieldStop()
12108
    oprot.writeStructEnd()
12109
 
12110
  def validate(self):
12111
    return
12112
 
12113
 
12114
  def __repr__(self):
12115
    L = ['%s=%r' % (key, value)
12116
      for key, value in self.__dict__.iteritems()]
12117
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12118
 
12119
  def __eq__(self, other):
12120
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12121
 
12122
  def __ne__(self, other):
12123
    return not (self == other)
12124
 
12125
class getSnapdealInventoryForItem_result:
12126
  """
12127
  Attributes:
12128
   - success
12129
  """
12130
 
12131
  thrift_spec = (
12132
    (0, TType.STRUCT, 'success', (SnapdealInventoryItem, SnapdealInventoryItem.thrift_spec), None, ), # 0
12133
  )
12134
 
12135
  def __init__(self, success=None,):
12136
    self.success = success
12137
 
12138
  def read(self, iprot):
12139
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12140
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12141
      return
12142
    iprot.readStructBegin()
12143
    while True:
12144
      (fname, ftype, fid) = iprot.readFieldBegin()
12145
      if ftype == TType.STOP:
12146
        break
12147
      if fid == 0:
12148
        if ftype == TType.STRUCT:
12149
          self.success = SnapdealInventoryItem()
12150
          self.success.read(iprot)
12151
        else:
12152
          iprot.skip(ftype)
12153
      else:
12154
        iprot.skip(ftype)
12155
      iprot.readFieldEnd()
12156
    iprot.readStructEnd()
12157
 
12158
  def write(self, oprot):
12159
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12160
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12161
      return
12162
    oprot.writeStructBegin('getSnapdealInventoryForItem_result')
12163
    if self.success is not None:
12164
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
12165
      self.success.write(oprot)
12166
      oprot.writeFieldEnd()
12167
    oprot.writeFieldStop()
12168
    oprot.writeStructEnd()
12169
 
12170
  def validate(self):
12171
    return
12172
 
12173
 
12174
  def __repr__(self):
12175
    L = ['%s=%r' % (key, value)
12176
      for key, value in self.__dict__.iteritems()]
12177
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12178
 
12179
  def __eq__(self, other):
12180
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12181
 
12182
  def __ne__(self, other):
12183
    return not (self == other)
12184
 
12185
class addOrUpdateSnapdealInventoryForItem_args:
12186
  """
12187
  Attributes:
12188
   - snapdealinventoryitem
12189
  """
12190
 
12191
  thrift_spec = (
12192
    None, # 0
12193
    (1, TType.STRUCT, 'snapdealinventoryitem', (SnapdealInventoryItem, SnapdealInventoryItem.thrift_spec), None, ), # 1
12194
  )
12195
 
12196
  def __init__(self, snapdealinventoryitem=None,):
12197
    self.snapdealinventoryitem = snapdealinventoryitem
12198
 
12199
  def read(self, iprot):
12200
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12201
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12202
      return
12203
    iprot.readStructBegin()
12204
    while True:
12205
      (fname, ftype, fid) = iprot.readFieldBegin()
12206
      if ftype == TType.STOP:
12207
        break
12208
      if fid == 1:
12209
        if ftype == TType.STRUCT:
12210
          self.snapdealinventoryitem = SnapdealInventoryItem()
12211
          self.snapdealinventoryitem.read(iprot)
12212
        else:
12213
          iprot.skip(ftype)
12214
      else:
12215
        iprot.skip(ftype)
12216
      iprot.readFieldEnd()
12217
    iprot.readStructEnd()
12218
 
12219
  def write(self, oprot):
12220
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12221
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12222
      return
12223
    oprot.writeStructBegin('addOrUpdateSnapdealInventoryForItem_args')
12224
    if self.snapdealinventoryitem is not None:
12225
      oprot.writeFieldBegin('snapdealinventoryitem', TType.STRUCT, 1)
12226
      self.snapdealinventoryitem.write(oprot)
12227
      oprot.writeFieldEnd()
12228
    oprot.writeFieldStop()
12229
    oprot.writeStructEnd()
12230
 
12231
  def validate(self):
12232
    return
12233
 
12234
 
12235
  def __repr__(self):
12236
    L = ['%s=%r' % (key, value)
12237
      for key, value in self.__dict__.iteritems()]
12238
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12239
 
12240
  def __eq__(self, other):
12241
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12242
 
12243
  def __ne__(self, other):
12244
    return not (self == other)
12245
 
12246
class addOrUpdateSnapdealInventoryForItem_result:
12247
 
12248
  thrift_spec = (
12249
  )
12250
 
12251
  def read(self, iprot):
12252
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12253
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12254
      return
12255
    iprot.readStructBegin()
12256
    while True:
12257
      (fname, ftype, fid) = iprot.readFieldBegin()
12258
      if ftype == TType.STOP:
12259
        break
12260
      else:
12261
        iprot.skip(ftype)
12262
      iprot.readFieldEnd()
12263
    iprot.readStructEnd()
12264
 
12265
  def write(self, oprot):
12266
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12267
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12268
      return
12269
    oprot.writeStructBegin('addOrUpdateSnapdealInventoryForItem_result')
12270
    oprot.writeFieldStop()
12271
    oprot.writeStructEnd()
12272
 
12273
  def validate(self):
12274
    return
12275
 
12276
 
12277
  def __repr__(self):
12278
    L = ['%s=%r' % (key, value)
12279
      for key, value in self.__dict__.iteritems()]
12280
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12281
 
12282
  def __eq__(self, other):
12283
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12284
 
12285
  def __ne__(self, other):
12286
    return not (self == other)
12287
 
12288
class getNlcForWarehouse_args:
12289
  """
12290
  Attributes:
12291
   - warehouse_id
12292
   - item_id
12293
  """
12294
 
12295
  thrift_spec = (
12296
    None, # 0
12297
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
12298
    (2, TType.I64, 'item_id', None, None, ), # 2
12299
  )
12300
 
12301
  def __init__(self, warehouse_id=None, item_id=None,):
12302
    self.warehouse_id = warehouse_id
12303
    self.item_id = item_id
12304
 
12305
  def read(self, iprot):
12306
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12307
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12308
      return
12309
    iprot.readStructBegin()
12310
    while True:
12311
      (fname, ftype, fid) = iprot.readFieldBegin()
12312
      if ftype == TType.STOP:
12313
        break
12314
      if fid == 1:
12315
        if ftype == TType.I64:
12316
          self.warehouse_id = iprot.readI64();
12317
        else:
12318
          iprot.skip(ftype)
12319
      elif fid == 2:
12320
        if ftype == TType.I64:
12321
          self.item_id = iprot.readI64();
12322
        else:
12323
          iprot.skip(ftype)
12324
      else:
12325
        iprot.skip(ftype)
12326
      iprot.readFieldEnd()
12327
    iprot.readStructEnd()
12328
 
12329
  def write(self, oprot):
12330
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12331
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12332
      return
12333
    oprot.writeStructBegin('getNlcForWarehouse_args')
12334
    if self.warehouse_id is not None:
12335
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
12336
      oprot.writeI64(self.warehouse_id)
12337
      oprot.writeFieldEnd()
12338
    if self.item_id is not None:
12339
      oprot.writeFieldBegin('item_id', TType.I64, 2)
12340
      oprot.writeI64(self.item_id)
12341
      oprot.writeFieldEnd()
12342
    oprot.writeFieldStop()
12343
    oprot.writeStructEnd()
12344
 
12345
  def validate(self):
12346
    return
12347
 
12348
 
12349
  def __repr__(self):
12350
    L = ['%s=%r' % (key, value)
12351
      for key, value in self.__dict__.iteritems()]
12352
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12353
 
12354
  def __eq__(self, other):
12355
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12356
 
12357
  def __ne__(self, other):
12358
    return not (self == other)
12359
 
12360
class getNlcForWarehouse_result:
12361
  """
12362
  Attributes:
12363
   - success
12364
  """
12365
 
12366
  thrift_spec = (
12367
    (0, TType.DOUBLE, 'success', None, None, ), # 0
12368
  )
12369
 
12370
  def __init__(self, success=None,):
12371
    self.success = success
12372
 
12373
  def read(self, iprot):
12374
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12375
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12376
      return
12377
    iprot.readStructBegin()
12378
    while True:
12379
      (fname, ftype, fid) = iprot.readFieldBegin()
12380
      if ftype == TType.STOP:
12381
        break
12382
      if fid == 0:
12383
        if ftype == TType.DOUBLE:
12384
          self.success = iprot.readDouble();
12385
        else:
12386
          iprot.skip(ftype)
12387
      else:
12388
        iprot.skip(ftype)
12389
      iprot.readFieldEnd()
12390
    iprot.readStructEnd()
12391
 
12392
  def write(self, oprot):
12393
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12394
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12395
      return
12396
    oprot.writeStructBegin('getNlcForWarehouse_result')
12397
    if self.success is not None:
12398
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
12399
      oprot.writeDouble(self.success)
12400
      oprot.writeFieldEnd()
12401
    oprot.writeFieldStop()
12402
    oprot.writeStructEnd()
12403
 
12404
  def validate(self):
12405
    return
12406
 
12407
 
12408
  def __repr__(self):
12409
    L = ['%s=%r' % (key, value)
12410
      for key, value in self.__dict__.iteritems()]
12411
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12412
 
12413
  def __eq__(self, other):
12414
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12415
 
12416
  def __ne__(self, other):
12417
    return not (self == other)
9456 vikram.rag 12418
 
9640 amar.kumar 12419
class getHeldInventoryMapForItem_args:
12420
  """
12421
  Attributes:
12422
   - item_id
12423
   - warehouse_id
12424
  """
12425
 
12426
  thrift_spec = (
12427
    None, # 0
12428
    (1, TType.I64, 'item_id', None, None, ), # 1
12429
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
12430
  )
12431
 
12432
  def __init__(self, item_id=None, warehouse_id=None,):
12433
    self.item_id = item_id
12434
    self.warehouse_id = warehouse_id
12435
 
12436
  def read(self, iprot):
12437
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12438
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12439
      return
12440
    iprot.readStructBegin()
12441
    while True:
12442
      (fname, ftype, fid) = iprot.readFieldBegin()
12443
      if ftype == TType.STOP:
12444
        break
12445
      if fid == 1:
12446
        if ftype == TType.I64:
12447
          self.item_id = iprot.readI64();
12448
        else:
12449
          iprot.skip(ftype)
12450
      elif fid == 2:
12451
        if ftype == TType.I64:
12452
          self.warehouse_id = iprot.readI64();
12453
        else:
12454
          iprot.skip(ftype)
12455
      else:
12456
        iprot.skip(ftype)
12457
      iprot.readFieldEnd()
12458
    iprot.readStructEnd()
12459
 
12460
  def write(self, oprot):
12461
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12462
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12463
      return
12464
    oprot.writeStructBegin('getHeldInventoryMapForItem_args')
12465
    if self.item_id is not None:
12466
      oprot.writeFieldBegin('item_id', TType.I64, 1)
12467
      oprot.writeI64(self.item_id)
12468
      oprot.writeFieldEnd()
12469
    if self.warehouse_id is not None:
12470
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
12471
      oprot.writeI64(self.warehouse_id)
12472
      oprot.writeFieldEnd()
12473
    oprot.writeFieldStop()
12474
    oprot.writeStructEnd()
12475
 
12476
  def validate(self):
12477
    return
12478
 
12479
 
12480
  def __repr__(self):
12481
    L = ['%s=%r' % (key, value)
12482
      for key, value in self.__dict__.iteritems()]
12483
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12484
 
12485
  def __eq__(self, other):
12486
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12487
 
12488
  def __ne__(self, other):
12489
    return not (self == other)
12490
 
12491
class getHeldInventoryMapForItem_result:
12492
  """
12493
  Attributes:
12494
   - success
12495
  """
12496
 
12497
  thrift_spec = (
12498
    (0, TType.MAP, 'success', (TType.I32,None,TType.I64,None), None, ), # 0
12499
  )
12500
 
12501
  def __init__(self, success=None,):
12502
    self.success = success
12503
 
12504
  def read(self, iprot):
12505
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12506
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12507
      return
12508
    iprot.readStructBegin()
12509
    while True:
12510
      (fname, ftype, fid) = iprot.readFieldBegin()
12511
      if ftype == TType.STOP:
12512
        break
12513
      if fid == 0:
12514
        if ftype == TType.MAP:
12515
          self.success = {}
12516
          (_ktype245, _vtype246, _size244 ) = iprot.readMapBegin() 
12517
          for _i248 in xrange(_size244):
12518
            _key249 = iprot.readI32();
12519
            _val250 = iprot.readI64();
12520
            self.success[_key249] = _val250
12521
          iprot.readMapEnd()
12522
        else:
12523
          iprot.skip(ftype)
12524
      else:
12525
        iprot.skip(ftype)
12526
      iprot.readFieldEnd()
12527
    iprot.readStructEnd()
12528
 
12529
  def write(self, oprot):
12530
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12531
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12532
      return
12533
    oprot.writeStructBegin('getHeldInventoryMapForItem_result')
12534
    if self.success is not None:
12535
      oprot.writeFieldBegin('success', TType.MAP, 0)
12536
      oprot.writeMapBegin(TType.I32, TType.I64, len(self.success))
12537
      for kiter251,viter252 in self.success.items():
12538
        oprot.writeI32(kiter251)
12539
        oprot.writeI64(viter252)
12540
      oprot.writeMapEnd()
12541
      oprot.writeFieldEnd()
12542
    oprot.writeFieldStop()
12543
    oprot.writeStructEnd()
12544
 
12545
  def validate(self):
12546
    return
12547
 
12548
 
12549
  def __repr__(self):
12550
    L = ['%s=%r' % (key, value)
12551
      for key, value in self.__dict__.iteritems()]
12552
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12553
 
12554
  def __eq__(self, other):
12555
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12556
 
12557
  def __ne__(self, other):
12558
    return not (self == other)
12559
 
9495 vikram.rag 12560
class addOrUpdateAllAmazonFbaInventory_args:
12561
  """
12562
  Attributes:
12563
   - allamazonfbainventorysnapshot
12564
  """
9456 vikram.rag 12565
 
9495 vikram.rag 12566
  thrift_spec = None
12567
  def __init__(self, allamazonfbainventorysnapshot=None,):
12568
    self.allamazonfbainventorysnapshot = allamazonfbainventorysnapshot
9456 vikram.rag 12569
 
12570
  def read(self, iprot):
12571
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12572
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12573
      return
12574
    iprot.readStructBegin()
12575
    while True:
12576
      (fname, ftype, fid) = iprot.readFieldBegin()
12577
      if ftype == TType.STOP:
12578
        break
9495 vikram.rag 12579
      if fid == -1:
12580
        if ftype == TType.LIST:
12581
          self.allamazonfbainventorysnapshot = []
9640 amar.kumar 12582
          (_etype256, _size253) = iprot.readListBegin()
12583
          for _i257 in xrange(_size253):
12584
            _elem258 = AmazonFbaInventorySnapshot()
12585
            _elem258.read(iprot)
12586
            self.allamazonfbainventorysnapshot.append(_elem258)
9495 vikram.rag 12587
          iprot.readListEnd()
12588
        else:
12589
          iprot.skip(ftype)
9456 vikram.rag 12590
      else:
12591
        iprot.skip(ftype)
12592
      iprot.readFieldEnd()
12593
    iprot.readStructEnd()
12594
 
12595
  def write(self, oprot):
12596
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12597
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12598
      return
9495 vikram.rag 12599
    oprot.writeStructBegin('addOrUpdateAllAmazonFbaInventory_args')
12600
    if self.allamazonfbainventorysnapshot is not None:
12601
      oprot.writeFieldBegin('allamazonfbainventorysnapshot', TType.LIST, -1)
12602
      oprot.writeListBegin(TType.STRUCT, len(self.allamazonfbainventorysnapshot))
9640 amar.kumar 12603
      for iter259 in self.allamazonfbainventorysnapshot:
12604
        iter259.write(oprot)
9495 vikram.rag 12605
      oprot.writeListEnd()
12606
      oprot.writeFieldEnd()
9456 vikram.rag 12607
    oprot.writeFieldStop()
12608
    oprot.writeStructEnd()
12609
 
12610
  def validate(self):
12611
    return
12612
 
12613
 
12614
  def __repr__(self):
12615
    L = ['%s=%r' % (key, value)
12616
      for key, value in self.__dict__.iteritems()]
12617
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12618
 
12619
  def __eq__(self, other):
12620
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12621
 
12622
  def __ne__(self, other):
12623
    return not (self == other)
12624
 
9495 vikram.rag 12625
class addOrUpdateAllAmazonFbaInventory_result:
9456 vikram.rag 12626
 
12627
  thrift_spec = (
12628
  )
12629
 
12630
  def read(self, iprot):
12631
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12632
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12633
      return
12634
    iprot.readStructBegin()
12635
    while True:
12636
      (fname, ftype, fid) = iprot.readFieldBegin()
12637
      if ftype == TType.STOP:
12638
        break
12639
      else:
12640
        iprot.skip(ftype)
12641
      iprot.readFieldEnd()
12642
    iprot.readStructEnd()
12643
 
12644
  def write(self, oprot):
12645
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12646
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12647
      return
9495 vikram.rag 12648
    oprot.writeStructBegin('addOrUpdateAllAmazonFbaInventory_result')
9456 vikram.rag 12649
    oprot.writeFieldStop()
12650
    oprot.writeStructEnd()
12651
 
12652
  def validate(self):
12653
    return
12654
 
12655
 
12656
  def __repr__(self):
12657
    L = ['%s=%r' % (key, value)
12658
      for key, value in self.__dict__.iteritems()]
12659
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12660
 
12661
  def __eq__(self, other):
12662
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12663
 
12664
  def __ne__(self, other):
12665
    return not (self == other)
9482 vikram.rag 12666
 
9495 vikram.rag 12667
class addOrUpdateAllSnapdealInventory_args:
9482 vikram.rag 12668
  """
12669
  Attributes:
9495 vikram.rag 12670
   - allsnapdealinventorysnapshot
9482 vikram.rag 12671
  """
12672
 
12673
  thrift_spec = None
9495 vikram.rag 12674
  def __init__(self, allsnapdealinventorysnapshot=None,):
12675
    self.allsnapdealinventorysnapshot = allsnapdealinventorysnapshot
9482 vikram.rag 12676
 
12677
  def read(self, iprot):
12678
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12679
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12680
      return
12681
    iprot.readStructBegin()
12682
    while True:
12683
      (fname, ftype, fid) = iprot.readFieldBegin()
12684
      if ftype == TType.STOP:
12685
        break
12686
      if fid == -1:
12687
        if ftype == TType.LIST:
9495 vikram.rag 12688
          self.allsnapdealinventorysnapshot = []
9640 amar.kumar 12689
          (_etype263, _size260) = iprot.readListBegin()
12690
          for _i264 in xrange(_size260):
12691
            _elem265 = SnapdealInventoryItem()
12692
            _elem265.read(iprot)
12693
            self.allsnapdealinventorysnapshot.append(_elem265)
9482 vikram.rag 12694
          iprot.readListEnd()
12695
        else:
12696
          iprot.skip(ftype)
12697
      else:
12698
        iprot.skip(ftype)
12699
      iprot.readFieldEnd()
12700
    iprot.readStructEnd()
12701
 
12702
  def write(self, oprot):
12703
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12704
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12705
      return
9495 vikram.rag 12706
    oprot.writeStructBegin('addOrUpdateAllSnapdealInventory_args')
12707
    if self.allsnapdealinventorysnapshot is not None:
12708
      oprot.writeFieldBegin('allsnapdealinventorysnapshot', TType.LIST, -1)
12709
      oprot.writeListBegin(TType.STRUCT, len(self.allsnapdealinventorysnapshot))
9640 amar.kumar 12710
      for iter266 in self.allsnapdealinventorysnapshot:
12711
        iter266.write(oprot)
9482 vikram.rag 12712
      oprot.writeListEnd()
12713
      oprot.writeFieldEnd()
12714
    oprot.writeFieldStop()
12715
    oprot.writeStructEnd()
12716
 
12717
  def validate(self):
12718
    return
12719
 
12720
 
12721
  def __repr__(self):
12722
    L = ['%s=%r' % (key, value)
12723
      for key, value in self.__dict__.iteritems()]
12724
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12725
 
12726
  def __eq__(self, other):
12727
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12728
 
12729
  def __ne__(self, other):
12730
    return not (self == other)
12731
 
9495 vikram.rag 12732
class addOrUpdateAllSnapdealInventory_result:
9482 vikram.rag 12733
 
12734
  thrift_spec = (
12735
  )
12736
 
12737
  def read(self, iprot):
12738
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12739
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12740
      return
12741
    iprot.readStructBegin()
12742
    while True:
12743
      (fname, ftype, fid) = iprot.readFieldBegin()
12744
      if ftype == TType.STOP:
12745
        break
12746
      else:
12747
        iprot.skip(ftype)
12748
      iprot.readFieldEnd()
12749
    iprot.readStructEnd()
12750
 
12751
  def write(self, oprot):
12752
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12753
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12754
      return
9495 vikram.rag 12755
    oprot.writeStructBegin('addOrUpdateAllSnapdealInventory_result')
9482 vikram.rag 12756
    oprot.writeFieldStop()
12757
    oprot.writeStructEnd()
12758
 
12759
  def validate(self):
12760
    return
12761
 
12762
 
12763
  def __repr__(self):
12764
    L = ['%s=%r' % (key, value)
12765
      for key, value in self.__dict__.iteritems()]
12766
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12767
 
12768
  def __eq__(self, other):
12769
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12770
 
12771
  def __ne__(self, other):
12772
    return not (self == other)
9495 vikram.rag 12773
 
12774
class getSnapdealInventorySnapshot_args:
12775
 
12776
  thrift_spec = (
12777
  )
12778
 
12779
  def read(self, iprot):
12780
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12781
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12782
      return
12783
    iprot.readStructBegin()
12784
    while True:
12785
      (fname, ftype, fid) = iprot.readFieldBegin()
12786
      if ftype == TType.STOP:
12787
        break
12788
      else:
12789
        iprot.skip(ftype)
12790
      iprot.readFieldEnd()
12791
    iprot.readStructEnd()
12792
 
12793
  def write(self, oprot):
12794
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12795
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12796
      return
12797
    oprot.writeStructBegin('getSnapdealInventorySnapshot_args')
12798
    oprot.writeFieldStop()
12799
    oprot.writeStructEnd()
12800
 
12801
  def validate(self):
12802
    return
12803
 
12804
 
12805
  def __repr__(self):
12806
    L = ['%s=%r' % (key, value)
12807
      for key, value in self.__dict__.iteritems()]
12808
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12809
 
12810
  def __eq__(self, other):
12811
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12812
 
12813
  def __ne__(self, other):
12814
    return not (self == other)
12815
 
12816
class getSnapdealInventorySnapshot_result:
12817
  """
12818
  Attributes:
12819
   - success
12820
  """
12821
 
12822
  thrift_spec = (
12823
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealInventoryItem, SnapdealInventoryItem.thrift_spec)), None, ), # 0
12824
  )
12825
 
12826
  def __init__(self, success=None,):
12827
    self.success = success
12828
 
12829
  def read(self, iprot):
12830
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12831
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12832
      return
12833
    iprot.readStructBegin()
12834
    while True:
12835
      (fname, ftype, fid) = iprot.readFieldBegin()
12836
      if ftype == TType.STOP:
12837
        break
12838
      if fid == 0:
12839
        if ftype == TType.LIST:
12840
          self.success = []
9640 amar.kumar 12841
          (_etype270, _size267) = iprot.readListBegin()
12842
          for _i271 in xrange(_size267):
12843
            _elem272 = SnapdealInventoryItem()
12844
            _elem272.read(iprot)
12845
            self.success.append(_elem272)
9495 vikram.rag 12846
          iprot.readListEnd()
12847
        else:
12848
          iprot.skip(ftype)
12849
      else:
12850
        iprot.skip(ftype)
12851
      iprot.readFieldEnd()
12852
    iprot.readStructEnd()
12853
 
12854
  def write(self, oprot):
12855
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12856
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12857
      return
12858
    oprot.writeStructBegin('getSnapdealInventorySnapshot_result')
12859
    if self.success is not None:
12860
      oprot.writeFieldBegin('success', TType.LIST, 0)
12861
      oprot.writeListBegin(TType.STRUCT, len(self.success))
9640 amar.kumar 12862
      for iter273 in self.success:
12863
        iter273.write(oprot)
9495 vikram.rag 12864
      oprot.writeListEnd()
12865
      oprot.writeFieldEnd()
12866
    oprot.writeFieldStop()
12867
    oprot.writeStructEnd()
12868
 
12869
  def validate(self):
12870
    return
12871
 
12872
 
12873
  def __repr__(self):
12874
    L = ['%s=%r' % (key, value)
12875
      for key, value in self.__dict__.iteritems()]
12876
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12877
 
12878
  def __eq__(self, other):
12879
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12880
 
12881
  def __ne__(self, other):
12882
    return not (self == other)
9761 amar.kumar 12883
 
12884
class getHoldInventoryDetails_args:
12885
  """
12886
  Attributes:
12887
   - itemId
12888
   - warehouseId
12889
   - source
12890
  """
12891
 
12892
  thrift_spec = (
12893
    None, # 0
12894
    (1, TType.I64, 'itemId', None, None, ), # 1
12895
    (2, TType.I64, 'warehouseId', None, None, ), # 2
12896
    (3, TType.I64, 'source', None, None, ), # 3
12897
  )
12898
 
12899
  def __init__(self, itemId=None, warehouseId=None, source=None,):
12900
    self.itemId = itemId
12901
    self.warehouseId = warehouseId
12902
    self.source = source
12903
 
12904
  def read(self, iprot):
12905
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12906
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12907
      return
12908
    iprot.readStructBegin()
12909
    while True:
12910
      (fname, ftype, fid) = iprot.readFieldBegin()
12911
      if ftype == TType.STOP:
12912
        break
12913
      if fid == 1:
12914
        if ftype == TType.I64:
12915
          self.itemId = iprot.readI64();
12916
        else:
12917
          iprot.skip(ftype)
12918
      elif fid == 2:
12919
        if ftype == TType.I64:
12920
          self.warehouseId = iprot.readI64();
12921
        else:
12922
          iprot.skip(ftype)
12923
      elif fid == 3:
12924
        if ftype == TType.I64:
12925
          self.source = iprot.readI64();
12926
        else:
12927
          iprot.skip(ftype)
12928
      else:
12929
        iprot.skip(ftype)
12930
      iprot.readFieldEnd()
12931
    iprot.readStructEnd()
12932
 
12933
  def write(self, oprot):
12934
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12935
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12936
      return
12937
    oprot.writeStructBegin('getHoldInventoryDetails_args')
12938
    if self.itemId is not None:
12939
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12940
      oprot.writeI64(self.itemId)
12941
      oprot.writeFieldEnd()
12942
    if self.warehouseId is not None:
12943
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
12944
      oprot.writeI64(self.warehouseId)
12945
      oprot.writeFieldEnd()
12946
    if self.source is not None:
12947
      oprot.writeFieldBegin('source', TType.I64, 3)
12948
      oprot.writeI64(self.source)
12949
      oprot.writeFieldEnd()
12950
    oprot.writeFieldStop()
12951
    oprot.writeStructEnd()
12952
 
12953
  def validate(self):
12954
    return
12955
 
12956
 
12957
  def __repr__(self):
12958
    L = ['%s=%r' % (key, value)
12959
      for key, value in self.__dict__.iteritems()]
12960
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12961
 
12962
  def __eq__(self, other):
12963
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12964
 
12965
  def __ne__(self, other):
12966
    return not (self == other)
12967
 
12968
class getHoldInventoryDetails_result:
12969
  """
12970
  Attributes:
12971
   - success
12972
  """
12973
 
12974
  thrift_spec = (
12975
    (0, TType.LIST, 'success', (TType.STRUCT,(HoldInventoryDetail, HoldInventoryDetail.thrift_spec)), None, ), # 0
12976
  )
12977
 
12978
  def __init__(self, success=None,):
12979
    self.success = success
12980
 
12981
  def read(self, iprot):
12982
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12983
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12984
      return
12985
    iprot.readStructBegin()
12986
    while True:
12987
      (fname, ftype, fid) = iprot.readFieldBegin()
12988
      if ftype == TType.STOP:
12989
        break
12990
      if fid == 0:
12991
        if ftype == TType.LIST:
12992
          self.success = []
12993
          (_etype277, _size274) = iprot.readListBegin()
12994
          for _i278 in xrange(_size274):
12995
            _elem279 = HoldInventoryDetail()
12996
            _elem279.read(iprot)
12997
            self.success.append(_elem279)
12998
          iprot.readListEnd()
12999
        else:
13000
          iprot.skip(ftype)
13001
      else:
13002
        iprot.skip(ftype)
13003
      iprot.readFieldEnd()
13004
    iprot.readStructEnd()
13005
 
13006
  def write(self, oprot):
13007
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13008
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13009
      return
13010
    oprot.writeStructBegin('getHoldInventoryDetails_result')
13011
    if self.success is not None:
13012
      oprot.writeFieldBegin('success', TType.LIST, 0)
13013
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13014
      for iter280 in self.success:
13015
        iter280.write(oprot)
13016
      oprot.writeListEnd()
13017
      oprot.writeFieldEnd()
13018
    oprot.writeFieldStop()
13019
    oprot.writeStructEnd()
13020
 
13021
  def validate(self):
13022
    return
13023
 
13024
 
13025
  def __repr__(self):
13026
    L = ['%s=%r' % (key, value)
13027
      for key, value in self.__dict__.iteritems()]
13028
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13029
 
13030
  def __eq__(self, other):
13031
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13032
 
13033
  def __ne__(self, other):
13034
    return not (self == other)
10050 vikram.rag 13035
 
13036
class addOrUpdateFlipkartInventorySnapshot_args:
13037
  """
13038
  Attributes:
13039
   - flipkartInventorySnapshot
13040
  """
13041
 
13042
  thrift_spec = None
13043
  def __init__(self, flipkartInventorySnapshot=None,):
13044
    self.flipkartInventorySnapshot = flipkartInventorySnapshot
13045
 
13046
  def read(self, iprot):
13047
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13048
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13049
      return
13050
    iprot.readStructBegin()
13051
    while True:
13052
      (fname, ftype, fid) = iprot.readFieldBegin()
13053
      if ftype == TType.STOP:
13054
        break
13055
      if fid == -1:
13056
        if ftype == TType.LIST:
13057
          self.flipkartInventorySnapshot = []
13058
          (_etype284, _size281) = iprot.readListBegin()
13059
          for _i285 in xrange(_size281):
13060
            _elem286 = FlipkartInventorySnapshot()
13061
            _elem286.read(iprot)
13062
            self.flipkartInventorySnapshot.append(_elem286)
13063
          iprot.readListEnd()
13064
        else:
13065
          iprot.skip(ftype)
13066
      else:
13067
        iprot.skip(ftype)
13068
      iprot.readFieldEnd()
13069
    iprot.readStructEnd()
13070
 
13071
  def write(self, oprot):
13072
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13073
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13074
      return
13075
    oprot.writeStructBegin('addOrUpdateFlipkartInventorySnapshot_args')
13076
    if self.flipkartInventorySnapshot is not None:
13077
      oprot.writeFieldBegin('flipkartInventorySnapshot', TType.LIST, -1)
13078
      oprot.writeListBegin(TType.STRUCT, len(self.flipkartInventorySnapshot))
13079
      for iter287 in self.flipkartInventorySnapshot:
13080
        iter287.write(oprot)
13081
      oprot.writeListEnd()
13082
      oprot.writeFieldEnd()
13083
    oprot.writeFieldStop()
13084
    oprot.writeStructEnd()
13085
 
13086
  def validate(self):
13087
    return
13088
 
13089
 
13090
  def __repr__(self):
13091
    L = ['%s=%r' % (key, value)
13092
      for key, value in self.__dict__.iteritems()]
13093
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13094
 
13095
  def __eq__(self, other):
13096
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13097
 
13098
  def __ne__(self, other):
13099
    return not (self == other)
13100
 
13101
class addOrUpdateFlipkartInventorySnapshot_result:
13102
 
13103
  thrift_spec = (
13104
  )
13105
 
13106
  def read(self, iprot):
13107
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13108
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13109
      return
13110
    iprot.readStructBegin()
13111
    while True:
13112
      (fname, ftype, fid) = iprot.readFieldBegin()
13113
      if ftype == TType.STOP:
13114
        break
13115
      else:
13116
        iprot.skip(ftype)
13117
      iprot.readFieldEnd()
13118
    iprot.readStructEnd()
13119
 
13120
  def write(self, oprot):
13121
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13122
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13123
      return
13124
    oprot.writeStructBegin('addOrUpdateFlipkartInventorySnapshot_result')
13125
    oprot.writeFieldStop()
13126
    oprot.writeStructEnd()
13127
 
13128
  def validate(self):
13129
    return
13130
 
13131
 
13132
  def __repr__(self):
13133
    L = ['%s=%r' % (key, value)
13134
      for key, value in self.__dict__.iteritems()]
13135
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13136
 
13137
  def __eq__(self, other):
13138
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13139
 
13140
  def __ne__(self, other):
13141
    return not (self == other)
13142
 
13143
class getFlipkartInventorySnapshot_args:
13144
 
13145
  thrift_spec = (
13146
  )
13147
 
13148
  def read(self, iprot):
13149
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13150
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13151
      return
13152
    iprot.readStructBegin()
13153
    while True:
13154
      (fname, ftype, fid) = iprot.readFieldBegin()
13155
      if ftype == TType.STOP:
13156
        break
13157
      else:
13158
        iprot.skip(ftype)
13159
      iprot.readFieldEnd()
13160
    iprot.readStructEnd()
13161
 
13162
  def write(self, oprot):
13163
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13164
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13165
      return
13166
    oprot.writeStructBegin('getFlipkartInventorySnapshot_args')
13167
    oprot.writeFieldStop()
13168
    oprot.writeStructEnd()
13169
 
13170
  def validate(self):
13171
    return
13172
 
13173
 
13174
  def __repr__(self):
13175
    L = ['%s=%r' % (key, value)
13176
      for key, value in self.__dict__.iteritems()]
13177
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13178
 
13179
  def __eq__(self, other):
13180
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13181
 
13182
  def __ne__(self, other):
13183
    return not (self == other)
13184
 
13185
class getFlipkartInventorySnapshot_result:
13186
  """
13187
  Attributes:
13188
   - success
13189
  """
13190
 
13191
  thrift_spec = (
13192
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartInventorySnapshot, FlipkartInventorySnapshot.thrift_spec)), None, ), # 0
13193
  )
13194
 
13195
  def __init__(self, success=None,):
13196
    self.success = success
13197
 
13198
  def read(self, iprot):
13199
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13200
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13201
      return
13202
    iprot.readStructBegin()
13203
    while True:
13204
      (fname, ftype, fid) = iprot.readFieldBegin()
13205
      if ftype == TType.STOP:
13206
        break
13207
      if fid == 0:
13208
        if ftype == TType.LIST:
13209
          self.success = []
13210
          (_etype291, _size288) = iprot.readListBegin()
13211
          for _i292 in xrange(_size288):
13212
            _elem293 = FlipkartInventorySnapshot()
13213
            _elem293.read(iprot)
13214
            self.success.append(_elem293)
13215
          iprot.readListEnd()
13216
        else:
13217
          iprot.skip(ftype)
13218
      else:
13219
        iprot.skip(ftype)
13220
      iprot.readFieldEnd()
13221
    iprot.readStructEnd()
13222
 
13223
  def write(self, oprot):
13224
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13225
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13226
      return
13227
    oprot.writeStructBegin('getFlipkartInventorySnapshot_result')
13228
    if self.success is not None:
13229
      oprot.writeFieldBegin('success', TType.LIST, 0)
13230
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13231
      for iter294 in self.success:
13232
        iter294.write(oprot)
13233
      oprot.writeListEnd()
13234
      oprot.writeFieldEnd()
13235
    oprot.writeFieldStop()
13236
    oprot.writeStructEnd()
13237
 
13238
  def validate(self):
13239
    return
13240
 
13241
 
13242
  def __repr__(self):
13243
    L = ['%s=%r' % (key, value)
13244
      for key, value in self.__dict__.iteritems()]
13245
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13246
 
13247
  def __eq__(self, other):
13248
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13249
 
13250
  def __ne__(self, other):
13251
    return not (self == other)