Subversion Repositories SmartDukaan

Rev

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

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