Subversion Repositories SmartDukaan

Rev

Rev 6484 | Rev 6821 | 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
 
5966 rajveer 159
  def reduceReservationCount(self, itemId, warehouseId, sourceId, orderId, quantity):
5944 mandeep.dh 160
    """
161
    Decreases the reservation count for an item in a warehouse. Should always succeed normally.
162
 
163
    Parameters:
164
     - itemId
165
     - warehouseId
5966 rajveer 166
     - sourceId
167
     - orderId
5944 mandeep.dh 168
     - quantity
169
    """
170
    pass
171
 
172
  def getItemPricing(self, itemId, vendorId):
173
    """
174
    Returns the pricing information of an item associated with the vendor of the given warehouse.
175
    Raises an exception if either the item, vendor or the associated pricing information can't be found.
176
 
177
    Parameters:
178
     - itemId
179
     - vendorId
180
    """
181
    pass
182
 
183
  def getAllItemPricing(self, itemId):
184
    """
185
    Returns the list of vendor pricing information of an item.
186
    Raises an exception if item not found corresponding to itemId
187
 
188
    Parameters:
189
     - itemId
190
    """
191
    pass
192
 
193
  def addVendorItemPricing(self, vendorItemPricing):
194
    """
195
    Adds vendor prices corresponding to the item. If pricing already exists then updates the prices.
196
    Raises an exception if either the item or vendor can't be found corresponding to their ids.
197
 
198
    Parameters:
199
     - vendorItemPricing
200
    """
201
    pass
202
 
203
  def getVendor(self, vendorId):
204
    """
205
    Returns a vendor given its id
206
 
207
    Parameters:
208
     - vendorId
209
    """
210
    pass
211
 
212
  def getAllVendors(self, ):
213
    """
214
    Return list of all vendors
215
    """
216
    pass
217
 
218
  def addVendorItemMapping(self, key, vendorItemMapping):
219
    """
220
    Adds VendorItemMapping. Updates VendorItemMapping if exists corresponding to the item key.
221
 
222
    Parameters:
223
     - key
224
     - vendorItemMapping
225
    """
226
    pass
227
 
228
  def getVendorItemMappings(self, itemId):
229
    """
230
    Returns the list of vendor item mapping corresponding to itemId passed as parameter.
231
    Raises an exception if item not found corresponding to itemId
232
 
233
    Parameters:
234
     - itemId
235
    """
236
    pass
237
 
238
  def getPendingOrdersInventory(self, vendorid):
239
    """
240
    Returns a list of inventory stock for items for which there are pending orders for the given vendor.
241
 
242
    Parameters:
243
     - vendorid
244
    """
245
    pass
246
 
247
  def getWarehouses(self, warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId):
248
    """
249
    This method returns all warehouses for a given warehosueType, inventoryType, vendor, billingWarehouse and shippingWarehouse.
250
    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
251
    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
252
       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
253
       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
254
 
255
    Parameters:
256
     - warehouseType
257
     - inventoryType
258
     - vendorId
259
     - billingWarehouseId
260
     - shippingWarehouseId
261
    """
262
    pass
263
 
264
  def resetAvailability(self, itemKey, vendorId, quantity, warehouseId):
265
    """
266
    Resets availability of an item to the quantity mentioned in a warehouse.
267
 
268
    Parameters:
269
     - itemKey
270
     - vendorId
271
     - quantity
272
     - warehouseId
273
    """
274
    pass
275
 
276
  def resetAvailabilityForWarehouse(self, warehouseId):
277
    """
278
    Resets availability of a warehouse to zero.
279
 
280
    Parameters:
281
     - warehouseId
282
    """
283
    pass
284
 
285
  def getItemKeysToBeProcessed(self, warehouseId):
286
    """
287
    Returns the list of item keys which need to be processed for a given warehouse.
288
    This is currently used by Support application to send item keys whose inventory needs
289
    to be updated from PLB
290
 
291
    Parameters:
292
     - warehouseId
293
    """
294
    pass
295
 
296
  def markMissedInventoryUpdatesAsProcessed(self, itemKey, warehouseId):
297
    """
298
    Marks/Deletes missed inventory updates for a given key and warehouse.
299
    This generally happens when updates from PLB are applied on the currentinventorysnapshot for an item
300
 
301
    Parameters:
302
     - itemKey
303
     - warehouseId
304
    """
305
    pass
306
 
307
  def getIgnoredItemKeys(self, ):
308
    """
309
    Returns all the item key mappings that have been ignored until date. Value of map has the warehouse id
310
    and the timestamp from where alert was raised.
311
    """
312
    pass
313
 
314
  def addBadInventory(self, itemId, warehouseId, quantity):
315
    """
316
    Add the BAD type inventory to existing stock.
317
 
318
    Parameters:
319
     - itemId
320
     - warehouseId
321
     - quantity
322
    """
323
    pass
324
 
325
  def getShippingLocations(self, ):
326
    """
327
    Returns all shipping locations
328
    """
329
    pass
330
 
331
  def getAllVendorItemMappings(self, ):
332
    """
333
    Fetches all the vendor item mappings present.
334
    """
335
    pass
336
 
337
  def getInventorySnapshot(self, warehouseId):
338
    """
339
    Gets items' inventory for a warehouse
340
    If warehouse is passed as zero, items' inventory across all warehouses is sent
341
 
342
    Parameters:
343
     - warehouseId
344
    """
345
    pass
346
 
347
  def clearItemAvailabilityCache(self, ):
348
    """
349
    Clear item availability cache.
350
    """
351
    pass
352
 
353
  def updateVendorString(self, warehouseId, vendorString):
354
    """
355
    Parameters:
356
     - warehouseId
357
     - vendorString
358
    """
359
    pass
360
 
6096 amit.gupta 361
  def clearItemAvailabilityCacheForItem(self, item_id):
362
    """
363
    Parameters:
364
     - item_id
365
    """
366
    pass
5944 mandeep.dh 367
 
6467 amar.kumar 368
  def getOurWarehouseIdForVendor(self, vendorId):
369
    """
370
    Parameters:
371
     - vendorId
372
    """
373
    pass
6096 amit.gupta 374
 
6484 amar.kumar 375
  def getItemAvailabilitiesAtOurWarehouses(self, item_ids):
376
    """
377
    Parameters:
378
     - item_ids
379
    """
380
    pass
6467 amar.kumar 381
 
6531 vikram.rag 382
  def getMonitoredWarehouseForVendors(self, vendorIds):
383
    """
384
    Parameters:
385
     - vendorIds
386
    """
387
    pass
6484 amar.kumar 388
 
6531 vikram.rag 389
  def getIgnoredWarehouseidsAndItemids(self, ):
390
    pass
391
 
392
  def insertItemtoIgnoreInventoryUpdatelist(self, item_id, warehouse_id):
393
    """
394
    Parameters:
395
     - item_id
396
     - warehouse_id
397
    """
398
    pass
399
 
400
  def deleteItemFromIgnoredInventoryUpdateList(self, item_id, warehouse_id):
401
    """
402
    Parameters:
403
     - item_id
404
     - warehouse_id
405
    """
406
    pass
407
 
408
  def getAllIgnoredInventoryupdateItemsCount(self, ):
409
    pass
410
 
411
  def getIgnoredInventoryUpdateItemids(self, offset, limit):
412
    """
413
    Parameters:
414
     - offset
415
     - limit
416
    """
417
    pass
418
 
419
 
5944 mandeep.dh 420
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
421
  def __init__(self, iprot, oprot=None):
422
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
423
 
424
  def addWarehouse(self, warehouse):
425
    """
426
    Parameters:
427
     - warehouse
428
    """
429
    self.send_addWarehouse(warehouse)
430
    return self.recv_addWarehouse()
431
 
432
  def send_addWarehouse(self, warehouse):
433
    self._oprot.writeMessageBegin('addWarehouse', TMessageType.CALL, self._seqid)
434
    args = addWarehouse_args()
435
    args.warehouse = warehouse
436
    args.write(self._oprot)
437
    self._oprot.writeMessageEnd()
438
    self._oprot.trans.flush()
439
 
440
  def recv_addWarehouse(self, ):
441
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
442
    if mtype == TMessageType.EXCEPTION:
443
      x = TApplicationException()
444
      x.read(self._iprot)
445
      self._iprot.readMessageEnd()
446
      raise x
447
    result = addWarehouse_result()
448
    result.read(self._iprot)
449
    self._iprot.readMessageEnd()
450
    if result.success is not None:
451
      return result.success
452
    if result.cex is not None:
453
      raise result.cex
454
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addWarehouse failed: unknown result");
455
 
456
  def addVendor(self, vendor):
457
    """
458
    add a new vendor
459
 
460
    Parameters:
461
     - vendor
462
    """
463
    self.send_addVendor(vendor)
464
    return self.recv_addVendor()
465
 
466
  def send_addVendor(self, vendor):
467
    self._oprot.writeMessageBegin('addVendor', TMessageType.CALL, self._seqid)
468
    args = addVendor_args()
469
    args.vendor = vendor
470
    args.write(self._oprot)
471
    self._oprot.writeMessageEnd()
472
    self._oprot.trans.flush()
473
 
474
  def recv_addVendor(self, ):
475
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
476
    if mtype == TMessageType.EXCEPTION:
477
      x = TApplicationException()
478
      x.read(self._iprot)
479
      self._iprot.readMessageEnd()
480
      raise x
481
    result = addVendor_result()
482
    result.read(self._iprot)
483
    self._iprot.readMessageEnd()
484
    if result.success is not None:
485
      return result.success
486
    if result.cex is not None:
487
      raise result.cex
488
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addVendor failed: unknown result");
489
 
490
  def updateInventoryHistory(self, warehouse_id, timestamp, availability):
491
    """
492
    Stores the incremental warehouse updates of items.
493
 
494
    Parameters:
495
     - warehouse_id
496
     - timestamp
497
     - availability
498
    """
499
    self.send_updateInventoryHistory(warehouse_id, timestamp, availability)
500
    self.recv_updateInventoryHistory()
501
 
502
  def send_updateInventoryHistory(self, warehouse_id, timestamp, availability):
503
    self._oprot.writeMessageBegin('updateInventoryHistory', TMessageType.CALL, self._seqid)
504
    args = updateInventoryHistory_args()
505
    args.warehouse_id = warehouse_id
506
    args.timestamp = timestamp
507
    args.availability = availability
508
    args.write(self._oprot)
509
    self._oprot.writeMessageEnd()
510
    self._oprot.trans.flush()
511
 
512
  def recv_updateInventoryHistory(self, ):
513
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
514
    if mtype == TMessageType.EXCEPTION:
515
      x = TApplicationException()
516
      x.read(self._iprot)
517
      self._iprot.readMessageEnd()
518
      raise x
519
    result = updateInventoryHistory_result()
520
    result.read(self._iprot)
521
    self._iprot.readMessageEnd()
522
    if result.cex is not None:
523
      raise result.cex
524
    return
525
 
526
  def updateInventory(self, warehouse_id, timestamp, availability):
527
    """
528
    Stores the final inventory stocks of items.
529
 
530
    Parameters:
531
     - warehouse_id
532
     - timestamp
533
     - availability
534
    """
535
    self.send_updateInventory(warehouse_id, timestamp, availability)
536
    self.recv_updateInventory()
537
 
538
  def send_updateInventory(self, warehouse_id, timestamp, availability):
539
    self._oprot.writeMessageBegin('updateInventory', TMessageType.CALL, self._seqid)
540
    args = updateInventory_args()
541
    args.warehouse_id = warehouse_id
542
    args.timestamp = timestamp
543
    args.availability = availability
544
    args.write(self._oprot)
545
    self._oprot.writeMessageEnd()
546
    self._oprot.trans.flush()
547
 
548
  def recv_updateInventory(self, ):
549
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
550
    if mtype == TMessageType.EXCEPTION:
551
      x = TApplicationException()
552
      x.read(self._iprot)
553
      self._iprot.readMessageEnd()
554
      raise x
555
    result = updateInventory_result()
556
    result.read(self._iprot)
557
    self._iprot.readMessageEnd()
558
    if result.cex is not None:
559
      raise result.cex
560
    return
561
 
562
  def addInventory(self, itemId, warehouseId, quantity):
563
    """
564
    Add the inventory to existing stock.
565
 
566
    Parameters:
567
     - itemId
568
     - warehouseId
569
     - quantity
570
    """
571
    self.send_addInventory(itemId, warehouseId, quantity)
572
    self.recv_addInventory()
573
 
574
  def send_addInventory(self, itemId, warehouseId, quantity):
575
    self._oprot.writeMessageBegin('addInventory', TMessageType.CALL, self._seqid)
576
    args = addInventory_args()
577
    args.itemId = itemId
578
    args.warehouseId = warehouseId
579
    args.quantity = quantity
580
    args.write(self._oprot)
581
    self._oprot.writeMessageEnd()
582
    self._oprot.trans.flush()
583
 
584
  def recv_addInventory(self, ):
585
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
586
    if mtype == TMessageType.EXCEPTION:
587
      x = TApplicationException()
588
      x.read(self._iprot)
589
      self._iprot.readMessageEnd()
590
      raise x
591
    result = addInventory_result()
592
    result.read(self._iprot)
593
    self._iprot.readMessageEnd()
594
    if result.cex is not None:
595
      raise result.cex
596
    return
597
 
598
  def retireWarehouse(self, warehouse_id):
599
    """
600
    Parameters:
601
     - warehouse_id
602
    """
603
    self.send_retireWarehouse(warehouse_id)
604
    self.recv_retireWarehouse()
605
 
606
  def send_retireWarehouse(self, warehouse_id):
607
    self._oprot.writeMessageBegin('retireWarehouse', TMessageType.CALL, self._seqid)
608
    args = retireWarehouse_args()
609
    args.warehouse_id = warehouse_id
610
    args.write(self._oprot)
611
    self._oprot.writeMessageEnd()
612
    self._oprot.trans.flush()
613
 
614
  def recv_retireWarehouse(self, ):
615
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
616
    if mtype == TMessageType.EXCEPTION:
617
      x = TApplicationException()
618
      x.read(self._iprot)
619
      self._iprot.readMessageEnd()
620
      raise x
621
    result = retireWarehouse_result()
622
    result.read(self._iprot)
623
    self._iprot.readMessageEnd()
624
    if result.cex is not None:
625
      raise result.cex
626
    return
627
 
628
  def getItemInventoryByItemId(self, item_id):
629
    """
630
    Parameters:
631
     - item_id
632
    """
633
    self.send_getItemInventoryByItemId(item_id)
634
    return self.recv_getItemInventoryByItemId()
635
 
636
  def send_getItemInventoryByItemId(self, item_id):
637
    self._oprot.writeMessageBegin('getItemInventoryByItemId', TMessageType.CALL, self._seqid)
638
    args = getItemInventoryByItemId_args()
639
    args.item_id = item_id
640
    args.write(self._oprot)
641
    self._oprot.writeMessageEnd()
642
    self._oprot.trans.flush()
643
 
644
  def recv_getItemInventoryByItemId(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 = getItemInventoryByItemId_result()
652
    result.read(self._iprot)
653
    self._iprot.readMessageEnd()
654
    if result.success is not None:
655
      return result.success
656
    if result.cex is not None:
657
      raise result.cex
658
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemInventoryByItemId failed: unknown result");
659
 
660
  def getItemAvailibilityAtWarehouse(self, warehouse_id, item_id):
661
    """
662
    Parameters:
663
     - warehouse_id
664
     - item_id
665
    """
666
    self.send_getItemAvailibilityAtWarehouse(warehouse_id, item_id)
667
    return self.recv_getItemAvailibilityAtWarehouse()
668
 
669
  def send_getItemAvailibilityAtWarehouse(self, warehouse_id, item_id):
670
    self._oprot.writeMessageBegin('getItemAvailibilityAtWarehouse', TMessageType.CALL, self._seqid)
671
    args = getItemAvailibilityAtWarehouse_args()
672
    args.warehouse_id = warehouse_id
673
    args.item_id = item_id
674
    args.write(self._oprot)
675
    self._oprot.writeMessageEnd()
676
    self._oprot.trans.flush()
677
 
678
  def recv_getItemAvailibilityAtWarehouse(self, ):
679
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
680
    if mtype == TMessageType.EXCEPTION:
681
      x = TApplicationException()
682
      x.read(self._iprot)
683
      self._iprot.readMessageEnd()
684
      raise x
685
    result = getItemAvailibilityAtWarehouse_result()
686
    result.read(self._iprot)
687
    self._iprot.readMessageEnd()
688
    if result.success is not None:
689
      return result.success
690
    if result.cex is not None:
691
      raise result.cex
692
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailibilityAtWarehouse failed: unknown result");
693
 
5978 rajveer 694
  def getItemAvailabilityAtLocation(self, itemId, sourceId):
5944 mandeep.dh 695
    """
696
    Determines the warehouse that should be used to fulfil an order for the given item.
697
    It first checks all the warehouses which are in the logistics location given by the
698
    warehouse_loc parameter. If none of the warehouses there have any inventory, then the
699
    preferred warehouse for the item is used.
700
 
701
    Returns an ordered list of size 4 with following elements in the given order:
702
    1. Id of the fulfillment warehouse which was finally picked up.
703
    2. Expected delay added by the category manager.
704
    3. Id of the billing warehouse which was finally picked up.
705
 
706
    Parameters:
707
     - itemId
5978 rajveer 708
     - sourceId
5944 mandeep.dh 709
    """
5978 rajveer 710
    self.send_getItemAvailabilityAtLocation(itemId, sourceId)
5944 mandeep.dh 711
    return self.recv_getItemAvailabilityAtLocation()
712
 
5978 rajveer 713
  def send_getItemAvailabilityAtLocation(self, itemId, sourceId):
5944 mandeep.dh 714
    self._oprot.writeMessageBegin('getItemAvailabilityAtLocation', TMessageType.CALL, self._seqid)
715
    args = getItemAvailabilityAtLocation_args()
716
    args.itemId = itemId
5978 rajveer 717
    args.sourceId = sourceId
5944 mandeep.dh 718
    args.write(self._oprot)
719
    self._oprot.writeMessageEnd()
720
    self._oprot.trans.flush()
721
 
722
  def recv_getItemAvailabilityAtLocation(self, ):
723
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
724
    if mtype == TMessageType.EXCEPTION:
725
      x = TApplicationException()
726
      x.read(self._iprot)
727
      self._iprot.readMessageEnd()
728
      raise x
729
    result = getItemAvailabilityAtLocation_result()
730
    result.read(self._iprot)
731
    self._iprot.readMessageEnd()
732
    if result.success is not None:
733
      return result.success
734
    if result.isex is not None:
735
      raise result.isex
736
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailabilityAtLocation failed: unknown result");
737
 
738
  def getAllWarehouses(self, isActive):
739
    """
740
    Parameters:
741
     - isActive
742
    """
743
    self.send_getAllWarehouses(isActive)
744
    return self.recv_getAllWarehouses()
745
 
746
  def send_getAllWarehouses(self, isActive):
747
    self._oprot.writeMessageBegin('getAllWarehouses', TMessageType.CALL, self._seqid)
748
    args = getAllWarehouses_args()
749
    args.isActive = isActive
750
    args.write(self._oprot)
751
    self._oprot.writeMessageEnd()
752
    self._oprot.trans.flush()
753
 
754
  def recv_getAllWarehouses(self, ):
755
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
756
    if mtype == TMessageType.EXCEPTION:
757
      x = TApplicationException()
758
      x.read(self._iprot)
759
      self._iprot.readMessageEnd()
760
      raise x
761
    result = getAllWarehouses_result()
762
    result.read(self._iprot)
763
    self._iprot.readMessageEnd()
764
    if result.success is not None:
765
      return result.success
766
    if result.cex is not None:
767
      raise result.cex
768
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllWarehouses failed: unknown result");
769
 
770
  def getWarehouse(self, warehouse_id):
771
    """
772
    Returns the warehouse with the given id.
773
 
774
    Parameters:
775
     - warehouse_id
776
    """
777
    self.send_getWarehouse(warehouse_id)
778
    return self.recv_getWarehouse()
779
 
780
  def send_getWarehouse(self, warehouse_id):
781
    self._oprot.writeMessageBegin('getWarehouse', TMessageType.CALL, self._seqid)
782
    args = getWarehouse_args()
783
    args.warehouse_id = warehouse_id
784
    args.write(self._oprot)
785
    self._oprot.writeMessageEnd()
786
    self._oprot.trans.flush()
787
 
788
  def recv_getWarehouse(self, ):
789
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
790
    if mtype == TMessageType.EXCEPTION:
791
      x = TApplicationException()
792
      x.read(self._iprot)
793
      self._iprot.readMessageEnd()
794
      raise x
795
    result = getWarehouse_result()
796
    result.read(self._iprot)
797
    self._iprot.readMessageEnd()
798
    if result.success is not None:
799
      return result.success
800
    if result.cex is not None:
801
      raise result.cex
802
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouse failed: unknown result");
803
 
804
  def getAllItemsForWarehouse(self, warehouse_id):
805
    """
806
    Parameters:
807
     - warehouse_id
808
    """
809
    self.send_getAllItemsForWarehouse(warehouse_id)
810
    return self.recv_getAllItemsForWarehouse()
811
 
812
  def send_getAllItemsForWarehouse(self, warehouse_id):
813
    self._oprot.writeMessageBegin('getAllItemsForWarehouse', TMessageType.CALL, self._seqid)
814
    args = getAllItemsForWarehouse_args()
815
    args.warehouse_id = warehouse_id
816
    args.write(self._oprot)
817
    self._oprot.writeMessageEnd()
818
    self._oprot.trans.flush()
819
 
820
  def recv_getAllItemsForWarehouse(self, ):
821
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
822
    if mtype == TMessageType.EXCEPTION:
823
      x = TApplicationException()
824
      x.read(self._iprot)
825
      self._iprot.readMessageEnd()
826
      raise x
827
    result = getAllItemsForWarehouse_result()
828
    result.read(self._iprot)
829
    self._iprot.readMessageEnd()
830
    if result.success is not None:
831
      return result.success
832
    if result.cex is not None:
833
      raise result.cex
834
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsForWarehouse failed: unknown result");
835
 
5966 rajveer 836
  def isOrderBillable(self, itemId, warehouseId, sourceId, orderId):
5944 mandeep.dh 837
    """
5978 rajveer 838
    Depending on reservation in the table, verify if we can bill this order or not.
5966 rajveer 839
 
840
    Parameters:
841
     - itemId
842
     - warehouseId
843
     - sourceId
844
     - orderId
845
    """
846
    self.send_isOrderBillable(itemId, warehouseId, sourceId, orderId)
847
    return self.recv_isOrderBillable()
848
 
849
  def send_isOrderBillable(self, itemId, warehouseId, sourceId, orderId):
850
    self._oprot.writeMessageBegin('isOrderBillable', TMessageType.CALL, self._seqid)
851
    args = isOrderBillable_args()
852
    args.itemId = itemId
853
    args.warehouseId = warehouseId
854
    args.sourceId = sourceId
855
    args.orderId = orderId
856
    args.write(self._oprot)
857
    self._oprot.writeMessageEnd()
858
    self._oprot.trans.flush()
859
 
860
  def recv_isOrderBillable(self, ):
861
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
862
    if mtype == TMessageType.EXCEPTION:
863
      x = TApplicationException()
864
      x.read(self._iprot)
865
      self._iprot.readMessageEnd()
866
      raise x
867
    result = isOrderBillable_result()
868
    result.read(self._iprot)
869
    self._iprot.readMessageEnd()
870
    if result.success is not None:
871
      return result.success
872
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isOrderBillable failed: unknown result");
873
 
874
  def reserveItemInWarehouse(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
875
    """
5944 mandeep.dh 876
    Increases the reservation count for an item in a warehouse. Should always succeed normally.
877
 
878
    Parameters:
879
     - itemId
880
     - warehouseId
5966 rajveer 881
     - sourceId
882
     - orderId
883
     - createdTimestamp
884
     - promisedShippingTimestamp
5944 mandeep.dh 885
     - quantity
886
    """
5966 rajveer 887
    self.send_reserveItemInWarehouse(itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity)
5944 mandeep.dh 888
    return self.recv_reserveItemInWarehouse()
889
 
5966 rajveer 890
  def send_reserveItemInWarehouse(self, itemId, warehouseId, sourceId, orderId, createdTimestamp, promisedShippingTimestamp, quantity):
5944 mandeep.dh 891
    self._oprot.writeMessageBegin('reserveItemInWarehouse', TMessageType.CALL, self._seqid)
892
    args = reserveItemInWarehouse_args()
893
    args.itemId = itemId
894
    args.warehouseId = warehouseId
5966 rajveer 895
    args.sourceId = sourceId
896
    args.orderId = orderId
897
    args.createdTimestamp = createdTimestamp
898
    args.promisedShippingTimestamp = promisedShippingTimestamp
5944 mandeep.dh 899
    args.quantity = quantity
900
    args.write(self._oprot)
901
    self._oprot.writeMessageEnd()
902
    self._oprot.trans.flush()
903
 
904
  def recv_reserveItemInWarehouse(self, ):
905
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
906
    if mtype == TMessageType.EXCEPTION:
907
      x = TApplicationException()
908
      x.read(self._iprot)
909
      self._iprot.readMessageEnd()
910
      raise x
911
    result = reserveItemInWarehouse_result()
912
    result.read(self._iprot)
913
    self._iprot.readMessageEnd()
914
    if result.success is not None:
915
      return result.success
916
    if result.cex is not None:
917
      raise result.cex
918
    raise TApplicationException(TApplicationException.MISSING_RESULT, "reserveItemInWarehouse failed: unknown result");
919
 
5966 rajveer 920
  def reduceReservationCount(self, itemId, warehouseId, sourceId, orderId, quantity):
5944 mandeep.dh 921
    """
922
    Decreases the reservation count for an item in a warehouse. Should always succeed normally.
923
 
924
    Parameters:
925
     - itemId
926
     - warehouseId
5966 rajveer 927
     - sourceId
928
     - orderId
5944 mandeep.dh 929
     - quantity
930
    """
5966 rajveer 931
    self.send_reduceReservationCount(itemId, warehouseId, sourceId, orderId, quantity)
5944 mandeep.dh 932
    return self.recv_reduceReservationCount()
933
 
5966 rajveer 934
  def send_reduceReservationCount(self, itemId, warehouseId, sourceId, orderId, quantity):
5944 mandeep.dh 935
    self._oprot.writeMessageBegin('reduceReservationCount', TMessageType.CALL, self._seqid)
936
    args = reduceReservationCount_args()
937
    args.itemId = itemId
938
    args.warehouseId = warehouseId
5966 rajveer 939
    args.sourceId = sourceId
940
    args.orderId = orderId
5944 mandeep.dh 941
    args.quantity = quantity
942
    args.write(self._oprot)
943
    self._oprot.writeMessageEnd()
944
    self._oprot.trans.flush()
945
 
946
  def recv_reduceReservationCount(self, ):
947
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
948
    if mtype == TMessageType.EXCEPTION:
949
      x = TApplicationException()
950
      x.read(self._iprot)
951
      self._iprot.readMessageEnd()
952
      raise x
953
    result = reduceReservationCount_result()
954
    result.read(self._iprot)
955
    self._iprot.readMessageEnd()
956
    if result.success is not None:
957
      return result.success
958
    if result.cex is not None:
959
      raise result.cex
960
    raise TApplicationException(TApplicationException.MISSING_RESULT, "reduceReservationCount failed: unknown result");
961
 
962
  def getItemPricing(self, itemId, vendorId):
963
    """
964
    Returns the pricing information of an item associated with the vendor of the given warehouse.
965
    Raises an exception if either the item, vendor or the associated pricing information can't be found.
966
 
967
    Parameters:
968
     - itemId
969
     - vendorId
970
    """
971
    self.send_getItemPricing(itemId, vendorId)
972
    return self.recv_getItemPricing()
973
 
974
  def send_getItemPricing(self, itemId, vendorId):
975
    self._oprot.writeMessageBegin('getItemPricing', TMessageType.CALL, self._seqid)
976
    args = getItemPricing_args()
977
    args.itemId = itemId
978
    args.vendorId = vendorId
979
    args.write(self._oprot)
980
    self._oprot.writeMessageEnd()
981
    self._oprot.trans.flush()
982
 
983
  def recv_getItemPricing(self, ):
984
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
985
    if mtype == TMessageType.EXCEPTION:
986
      x = TApplicationException()
987
      x.read(self._iprot)
988
      self._iprot.readMessageEnd()
989
      raise x
990
    result = getItemPricing_result()
991
    result.read(self._iprot)
992
    self._iprot.readMessageEnd()
993
    if result.success is not None:
994
      return result.success
995
    if result.cex is not None:
996
      raise result.cex
997
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricing failed: unknown result");
998
 
999
  def getAllItemPricing(self, itemId):
1000
    """
1001
    Returns the list of vendor pricing information of an item.
1002
    Raises an exception if item not found corresponding to itemId
1003
 
1004
    Parameters:
1005
     - itemId
1006
    """
1007
    self.send_getAllItemPricing(itemId)
1008
    return self.recv_getAllItemPricing()
1009
 
1010
  def send_getAllItemPricing(self, itemId):
1011
    self._oprot.writeMessageBegin('getAllItemPricing', TMessageType.CALL, self._seqid)
1012
    args = getAllItemPricing_args()
1013
    args.itemId = itemId
1014
    args.write(self._oprot)
1015
    self._oprot.writeMessageEnd()
1016
    self._oprot.trans.flush()
1017
 
1018
  def recv_getAllItemPricing(self, ):
1019
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1020
    if mtype == TMessageType.EXCEPTION:
1021
      x = TApplicationException()
1022
      x.read(self._iprot)
1023
      self._iprot.readMessageEnd()
1024
      raise x
1025
    result = getAllItemPricing_result()
1026
    result.read(self._iprot)
1027
    self._iprot.readMessageEnd()
1028
    if result.success is not None:
1029
      return result.success
1030
    if result.cex is not None:
1031
      raise result.cex
1032
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemPricing failed: unknown result");
1033
 
1034
  def addVendorItemPricing(self, vendorItemPricing):
1035
    """
1036
    Adds vendor prices corresponding to the item. If pricing already exists then updates the prices.
1037
    Raises an exception if either the item or vendor can't be found corresponding to their ids.
1038
 
1039
    Parameters:
1040
     - vendorItemPricing
1041
    """
1042
    self.send_addVendorItemPricing(vendorItemPricing)
1043
    self.recv_addVendorItemPricing()
1044
 
1045
  def send_addVendorItemPricing(self, vendorItemPricing):
1046
    self._oprot.writeMessageBegin('addVendorItemPricing', TMessageType.CALL, self._seqid)
1047
    args = addVendorItemPricing_args()
1048
    args.vendorItemPricing = vendorItemPricing
1049
    args.write(self._oprot)
1050
    self._oprot.writeMessageEnd()
1051
    self._oprot.trans.flush()
1052
 
1053
  def recv_addVendorItemPricing(self, ):
1054
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1055
    if mtype == TMessageType.EXCEPTION:
1056
      x = TApplicationException()
1057
      x.read(self._iprot)
1058
      self._iprot.readMessageEnd()
1059
      raise x
1060
    result = addVendorItemPricing_result()
1061
    result.read(self._iprot)
1062
    self._iprot.readMessageEnd()
1063
    if result.cex is not None:
1064
      raise result.cex
1065
    return
1066
 
1067
  def getVendor(self, vendorId):
1068
    """
1069
    Returns a vendor given its id
1070
 
1071
    Parameters:
1072
     - vendorId
1073
    """
1074
    self.send_getVendor(vendorId)
1075
    return self.recv_getVendor()
1076
 
1077
  def send_getVendor(self, vendorId):
1078
    self._oprot.writeMessageBegin('getVendor', TMessageType.CALL, self._seqid)
1079
    args = getVendor_args()
1080
    args.vendorId = vendorId
1081
    args.write(self._oprot)
1082
    self._oprot.writeMessageEnd()
1083
    self._oprot.trans.flush()
1084
 
1085
  def recv_getVendor(self, ):
1086
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1087
    if mtype == TMessageType.EXCEPTION:
1088
      x = TApplicationException()
1089
      x.read(self._iprot)
1090
      self._iprot.readMessageEnd()
1091
      raise x
1092
    result = getVendor_result()
1093
    result.read(self._iprot)
1094
    self._iprot.readMessageEnd()
1095
    if result.success is not None:
1096
      return result.success
1097
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVendor failed: unknown result");
1098
 
1099
  def getAllVendors(self, ):
1100
    """
1101
    Return list of all vendors
1102
    """
1103
    self.send_getAllVendors()
1104
    return self.recv_getAllVendors()
1105
 
1106
  def send_getAllVendors(self, ):
1107
    self._oprot.writeMessageBegin('getAllVendors', TMessageType.CALL, self._seqid)
1108
    args = getAllVendors_args()
1109
    args.write(self._oprot)
1110
    self._oprot.writeMessageEnd()
1111
    self._oprot.trans.flush()
1112
 
1113
  def recv_getAllVendors(self, ):
1114
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1115
    if mtype == TMessageType.EXCEPTION:
1116
      x = TApplicationException()
1117
      x.read(self._iprot)
1118
      self._iprot.readMessageEnd()
1119
      raise x
1120
    result = getAllVendors_result()
1121
    result.read(self._iprot)
1122
    self._iprot.readMessageEnd()
1123
    if result.success is not None:
1124
      return result.success
1125
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllVendors failed: unknown result");
1126
 
1127
  def addVendorItemMapping(self, key, vendorItemMapping):
1128
    """
1129
    Adds VendorItemMapping. Updates VendorItemMapping if exists corresponding to the item key.
1130
 
1131
    Parameters:
1132
     - key
1133
     - vendorItemMapping
1134
    """
1135
    self.send_addVendorItemMapping(key, vendorItemMapping)
1136
    self.recv_addVendorItemMapping()
1137
 
1138
  def send_addVendorItemMapping(self, key, vendorItemMapping):
1139
    self._oprot.writeMessageBegin('addVendorItemMapping', TMessageType.CALL, self._seqid)
1140
    args = addVendorItemMapping_args()
1141
    args.key = key
1142
    args.vendorItemMapping = vendorItemMapping
1143
    args.write(self._oprot)
1144
    self._oprot.writeMessageEnd()
1145
    self._oprot.trans.flush()
1146
 
1147
  def recv_addVendorItemMapping(self, ):
1148
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1149
    if mtype == TMessageType.EXCEPTION:
1150
      x = TApplicationException()
1151
      x.read(self._iprot)
1152
      self._iprot.readMessageEnd()
1153
      raise x
1154
    result = addVendorItemMapping_result()
1155
    result.read(self._iprot)
1156
    self._iprot.readMessageEnd()
1157
    if result.cex is not None:
1158
      raise result.cex
1159
    return
1160
 
1161
  def getVendorItemMappings(self, itemId):
1162
    """
1163
    Returns the list of vendor item mapping corresponding to itemId passed as parameter.
1164
    Raises an exception if item not found corresponding to itemId
1165
 
1166
    Parameters:
1167
     - itemId
1168
    """
1169
    self.send_getVendorItemMappings(itemId)
1170
    return self.recv_getVendorItemMappings()
1171
 
1172
  def send_getVendorItemMappings(self, itemId):
1173
    self._oprot.writeMessageBegin('getVendorItemMappings', TMessageType.CALL, self._seqid)
1174
    args = getVendorItemMappings_args()
1175
    args.itemId = itemId
1176
    args.write(self._oprot)
1177
    self._oprot.writeMessageEnd()
1178
    self._oprot.trans.flush()
1179
 
1180
  def recv_getVendorItemMappings(self, ):
1181
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1182
    if mtype == TMessageType.EXCEPTION:
1183
      x = TApplicationException()
1184
      x.read(self._iprot)
1185
      self._iprot.readMessageEnd()
1186
      raise x
1187
    result = getVendorItemMappings_result()
1188
    result.read(self._iprot)
1189
    self._iprot.readMessageEnd()
1190
    if result.success is not None:
1191
      return result.success
1192
    if result.cex is not None:
1193
      raise result.cex
1194
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVendorItemMappings failed: unknown result");
1195
 
1196
  def getPendingOrdersInventory(self, vendorid):
1197
    """
1198
    Returns a list of inventory stock for items for which there are pending orders for the given vendor.
1199
 
1200
    Parameters:
1201
     - vendorid
1202
    """
1203
    self.send_getPendingOrdersInventory(vendorid)
1204
    return self.recv_getPendingOrdersInventory()
1205
 
1206
  def send_getPendingOrdersInventory(self, vendorid):
1207
    self._oprot.writeMessageBegin('getPendingOrdersInventory', TMessageType.CALL, self._seqid)
1208
    args = getPendingOrdersInventory_args()
1209
    args.vendorid = vendorid
1210
    args.write(self._oprot)
1211
    self._oprot.writeMessageEnd()
1212
    self._oprot.trans.flush()
1213
 
1214
  def recv_getPendingOrdersInventory(self, ):
1215
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1216
    if mtype == TMessageType.EXCEPTION:
1217
      x = TApplicationException()
1218
      x.read(self._iprot)
1219
      self._iprot.readMessageEnd()
1220
      raise x
1221
    result = getPendingOrdersInventory_result()
1222
    result.read(self._iprot)
1223
    self._iprot.readMessageEnd()
1224
    if result.success is not None:
1225
      return result.success
1226
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPendingOrdersInventory failed: unknown result");
1227
 
1228
  def getWarehouses(self, warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId):
1229
    """
1230
    This method returns all warehouses for a given warehosueType, inventoryType, vendor, billingWarehouse and shippingWarehouse.
1231
    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
1232
    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
1233
       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
1234
       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
1235
 
1236
    Parameters:
1237
     - warehouseType
1238
     - inventoryType
1239
     - vendorId
1240
     - billingWarehouseId
1241
     - shippingWarehouseId
1242
    """
1243
    self.send_getWarehouses(warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId)
1244
    return self.recv_getWarehouses()
1245
 
1246
  def send_getWarehouses(self, warehouseType, inventoryType, vendorId, billingWarehouseId, shippingWarehouseId):
1247
    self._oprot.writeMessageBegin('getWarehouses', TMessageType.CALL, self._seqid)
1248
    args = getWarehouses_args()
1249
    args.warehouseType = warehouseType
1250
    args.inventoryType = inventoryType
1251
    args.vendorId = vendorId
1252
    args.billingWarehouseId = billingWarehouseId
1253
    args.shippingWarehouseId = shippingWarehouseId
1254
    args.write(self._oprot)
1255
    self._oprot.writeMessageEnd()
1256
    self._oprot.trans.flush()
1257
 
1258
  def recv_getWarehouses(self, ):
1259
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1260
    if mtype == TMessageType.EXCEPTION:
1261
      x = TApplicationException()
1262
      x.read(self._iprot)
1263
      self._iprot.readMessageEnd()
1264
      raise x
1265
    result = getWarehouses_result()
1266
    result.read(self._iprot)
1267
    self._iprot.readMessageEnd()
1268
    if result.success is not None:
1269
      return result.success
1270
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getWarehouses failed: unknown result");
1271
 
1272
  def resetAvailability(self, itemKey, vendorId, quantity, warehouseId):
1273
    """
1274
    Resets availability of an item to the quantity mentioned in a warehouse.
1275
 
1276
    Parameters:
1277
     - itemKey
1278
     - vendorId
1279
     - quantity
1280
     - warehouseId
1281
    """
1282
    self.send_resetAvailability(itemKey, vendorId, quantity, warehouseId)
1283
    self.recv_resetAvailability()
1284
 
1285
  def send_resetAvailability(self, itemKey, vendorId, quantity, warehouseId):
1286
    self._oprot.writeMessageBegin('resetAvailability', TMessageType.CALL, self._seqid)
1287
    args = resetAvailability_args()
1288
    args.itemKey = itemKey
1289
    args.vendorId = vendorId
1290
    args.quantity = quantity
1291
    args.warehouseId = warehouseId
1292
    args.write(self._oprot)
1293
    self._oprot.writeMessageEnd()
1294
    self._oprot.trans.flush()
1295
 
1296
  def recv_resetAvailability(self, ):
1297
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1298
    if mtype == TMessageType.EXCEPTION:
1299
      x = TApplicationException()
1300
      x.read(self._iprot)
1301
      self._iprot.readMessageEnd()
1302
      raise x
1303
    result = resetAvailability_result()
1304
    result.read(self._iprot)
1305
    self._iprot.readMessageEnd()
1306
    if result.cex is not None:
1307
      raise result.cex
1308
    return
1309
 
1310
  def resetAvailabilityForWarehouse(self, warehouseId):
1311
    """
1312
    Resets availability of a warehouse to zero.
1313
 
1314
    Parameters:
1315
     - warehouseId
1316
    """
1317
    self.send_resetAvailabilityForWarehouse(warehouseId)
1318
    self.recv_resetAvailabilityForWarehouse()
1319
 
1320
  def send_resetAvailabilityForWarehouse(self, warehouseId):
1321
    self._oprot.writeMessageBegin('resetAvailabilityForWarehouse', TMessageType.CALL, self._seqid)
1322
    args = resetAvailabilityForWarehouse_args()
1323
    args.warehouseId = warehouseId
1324
    args.write(self._oprot)
1325
    self._oprot.writeMessageEnd()
1326
    self._oprot.trans.flush()
1327
 
1328
  def recv_resetAvailabilityForWarehouse(self, ):
1329
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1330
    if mtype == TMessageType.EXCEPTION:
1331
      x = TApplicationException()
1332
      x.read(self._iprot)
1333
      self._iprot.readMessageEnd()
1334
      raise x
1335
    result = resetAvailabilityForWarehouse_result()
1336
    result.read(self._iprot)
1337
    self._iprot.readMessageEnd()
1338
    if result.cex is not None:
1339
      raise result.cex
1340
    return
1341
 
1342
  def getItemKeysToBeProcessed(self, warehouseId):
1343
    """
1344
    Returns the list of item keys which need to be processed for a given warehouse.
1345
    This is currently used by Support application to send item keys whose inventory needs
1346
    to be updated from PLB
1347
 
1348
    Parameters:
1349
     - warehouseId
1350
    """
1351
    self.send_getItemKeysToBeProcessed(warehouseId)
1352
    return self.recv_getItemKeysToBeProcessed()
1353
 
1354
  def send_getItemKeysToBeProcessed(self, warehouseId):
1355
    self._oprot.writeMessageBegin('getItemKeysToBeProcessed', TMessageType.CALL, self._seqid)
1356
    args = getItemKeysToBeProcessed_args()
1357
    args.warehouseId = warehouseId
1358
    args.write(self._oprot)
1359
    self._oprot.writeMessageEnd()
1360
    self._oprot.trans.flush()
1361
 
1362
  def recv_getItemKeysToBeProcessed(self, ):
1363
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1364
    if mtype == TMessageType.EXCEPTION:
1365
      x = TApplicationException()
1366
      x.read(self._iprot)
1367
      self._iprot.readMessageEnd()
1368
      raise x
1369
    result = getItemKeysToBeProcessed_result()
1370
    result.read(self._iprot)
1371
    self._iprot.readMessageEnd()
1372
    if result.success is not None:
1373
      return result.success
1374
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemKeysToBeProcessed failed: unknown result");
1375
 
1376
  def markMissedInventoryUpdatesAsProcessed(self, itemKey, warehouseId):
1377
    """
1378
    Marks/Deletes missed inventory updates for a given key and warehouse.
1379
    This generally happens when updates from PLB are applied on the currentinventorysnapshot for an item
1380
 
1381
    Parameters:
1382
     - itemKey
1383
     - warehouseId
1384
    """
1385
    self.send_markMissedInventoryUpdatesAsProcessed(itemKey, warehouseId)
1386
    self.recv_markMissedInventoryUpdatesAsProcessed()
1387
 
1388
  def send_markMissedInventoryUpdatesAsProcessed(self, itemKey, warehouseId):
1389
    self._oprot.writeMessageBegin('markMissedInventoryUpdatesAsProcessed', TMessageType.CALL, self._seqid)
1390
    args = markMissedInventoryUpdatesAsProcessed_args()
1391
    args.itemKey = itemKey
1392
    args.warehouseId = warehouseId
1393
    args.write(self._oprot)
1394
    self._oprot.writeMessageEnd()
1395
    self._oprot.trans.flush()
1396
 
1397
  def recv_markMissedInventoryUpdatesAsProcessed(self, ):
1398
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1399
    if mtype == TMessageType.EXCEPTION:
1400
      x = TApplicationException()
1401
      x.read(self._iprot)
1402
      self._iprot.readMessageEnd()
1403
      raise x
1404
    result = markMissedInventoryUpdatesAsProcessed_result()
1405
    result.read(self._iprot)
1406
    self._iprot.readMessageEnd()
1407
    return
1408
 
1409
  def getIgnoredItemKeys(self, ):
1410
    """
1411
    Returns all the item key mappings that have been ignored until date. Value of map has the warehouse id
1412
    and the timestamp from where alert was raised.
1413
    """
1414
    self.send_getIgnoredItemKeys()
1415
    return self.recv_getIgnoredItemKeys()
1416
 
1417
  def send_getIgnoredItemKeys(self, ):
1418
    self._oprot.writeMessageBegin('getIgnoredItemKeys', TMessageType.CALL, self._seqid)
1419
    args = getIgnoredItemKeys_args()
1420
    args.write(self._oprot)
1421
    self._oprot.writeMessageEnd()
1422
    self._oprot.trans.flush()
1423
 
1424
  def recv_getIgnoredItemKeys(self, ):
1425
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1426
    if mtype == TMessageType.EXCEPTION:
1427
      x = TApplicationException()
1428
      x.read(self._iprot)
1429
      self._iprot.readMessageEnd()
1430
      raise x
1431
    result = getIgnoredItemKeys_result()
1432
    result.read(self._iprot)
1433
    self._iprot.readMessageEnd()
1434
    if result.success is not None:
1435
      return result.success
1436
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredItemKeys failed: unknown result");
1437
 
1438
  def addBadInventory(self, itemId, warehouseId, quantity):
1439
    """
1440
    Add the BAD type inventory to existing stock.
1441
 
1442
    Parameters:
1443
     - itemId
1444
     - warehouseId
1445
     - quantity
1446
    """
1447
    self.send_addBadInventory(itemId, warehouseId, quantity)
1448
    self.recv_addBadInventory()
1449
 
1450
  def send_addBadInventory(self, itemId, warehouseId, quantity):
1451
    self._oprot.writeMessageBegin('addBadInventory', TMessageType.CALL, self._seqid)
1452
    args = addBadInventory_args()
1453
    args.itemId = itemId
1454
    args.warehouseId = warehouseId
1455
    args.quantity = quantity
1456
    args.write(self._oprot)
1457
    self._oprot.writeMessageEnd()
1458
    self._oprot.trans.flush()
1459
 
1460
  def recv_addBadInventory(self, ):
1461
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1462
    if mtype == TMessageType.EXCEPTION:
1463
      x = TApplicationException()
1464
      x.read(self._iprot)
1465
      self._iprot.readMessageEnd()
1466
      raise x
1467
    result = addBadInventory_result()
1468
    result.read(self._iprot)
1469
    self._iprot.readMessageEnd()
1470
    if result.cex is not None:
1471
      raise result.cex
1472
    return
1473
 
1474
  def getShippingLocations(self, ):
1475
    """
1476
    Returns all shipping locations
1477
    """
1478
    self.send_getShippingLocations()
1479
    return self.recv_getShippingLocations()
1480
 
1481
  def send_getShippingLocations(self, ):
1482
    self._oprot.writeMessageBegin('getShippingLocations', TMessageType.CALL, self._seqid)
1483
    args = getShippingLocations_args()
1484
    args.write(self._oprot)
1485
    self._oprot.writeMessageEnd()
1486
    self._oprot.trans.flush()
1487
 
1488
  def recv_getShippingLocations(self, ):
1489
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1490
    if mtype == TMessageType.EXCEPTION:
1491
      x = TApplicationException()
1492
      x.read(self._iprot)
1493
      self._iprot.readMessageEnd()
1494
      raise x
1495
    result = getShippingLocations_result()
1496
    result.read(self._iprot)
1497
    self._iprot.readMessageEnd()
1498
    if result.success is not None:
1499
      return result.success
1500
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getShippingLocations failed: unknown result");
1501
 
1502
  def getAllVendorItemMappings(self, ):
1503
    """
1504
    Fetches all the vendor item mappings present.
1505
    """
1506
    self.send_getAllVendorItemMappings()
1507
    return self.recv_getAllVendorItemMappings()
1508
 
1509
  def send_getAllVendorItemMappings(self, ):
1510
    self._oprot.writeMessageBegin('getAllVendorItemMappings', TMessageType.CALL, self._seqid)
1511
    args = getAllVendorItemMappings_args()
1512
    args.write(self._oprot)
1513
    self._oprot.writeMessageEnd()
1514
    self._oprot.trans.flush()
1515
 
1516
  def recv_getAllVendorItemMappings(self, ):
1517
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1518
    if mtype == TMessageType.EXCEPTION:
1519
      x = TApplicationException()
1520
      x.read(self._iprot)
1521
      self._iprot.readMessageEnd()
1522
      raise x
1523
    result = getAllVendorItemMappings_result()
1524
    result.read(self._iprot)
1525
    self._iprot.readMessageEnd()
1526
    if result.success is not None:
1527
      return result.success
1528
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllVendorItemMappings failed: unknown result");
1529
 
1530
  def getInventorySnapshot(self, warehouseId):
1531
    """
1532
    Gets items' inventory for a warehouse
1533
    If warehouse is passed as zero, items' inventory across all warehouses is sent
1534
 
1535
    Parameters:
1536
     - warehouseId
1537
    """
1538
    self.send_getInventorySnapshot(warehouseId)
1539
    return self.recv_getInventorySnapshot()
1540
 
1541
  def send_getInventorySnapshot(self, warehouseId):
1542
    self._oprot.writeMessageBegin('getInventorySnapshot', TMessageType.CALL, self._seqid)
1543
    args = getInventorySnapshot_args()
1544
    args.warehouseId = warehouseId
1545
    args.write(self._oprot)
1546
    self._oprot.writeMessageEnd()
1547
    self._oprot.trans.flush()
1548
 
1549
  def recv_getInventorySnapshot(self, ):
1550
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1551
    if mtype == TMessageType.EXCEPTION:
1552
      x = TApplicationException()
1553
      x.read(self._iprot)
1554
      self._iprot.readMessageEnd()
1555
      raise x
1556
    result = getInventorySnapshot_result()
1557
    result.read(self._iprot)
1558
    self._iprot.readMessageEnd()
1559
    if result.success is not None:
1560
      return result.success
1561
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventorySnapshot failed: unknown result");
1562
 
1563
  def clearItemAvailabilityCache(self, ):
1564
    """
1565
    Clear item availability cache.
1566
    """
1567
    self.send_clearItemAvailabilityCache()
1568
    self.recv_clearItemAvailabilityCache()
1569
 
1570
  def send_clearItemAvailabilityCache(self, ):
1571
    self._oprot.writeMessageBegin('clearItemAvailabilityCache', TMessageType.CALL, self._seqid)
1572
    args = clearItemAvailabilityCache_args()
1573
    args.write(self._oprot)
1574
    self._oprot.writeMessageEnd()
1575
    self._oprot.trans.flush()
1576
 
1577
  def recv_clearItemAvailabilityCache(self, ):
1578
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1579
    if mtype == TMessageType.EXCEPTION:
1580
      x = TApplicationException()
1581
      x.read(self._iprot)
1582
      self._iprot.readMessageEnd()
1583
      raise x
1584
    result = clearItemAvailabilityCache_result()
1585
    result.read(self._iprot)
1586
    self._iprot.readMessageEnd()
1587
    return
1588
 
1589
  def updateVendorString(self, warehouseId, vendorString):
1590
    """
1591
    Parameters:
1592
     - warehouseId
1593
     - vendorString
1594
    """
1595
    self.send_updateVendorString(warehouseId, vendorString)
1596
    self.recv_updateVendorString()
1597
 
1598
  def send_updateVendorString(self, warehouseId, vendorString):
1599
    self._oprot.writeMessageBegin('updateVendorString', TMessageType.CALL, self._seqid)
1600
    args = updateVendorString_args()
1601
    args.warehouseId = warehouseId
1602
    args.vendorString = vendorString
1603
    args.write(self._oprot)
1604
    self._oprot.writeMessageEnd()
1605
    self._oprot.trans.flush()
1606
 
1607
  def recv_updateVendorString(self, ):
1608
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1609
    if mtype == TMessageType.EXCEPTION:
1610
      x = TApplicationException()
1611
      x.read(self._iprot)
1612
      self._iprot.readMessageEnd()
1613
      raise x
1614
    result = updateVendorString_result()
1615
    result.read(self._iprot)
1616
    self._iprot.readMessageEnd()
1617
    return
1618
 
6096 amit.gupta 1619
  def clearItemAvailabilityCacheForItem(self, item_id):
1620
    """
1621
    Parameters:
1622
     - item_id
1623
    """
1624
    self.send_clearItemAvailabilityCacheForItem(item_id)
1625
    self.recv_clearItemAvailabilityCacheForItem()
5944 mandeep.dh 1626
 
6096 amit.gupta 1627
  def send_clearItemAvailabilityCacheForItem(self, item_id):
1628
    self._oprot.writeMessageBegin('clearItemAvailabilityCacheForItem', TMessageType.CALL, self._seqid)
1629
    args = clearItemAvailabilityCacheForItem_args()
1630
    args.item_id = item_id
1631
    args.write(self._oprot)
1632
    self._oprot.writeMessageEnd()
1633
    self._oprot.trans.flush()
1634
 
1635
  def recv_clearItemAvailabilityCacheForItem(self, ):
1636
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1637
    if mtype == TMessageType.EXCEPTION:
1638
      x = TApplicationException()
1639
      x.read(self._iprot)
1640
      self._iprot.readMessageEnd()
1641
      raise x
1642
    result = clearItemAvailabilityCacheForItem_result()
1643
    result.read(self._iprot)
1644
    self._iprot.readMessageEnd()
1645
    return
1646
 
6467 amar.kumar 1647
  def getOurWarehouseIdForVendor(self, vendorId):
1648
    """
1649
    Parameters:
1650
     - vendorId
1651
    """
1652
    self.send_getOurWarehouseIdForVendor(vendorId)
1653
    return self.recv_getOurWarehouseIdForVendor()
6096 amit.gupta 1654
 
6467 amar.kumar 1655
  def send_getOurWarehouseIdForVendor(self, vendorId):
1656
    self._oprot.writeMessageBegin('getOurWarehouseIdForVendor', TMessageType.CALL, self._seqid)
1657
    args = getOurWarehouseIdForVendor_args()
1658
    args.vendorId = vendorId
1659
    args.write(self._oprot)
1660
    self._oprot.writeMessageEnd()
1661
    self._oprot.trans.flush()
1662
 
1663
  def recv_getOurWarehouseIdForVendor(self, ):
1664
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1665
    if mtype == TMessageType.EXCEPTION:
1666
      x = TApplicationException()
1667
      x.read(self._iprot)
1668
      self._iprot.readMessageEnd()
1669
      raise x
1670
    result = getOurWarehouseIdForVendor_result()
1671
    result.read(self._iprot)
1672
    self._iprot.readMessageEnd()
1673
    if result.success is not None:
1674
      return result.success
1675
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOurWarehouseIdForVendor failed: unknown result");
1676
 
6484 amar.kumar 1677
  def getItemAvailabilitiesAtOurWarehouses(self, item_ids):
1678
    """
1679
    Parameters:
1680
     - item_ids
1681
    """
1682
    self.send_getItemAvailabilitiesAtOurWarehouses(item_ids)
1683
    return self.recv_getItemAvailabilitiesAtOurWarehouses()
6467 amar.kumar 1684
 
6484 amar.kumar 1685
  def send_getItemAvailabilitiesAtOurWarehouses(self, item_ids):
1686
    self._oprot.writeMessageBegin('getItemAvailabilitiesAtOurWarehouses', TMessageType.CALL, self._seqid)
1687
    args = getItemAvailabilitiesAtOurWarehouses_args()
1688
    args.item_ids = item_ids
1689
    args.write(self._oprot)
1690
    self._oprot.writeMessageEnd()
1691
    self._oprot.trans.flush()
1692
 
1693
  def recv_getItemAvailabilitiesAtOurWarehouses(self, ):
1694
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1695
    if mtype == TMessageType.EXCEPTION:
1696
      x = TApplicationException()
1697
      x.read(self._iprot)
1698
      self._iprot.readMessageEnd()
1699
      raise x
1700
    result = getItemAvailabilitiesAtOurWarehouses_result()
1701
    result.read(self._iprot)
1702
    self._iprot.readMessageEnd()
1703
    if result.success is not None:
1704
      return result.success
1705
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemAvailabilitiesAtOurWarehouses failed: unknown result");
1706
 
6531 vikram.rag 1707
  def getMonitoredWarehouseForVendors(self, vendorIds):
1708
    """
1709
    Parameters:
1710
     - vendorIds
1711
    """
1712
    self.send_getMonitoredWarehouseForVendors(vendorIds)
1713
    return self.recv_getMonitoredWarehouseForVendors()
6484 amar.kumar 1714
 
6531 vikram.rag 1715
  def send_getMonitoredWarehouseForVendors(self, vendorIds):
1716
    self._oprot.writeMessageBegin('getMonitoredWarehouseForVendors', TMessageType.CALL, self._seqid)
1717
    args = getMonitoredWarehouseForVendors_args()
1718
    args.vendorIds = vendorIds
1719
    args.write(self._oprot)
1720
    self._oprot.writeMessageEnd()
1721
    self._oprot.trans.flush()
1722
 
1723
  def recv_getMonitoredWarehouseForVendors(self, ):
1724
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1725
    if mtype == TMessageType.EXCEPTION:
1726
      x = TApplicationException()
1727
      x.read(self._iprot)
1728
      self._iprot.readMessageEnd()
1729
      raise x
1730
    result = getMonitoredWarehouseForVendors_result()
1731
    result.read(self._iprot)
1732
    self._iprot.readMessageEnd()
1733
    if result.success is not None:
1734
      return result.success
1735
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMonitoredWarehouseForVendors failed: unknown result");
1736
 
1737
  def getIgnoredWarehouseidsAndItemids(self, ):
1738
    self.send_getIgnoredWarehouseidsAndItemids()
1739
    return self.recv_getIgnoredWarehouseidsAndItemids()
1740
 
1741
  def send_getIgnoredWarehouseidsAndItemids(self, ):
1742
    self._oprot.writeMessageBegin('getIgnoredWarehouseidsAndItemids', TMessageType.CALL, self._seqid)
1743
    args = getIgnoredWarehouseidsAndItemids_args()
1744
    args.write(self._oprot)
1745
    self._oprot.writeMessageEnd()
1746
    self._oprot.trans.flush()
1747
 
1748
  def recv_getIgnoredWarehouseidsAndItemids(self, ):
1749
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1750
    if mtype == TMessageType.EXCEPTION:
1751
      x = TApplicationException()
1752
      x.read(self._iprot)
1753
      self._iprot.readMessageEnd()
1754
      raise x
1755
    result = getIgnoredWarehouseidsAndItemids_result()
1756
    result.read(self._iprot)
1757
    self._iprot.readMessageEnd()
1758
    if result.success is not None:
1759
      return result.success
1760
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredWarehouseidsAndItemids failed: unknown result");
1761
 
1762
  def insertItemtoIgnoreInventoryUpdatelist(self, item_id, warehouse_id):
1763
    """
1764
    Parameters:
1765
     - item_id
1766
     - warehouse_id
1767
    """
1768
    self.send_insertItemtoIgnoreInventoryUpdatelist(item_id, warehouse_id)
1769
    return self.recv_insertItemtoIgnoreInventoryUpdatelist()
1770
 
1771
  def send_insertItemtoIgnoreInventoryUpdatelist(self, item_id, warehouse_id):
1772
    self._oprot.writeMessageBegin('insertItemtoIgnoreInventoryUpdatelist', TMessageType.CALL, self._seqid)
1773
    args = insertItemtoIgnoreInventoryUpdatelist_args()
1774
    args.item_id = item_id
1775
    args.warehouse_id = warehouse_id
1776
    args.write(self._oprot)
1777
    self._oprot.writeMessageEnd()
1778
    self._oprot.trans.flush()
1779
 
1780
  def recv_insertItemtoIgnoreInventoryUpdatelist(self, ):
1781
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1782
    if mtype == TMessageType.EXCEPTION:
1783
      x = TApplicationException()
1784
      x.read(self._iprot)
1785
      self._iprot.readMessageEnd()
1786
      raise x
1787
    result = insertItemtoIgnoreInventoryUpdatelist_result()
1788
    result.read(self._iprot)
1789
    self._iprot.readMessageEnd()
1790
    if result.success is not None:
1791
      return result.success
1792
    raise TApplicationException(TApplicationException.MISSING_RESULT, "insertItemtoIgnoreInventoryUpdatelist failed: unknown result");
1793
 
1794
  def deleteItemFromIgnoredInventoryUpdateList(self, item_id, warehouse_id):
1795
    """
1796
    Parameters:
1797
     - item_id
1798
     - warehouse_id
1799
    """
1800
    self.send_deleteItemFromIgnoredInventoryUpdateList(item_id, warehouse_id)
1801
    return self.recv_deleteItemFromIgnoredInventoryUpdateList()
1802
 
1803
  def send_deleteItemFromIgnoredInventoryUpdateList(self, item_id, warehouse_id):
1804
    self._oprot.writeMessageBegin('deleteItemFromIgnoredInventoryUpdateList', TMessageType.CALL, self._seqid)
1805
    args = deleteItemFromIgnoredInventoryUpdateList_args()
1806
    args.item_id = item_id
1807
    args.warehouse_id = warehouse_id
1808
    args.write(self._oprot)
1809
    self._oprot.writeMessageEnd()
1810
    self._oprot.trans.flush()
1811
 
1812
  def recv_deleteItemFromIgnoredInventoryUpdateList(self, ):
1813
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1814
    if mtype == TMessageType.EXCEPTION:
1815
      x = TApplicationException()
1816
      x.read(self._iprot)
1817
      self._iprot.readMessageEnd()
1818
      raise x
1819
    result = deleteItemFromIgnoredInventoryUpdateList_result()
1820
    result.read(self._iprot)
1821
    self._iprot.readMessageEnd()
1822
    if result.success is not None:
1823
      return result.success
1824
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteItemFromIgnoredInventoryUpdateList failed: unknown result");
1825
 
1826
  def getAllIgnoredInventoryupdateItemsCount(self, ):
1827
    self.send_getAllIgnoredInventoryupdateItemsCount()
1828
    return self.recv_getAllIgnoredInventoryupdateItemsCount()
1829
 
1830
  def send_getAllIgnoredInventoryupdateItemsCount(self, ):
1831
    self._oprot.writeMessageBegin('getAllIgnoredInventoryupdateItemsCount', TMessageType.CALL, self._seqid)
1832
    args = getAllIgnoredInventoryupdateItemsCount_args()
1833
    args.write(self._oprot)
1834
    self._oprot.writeMessageEnd()
1835
    self._oprot.trans.flush()
1836
 
1837
  def recv_getAllIgnoredInventoryupdateItemsCount(self, ):
1838
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1839
    if mtype == TMessageType.EXCEPTION:
1840
      x = TApplicationException()
1841
      x.read(self._iprot)
1842
      self._iprot.readMessageEnd()
1843
      raise x
1844
    result = getAllIgnoredInventoryupdateItemsCount_result()
1845
    result.read(self._iprot)
1846
    self._iprot.readMessageEnd()
1847
    if result.success is not None:
1848
      return result.success
1849
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryupdateItemsCount failed: unknown result");
1850
 
1851
  def getIgnoredInventoryUpdateItemids(self, offset, limit):
1852
    """
1853
    Parameters:
1854
     - offset
1855
     - limit
1856
    """
1857
    self.send_getIgnoredInventoryUpdateItemids(offset, limit)
1858
    return self.recv_getIgnoredInventoryUpdateItemids()
1859
 
1860
  def send_getIgnoredInventoryUpdateItemids(self, offset, limit):
1861
    self._oprot.writeMessageBegin('getIgnoredInventoryUpdateItemids', TMessageType.CALL, self._seqid)
1862
    args = getIgnoredInventoryUpdateItemids_args()
1863
    args.offset = offset
1864
    args.limit = limit
1865
    args.write(self._oprot)
1866
    self._oprot.writeMessageEnd()
1867
    self._oprot.trans.flush()
1868
 
1869
  def recv_getIgnoredInventoryUpdateItemids(self, ):
1870
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1871
    if mtype == TMessageType.EXCEPTION:
1872
      x = TApplicationException()
1873
      x.read(self._iprot)
1874
      self._iprot.readMessageEnd()
1875
      raise x
1876
    result = getIgnoredInventoryUpdateItemids_result()
1877
    result.read(self._iprot)
1878
    self._iprot.readMessageEnd()
1879
    if result.success is not None:
1880
      return result.success
1881
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getIgnoredInventoryUpdateItemids failed: unknown result");
1882
 
1883
 
5944 mandeep.dh 1884
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
1885
  def __init__(self, handler):
1886
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
1887
    self._processMap["addWarehouse"] = Processor.process_addWarehouse
1888
    self._processMap["addVendor"] = Processor.process_addVendor
1889
    self._processMap["updateInventoryHistory"] = Processor.process_updateInventoryHistory
1890
    self._processMap["updateInventory"] = Processor.process_updateInventory
1891
    self._processMap["addInventory"] = Processor.process_addInventory
1892
    self._processMap["retireWarehouse"] = Processor.process_retireWarehouse
1893
    self._processMap["getItemInventoryByItemId"] = Processor.process_getItemInventoryByItemId
1894
    self._processMap["getItemAvailibilityAtWarehouse"] = Processor.process_getItemAvailibilityAtWarehouse
1895
    self._processMap["getItemAvailabilityAtLocation"] = Processor.process_getItemAvailabilityAtLocation
1896
    self._processMap["getAllWarehouses"] = Processor.process_getAllWarehouses
1897
    self._processMap["getWarehouse"] = Processor.process_getWarehouse
1898
    self._processMap["getAllItemsForWarehouse"] = Processor.process_getAllItemsForWarehouse
5966 rajveer 1899
    self._processMap["isOrderBillable"] = Processor.process_isOrderBillable
5944 mandeep.dh 1900
    self._processMap["reserveItemInWarehouse"] = Processor.process_reserveItemInWarehouse
1901
    self._processMap["reduceReservationCount"] = Processor.process_reduceReservationCount
1902
    self._processMap["getItemPricing"] = Processor.process_getItemPricing
1903
    self._processMap["getAllItemPricing"] = Processor.process_getAllItemPricing
1904
    self._processMap["addVendorItemPricing"] = Processor.process_addVendorItemPricing
1905
    self._processMap["getVendor"] = Processor.process_getVendor
1906
    self._processMap["getAllVendors"] = Processor.process_getAllVendors
1907
    self._processMap["addVendorItemMapping"] = Processor.process_addVendorItemMapping
1908
    self._processMap["getVendorItemMappings"] = Processor.process_getVendorItemMappings
1909
    self._processMap["getPendingOrdersInventory"] = Processor.process_getPendingOrdersInventory
1910
    self._processMap["getWarehouses"] = Processor.process_getWarehouses
1911
    self._processMap["resetAvailability"] = Processor.process_resetAvailability
1912
    self._processMap["resetAvailabilityForWarehouse"] = Processor.process_resetAvailabilityForWarehouse
1913
    self._processMap["getItemKeysToBeProcessed"] = Processor.process_getItemKeysToBeProcessed
1914
    self._processMap["markMissedInventoryUpdatesAsProcessed"] = Processor.process_markMissedInventoryUpdatesAsProcessed
1915
    self._processMap["getIgnoredItemKeys"] = Processor.process_getIgnoredItemKeys
1916
    self._processMap["addBadInventory"] = Processor.process_addBadInventory
1917
    self._processMap["getShippingLocations"] = Processor.process_getShippingLocations
1918
    self._processMap["getAllVendorItemMappings"] = Processor.process_getAllVendorItemMappings
1919
    self._processMap["getInventorySnapshot"] = Processor.process_getInventorySnapshot
1920
    self._processMap["clearItemAvailabilityCache"] = Processor.process_clearItemAvailabilityCache
1921
    self._processMap["updateVendorString"] = Processor.process_updateVendorString
6096 amit.gupta 1922
    self._processMap["clearItemAvailabilityCacheForItem"] = Processor.process_clearItemAvailabilityCacheForItem
6467 amar.kumar 1923
    self._processMap["getOurWarehouseIdForVendor"] = Processor.process_getOurWarehouseIdForVendor
6484 amar.kumar 1924
    self._processMap["getItemAvailabilitiesAtOurWarehouses"] = Processor.process_getItemAvailabilitiesAtOurWarehouses
6531 vikram.rag 1925
    self._processMap["getMonitoredWarehouseForVendors"] = Processor.process_getMonitoredWarehouseForVendors
1926
    self._processMap["getIgnoredWarehouseidsAndItemids"] = Processor.process_getIgnoredWarehouseidsAndItemids
1927
    self._processMap["insertItemtoIgnoreInventoryUpdatelist"] = Processor.process_insertItemtoIgnoreInventoryUpdatelist
1928
    self._processMap["deleteItemFromIgnoredInventoryUpdateList"] = Processor.process_deleteItemFromIgnoredInventoryUpdateList
1929
    self._processMap["getAllIgnoredInventoryupdateItemsCount"] = Processor.process_getAllIgnoredInventoryupdateItemsCount
1930
    self._processMap["getIgnoredInventoryUpdateItemids"] = Processor.process_getIgnoredInventoryUpdateItemids
5944 mandeep.dh 1931
 
1932
  def process(self, iprot, oprot):
1933
    (name, type, seqid) = iprot.readMessageBegin()
1934
    if name not in self._processMap:
1935
      iprot.skip(TType.STRUCT)
1936
      iprot.readMessageEnd()
1937
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
1938
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
1939
      x.write(oprot)
1940
      oprot.writeMessageEnd()
1941
      oprot.trans.flush()
1942
      return
1943
    else:
1944
      self._processMap[name](self, seqid, iprot, oprot)
1945
    return True
1946
 
1947
  def process_addWarehouse(self, seqid, iprot, oprot):
1948
    args = addWarehouse_args()
1949
    args.read(iprot)
1950
    iprot.readMessageEnd()
1951
    result = addWarehouse_result()
1952
    try:
1953
      result.success = self._handler.addWarehouse(args.warehouse)
1954
    except InventoryServiceException, cex:
1955
      result.cex = cex
1956
    oprot.writeMessageBegin("addWarehouse", TMessageType.REPLY, seqid)
1957
    result.write(oprot)
1958
    oprot.writeMessageEnd()
1959
    oprot.trans.flush()
1960
 
1961
  def process_addVendor(self, seqid, iprot, oprot):
1962
    args = addVendor_args()
1963
    args.read(iprot)
1964
    iprot.readMessageEnd()
1965
    result = addVendor_result()
1966
    try:
1967
      result.success = self._handler.addVendor(args.vendor)
1968
    except InventoryServiceException, cex:
1969
      result.cex = cex
1970
    oprot.writeMessageBegin("addVendor", TMessageType.REPLY, seqid)
1971
    result.write(oprot)
1972
    oprot.writeMessageEnd()
1973
    oprot.trans.flush()
1974
 
1975
  def process_updateInventoryHistory(self, seqid, iprot, oprot):
1976
    args = updateInventoryHistory_args()
1977
    args.read(iprot)
1978
    iprot.readMessageEnd()
1979
    result = updateInventoryHistory_result()
1980
    try:
1981
      self._handler.updateInventoryHistory(args.warehouse_id, args.timestamp, args.availability)
1982
    except InventoryServiceException, cex:
1983
      result.cex = cex
1984
    oprot.writeMessageBegin("updateInventoryHistory", TMessageType.REPLY, seqid)
1985
    result.write(oprot)
1986
    oprot.writeMessageEnd()
1987
    oprot.trans.flush()
1988
 
1989
  def process_updateInventory(self, seqid, iprot, oprot):
1990
    args = updateInventory_args()
1991
    args.read(iprot)
1992
    iprot.readMessageEnd()
1993
    result = updateInventory_result()
1994
    try:
1995
      self._handler.updateInventory(args.warehouse_id, args.timestamp, args.availability)
1996
    except InventoryServiceException, cex:
1997
      result.cex = cex
1998
    oprot.writeMessageBegin("updateInventory", TMessageType.REPLY, seqid)
1999
    result.write(oprot)
2000
    oprot.writeMessageEnd()
2001
    oprot.trans.flush()
2002
 
2003
  def process_addInventory(self, seqid, iprot, oprot):
2004
    args = addInventory_args()
2005
    args.read(iprot)
2006
    iprot.readMessageEnd()
2007
    result = addInventory_result()
2008
    try:
2009
      self._handler.addInventory(args.itemId, args.warehouseId, args.quantity)
2010
    except InventoryServiceException, cex:
2011
      result.cex = cex
2012
    oprot.writeMessageBegin("addInventory", TMessageType.REPLY, seqid)
2013
    result.write(oprot)
2014
    oprot.writeMessageEnd()
2015
    oprot.trans.flush()
2016
 
2017
  def process_retireWarehouse(self, seqid, iprot, oprot):
2018
    args = retireWarehouse_args()
2019
    args.read(iprot)
2020
    iprot.readMessageEnd()
2021
    result = retireWarehouse_result()
2022
    try:
2023
      self._handler.retireWarehouse(args.warehouse_id)
2024
    except InventoryServiceException, cex:
2025
      result.cex = cex
2026
    oprot.writeMessageBegin("retireWarehouse", TMessageType.REPLY, seqid)
2027
    result.write(oprot)
2028
    oprot.writeMessageEnd()
2029
    oprot.trans.flush()
2030
 
2031
  def process_getItemInventoryByItemId(self, seqid, iprot, oprot):
2032
    args = getItemInventoryByItemId_args()
2033
    args.read(iprot)
2034
    iprot.readMessageEnd()
2035
    result = getItemInventoryByItemId_result()
2036
    try:
2037
      result.success = self._handler.getItemInventoryByItemId(args.item_id)
2038
    except InventoryServiceException, cex:
2039
      result.cex = cex
2040
    oprot.writeMessageBegin("getItemInventoryByItemId", TMessageType.REPLY, seqid)
2041
    result.write(oprot)
2042
    oprot.writeMessageEnd()
2043
    oprot.trans.flush()
2044
 
2045
  def process_getItemAvailibilityAtWarehouse(self, seqid, iprot, oprot):
2046
    args = getItemAvailibilityAtWarehouse_args()
2047
    args.read(iprot)
2048
    iprot.readMessageEnd()
2049
    result = getItemAvailibilityAtWarehouse_result()
2050
    try:
2051
      result.success = self._handler.getItemAvailibilityAtWarehouse(args.warehouse_id, args.item_id)
2052
    except InventoryServiceException, cex:
2053
      result.cex = cex
2054
    oprot.writeMessageBegin("getItemAvailibilityAtWarehouse", TMessageType.REPLY, seqid)
2055
    result.write(oprot)
2056
    oprot.writeMessageEnd()
2057
    oprot.trans.flush()
2058
 
2059
  def process_getItemAvailabilityAtLocation(self, seqid, iprot, oprot):
2060
    args = getItemAvailabilityAtLocation_args()
2061
    args.read(iprot)
2062
    iprot.readMessageEnd()
2063
    result = getItemAvailabilityAtLocation_result()
2064
    try:
5978 rajveer 2065
      result.success = self._handler.getItemAvailabilityAtLocation(args.itemId, args.sourceId)
5944 mandeep.dh 2066
    except InventoryServiceException, isex:
2067
      result.isex = isex
2068
    oprot.writeMessageBegin("getItemAvailabilityAtLocation", TMessageType.REPLY, seqid)
2069
    result.write(oprot)
2070
    oprot.writeMessageEnd()
2071
    oprot.trans.flush()
2072
 
2073
  def process_getAllWarehouses(self, seqid, iprot, oprot):
2074
    args = getAllWarehouses_args()
2075
    args.read(iprot)
2076
    iprot.readMessageEnd()
2077
    result = getAllWarehouses_result()
2078
    try:
2079
      result.success = self._handler.getAllWarehouses(args.isActive)
2080
    except InventoryServiceException, cex:
2081
      result.cex = cex
2082
    oprot.writeMessageBegin("getAllWarehouses", TMessageType.REPLY, seqid)
2083
    result.write(oprot)
2084
    oprot.writeMessageEnd()
2085
    oprot.trans.flush()
2086
 
2087
  def process_getWarehouse(self, seqid, iprot, oprot):
2088
    args = getWarehouse_args()
2089
    args.read(iprot)
2090
    iprot.readMessageEnd()
2091
    result = getWarehouse_result()
2092
    try:
2093
      result.success = self._handler.getWarehouse(args.warehouse_id)
2094
    except InventoryServiceException, cex:
2095
      result.cex = cex
2096
    oprot.writeMessageBegin("getWarehouse", TMessageType.REPLY, seqid)
2097
    result.write(oprot)
2098
    oprot.writeMessageEnd()
2099
    oprot.trans.flush()
2100
 
2101
  def process_getAllItemsForWarehouse(self, seqid, iprot, oprot):
2102
    args = getAllItemsForWarehouse_args()
2103
    args.read(iprot)
2104
    iprot.readMessageEnd()
2105
    result = getAllItemsForWarehouse_result()
2106
    try:
2107
      result.success = self._handler.getAllItemsForWarehouse(args.warehouse_id)
2108
    except InventoryServiceException, cex:
2109
      result.cex = cex
2110
    oprot.writeMessageBegin("getAllItemsForWarehouse", TMessageType.REPLY, seqid)
2111
    result.write(oprot)
2112
    oprot.writeMessageEnd()
2113
    oprot.trans.flush()
2114
 
5966 rajveer 2115
  def process_isOrderBillable(self, seqid, iprot, oprot):
2116
    args = isOrderBillable_args()
2117
    args.read(iprot)
2118
    iprot.readMessageEnd()
2119
    result = isOrderBillable_result()
2120
    result.success = self._handler.isOrderBillable(args.itemId, args.warehouseId, args.sourceId, args.orderId)
2121
    oprot.writeMessageBegin("isOrderBillable", TMessageType.REPLY, seqid)
2122
    result.write(oprot)
2123
    oprot.writeMessageEnd()
2124
    oprot.trans.flush()
2125
 
5944 mandeep.dh 2126
  def process_reserveItemInWarehouse(self, seqid, iprot, oprot):
2127
    args = reserveItemInWarehouse_args()
2128
    args.read(iprot)
2129
    iprot.readMessageEnd()
2130
    result = reserveItemInWarehouse_result()
2131
    try:
5966 rajveer 2132
      result.success = self._handler.reserveItemInWarehouse(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.createdTimestamp, args.promisedShippingTimestamp, args.quantity)
5944 mandeep.dh 2133
    except InventoryServiceException, cex:
2134
      result.cex = cex
2135
    oprot.writeMessageBegin("reserveItemInWarehouse", TMessageType.REPLY, seqid)
2136
    result.write(oprot)
2137
    oprot.writeMessageEnd()
2138
    oprot.trans.flush()
2139
 
2140
  def process_reduceReservationCount(self, seqid, iprot, oprot):
2141
    args = reduceReservationCount_args()
2142
    args.read(iprot)
2143
    iprot.readMessageEnd()
2144
    result = reduceReservationCount_result()
2145
    try:
5966 rajveer 2146
      result.success = self._handler.reduceReservationCount(args.itemId, args.warehouseId, args.sourceId, args.orderId, args.quantity)
5944 mandeep.dh 2147
    except InventoryServiceException, cex:
2148
      result.cex = cex
2149
    oprot.writeMessageBegin("reduceReservationCount", TMessageType.REPLY, seqid)
2150
    result.write(oprot)
2151
    oprot.writeMessageEnd()
2152
    oprot.trans.flush()
2153
 
2154
  def process_getItemPricing(self, seqid, iprot, oprot):
2155
    args = getItemPricing_args()
2156
    args.read(iprot)
2157
    iprot.readMessageEnd()
2158
    result = getItemPricing_result()
2159
    try:
2160
      result.success = self._handler.getItemPricing(args.itemId, args.vendorId)
2161
    except InventoryServiceException, cex:
2162
      result.cex = cex
2163
    oprot.writeMessageBegin("getItemPricing", TMessageType.REPLY, seqid)
2164
    result.write(oprot)
2165
    oprot.writeMessageEnd()
2166
    oprot.trans.flush()
2167
 
2168
  def process_getAllItemPricing(self, seqid, iprot, oprot):
2169
    args = getAllItemPricing_args()
2170
    args.read(iprot)
2171
    iprot.readMessageEnd()
2172
    result = getAllItemPricing_result()
2173
    try:
2174
      result.success = self._handler.getAllItemPricing(args.itemId)
2175
    except InventoryServiceException, cex:
2176
      result.cex = cex
2177
    oprot.writeMessageBegin("getAllItemPricing", TMessageType.REPLY, seqid)
2178
    result.write(oprot)
2179
    oprot.writeMessageEnd()
2180
    oprot.trans.flush()
2181
 
2182
  def process_addVendorItemPricing(self, seqid, iprot, oprot):
2183
    args = addVendorItemPricing_args()
2184
    args.read(iprot)
2185
    iprot.readMessageEnd()
2186
    result = addVendorItemPricing_result()
2187
    try:
2188
      self._handler.addVendorItemPricing(args.vendorItemPricing)
2189
    except InventoryServiceException, cex:
2190
      result.cex = cex
2191
    oprot.writeMessageBegin("addVendorItemPricing", TMessageType.REPLY, seqid)
2192
    result.write(oprot)
2193
    oprot.writeMessageEnd()
2194
    oprot.trans.flush()
2195
 
2196
  def process_getVendor(self, seqid, iprot, oprot):
2197
    args = getVendor_args()
2198
    args.read(iprot)
2199
    iprot.readMessageEnd()
2200
    result = getVendor_result()
2201
    result.success = self._handler.getVendor(args.vendorId)
2202
    oprot.writeMessageBegin("getVendor", TMessageType.REPLY, seqid)
2203
    result.write(oprot)
2204
    oprot.writeMessageEnd()
2205
    oprot.trans.flush()
2206
 
2207
  def process_getAllVendors(self, seqid, iprot, oprot):
2208
    args = getAllVendors_args()
2209
    args.read(iprot)
2210
    iprot.readMessageEnd()
2211
    result = getAllVendors_result()
2212
    result.success = self._handler.getAllVendors()
2213
    oprot.writeMessageBegin("getAllVendors", TMessageType.REPLY, seqid)
2214
    result.write(oprot)
2215
    oprot.writeMessageEnd()
2216
    oprot.trans.flush()
2217
 
2218
  def process_addVendorItemMapping(self, seqid, iprot, oprot):
2219
    args = addVendorItemMapping_args()
2220
    args.read(iprot)
2221
    iprot.readMessageEnd()
2222
    result = addVendorItemMapping_result()
2223
    try:
2224
      self._handler.addVendorItemMapping(args.key, args.vendorItemMapping)
2225
    except InventoryServiceException, cex:
2226
      result.cex = cex
2227
    oprot.writeMessageBegin("addVendorItemMapping", TMessageType.REPLY, seqid)
2228
    result.write(oprot)
2229
    oprot.writeMessageEnd()
2230
    oprot.trans.flush()
2231
 
2232
  def process_getVendorItemMappings(self, seqid, iprot, oprot):
2233
    args = getVendorItemMappings_args()
2234
    args.read(iprot)
2235
    iprot.readMessageEnd()
2236
    result = getVendorItemMappings_result()
2237
    try:
2238
      result.success = self._handler.getVendorItemMappings(args.itemId)
2239
    except InventoryServiceException, cex:
2240
      result.cex = cex
2241
    oprot.writeMessageBegin("getVendorItemMappings", TMessageType.REPLY, seqid)
2242
    result.write(oprot)
2243
    oprot.writeMessageEnd()
2244
    oprot.trans.flush()
2245
 
2246
  def process_getPendingOrdersInventory(self, seqid, iprot, oprot):
2247
    args = getPendingOrdersInventory_args()
2248
    args.read(iprot)
2249
    iprot.readMessageEnd()
2250
    result = getPendingOrdersInventory_result()
2251
    result.success = self._handler.getPendingOrdersInventory(args.vendorid)
2252
    oprot.writeMessageBegin("getPendingOrdersInventory", TMessageType.REPLY, seqid)
2253
    result.write(oprot)
2254
    oprot.writeMessageEnd()
2255
    oprot.trans.flush()
2256
 
2257
  def process_getWarehouses(self, seqid, iprot, oprot):
2258
    args = getWarehouses_args()
2259
    args.read(iprot)
2260
    iprot.readMessageEnd()
2261
    result = getWarehouses_result()
2262
    result.success = self._handler.getWarehouses(args.warehouseType, args.inventoryType, args.vendorId, args.billingWarehouseId, args.shippingWarehouseId)
2263
    oprot.writeMessageBegin("getWarehouses", TMessageType.REPLY, seqid)
2264
    result.write(oprot)
2265
    oprot.writeMessageEnd()
2266
    oprot.trans.flush()
2267
 
2268
  def process_resetAvailability(self, seqid, iprot, oprot):
2269
    args = resetAvailability_args()
2270
    args.read(iprot)
2271
    iprot.readMessageEnd()
2272
    result = resetAvailability_result()
2273
    try:
2274
      self._handler.resetAvailability(args.itemKey, args.vendorId, args.quantity, args.warehouseId)
2275
    except InventoryServiceException, cex:
2276
      result.cex = cex
2277
    oprot.writeMessageBegin("resetAvailability", TMessageType.REPLY, seqid)
2278
    result.write(oprot)
2279
    oprot.writeMessageEnd()
2280
    oprot.trans.flush()
2281
 
2282
  def process_resetAvailabilityForWarehouse(self, seqid, iprot, oprot):
2283
    args = resetAvailabilityForWarehouse_args()
2284
    args.read(iprot)
2285
    iprot.readMessageEnd()
2286
    result = resetAvailabilityForWarehouse_result()
2287
    try:
2288
      self._handler.resetAvailabilityForWarehouse(args.warehouseId)
2289
    except InventoryServiceException, cex:
2290
      result.cex = cex
2291
    oprot.writeMessageBegin("resetAvailabilityForWarehouse", TMessageType.REPLY, seqid)
2292
    result.write(oprot)
2293
    oprot.writeMessageEnd()
2294
    oprot.trans.flush()
2295
 
2296
  def process_getItemKeysToBeProcessed(self, seqid, iprot, oprot):
2297
    args = getItemKeysToBeProcessed_args()
2298
    args.read(iprot)
2299
    iprot.readMessageEnd()
2300
    result = getItemKeysToBeProcessed_result()
2301
    result.success = self._handler.getItemKeysToBeProcessed(args.warehouseId)
2302
    oprot.writeMessageBegin("getItemKeysToBeProcessed", TMessageType.REPLY, seqid)
2303
    result.write(oprot)
2304
    oprot.writeMessageEnd()
2305
    oprot.trans.flush()
2306
 
2307
  def process_markMissedInventoryUpdatesAsProcessed(self, seqid, iprot, oprot):
2308
    args = markMissedInventoryUpdatesAsProcessed_args()
2309
    args.read(iprot)
2310
    iprot.readMessageEnd()
2311
    result = markMissedInventoryUpdatesAsProcessed_result()
2312
    self._handler.markMissedInventoryUpdatesAsProcessed(args.itemKey, args.warehouseId)
2313
    oprot.writeMessageBegin("markMissedInventoryUpdatesAsProcessed", TMessageType.REPLY, seqid)
2314
    result.write(oprot)
2315
    oprot.writeMessageEnd()
2316
    oprot.trans.flush()
2317
 
2318
  def process_getIgnoredItemKeys(self, seqid, iprot, oprot):
2319
    args = getIgnoredItemKeys_args()
2320
    args.read(iprot)
2321
    iprot.readMessageEnd()
2322
    result = getIgnoredItemKeys_result()
2323
    result.success = self._handler.getIgnoredItemKeys()
2324
    oprot.writeMessageBegin("getIgnoredItemKeys", TMessageType.REPLY, seqid)
2325
    result.write(oprot)
2326
    oprot.writeMessageEnd()
2327
    oprot.trans.flush()
2328
 
2329
  def process_addBadInventory(self, seqid, iprot, oprot):
2330
    args = addBadInventory_args()
2331
    args.read(iprot)
2332
    iprot.readMessageEnd()
2333
    result = addBadInventory_result()
2334
    try:
2335
      self._handler.addBadInventory(args.itemId, args.warehouseId, args.quantity)
2336
    except InventoryServiceException, cex:
2337
      result.cex = cex
2338
    oprot.writeMessageBegin("addBadInventory", TMessageType.REPLY, seqid)
2339
    result.write(oprot)
2340
    oprot.writeMessageEnd()
2341
    oprot.trans.flush()
2342
 
2343
  def process_getShippingLocations(self, seqid, iprot, oprot):
2344
    args = getShippingLocations_args()
2345
    args.read(iprot)
2346
    iprot.readMessageEnd()
2347
    result = getShippingLocations_result()
2348
    result.success = self._handler.getShippingLocations()
2349
    oprot.writeMessageBegin("getShippingLocations", TMessageType.REPLY, seqid)
2350
    result.write(oprot)
2351
    oprot.writeMessageEnd()
2352
    oprot.trans.flush()
2353
 
2354
  def process_getAllVendorItemMappings(self, seqid, iprot, oprot):
2355
    args = getAllVendorItemMappings_args()
2356
    args.read(iprot)
2357
    iprot.readMessageEnd()
2358
    result = getAllVendorItemMappings_result()
2359
    result.success = self._handler.getAllVendorItemMappings()
2360
    oprot.writeMessageBegin("getAllVendorItemMappings", TMessageType.REPLY, seqid)
2361
    result.write(oprot)
2362
    oprot.writeMessageEnd()
2363
    oprot.trans.flush()
2364
 
2365
  def process_getInventorySnapshot(self, seqid, iprot, oprot):
2366
    args = getInventorySnapshot_args()
2367
    args.read(iprot)
2368
    iprot.readMessageEnd()
2369
    result = getInventorySnapshot_result()
2370
    result.success = self._handler.getInventorySnapshot(args.warehouseId)
2371
    oprot.writeMessageBegin("getInventorySnapshot", TMessageType.REPLY, seqid)
2372
    result.write(oprot)
2373
    oprot.writeMessageEnd()
2374
    oprot.trans.flush()
2375
 
2376
  def process_clearItemAvailabilityCache(self, seqid, iprot, oprot):
2377
    args = clearItemAvailabilityCache_args()
2378
    args.read(iprot)
2379
    iprot.readMessageEnd()
2380
    result = clearItemAvailabilityCache_result()
2381
    self._handler.clearItemAvailabilityCache()
2382
    oprot.writeMessageBegin("clearItemAvailabilityCache", TMessageType.REPLY, seqid)
2383
    result.write(oprot)
2384
    oprot.writeMessageEnd()
2385
    oprot.trans.flush()
2386
 
2387
  def process_updateVendorString(self, seqid, iprot, oprot):
2388
    args = updateVendorString_args()
2389
    args.read(iprot)
2390
    iprot.readMessageEnd()
2391
    result = updateVendorString_result()
2392
    self._handler.updateVendorString(args.warehouseId, args.vendorString)
2393
    oprot.writeMessageBegin("updateVendorString", TMessageType.REPLY, seqid)
2394
    result.write(oprot)
2395
    oprot.writeMessageEnd()
2396
    oprot.trans.flush()
2397
 
6096 amit.gupta 2398
  def process_clearItemAvailabilityCacheForItem(self, seqid, iprot, oprot):
2399
    args = clearItemAvailabilityCacheForItem_args()
2400
    args.read(iprot)
2401
    iprot.readMessageEnd()
2402
    result = clearItemAvailabilityCacheForItem_result()
2403
    self._handler.clearItemAvailabilityCacheForItem(args.item_id)
2404
    oprot.writeMessageBegin("clearItemAvailabilityCacheForItem", TMessageType.REPLY, seqid)
2405
    result.write(oprot)
2406
    oprot.writeMessageEnd()
2407
    oprot.trans.flush()
5944 mandeep.dh 2408
 
6467 amar.kumar 2409
  def process_getOurWarehouseIdForVendor(self, seqid, iprot, oprot):
2410
    args = getOurWarehouseIdForVendor_args()
2411
    args.read(iprot)
2412
    iprot.readMessageEnd()
2413
    result = getOurWarehouseIdForVendor_result()
2414
    result.success = self._handler.getOurWarehouseIdForVendor(args.vendorId)
2415
    oprot.writeMessageBegin("getOurWarehouseIdForVendor", TMessageType.REPLY, seqid)
2416
    result.write(oprot)
2417
    oprot.writeMessageEnd()
2418
    oprot.trans.flush()
6096 amit.gupta 2419
 
6484 amar.kumar 2420
  def process_getItemAvailabilitiesAtOurWarehouses(self, seqid, iprot, oprot):
2421
    args = getItemAvailabilitiesAtOurWarehouses_args()
2422
    args.read(iprot)
2423
    iprot.readMessageEnd()
2424
    result = getItemAvailabilitiesAtOurWarehouses_result()
2425
    result.success = self._handler.getItemAvailabilitiesAtOurWarehouses(args.item_ids)
2426
    oprot.writeMessageBegin("getItemAvailabilitiesAtOurWarehouses", TMessageType.REPLY, seqid)
2427
    result.write(oprot)
2428
    oprot.writeMessageEnd()
2429
    oprot.trans.flush()
6467 amar.kumar 2430
 
6531 vikram.rag 2431
  def process_getMonitoredWarehouseForVendors(self, seqid, iprot, oprot):
2432
    args = getMonitoredWarehouseForVendors_args()
2433
    args.read(iprot)
2434
    iprot.readMessageEnd()
2435
    result = getMonitoredWarehouseForVendors_result()
2436
    result.success = self._handler.getMonitoredWarehouseForVendors(args.vendorIds)
2437
    oprot.writeMessageBegin("getMonitoredWarehouseForVendors", TMessageType.REPLY, seqid)
2438
    result.write(oprot)
2439
    oprot.writeMessageEnd()
2440
    oprot.trans.flush()
6484 amar.kumar 2441
 
6531 vikram.rag 2442
  def process_getIgnoredWarehouseidsAndItemids(self, seqid, iprot, oprot):
2443
    args = getIgnoredWarehouseidsAndItemids_args()
2444
    args.read(iprot)
2445
    iprot.readMessageEnd()
2446
    result = getIgnoredWarehouseidsAndItemids_result()
2447
    result.success = self._handler.getIgnoredWarehouseidsAndItemids()
2448
    oprot.writeMessageBegin("getIgnoredWarehouseidsAndItemids", TMessageType.REPLY, seqid)
2449
    result.write(oprot)
2450
    oprot.writeMessageEnd()
2451
    oprot.trans.flush()
2452
 
2453
  def process_insertItemtoIgnoreInventoryUpdatelist(self, seqid, iprot, oprot):
2454
    args = insertItemtoIgnoreInventoryUpdatelist_args()
2455
    args.read(iprot)
2456
    iprot.readMessageEnd()
2457
    result = insertItemtoIgnoreInventoryUpdatelist_result()
2458
    result.success = self._handler.insertItemtoIgnoreInventoryUpdatelist(args.item_id, args.warehouse_id)
2459
    oprot.writeMessageBegin("insertItemtoIgnoreInventoryUpdatelist", TMessageType.REPLY, seqid)
2460
    result.write(oprot)
2461
    oprot.writeMessageEnd()
2462
    oprot.trans.flush()
2463
 
2464
  def process_deleteItemFromIgnoredInventoryUpdateList(self, seqid, iprot, oprot):
2465
    args = deleteItemFromIgnoredInventoryUpdateList_args()
2466
    args.read(iprot)
2467
    iprot.readMessageEnd()
2468
    result = deleteItemFromIgnoredInventoryUpdateList_result()
2469
    result.success = self._handler.deleteItemFromIgnoredInventoryUpdateList(args.item_id, args.warehouse_id)
2470
    oprot.writeMessageBegin("deleteItemFromIgnoredInventoryUpdateList", TMessageType.REPLY, seqid)
2471
    result.write(oprot)
2472
    oprot.writeMessageEnd()
2473
    oprot.trans.flush()
2474
 
2475
  def process_getAllIgnoredInventoryupdateItemsCount(self, seqid, iprot, oprot):
2476
    args = getAllIgnoredInventoryupdateItemsCount_args()
2477
    args.read(iprot)
2478
    iprot.readMessageEnd()
2479
    result = getAllIgnoredInventoryupdateItemsCount_result()
2480
    result.success = self._handler.getAllIgnoredInventoryupdateItemsCount()
2481
    oprot.writeMessageBegin("getAllIgnoredInventoryupdateItemsCount", TMessageType.REPLY, seqid)
2482
    result.write(oprot)
2483
    oprot.writeMessageEnd()
2484
    oprot.trans.flush()
2485
 
2486
  def process_getIgnoredInventoryUpdateItemids(self, seqid, iprot, oprot):
2487
    args = getIgnoredInventoryUpdateItemids_args()
2488
    args.read(iprot)
2489
    iprot.readMessageEnd()
2490
    result = getIgnoredInventoryUpdateItemids_result()
2491
    result.success = self._handler.getIgnoredInventoryUpdateItemids(args.offset, args.limit)
2492
    oprot.writeMessageBegin("getIgnoredInventoryUpdateItemids", TMessageType.REPLY, seqid)
2493
    result.write(oprot)
2494
    oprot.writeMessageEnd()
2495
    oprot.trans.flush()
2496
 
2497
 
5944 mandeep.dh 2498
# HELPER FUNCTIONS AND STRUCTURES
2499
 
2500
class addWarehouse_args:
2501
  """
2502
  Attributes:
2503
   - warehouse
2504
  """
2505
 
2506
  thrift_spec = (
2507
    None, # 0
2508
    (1, TType.STRUCT, 'warehouse', (Warehouse, Warehouse.thrift_spec), None, ), # 1
2509
  )
2510
 
2511
  def __init__(self, warehouse=None,):
2512
    self.warehouse = warehouse
2513
 
2514
  def read(self, iprot):
2515
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2516
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2517
      return
2518
    iprot.readStructBegin()
2519
    while True:
2520
      (fname, ftype, fid) = iprot.readFieldBegin()
2521
      if ftype == TType.STOP:
2522
        break
2523
      if fid == 1:
2524
        if ftype == TType.STRUCT:
2525
          self.warehouse = Warehouse()
2526
          self.warehouse.read(iprot)
2527
        else:
2528
          iprot.skip(ftype)
2529
      else:
2530
        iprot.skip(ftype)
2531
      iprot.readFieldEnd()
2532
    iprot.readStructEnd()
2533
 
2534
  def write(self, oprot):
2535
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2536
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2537
      return
2538
    oprot.writeStructBegin('addWarehouse_args')
2539
    if self.warehouse is not None:
2540
      oprot.writeFieldBegin('warehouse', TType.STRUCT, 1)
2541
      self.warehouse.write(oprot)
2542
      oprot.writeFieldEnd()
2543
    oprot.writeFieldStop()
2544
    oprot.writeStructEnd()
2545
 
2546
  def validate(self):
2547
    return
2548
 
2549
 
2550
  def __repr__(self):
2551
    L = ['%s=%r' % (key, value)
2552
      for key, value in self.__dict__.iteritems()]
2553
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2554
 
2555
  def __eq__(self, other):
2556
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2557
 
2558
  def __ne__(self, other):
2559
    return not (self == other)
2560
 
2561
class addWarehouse_result:
2562
  """
2563
  Attributes:
2564
   - success
2565
   - cex
2566
  """
2567
 
2568
  thrift_spec = (
2569
    (0, TType.I64, 'success', None, None, ), # 0
2570
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
2571
  )
2572
 
2573
  def __init__(self, success=None, cex=None,):
2574
    self.success = success
2575
    self.cex = cex
2576
 
2577
  def read(self, iprot):
2578
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2579
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2580
      return
2581
    iprot.readStructBegin()
2582
    while True:
2583
      (fname, ftype, fid) = iprot.readFieldBegin()
2584
      if ftype == TType.STOP:
2585
        break
2586
      if fid == 0:
2587
        if ftype == TType.I64:
2588
          self.success = iprot.readI64();
2589
        else:
2590
          iprot.skip(ftype)
2591
      elif fid == 1:
2592
        if ftype == TType.STRUCT:
2593
          self.cex = InventoryServiceException()
2594
          self.cex.read(iprot)
2595
        else:
2596
          iprot.skip(ftype)
2597
      else:
2598
        iprot.skip(ftype)
2599
      iprot.readFieldEnd()
2600
    iprot.readStructEnd()
2601
 
2602
  def write(self, oprot):
2603
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2604
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2605
      return
2606
    oprot.writeStructBegin('addWarehouse_result')
2607
    if self.success is not None:
2608
      oprot.writeFieldBegin('success', TType.I64, 0)
2609
      oprot.writeI64(self.success)
2610
      oprot.writeFieldEnd()
2611
    if self.cex is not None:
2612
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
2613
      self.cex.write(oprot)
2614
      oprot.writeFieldEnd()
2615
    oprot.writeFieldStop()
2616
    oprot.writeStructEnd()
2617
 
2618
  def validate(self):
2619
    return
2620
 
2621
 
2622
  def __repr__(self):
2623
    L = ['%s=%r' % (key, value)
2624
      for key, value in self.__dict__.iteritems()]
2625
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2626
 
2627
  def __eq__(self, other):
2628
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2629
 
2630
  def __ne__(self, other):
2631
    return not (self == other)
2632
 
2633
class addVendor_args:
2634
  """
2635
  Attributes:
2636
   - vendor
2637
  """
2638
 
2639
  thrift_spec = (
2640
    None, # 0
2641
    (1, TType.STRUCT, 'vendor', (Vendor, Vendor.thrift_spec), None, ), # 1
2642
  )
2643
 
2644
  def __init__(self, vendor=None,):
2645
    self.vendor = vendor
2646
 
2647
  def read(self, iprot):
2648
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2649
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2650
      return
2651
    iprot.readStructBegin()
2652
    while True:
2653
      (fname, ftype, fid) = iprot.readFieldBegin()
2654
      if ftype == TType.STOP:
2655
        break
2656
      if fid == 1:
2657
        if ftype == TType.STRUCT:
2658
          self.vendor = Vendor()
2659
          self.vendor.read(iprot)
2660
        else:
2661
          iprot.skip(ftype)
2662
      else:
2663
        iprot.skip(ftype)
2664
      iprot.readFieldEnd()
2665
    iprot.readStructEnd()
2666
 
2667
  def write(self, oprot):
2668
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2669
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2670
      return
2671
    oprot.writeStructBegin('addVendor_args')
2672
    if self.vendor is not None:
2673
      oprot.writeFieldBegin('vendor', TType.STRUCT, 1)
2674
      self.vendor.write(oprot)
2675
      oprot.writeFieldEnd()
2676
    oprot.writeFieldStop()
2677
    oprot.writeStructEnd()
2678
 
2679
  def validate(self):
2680
    return
2681
 
2682
 
2683
  def __repr__(self):
2684
    L = ['%s=%r' % (key, value)
2685
      for key, value in self.__dict__.iteritems()]
2686
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2687
 
2688
  def __eq__(self, other):
2689
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2690
 
2691
  def __ne__(self, other):
2692
    return not (self == other)
2693
 
2694
class addVendor_result:
2695
  """
2696
  Attributes:
2697
   - success
2698
   - cex
2699
  """
2700
 
2701
  thrift_spec = (
2702
    (0, TType.I64, 'success', None, None, ), # 0
2703
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
2704
  )
2705
 
2706
  def __init__(self, success=None, cex=None,):
2707
    self.success = success
2708
    self.cex = cex
2709
 
2710
  def read(self, iprot):
2711
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2712
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2713
      return
2714
    iprot.readStructBegin()
2715
    while True:
2716
      (fname, ftype, fid) = iprot.readFieldBegin()
2717
      if ftype == TType.STOP:
2718
        break
2719
      if fid == 0:
2720
        if ftype == TType.I64:
2721
          self.success = iprot.readI64();
2722
        else:
2723
          iprot.skip(ftype)
2724
      elif fid == 1:
2725
        if ftype == TType.STRUCT:
2726
          self.cex = InventoryServiceException()
2727
          self.cex.read(iprot)
2728
        else:
2729
          iprot.skip(ftype)
2730
      else:
2731
        iprot.skip(ftype)
2732
      iprot.readFieldEnd()
2733
    iprot.readStructEnd()
2734
 
2735
  def write(self, oprot):
2736
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2737
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2738
      return
2739
    oprot.writeStructBegin('addVendor_result')
2740
    if self.success is not None:
2741
      oprot.writeFieldBegin('success', TType.I64, 0)
2742
      oprot.writeI64(self.success)
2743
      oprot.writeFieldEnd()
2744
    if self.cex is not None:
2745
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
2746
      self.cex.write(oprot)
2747
      oprot.writeFieldEnd()
2748
    oprot.writeFieldStop()
2749
    oprot.writeStructEnd()
2750
 
2751
  def validate(self):
2752
    return
2753
 
2754
 
2755
  def __repr__(self):
2756
    L = ['%s=%r' % (key, value)
2757
      for key, value in self.__dict__.iteritems()]
2758
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2759
 
2760
  def __eq__(self, other):
2761
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2762
 
2763
  def __ne__(self, other):
2764
    return not (self == other)
2765
 
2766
class updateInventoryHistory_args:
2767
  """
2768
  Attributes:
2769
   - warehouse_id
2770
   - timestamp
2771
   - availability
2772
  """
2773
 
2774
  thrift_spec = (
2775
    None, # 0
2776
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
2777
    (2, TType.STRING, 'timestamp', None, None, ), # 2
2778
    (3, TType.MAP, 'availability', (TType.STRING,None,TType.I64,None), None, ), # 3
2779
  )
2780
 
2781
  def __init__(self, warehouse_id=None, timestamp=None, availability=None,):
2782
    self.warehouse_id = warehouse_id
2783
    self.timestamp = timestamp
2784
    self.availability = availability
2785
 
2786
  def read(self, iprot):
2787
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2788
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2789
      return
2790
    iprot.readStructBegin()
2791
    while True:
2792
      (fname, ftype, fid) = iprot.readFieldBegin()
2793
      if ftype == TType.STOP:
2794
        break
2795
      if fid == 1:
2796
        if ftype == TType.I64:
2797
          self.warehouse_id = iprot.readI64();
2798
        else:
2799
          iprot.skip(ftype)
2800
      elif fid == 2:
2801
        if ftype == TType.STRING:
2802
          self.timestamp = iprot.readString();
2803
        else:
2804
          iprot.skip(ftype)
2805
      elif fid == 3:
2806
        if ftype == TType.MAP:
2807
          self.availability = {}
2808
          (_ktype19, _vtype20, _size18 ) = iprot.readMapBegin() 
2809
          for _i22 in xrange(_size18):
2810
            _key23 = iprot.readString();
2811
            _val24 = iprot.readI64();
2812
            self.availability[_key23] = _val24
2813
          iprot.readMapEnd()
2814
        else:
2815
          iprot.skip(ftype)
2816
      else:
2817
        iprot.skip(ftype)
2818
      iprot.readFieldEnd()
2819
    iprot.readStructEnd()
2820
 
2821
  def write(self, oprot):
2822
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2823
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2824
      return
2825
    oprot.writeStructBegin('updateInventoryHistory_args')
2826
    if self.warehouse_id is not None:
2827
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
2828
      oprot.writeI64(self.warehouse_id)
2829
      oprot.writeFieldEnd()
2830
    if self.timestamp is not None:
2831
      oprot.writeFieldBegin('timestamp', TType.STRING, 2)
2832
      oprot.writeString(self.timestamp)
2833
      oprot.writeFieldEnd()
2834
    if self.availability is not None:
2835
      oprot.writeFieldBegin('availability', TType.MAP, 3)
2836
      oprot.writeMapBegin(TType.STRING, TType.I64, len(self.availability))
2837
      for kiter25,viter26 in self.availability.items():
2838
        oprot.writeString(kiter25)
2839
        oprot.writeI64(viter26)
2840
      oprot.writeMapEnd()
2841
      oprot.writeFieldEnd()
2842
    oprot.writeFieldStop()
2843
    oprot.writeStructEnd()
2844
 
2845
  def validate(self):
2846
    return
2847
 
2848
 
2849
  def __repr__(self):
2850
    L = ['%s=%r' % (key, value)
2851
      for key, value in self.__dict__.iteritems()]
2852
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2853
 
2854
  def __eq__(self, other):
2855
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2856
 
2857
  def __ne__(self, other):
2858
    return not (self == other)
2859
 
2860
class updateInventoryHistory_result:
2861
  """
2862
  Attributes:
2863
   - cex
2864
  """
2865
 
2866
  thrift_spec = (
2867
    None, # 0
2868
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
2869
  )
2870
 
2871
  def __init__(self, cex=None,):
2872
    self.cex = cex
2873
 
2874
  def read(self, iprot):
2875
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2876
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2877
      return
2878
    iprot.readStructBegin()
2879
    while True:
2880
      (fname, ftype, fid) = iprot.readFieldBegin()
2881
      if ftype == TType.STOP:
2882
        break
2883
      if fid == 1:
2884
        if ftype == TType.STRUCT:
2885
          self.cex = InventoryServiceException()
2886
          self.cex.read(iprot)
2887
        else:
2888
          iprot.skip(ftype)
2889
      else:
2890
        iprot.skip(ftype)
2891
      iprot.readFieldEnd()
2892
    iprot.readStructEnd()
2893
 
2894
  def write(self, oprot):
2895
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2896
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2897
      return
2898
    oprot.writeStructBegin('updateInventoryHistory_result')
2899
    if self.cex is not None:
2900
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
2901
      self.cex.write(oprot)
2902
      oprot.writeFieldEnd()
2903
    oprot.writeFieldStop()
2904
    oprot.writeStructEnd()
2905
 
2906
  def validate(self):
2907
    return
2908
 
2909
 
2910
  def __repr__(self):
2911
    L = ['%s=%r' % (key, value)
2912
      for key, value in self.__dict__.iteritems()]
2913
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2914
 
2915
  def __eq__(self, other):
2916
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2917
 
2918
  def __ne__(self, other):
2919
    return not (self == other)
2920
 
2921
class updateInventory_args:
2922
  """
2923
  Attributes:
2924
   - warehouse_id
2925
   - timestamp
2926
   - availability
2927
  """
2928
 
2929
  thrift_spec = (
2930
    None, # 0
2931
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
2932
    (2, TType.STRING, 'timestamp', None, None, ), # 2
2933
    (3, TType.MAP, 'availability', (TType.STRING,None,TType.I64,None), None, ), # 3
2934
  )
2935
 
2936
  def __init__(self, warehouse_id=None, timestamp=None, availability=None,):
2937
    self.warehouse_id = warehouse_id
2938
    self.timestamp = timestamp
2939
    self.availability = availability
2940
 
2941
  def read(self, iprot):
2942
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2943
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2944
      return
2945
    iprot.readStructBegin()
2946
    while True:
2947
      (fname, ftype, fid) = iprot.readFieldBegin()
2948
      if ftype == TType.STOP:
2949
        break
2950
      if fid == 1:
2951
        if ftype == TType.I64:
2952
          self.warehouse_id = iprot.readI64();
2953
        else:
2954
          iprot.skip(ftype)
2955
      elif fid == 2:
2956
        if ftype == TType.STRING:
2957
          self.timestamp = iprot.readString();
2958
        else:
2959
          iprot.skip(ftype)
2960
      elif fid == 3:
2961
        if ftype == TType.MAP:
2962
          self.availability = {}
2963
          (_ktype28, _vtype29, _size27 ) = iprot.readMapBegin() 
2964
          for _i31 in xrange(_size27):
2965
            _key32 = iprot.readString();
2966
            _val33 = iprot.readI64();
2967
            self.availability[_key32] = _val33
2968
          iprot.readMapEnd()
2969
        else:
2970
          iprot.skip(ftype)
2971
      else:
2972
        iprot.skip(ftype)
2973
      iprot.readFieldEnd()
2974
    iprot.readStructEnd()
2975
 
2976
  def write(self, oprot):
2977
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2978
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2979
      return
2980
    oprot.writeStructBegin('updateInventory_args')
2981
    if self.warehouse_id is not None:
2982
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
2983
      oprot.writeI64(self.warehouse_id)
2984
      oprot.writeFieldEnd()
2985
    if self.timestamp is not None:
2986
      oprot.writeFieldBegin('timestamp', TType.STRING, 2)
2987
      oprot.writeString(self.timestamp)
2988
      oprot.writeFieldEnd()
2989
    if self.availability is not None:
2990
      oprot.writeFieldBegin('availability', TType.MAP, 3)
2991
      oprot.writeMapBegin(TType.STRING, TType.I64, len(self.availability))
2992
      for kiter34,viter35 in self.availability.items():
2993
        oprot.writeString(kiter34)
2994
        oprot.writeI64(viter35)
2995
      oprot.writeMapEnd()
2996
      oprot.writeFieldEnd()
2997
    oprot.writeFieldStop()
2998
    oprot.writeStructEnd()
2999
 
3000
  def validate(self):
3001
    return
3002
 
3003
 
3004
  def __repr__(self):
3005
    L = ['%s=%r' % (key, value)
3006
      for key, value in self.__dict__.iteritems()]
3007
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3008
 
3009
  def __eq__(self, other):
3010
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3011
 
3012
  def __ne__(self, other):
3013
    return not (self == other)
3014
 
3015
class updateInventory_result:
3016
  """
3017
  Attributes:
3018
   - cex
3019
  """
3020
 
3021
  thrift_spec = (
3022
    None, # 0
3023
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
3024
  )
3025
 
3026
  def __init__(self, cex=None,):
3027
    self.cex = cex
3028
 
3029
  def read(self, iprot):
3030
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3031
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3032
      return
3033
    iprot.readStructBegin()
3034
    while True:
3035
      (fname, ftype, fid) = iprot.readFieldBegin()
3036
      if ftype == TType.STOP:
3037
        break
3038
      if fid == 1:
3039
        if ftype == TType.STRUCT:
3040
          self.cex = InventoryServiceException()
3041
          self.cex.read(iprot)
3042
        else:
3043
          iprot.skip(ftype)
3044
      else:
3045
        iprot.skip(ftype)
3046
      iprot.readFieldEnd()
3047
    iprot.readStructEnd()
3048
 
3049
  def write(self, oprot):
3050
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3051
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3052
      return
3053
    oprot.writeStructBegin('updateInventory_result')
3054
    if self.cex is not None:
3055
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
3056
      self.cex.write(oprot)
3057
      oprot.writeFieldEnd()
3058
    oprot.writeFieldStop()
3059
    oprot.writeStructEnd()
3060
 
3061
  def validate(self):
3062
    return
3063
 
3064
 
3065
  def __repr__(self):
3066
    L = ['%s=%r' % (key, value)
3067
      for key, value in self.__dict__.iteritems()]
3068
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3069
 
3070
  def __eq__(self, other):
3071
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3072
 
3073
  def __ne__(self, other):
3074
    return not (self == other)
3075
 
3076
class addInventory_args:
3077
  """
3078
  Attributes:
3079
   - itemId
3080
   - warehouseId
3081
   - quantity
3082
  """
3083
 
3084
  thrift_spec = (
3085
    None, # 0
3086
    (1, TType.I64, 'itemId', None, None, ), # 1
3087
    (2, TType.I64, 'warehouseId', None, None, ), # 2
3088
    (3, TType.I64, 'quantity', None, None, ), # 3
3089
  )
3090
 
3091
  def __init__(self, itemId=None, warehouseId=None, quantity=None,):
3092
    self.itemId = itemId
3093
    self.warehouseId = warehouseId
3094
    self.quantity = quantity
3095
 
3096
  def read(self, iprot):
3097
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3098
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3099
      return
3100
    iprot.readStructBegin()
3101
    while True:
3102
      (fname, ftype, fid) = iprot.readFieldBegin()
3103
      if ftype == TType.STOP:
3104
        break
3105
      if fid == 1:
3106
        if ftype == TType.I64:
3107
          self.itemId = iprot.readI64();
3108
        else:
3109
          iprot.skip(ftype)
3110
      elif fid == 2:
3111
        if ftype == TType.I64:
3112
          self.warehouseId = iprot.readI64();
3113
        else:
3114
          iprot.skip(ftype)
3115
      elif fid == 3:
3116
        if ftype == TType.I64:
3117
          self.quantity = iprot.readI64();
3118
        else:
3119
          iprot.skip(ftype)
3120
      else:
3121
        iprot.skip(ftype)
3122
      iprot.readFieldEnd()
3123
    iprot.readStructEnd()
3124
 
3125
  def write(self, oprot):
3126
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3127
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3128
      return
3129
    oprot.writeStructBegin('addInventory_args')
3130
    if self.itemId is not None:
3131
      oprot.writeFieldBegin('itemId', TType.I64, 1)
3132
      oprot.writeI64(self.itemId)
3133
      oprot.writeFieldEnd()
3134
    if self.warehouseId is not None:
3135
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
3136
      oprot.writeI64(self.warehouseId)
3137
      oprot.writeFieldEnd()
3138
    if self.quantity is not None:
3139
      oprot.writeFieldBegin('quantity', TType.I64, 3)
3140
      oprot.writeI64(self.quantity)
3141
      oprot.writeFieldEnd()
3142
    oprot.writeFieldStop()
3143
    oprot.writeStructEnd()
3144
 
3145
  def validate(self):
3146
    return
3147
 
3148
 
3149
  def __repr__(self):
3150
    L = ['%s=%r' % (key, value)
3151
      for key, value in self.__dict__.iteritems()]
3152
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3153
 
3154
  def __eq__(self, other):
3155
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3156
 
3157
  def __ne__(self, other):
3158
    return not (self == other)
3159
 
3160
class addInventory_result:
3161
  """
3162
  Attributes:
3163
   - cex
3164
  """
3165
 
3166
  thrift_spec = (
3167
    None, # 0
3168
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
3169
  )
3170
 
3171
  def __init__(self, cex=None,):
3172
    self.cex = cex
3173
 
3174
  def read(self, iprot):
3175
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3176
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3177
      return
3178
    iprot.readStructBegin()
3179
    while True:
3180
      (fname, ftype, fid) = iprot.readFieldBegin()
3181
      if ftype == TType.STOP:
3182
        break
3183
      if fid == 1:
3184
        if ftype == TType.STRUCT:
3185
          self.cex = InventoryServiceException()
3186
          self.cex.read(iprot)
3187
        else:
3188
          iprot.skip(ftype)
3189
      else:
3190
        iprot.skip(ftype)
3191
      iprot.readFieldEnd()
3192
    iprot.readStructEnd()
3193
 
3194
  def write(self, oprot):
3195
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3196
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3197
      return
3198
    oprot.writeStructBegin('addInventory_result')
3199
    if self.cex is not None:
3200
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
3201
      self.cex.write(oprot)
3202
      oprot.writeFieldEnd()
3203
    oprot.writeFieldStop()
3204
    oprot.writeStructEnd()
3205
 
3206
  def validate(self):
3207
    return
3208
 
3209
 
3210
  def __repr__(self):
3211
    L = ['%s=%r' % (key, value)
3212
      for key, value in self.__dict__.iteritems()]
3213
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3214
 
3215
  def __eq__(self, other):
3216
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3217
 
3218
  def __ne__(self, other):
3219
    return not (self == other)
3220
 
3221
class retireWarehouse_args:
3222
  """
3223
  Attributes:
3224
   - warehouse_id
3225
  """
3226
 
3227
  thrift_spec = (
3228
    None, # 0
3229
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
3230
  )
3231
 
3232
  def __init__(self, warehouse_id=None,):
3233
    self.warehouse_id = warehouse_id
3234
 
3235
  def read(self, iprot):
3236
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3237
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3238
      return
3239
    iprot.readStructBegin()
3240
    while True:
3241
      (fname, ftype, fid) = iprot.readFieldBegin()
3242
      if ftype == TType.STOP:
3243
        break
3244
      if fid == 1:
3245
        if ftype == TType.I64:
3246
          self.warehouse_id = iprot.readI64();
3247
        else:
3248
          iprot.skip(ftype)
3249
      else:
3250
        iprot.skip(ftype)
3251
      iprot.readFieldEnd()
3252
    iprot.readStructEnd()
3253
 
3254
  def write(self, oprot):
3255
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3256
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3257
      return
3258
    oprot.writeStructBegin('retireWarehouse_args')
3259
    if self.warehouse_id is not None:
3260
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
3261
      oprot.writeI64(self.warehouse_id)
3262
      oprot.writeFieldEnd()
3263
    oprot.writeFieldStop()
3264
    oprot.writeStructEnd()
3265
 
3266
  def validate(self):
3267
    return
3268
 
3269
 
3270
  def __repr__(self):
3271
    L = ['%s=%r' % (key, value)
3272
      for key, value in self.__dict__.iteritems()]
3273
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3274
 
3275
  def __eq__(self, other):
3276
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3277
 
3278
  def __ne__(self, other):
3279
    return not (self == other)
3280
 
3281
class retireWarehouse_result:
3282
  """
3283
  Attributes:
3284
   - cex
3285
  """
3286
 
3287
  thrift_spec = (
3288
    None, # 0
3289
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
3290
  )
3291
 
3292
  def __init__(self, cex=None,):
3293
    self.cex = cex
3294
 
3295
  def read(self, iprot):
3296
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3297
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3298
      return
3299
    iprot.readStructBegin()
3300
    while True:
3301
      (fname, ftype, fid) = iprot.readFieldBegin()
3302
      if ftype == TType.STOP:
3303
        break
3304
      if fid == 1:
3305
        if ftype == TType.STRUCT:
3306
          self.cex = InventoryServiceException()
3307
          self.cex.read(iprot)
3308
        else:
3309
          iprot.skip(ftype)
3310
      else:
3311
        iprot.skip(ftype)
3312
      iprot.readFieldEnd()
3313
    iprot.readStructEnd()
3314
 
3315
  def write(self, oprot):
3316
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3317
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3318
      return
3319
    oprot.writeStructBegin('retireWarehouse_result')
3320
    if self.cex is not None:
3321
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
3322
      self.cex.write(oprot)
3323
      oprot.writeFieldEnd()
3324
    oprot.writeFieldStop()
3325
    oprot.writeStructEnd()
3326
 
3327
  def validate(self):
3328
    return
3329
 
3330
 
3331
  def __repr__(self):
3332
    L = ['%s=%r' % (key, value)
3333
      for key, value in self.__dict__.iteritems()]
3334
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3335
 
3336
  def __eq__(self, other):
3337
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3338
 
3339
  def __ne__(self, other):
3340
    return not (self == other)
3341
 
3342
class getItemInventoryByItemId_args:
3343
  """
3344
  Attributes:
3345
   - item_id
3346
  """
3347
 
3348
  thrift_spec = (
3349
    None, # 0
3350
    (1, TType.I64, 'item_id', None, None, ), # 1
3351
  )
3352
 
3353
  def __init__(self, item_id=None,):
3354
    self.item_id = item_id
3355
 
3356
  def read(self, iprot):
3357
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3358
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3359
      return
3360
    iprot.readStructBegin()
3361
    while True:
3362
      (fname, ftype, fid) = iprot.readFieldBegin()
3363
      if ftype == TType.STOP:
3364
        break
3365
      if fid == 1:
3366
        if ftype == TType.I64:
3367
          self.item_id = iprot.readI64();
3368
        else:
3369
          iprot.skip(ftype)
3370
      else:
3371
        iprot.skip(ftype)
3372
      iprot.readFieldEnd()
3373
    iprot.readStructEnd()
3374
 
3375
  def write(self, oprot):
3376
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3377
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3378
      return
3379
    oprot.writeStructBegin('getItemInventoryByItemId_args')
3380
    if self.item_id is not None:
3381
      oprot.writeFieldBegin('item_id', TType.I64, 1)
3382
      oprot.writeI64(self.item_id)
3383
      oprot.writeFieldEnd()
3384
    oprot.writeFieldStop()
3385
    oprot.writeStructEnd()
3386
 
3387
  def validate(self):
3388
    return
3389
 
3390
 
3391
  def __repr__(self):
3392
    L = ['%s=%r' % (key, value)
3393
      for key, value in self.__dict__.iteritems()]
3394
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3395
 
3396
  def __eq__(self, other):
3397
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3398
 
3399
  def __ne__(self, other):
3400
    return not (self == other)
3401
 
3402
class getItemInventoryByItemId_result:
3403
  """
3404
  Attributes:
3405
   - success
3406
   - cex
3407
  """
3408
 
3409
  thrift_spec = (
3410
    (0, TType.STRUCT, 'success', (ItemInventory, ItemInventory.thrift_spec), None, ), # 0
3411
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
3412
  )
3413
 
3414
  def __init__(self, success=None, cex=None,):
3415
    self.success = success
3416
    self.cex = cex
3417
 
3418
  def read(self, iprot):
3419
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3420
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3421
      return
3422
    iprot.readStructBegin()
3423
    while True:
3424
      (fname, ftype, fid) = iprot.readFieldBegin()
3425
      if ftype == TType.STOP:
3426
        break
3427
      if fid == 0:
3428
        if ftype == TType.STRUCT:
3429
          self.success = ItemInventory()
3430
          self.success.read(iprot)
3431
        else:
3432
          iprot.skip(ftype)
3433
      elif fid == 1:
3434
        if ftype == TType.STRUCT:
3435
          self.cex = InventoryServiceException()
3436
          self.cex.read(iprot)
3437
        else:
3438
          iprot.skip(ftype)
3439
      else:
3440
        iprot.skip(ftype)
3441
      iprot.readFieldEnd()
3442
    iprot.readStructEnd()
3443
 
3444
  def write(self, oprot):
3445
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3446
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3447
      return
3448
    oprot.writeStructBegin('getItemInventoryByItemId_result')
3449
    if self.success is not None:
3450
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3451
      self.success.write(oprot)
3452
      oprot.writeFieldEnd()
3453
    if self.cex is not None:
3454
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
3455
      self.cex.write(oprot)
3456
      oprot.writeFieldEnd()
3457
    oprot.writeFieldStop()
3458
    oprot.writeStructEnd()
3459
 
3460
  def validate(self):
3461
    return
3462
 
3463
 
3464
  def __repr__(self):
3465
    L = ['%s=%r' % (key, value)
3466
      for key, value in self.__dict__.iteritems()]
3467
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3468
 
3469
  def __eq__(self, other):
3470
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3471
 
3472
  def __ne__(self, other):
3473
    return not (self == other)
3474
 
3475
class getItemAvailibilityAtWarehouse_args:
3476
  """
3477
  Attributes:
3478
   - warehouse_id
3479
   - item_id
3480
  """
3481
 
3482
  thrift_spec = (
3483
    None, # 0
3484
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
3485
    (2, TType.I64, 'item_id', None, None, ), # 2
3486
  )
3487
 
3488
  def __init__(self, warehouse_id=None, item_id=None,):
3489
    self.warehouse_id = warehouse_id
3490
    self.item_id = item_id
3491
 
3492
  def read(self, iprot):
3493
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3494
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3495
      return
3496
    iprot.readStructBegin()
3497
    while True:
3498
      (fname, ftype, fid) = iprot.readFieldBegin()
3499
      if ftype == TType.STOP:
3500
        break
3501
      if fid == 1:
3502
        if ftype == TType.I64:
3503
          self.warehouse_id = iprot.readI64();
3504
        else:
3505
          iprot.skip(ftype)
3506
      elif fid == 2:
3507
        if ftype == TType.I64:
3508
          self.item_id = iprot.readI64();
3509
        else:
3510
          iprot.skip(ftype)
3511
      else:
3512
        iprot.skip(ftype)
3513
      iprot.readFieldEnd()
3514
    iprot.readStructEnd()
3515
 
3516
  def write(self, oprot):
3517
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3518
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3519
      return
3520
    oprot.writeStructBegin('getItemAvailibilityAtWarehouse_args')
3521
    if self.warehouse_id is not None:
3522
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
3523
      oprot.writeI64(self.warehouse_id)
3524
      oprot.writeFieldEnd()
3525
    if self.item_id is not None:
3526
      oprot.writeFieldBegin('item_id', TType.I64, 2)
3527
      oprot.writeI64(self.item_id)
3528
      oprot.writeFieldEnd()
3529
    oprot.writeFieldStop()
3530
    oprot.writeStructEnd()
3531
 
3532
  def validate(self):
3533
    return
3534
 
3535
 
3536
  def __repr__(self):
3537
    L = ['%s=%r' % (key, value)
3538
      for key, value in self.__dict__.iteritems()]
3539
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3540
 
3541
  def __eq__(self, other):
3542
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3543
 
3544
  def __ne__(self, other):
3545
    return not (self == other)
3546
 
3547
class getItemAvailibilityAtWarehouse_result:
3548
  """
3549
  Attributes:
3550
   - success
3551
   - cex
3552
  """
3553
 
3554
  thrift_spec = (
3555
    (0, TType.I64, 'success', None, None, ), # 0
3556
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
3557
  )
3558
 
3559
  def __init__(self, success=None, cex=None,):
3560
    self.success = success
3561
    self.cex = cex
3562
 
3563
  def read(self, iprot):
3564
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3565
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3566
      return
3567
    iprot.readStructBegin()
3568
    while True:
3569
      (fname, ftype, fid) = iprot.readFieldBegin()
3570
      if ftype == TType.STOP:
3571
        break
3572
      if fid == 0:
3573
        if ftype == TType.I64:
3574
          self.success = iprot.readI64();
3575
        else:
3576
          iprot.skip(ftype)
3577
      elif fid == 1:
3578
        if ftype == TType.STRUCT:
3579
          self.cex = InventoryServiceException()
3580
          self.cex.read(iprot)
3581
        else:
3582
          iprot.skip(ftype)
3583
      else:
3584
        iprot.skip(ftype)
3585
      iprot.readFieldEnd()
3586
    iprot.readStructEnd()
3587
 
3588
  def write(self, oprot):
3589
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3590
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3591
      return
3592
    oprot.writeStructBegin('getItemAvailibilityAtWarehouse_result')
3593
    if self.success is not None:
3594
      oprot.writeFieldBegin('success', TType.I64, 0)
3595
      oprot.writeI64(self.success)
3596
      oprot.writeFieldEnd()
3597
    if self.cex is not None:
3598
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
3599
      self.cex.write(oprot)
3600
      oprot.writeFieldEnd()
3601
    oprot.writeFieldStop()
3602
    oprot.writeStructEnd()
3603
 
3604
  def validate(self):
3605
    return
3606
 
3607
 
3608
  def __repr__(self):
3609
    L = ['%s=%r' % (key, value)
3610
      for key, value in self.__dict__.iteritems()]
3611
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3612
 
3613
  def __eq__(self, other):
3614
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3615
 
3616
  def __ne__(self, other):
3617
    return not (self == other)
3618
 
3619
class getItemAvailabilityAtLocation_args:
3620
  """
3621
  Attributes:
3622
   - itemId
5978 rajveer 3623
   - sourceId
5944 mandeep.dh 3624
  """
3625
 
3626
  thrift_spec = (
3627
    None, # 0
3628
    (1, TType.I64, 'itemId', None, None, ), # 1
5978 rajveer 3629
    (2, TType.I64, 'sourceId', None, None, ), # 2
5944 mandeep.dh 3630
  )
3631
 
5978 rajveer 3632
  def __init__(self, itemId=None, sourceId=None,):
5944 mandeep.dh 3633
    self.itemId = itemId
5978 rajveer 3634
    self.sourceId = sourceId
5944 mandeep.dh 3635
 
3636
  def read(self, iprot):
3637
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3638
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3639
      return
3640
    iprot.readStructBegin()
3641
    while True:
3642
      (fname, ftype, fid) = iprot.readFieldBegin()
3643
      if ftype == TType.STOP:
3644
        break
3645
      if fid == 1:
3646
        if ftype == TType.I64:
3647
          self.itemId = iprot.readI64();
3648
        else:
3649
          iprot.skip(ftype)
5978 rajveer 3650
      elif fid == 2:
3651
        if ftype == TType.I64:
3652
          self.sourceId = iprot.readI64();
3653
        else:
3654
          iprot.skip(ftype)
5944 mandeep.dh 3655
      else:
3656
        iprot.skip(ftype)
3657
      iprot.readFieldEnd()
3658
    iprot.readStructEnd()
3659
 
3660
  def write(self, oprot):
3661
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3662
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3663
      return
3664
    oprot.writeStructBegin('getItemAvailabilityAtLocation_args')
3665
    if self.itemId is not None:
3666
      oprot.writeFieldBegin('itemId', TType.I64, 1)
3667
      oprot.writeI64(self.itemId)
3668
      oprot.writeFieldEnd()
5978 rajveer 3669
    if self.sourceId is not None:
3670
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
3671
      oprot.writeI64(self.sourceId)
3672
      oprot.writeFieldEnd()
5944 mandeep.dh 3673
    oprot.writeFieldStop()
3674
    oprot.writeStructEnd()
3675
 
3676
  def validate(self):
3677
    return
3678
 
3679
 
3680
  def __repr__(self):
3681
    L = ['%s=%r' % (key, value)
3682
      for key, value in self.__dict__.iteritems()]
3683
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3684
 
3685
  def __eq__(self, other):
3686
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3687
 
3688
  def __ne__(self, other):
3689
    return not (self == other)
3690
 
3691
class getItemAvailabilityAtLocation_result:
3692
  """
3693
  Attributes:
3694
   - success
3695
   - isex
3696
  """
3697
 
3698
  thrift_spec = (
3699
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
3700
    (1, TType.STRUCT, 'isex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
3701
  )
3702
 
3703
  def __init__(self, success=None, isex=None,):
3704
    self.success = success
3705
    self.isex = isex
3706
 
3707
  def read(self, iprot):
3708
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3709
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3710
      return
3711
    iprot.readStructBegin()
3712
    while True:
3713
      (fname, ftype, fid) = iprot.readFieldBegin()
3714
      if ftype == TType.STOP:
3715
        break
3716
      if fid == 0:
3717
        if ftype == TType.LIST:
3718
          self.success = []
3719
          (_etype39, _size36) = iprot.readListBegin()
3720
          for _i40 in xrange(_size36):
3721
            _elem41 = iprot.readI64();
3722
            self.success.append(_elem41)
3723
          iprot.readListEnd()
3724
        else:
3725
          iprot.skip(ftype)
3726
      elif fid == 1:
3727
        if ftype == TType.STRUCT:
3728
          self.isex = InventoryServiceException()
3729
          self.isex.read(iprot)
3730
        else:
3731
          iprot.skip(ftype)
3732
      else:
3733
        iprot.skip(ftype)
3734
      iprot.readFieldEnd()
3735
    iprot.readStructEnd()
3736
 
3737
  def write(self, oprot):
3738
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3739
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3740
      return
3741
    oprot.writeStructBegin('getItemAvailabilityAtLocation_result')
3742
    if self.success is not None:
3743
      oprot.writeFieldBegin('success', TType.LIST, 0)
3744
      oprot.writeListBegin(TType.I64, len(self.success))
3745
      for iter42 in self.success:
3746
        oprot.writeI64(iter42)
3747
      oprot.writeListEnd()
3748
      oprot.writeFieldEnd()
3749
    if self.isex is not None:
3750
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
3751
      self.isex.write(oprot)
3752
      oprot.writeFieldEnd()
3753
    oprot.writeFieldStop()
3754
    oprot.writeStructEnd()
3755
 
3756
  def validate(self):
3757
    return
3758
 
3759
 
3760
  def __repr__(self):
3761
    L = ['%s=%r' % (key, value)
3762
      for key, value in self.__dict__.iteritems()]
3763
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3764
 
3765
  def __eq__(self, other):
3766
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3767
 
3768
  def __ne__(self, other):
3769
    return not (self == other)
3770
 
3771
class getAllWarehouses_args:
3772
  """
3773
  Attributes:
3774
   - isActive
3775
  """
3776
 
3777
  thrift_spec = (
3778
    None, # 0
3779
    (1, TType.BOOL, 'isActive', None, None, ), # 1
3780
  )
3781
 
3782
  def __init__(self, isActive=None,):
3783
    self.isActive = isActive
3784
 
3785
  def read(self, iprot):
3786
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3787
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3788
      return
3789
    iprot.readStructBegin()
3790
    while True:
3791
      (fname, ftype, fid) = iprot.readFieldBegin()
3792
      if ftype == TType.STOP:
3793
        break
3794
      if fid == 1:
3795
        if ftype == TType.BOOL:
3796
          self.isActive = iprot.readBool();
3797
        else:
3798
          iprot.skip(ftype)
3799
      else:
3800
        iprot.skip(ftype)
3801
      iprot.readFieldEnd()
3802
    iprot.readStructEnd()
3803
 
3804
  def write(self, oprot):
3805
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3806
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3807
      return
3808
    oprot.writeStructBegin('getAllWarehouses_args')
3809
    if self.isActive is not None:
3810
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
3811
      oprot.writeBool(self.isActive)
3812
      oprot.writeFieldEnd()
3813
    oprot.writeFieldStop()
3814
    oprot.writeStructEnd()
3815
 
3816
  def validate(self):
3817
    return
3818
 
3819
 
3820
  def __repr__(self):
3821
    L = ['%s=%r' % (key, value)
3822
      for key, value in self.__dict__.iteritems()]
3823
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3824
 
3825
  def __eq__(self, other):
3826
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3827
 
3828
  def __ne__(self, other):
3829
    return not (self == other)
3830
 
3831
class getAllWarehouses_result:
3832
  """
3833
  Attributes:
3834
   - success
3835
   - cex
3836
  """
3837
 
3838
  thrift_spec = (
3839
    (0, TType.LIST, 'success', (TType.STRUCT,(Warehouse, Warehouse.thrift_spec)), None, ), # 0
3840
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
3841
  )
3842
 
3843
  def __init__(self, success=None, cex=None,):
3844
    self.success = success
3845
    self.cex = cex
3846
 
3847
  def read(self, iprot):
3848
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3849
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3850
      return
3851
    iprot.readStructBegin()
3852
    while True:
3853
      (fname, ftype, fid) = iprot.readFieldBegin()
3854
      if ftype == TType.STOP:
3855
        break
3856
      if fid == 0:
3857
        if ftype == TType.LIST:
3858
          self.success = []
3859
          (_etype46, _size43) = iprot.readListBegin()
3860
          for _i47 in xrange(_size43):
3861
            _elem48 = Warehouse()
3862
            _elem48.read(iprot)
3863
            self.success.append(_elem48)
3864
          iprot.readListEnd()
3865
        else:
3866
          iprot.skip(ftype)
3867
      elif fid == 1:
3868
        if ftype == TType.STRUCT:
3869
          self.cex = InventoryServiceException()
3870
          self.cex.read(iprot)
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('getAllWarehouses_result')
3883
    if self.success is not None:
3884
      oprot.writeFieldBegin('success', TType.LIST, 0)
3885
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3886
      for iter49 in self.success:
3887
        iter49.write(oprot)
3888
      oprot.writeListEnd()
3889
      oprot.writeFieldEnd()
3890
    if self.cex is not None:
3891
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
3892
      self.cex.write(oprot)
3893
      oprot.writeFieldEnd()
3894
    oprot.writeFieldStop()
3895
    oprot.writeStructEnd()
3896
 
3897
  def validate(self):
3898
    return
3899
 
3900
 
3901
  def __repr__(self):
3902
    L = ['%s=%r' % (key, value)
3903
      for key, value in self.__dict__.iteritems()]
3904
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3905
 
3906
  def __eq__(self, other):
3907
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3908
 
3909
  def __ne__(self, other):
3910
    return not (self == other)
3911
 
3912
class getWarehouse_args:
3913
  """
3914
  Attributes:
3915
   - warehouse_id
3916
  """
3917
 
3918
  thrift_spec = (
3919
    None, # 0
3920
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
3921
  )
3922
 
3923
  def __init__(self, warehouse_id=None,):
3924
    self.warehouse_id = warehouse_id
3925
 
3926
  def read(self, iprot):
3927
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3928
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3929
      return
3930
    iprot.readStructBegin()
3931
    while True:
3932
      (fname, ftype, fid) = iprot.readFieldBegin()
3933
      if ftype == TType.STOP:
3934
        break
3935
      if fid == 1:
3936
        if ftype == TType.I64:
3937
          self.warehouse_id = iprot.readI64();
3938
        else:
3939
          iprot.skip(ftype)
3940
      else:
3941
        iprot.skip(ftype)
3942
      iprot.readFieldEnd()
3943
    iprot.readStructEnd()
3944
 
3945
  def write(self, oprot):
3946
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3947
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3948
      return
3949
    oprot.writeStructBegin('getWarehouse_args')
3950
    if self.warehouse_id is not None:
3951
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
3952
      oprot.writeI64(self.warehouse_id)
3953
      oprot.writeFieldEnd()
3954
    oprot.writeFieldStop()
3955
    oprot.writeStructEnd()
3956
 
3957
  def validate(self):
3958
    return
3959
 
3960
 
3961
  def __repr__(self):
3962
    L = ['%s=%r' % (key, value)
3963
      for key, value in self.__dict__.iteritems()]
3964
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3965
 
3966
  def __eq__(self, other):
3967
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3968
 
3969
  def __ne__(self, other):
3970
    return not (self == other)
3971
 
3972
class getWarehouse_result:
3973
  """
3974
  Attributes:
3975
   - success
3976
   - cex
3977
  """
3978
 
3979
  thrift_spec = (
3980
    (0, TType.STRUCT, 'success', (Warehouse, Warehouse.thrift_spec), None, ), # 0
3981
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
3982
  )
3983
 
3984
  def __init__(self, success=None, cex=None,):
3985
    self.success = success
3986
    self.cex = cex
3987
 
3988
  def read(self, iprot):
3989
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3990
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3991
      return
3992
    iprot.readStructBegin()
3993
    while True:
3994
      (fname, ftype, fid) = iprot.readFieldBegin()
3995
      if ftype == TType.STOP:
3996
        break
3997
      if fid == 0:
3998
        if ftype == TType.STRUCT:
3999
          self.success = Warehouse()
4000
          self.success.read(iprot)
4001
        else:
4002
          iprot.skip(ftype)
4003
      elif fid == 1:
4004
        if ftype == TType.STRUCT:
4005
          self.cex = InventoryServiceException()
4006
          self.cex.read(iprot)
4007
        else:
4008
          iprot.skip(ftype)
4009
      else:
4010
        iprot.skip(ftype)
4011
      iprot.readFieldEnd()
4012
    iprot.readStructEnd()
4013
 
4014
  def write(self, oprot):
4015
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4016
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4017
      return
4018
    oprot.writeStructBegin('getWarehouse_result')
4019
    if self.success is not None:
4020
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4021
      self.success.write(oprot)
4022
      oprot.writeFieldEnd()
4023
    if self.cex is not None:
4024
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4025
      self.cex.write(oprot)
4026
      oprot.writeFieldEnd()
4027
    oprot.writeFieldStop()
4028
    oprot.writeStructEnd()
4029
 
4030
  def validate(self):
4031
    return
4032
 
4033
 
4034
  def __repr__(self):
4035
    L = ['%s=%r' % (key, value)
4036
      for key, value in self.__dict__.iteritems()]
4037
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4038
 
4039
  def __eq__(self, other):
4040
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4041
 
4042
  def __ne__(self, other):
4043
    return not (self == other)
4044
 
4045
class getAllItemsForWarehouse_args:
4046
  """
4047
  Attributes:
4048
   - warehouse_id
4049
  """
4050
 
4051
  thrift_spec = (
4052
    None, # 0
4053
    (1, TType.I64, 'warehouse_id', None, None, ), # 1
4054
  )
4055
 
4056
  def __init__(self, warehouse_id=None,):
4057
    self.warehouse_id = warehouse_id
4058
 
4059
  def read(self, iprot):
4060
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4061
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4062
      return
4063
    iprot.readStructBegin()
4064
    while True:
4065
      (fname, ftype, fid) = iprot.readFieldBegin()
4066
      if ftype == TType.STOP:
4067
        break
4068
      if fid == 1:
4069
        if ftype == TType.I64:
4070
          self.warehouse_id = iprot.readI64();
4071
        else:
4072
          iprot.skip(ftype)
4073
      else:
4074
        iprot.skip(ftype)
4075
      iprot.readFieldEnd()
4076
    iprot.readStructEnd()
4077
 
4078
  def write(self, oprot):
4079
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4080
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4081
      return
4082
    oprot.writeStructBegin('getAllItemsForWarehouse_args')
4083
    if self.warehouse_id is not None:
4084
      oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
4085
      oprot.writeI64(self.warehouse_id)
4086
      oprot.writeFieldEnd()
4087
    oprot.writeFieldStop()
4088
    oprot.writeStructEnd()
4089
 
4090
  def validate(self):
4091
    return
4092
 
4093
 
4094
  def __repr__(self):
4095
    L = ['%s=%r' % (key, value)
4096
      for key, value in self.__dict__.iteritems()]
4097
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4098
 
4099
  def __eq__(self, other):
4100
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4101
 
4102
  def __ne__(self, other):
4103
    return not (self == other)
4104
 
4105
class getAllItemsForWarehouse_result:
4106
  """
4107
  Attributes:
4108
   - success
4109
   - cex
4110
  """
4111
 
4112
  thrift_spec = (
4113
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
4114
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4115
  )
4116
 
4117
  def __init__(self, success=None, cex=None,):
4118
    self.success = success
4119
    self.cex = cex
4120
 
4121
  def read(self, iprot):
4122
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4123
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4124
      return
4125
    iprot.readStructBegin()
4126
    while True:
4127
      (fname, ftype, fid) = iprot.readFieldBegin()
4128
      if ftype == TType.STOP:
4129
        break
4130
      if fid == 0:
4131
        if ftype == TType.LIST:
4132
          self.success = []
4133
          (_etype53, _size50) = iprot.readListBegin()
4134
          for _i54 in xrange(_size50):
4135
            _elem55 = iprot.readI64();
4136
            self.success.append(_elem55)
4137
          iprot.readListEnd()
4138
        else:
4139
          iprot.skip(ftype)
4140
      elif fid == 1:
4141
        if ftype == TType.STRUCT:
4142
          self.cex = InventoryServiceException()
4143
          self.cex.read(iprot)
4144
        else:
4145
          iprot.skip(ftype)
4146
      else:
4147
        iprot.skip(ftype)
4148
      iprot.readFieldEnd()
4149
    iprot.readStructEnd()
4150
 
4151
  def write(self, oprot):
4152
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4153
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4154
      return
4155
    oprot.writeStructBegin('getAllItemsForWarehouse_result')
4156
    if self.success is not None:
4157
      oprot.writeFieldBegin('success', TType.LIST, 0)
4158
      oprot.writeListBegin(TType.I64, len(self.success))
4159
      for iter56 in self.success:
4160
        oprot.writeI64(iter56)
4161
      oprot.writeListEnd()
4162
      oprot.writeFieldEnd()
4163
    if self.cex is not None:
4164
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4165
      self.cex.write(oprot)
4166
      oprot.writeFieldEnd()
4167
    oprot.writeFieldStop()
4168
    oprot.writeStructEnd()
4169
 
4170
  def validate(self):
4171
    return
4172
 
4173
 
4174
  def __repr__(self):
4175
    L = ['%s=%r' % (key, value)
4176
      for key, value in self.__dict__.iteritems()]
4177
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4178
 
4179
  def __eq__(self, other):
4180
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4181
 
4182
  def __ne__(self, other):
4183
    return not (self == other)
4184
 
5966 rajveer 4185
class isOrderBillable_args:
4186
  """
4187
  Attributes:
4188
   - itemId
4189
   - warehouseId
4190
   - sourceId
4191
   - orderId
4192
  """
4193
 
4194
  thrift_spec = (
4195
    None, # 0
4196
    (1, TType.I64, 'itemId', None, None, ), # 1
4197
    (2, TType.I64, 'warehouseId', None, None, ), # 2
4198
    (3, TType.I64, 'sourceId', None, None, ), # 3
4199
    (4, TType.I64, 'orderId', None, None, ), # 4
4200
  )
4201
 
4202
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None,):
4203
    self.itemId = itemId
4204
    self.warehouseId = warehouseId
4205
    self.sourceId = sourceId
4206
    self.orderId = orderId
4207
 
4208
  def read(self, iprot):
4209
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4210
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4211
      return
4212
    iprot.readStructBegin()
4213
    while True:
4214
      (fname, ftype, fid) = iprot.readFieldBegin()
4215
      if ftype == TType.STOP:
4216
        break
4217
      if fid == 1:
4218
        if ftype == TType.I64:
4219
          self.itemId = iprot.readI64();
4220
        else:
4221
          iprot.skip(ftype)
4222
      elif fid == 2:
4223
        if ftype == TType.I64:
4224
          self.warehouseId = iprot.readI64();
4225
        else:
4226
          iprot.skip(ftype)
4227
      elif fid == 3:
4228
        if ftype == TType.I64:
4229
          self.sourceId = iprot.readI64();
4230
        else:
4231
          iprot.skip(ftype)
4232
      elif fid == 4:
4233
        if ftype == TType.I64:
4234
          self.orderId = iprot.readI64();
4235
        else:
4236
          iprot.skip(ftype)
4237
      else:
4238
        iprot.skip(ftype)
4239
      iprot.readFieldEnd()
4240
    iprot.readStructEnd()
4241
 
4242
  def write(self, oprot):
4243
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4244
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4245
      return
4246
    oprot.writeStructBegin('isOrderBillable_args')
4247
    if self.itemId is not None:
4248
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4249
      oprot.writeI64(self.itemId)
4250
      oprot.writeFieldEnd()
4251
    if self.warehouseId is not None:
4252
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
4253
      oprot.writeI64(self.warehouseId)
4254
      oprot.writeFieldEnd()
4255
    if self.sourceId is not None:
4256
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
4257
      oprot.writeI64(self.sourceId)
4258
      oprot.writeFieldEnd()
4259
    if self.orderId is not None:
4260
      oprot.writeFieldBegin('orderId', TType.I64, 4)
4261
      oprot.writeI64(self.orderId)
4262
      oprot.writeFieldEnd()
4263
    oprot.writeFieldStop()
4264
    oprot.writeStructEnd()
4265
 
4266
  def validate(self):
4267
    return
4268
 
4269
 
4270
  def __repr__(self):
4271
    L = ['%s=%r' % (key, value)
4272
      for key, value in self.__dict__.iteritems()]
4273
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4274
 
4275
  def __eq__(self, other):
4276
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4277
 
4278
  def __ne__(self, other):
4279
    return not (self == other)
4280
 
4281
class isOrderBillable_result:
4282
  """
4283
  Attributes:
4284
   - success
4285
  """
4286
 
4287
  thrift_spec = (
4288
    (0, TType.BOOL, 'success', None, None, ), # 0
4289
  )
4290
 
4291
  def __init__(self, success=None,):
4292
    self.success = success
4293
 
4294
  def read(self, iprot):
4295
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4296
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4297
      return
4298
    iprot.readStructBegin()
4299
    while True:
4300
      (fname, ftype, fid) = iprot.readFieldBegin()
4301
      if ftype == TType.STOP:
4302
        break
4303
      if fid == 0:
4304
        if ftype == TType.BOOL:
4305
          self.success = iprot.readBool();
4306
        else:
4307
          iprot.skip(ftype)
4308
      else:
4309
        iprot.skip(ftype)
4310
      iprot.readFieldEnd()
4311
    iprot.readStructEnd()
4312
 
4313
  def write(self, oprot):
4314
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4315
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4316
      return
4317
    oprot.writeStructBegin('isOrderBillable_result')
4318
    if self.success is not None:
4319
      oprot.writeFieldBegin('success', TType.BOOL, 0)
4320
      oprot.writeBool(self.success)
4321
      oprot.writeFieldEnd()
4322
    oprot.writeFieldStop()
4323
    oprot.writeStructEnd()
4324
 
4325
  def validate(self):
4326
    return
4327
 
4328
 
4329
  def __repr__(self):
4330
    L = ['%s=%r' % (key, value)
4331
      for key, value in self.__dict__.iteritems()]
4332
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4333
 
4334
  def __eq__(self, other):
4335
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4336
 
4337
  def __ne__(self, other):
4338
    return not (self == other)
4339
 
5944 mandeep.dh 4340
class reserveItemInWarehouse_args:
4341
  """
4342
  Attributes:
4343
   - itemId
4344
   - warehouseId
5966 rajveer 4345
   - sourceId
4346
   - orderId
4347
   - createdTimestamp
4348
   - promisedShippingTimestamp
5944 mandeep.dh 4349
   - quantity
4350
  """
4351
 
4352
  thrift_spec = (
4353
    None, # 0
4354
    (1, TType.I64, 'itemId', None, None, ), # 1
4355
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5966 rajveer 4356
    (3, TType.I64, 'sourceId', None, None, ), # 3
4357
    (4, TType.I64, 'orderId', None, None, ), # 4
4358
    (5, TType.I64, 'createdTimestamp', None, None, ), # 5
4359
    (6, TType.I64, 'promisedShippingTimestamp', None, None, ), # 6
4360
    (7, TType.DOUBLE, 'quantity', None, None, ), # 7
5944 mandeep.dh 4361
  )
4362
 
5966 rajveer 4363
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None, createdTimestamp=None, promisedShippingTimestamp=None, quantity=None,):
5944 mandeep.dh 4364
    self.itemId = itemId
4365
    self.warehouseId = warehouseId
5966 rajveer 4366
    self.sourceId = sourceId
4367
    self.orderId = orderId
4368
    self.createdTimestamp = createdTimestamp
4369
    self.promisedShippingTimestamp = promisedShippingTimestamp
5944 mandeep.dh 4370
    self.quantity = quantity
4371
 
4372
  def read(self, iprot):
4373
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4374
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4375
      return
4376
    iprot.readStructBegin()
4377
    while True:
4378
      (fname, ftype, fid) = iprot.readFieldBegin()
4379
      if ftype == TType.STOP:
4380
        break
4381
      if fid == 1:
4382
        if ftype == TType.I64:
4383
          self.itemId = iprot.readI64();
4384
        else:
4385
          iprot.skip(ftype)
4386
      elif fid == 2:
4387
        if ftype == TType.I64:
4388
          self.warehouseId = iprot.readI64();
4389
        else:
4390
          iprot.skip(ftype)
4391
      elif fid == 3:
5966 rajveer 4392
        if ftype == TType.I64:
4393
          self.sourceId = iprot.readI64();
4394
        else:
4395
          iprot.skip(ftype)
4396
      elif fid == 4:
4397
        if ftype == TType.I64:
4398
          self.orderId = iprot.readI64();
4399
        else:
4400
          iprot.skip(ftype)
4401
      elif fid == 5:
4402
        if ftype == TType.I64:
4403
          self.createdTimestamp = iprot.readI64();
4404
        else:
4405
          iprot.skip(ftype)
4406
      elif fid == 6:
4407
        if ftype == TType.I64:
4408
          self.promisedShippingTimestamp = iprot.readI64();
4409
        else:
4410
          iprot.skip(ftype)
4411
      elif fid == 7:
5944 mandeep.dh 4412
        if ftype == TType.DOUBLE:
4413
          self.quantity = iprot.readDouble();
4414
        else:
4415
          iprot.skip(ftype)
4416
      else:
4417
        iprot.skip(ftype)
4418
      iprot.readFieldEnd()
4419
    iprot.readStructEnd()
4420
 
4421
  def write(self, oprot):
4422
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4423
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4424
      return
4425
    oprot.writeStructBegin('reserveItemInWarehouse_args')
4426
    if self.itemId is not None:
4427
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4428
      oprot.writeI64(self.itemId)
4429
      oprot.writeFieldEnd()
4430
    if self.warehouseId is not None:
4431
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
4432
      oprot.writeI64(self.warehouseId)
4433
      oprot.writeFieldEnd()
5966 rajveer 4434
    if self.sourceId is not None:
4435
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
4436
      oprot.writeI64(self.sourceId)
4437
      oprot.writeFieldEnd()
4438
    if self.orderId is not None:
4439
      oprot.writeFieldBegin('orderId', TType.I64, 4)
4440
      oprot.writeI64(self.orderId)
4441
      oprot.writeFieldEnd()
4442
    if self.createdTimestamp is not None:
4443
      oprot.writeFieldBegin('createdTimestamp', TType.I64, 5)
4444
      oprot.writeI64(self.createdTimestamp)
4445
      oprot.writeFieldEnd()
4446
    if self.promisedShippingTimestamp is not None:
4447
      oprot.writeFieldBegin('promisedShippingTimestamp', TType.I64, 6)
4448
      oprot.writeI64(self.promisedShippingTimestamp)
4449
      oprot.writeFieldEnd()
5944 mandeep.dh 4450
    if self.quantity is not None:
5966 rajveer 4451
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 7)
5944 mandeep.dh 4452
      oprot.writeDouble(self.quantity)
4453
      oprot.writeFieldEnd()
4454
    oprot.writeFieldStop()
4455
    oprot.writeStructEnd()
4456
 
4457
  def validate(self):
4458
    return
4459
 
4460
 
4461
  def __repr__(self):
4462
    L = ['%s=%r' % (key, value)
4463
      for key, value in self.__dict__.iteritems()]
4464
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4465
 
4466
  def __eq__(self, other):
4467
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4468
 
4469
  def __ne__(self, other):
4470
    return not (self == other)
4471
 
4472
class reserveItemInWarehouse_result:
4473
  """
4474
  Attributes:
4475
   - success
4476
   - cex
4477
  """
4478
 
4479
  thrift_spec = (
4480
    (0, TType.BOOL, 'success', None, None, ), # 0
4481
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4482
  )
4483
 
4484
  def __init__(self, success=None, cex=None,):
4485
    self.success = success
4486
    self.cex = cex
4487
 
4488
  def read(self, iprot):
4489
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4490
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4491
      return
4492
    iprot.readStructBegin()
4493
    while True:
4494
      (fname, ftype, fid) = iprot.readFieldBegin()
4495
      if ftype == TType.STOP:
4496
        break
4497
      if fid == 0:
4498
        if ftype == TType.BOOL:
4499
          self.success = iprot.readBool();
4500
        else:
4501
          iprot.skip(ftype)
4502
      elif fid == 1:
4503
        if ftype == TType.STRUCT:
4504
          self.cex = InventoryServiceException()
4505
          self.cex.read(iprot)
4506
        else:
4507
          iprot.skip(ftype)
4508
      else:
4509
        iprot.skip(ftype)
4510
      iprot.readFieldEnd()
4511
    iprot.readStructEnd()
4512
 
4513
  def write(self, oprot):
4514
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4515
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4516
      return
4517
    oprot.writeStructBegin('reserveItemInWarehouse_result')
4518
    if self.success is not None:
4519
      oprot.writeFieldBegin('success', TType.BOOL, 0)
4520
      oprot.writeBool(self.success)
4521
      oprot.writeFieldEnd()
4522
    if self.cex is not None:
4523
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4524
      self.cex.write(oprot)
4525
      oprot.writeFieldEnd()
4526
    oprot.writeFieldStop()
4527
    oprot.writeStructEnd()
4528
 
4529
  def validate(self):
4530
    return
4531
 
4532
 
4533
  def __repr__(self):
4534
    L = ['%s=%r' % (key, value)
4535
      for key, value in self.__dict__.iteritems()]
4536
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4537
 
4538
  def __eq__(self, other):
4539
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4540
 
4541
  def __ne__(self, other):
4542
    return not (self == other)
4543
 
4544
class reduceReservationCount_args:
4545
  """
4546
  Attributes:
4547
   - itemId
4548
   - warehouseId
5966 rajveer 4549
   - sourceId
4550
   - orderId
5944 mandeep.dh 4551
   - quantity
4552
  """
4553
 
4554
  thrift_spec = (
4555
    None, # 0
4556
    (1, TType.I64, 'itemId', None, None, ), # 1
4557
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5966 rajveer 4558
    (3, TType.I64, 'sourceId', None, None, ), # 3
4559
    (4, TType.I64, 'orderId', None, None, ), # 4
4560
    (5, TType.DOUBLE, 'quantity', None, None, ), # 5
5944 mandeep.dh 4561
  )
4562
 
5966 rajveer 4563
  def __init__(self, itemId=None, warehouseId=None, sourceId=None, orderId=None, quantity=None,):
5944 mandeep.dh 4564
    self.itemId = itemId
4565
    self.warehouseId = warehouseId
5966 rajveer 4566
    self.sourceId = sourceId
4567
    self.orderId = orderId
5944 mandeep.dh 4568
    self.quantity = quantity
4569
 
4570
  def read(self, iprot):
4571
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4572
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4573
      return
4574
    iprot.readStructBegin()
4575
    while True:
4576
      (fname, ftype, fid) = iprot.readFieldBegin()
4577
      if ftype == TType.STOP:
4578
        break
4579
      if fid == 1:
4580
        if ftype == TType.I64:
4581
          self.itemId = iprot.readI64();
4582
        else:
4583
          iprot.skip(ftype)
4584
      elif fid == 2:
4585
        if ftype == TType.I64:
4586
          self.warehouseId = iprot.readI64();
4587
        else:
4588
          iprot.skip(ftype)
4589
      elif fid == 3:
5966 rajveer 4590
        if ftype == TType.I64:
4591
          self.sourceId = iprot.readI64();
4592
        else:
4593
          iprot.skip(ftype)
4594
      elif fid == 4:
4595
        if ftype == TType.I64:
4596
          self.orderId = iprot.readI64();
4597
        else:
4598
          iprot.skip(ftype)
4599
      elif fid == 5:
5944 mandeep.dh 4600
        if ftype == TType.DOUBLE:
4601
          self.quantity = iprot.readDouble();
4602
        else:
4603
          iprot.skip(ftype)
4604
      else:
4605
        iprot.skip(ftype)
4606
      iprot.readFieldEnd()
4607
    iprot.readStructEnd()
4608
 
4609
  def write(self, oprot):
4610
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4611
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4612
      return
4613
    oprot.writeStructBegin('reduceReservationCount_args')
4614
    if self.itemId is not None:
4615
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4616
      oprot.writeI64(self.itemId)
4617
      oprot.writeFieldEnd()
4618
    if self.warehouseId is not None:
4619
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
4620
      oprot.writeI64(self.warehouseId)
4621
      oprot.writeFieldEnd()
5966 rajveer 4622
    if self.sourceId is not None:
4623
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
4624
      oprot.writeI64(self.sourceId)
4625
      oprot.writeFieldEnd()
4626
    if self.orderId is not None:
4627
      oprot.writeFieldBegin('orderId', TType.I64, 4)
4628
      oprot.writeI64(self.orderId)
4629
      oprot.writeFieldEnd()
5944 mandeep.dh 4630
    if self.quantity is not None:
5966 rajveer 4631
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 5)
5944 mandeep.dh 4632
      oprot.writeDouble(self.quantity)
4633
      oprot.writeFieldEnd()
4634
    oprot.writeFieldStop()
4635
    oprot.writeStructEnd()
4636
 
4637
  def validate(self):
4638
    return
4639
 
4640
 
4641
  def __repr__(self):
4642
    L = ['%s=%r' % (key, value)
4643
      for key, value in self.__dict__.iteritems()]
4644
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4645
 
4646
  def __eq__(self, other):
4647
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4648
 
4649
  def __ne__(self, other):
4650
    return not (self == other)
4651
 
4652
class reduceReservationCount_result:
4653
  """
4654
  Attributes:
4655
   - success
4656
   - cex
4657
  """
4658
 
4659
  thrift_spec = (
4660
    (0, TType.BOOL, 'success', None, None, ), # 0
4661
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4662
  )
4663
 
4664
  def __init__(self, success=None, cex=None,):
4665
    self.success = success
4666
    self.cex = cex
4667
 
4668
  def read(self, iprot):
4669
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4670
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4671
      return
4672
    iprot.readStructBegin()
4673
    while True:
4674
      (fname, ftype, fid) = iprot.readFieldBegin()
4675
      if ftype == TType.STOP:
4676
        break
4677
      if fid == 0:
4678
        if ftype == TType.BOOL:
4679
          self.success = iprot.readBool();
4680
        else:
4681
          iprot.skip(ftype)
4682
      elif fid == 1:
4683
        if ftype == TType.STRUCT:
4684
          self.cex = InventoryServiceException()
4685
          self.cex.read(iprot)
4686
        else:
4687
          iprot.skip(ftype)
4688
      else:
4689
        iprot.skip(ftype)
4690
      iprot.readFieldEnd()
4691
    iprot.readStructEnd()
4692
 
4693
  def write(self, oprot):
4694
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4695
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4696
      return
4697
    oprot.writeStructBegin('reduceReservationCount_result')
4698
    if self.success is not None:
4699
      oprot.writeFieldBegin('success', TType.BOOL, 0)
4700
      oprot.writeBool(self.success)
4701
      oprot.writeFieldEnd()
4702
    if self.cex is not None:
4703
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4704
      self.cex.write(oprot)
4705
      oprot.writeFieldEnd()
4706
    oprot.writeFieldStop()
4707
    oprot.writeStructEnd()
4708
 
4709
  def validate(self):
4710
    return
4711
 
4712
 
4713
  def __repr__(self):
4714
    L = ['%s=%r' % (key, value)
4715
      for key, value in self.__dict__.iteritems()]
4716
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4717
 
4718
  def __eq__(self, other):
4719
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4720
 
4721
  def __ne__(self, other):
4722
    return not (self == other)
4723
 
4724
class getItemPricing_args:
4725
  """
4726
  Attributes:
4727
   - itemId
4728
   - vendorId
4729
  """
4730
 
4731
  thrift_spec = (
4732
    None, # 0
4733
    (1, TType.I64, 'itemId', None, None, ), # 1
4734
    (2, TType.I64, 'vendorId', None, None, ), # 2
4735
  )
4736
 
4737
  def __init__(self, itemId=None, vendorId=None,):
4738
    self.itemId = itemId
4739
    self.vendorId = vendorId
4740
 
4741
  def read(self, iprot):
4742
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4743
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4744
      return
4745
    iprot.readStructBegin()
4746
    while True:
4747
      (fname, ftype, fid) = iprot.readFieldBegin()
4748
      if ftype == TType.STOP:
4749
        break
4750
      if fid == 1:
4751
        if ftype == TType.I64:
4752
          self.itemId = iprot.readI64();
4753
        else:
4754
          iprot.skip(ftype)
4755
      elif fid == 2:
4756
        if ftype == TType.I64:
4757
          self.vendorId = iprot.readI64();
4758
        else:
4759
          iprot.skip(ftype)
4760
      else:
4761
        iprot.skip(ftype)
4762
      iprot.readFieldEnd()
4763
    iprot.readStructEnd()
4764
 
4765
  def write(self, oprot):
4766
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4767
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4768
      return
4769
    oprot.writeStructBegin('getItemPricing_args')
4770
    if self.itemId is not None:
4771
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4772
      oprot.writeI64(self.itemId)
4773
      oprot.writeFieldEnd()
4774
    if self.vendorId is not None:
4775
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
4776
      oprot.writeI64(self.vendorId)
4777
      oprot.writeFieldEnd()
4778
    oprot.writeFieldStop()
4779
    oprot.writeStructEnd()
4780
 
4781
  def validate(self):
4782
    return
4783
 
4784
 
4785
  def __repr__(self):
4786
    L = ['%s=%r' % (key, value)
4787
      for key, value in self.__dict__.iteritems()]
4788
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4789
 
4790
  def __eq__(self, other):
4791
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4792
 
4793
  def __ne__(self, other):
4794
    return not (self == other)
4795
 
4796
class getItemPricing_result:
4797
  """
4798
  Attributes:
4799
   - success
4800
   - cex
4801
  """
4802
 
4803
  thrift_spec = (
4804
    (0, TType.STRUCT, 'success', (VendorItemPricing, VendorItemPricing.thrift_spec), None, ), # 0
4805
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4806
  )
4807
 
4808
  def __init__(self, success=None, cex=None,):
4809
    self.success = success
4810
    self.cex = cex
4811
 
4812
  def read(self, iprot):
4813
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4814
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4815
      return
4816
    iprot.readStructBegin()
4817
    while True:
4818
      (fname, ftype, fid) = iprot.readFieldBegin()
4819
      if ftype == TType.STOP:
4820
        break
4821
      if fid == 0:
4822
        if ftype == TType.STRUCT:
4823
          self.success = VendorItemPricing()
4824
          self.success.read(iprot)
4825
        else:
4826
          iprot.skip(ftype)
4827
      elif fid == 1:
4828
        if ftype == TType.STRUCT:
4829
          self.cex = InventoryServiceException()
4830
          self.cex.read(iprot)
4831
        else:
4832
          iprot.skip(ftype)
4833
      else:
4834
        iprot.skip(ftype)
4835
      iprot.readFieldEnd()
4836
    iprot.readStructEnd()
4837
 
4838
  def write(self, oprot):
4839
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4840
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4841
      return
4842
    oprot.writeStructBegin('getItemPricing_result')
4843
    if self.success is not None:
4844
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4845
      self.success.write(oprot)
4846
      oprot.writeFieldEnd()
4847
    if self.cex is not None:
4848
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4849
      self.cex.write(oprot)
4850
      oprot.writeFieldEnd()
4851
    oprot.writeFieldStop()
4852
    oprot.writeStructEnd()
4853
 
4854
  def validate(self):
4855
    return
4856
 
4857
 
4858
  def __repr__(self):
4859
    L = ['%s=%r' % (key, value)
4860
      for key, value in self.__dict__.iteritems()]
4861
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4862
 
4863
  def __eq__(self, other):
4864
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4865
 
4866
  def __ne__(self, other):
4867
    return not (self == other)
4868
 
4869
class getAllItemPricing_args:
4870
  """
4871
  Attributes:
4872
   - itemId
4873
  """
4874
 
4875
  thrift_spec = (
4876
    None, # 0
4877
    (1, TType.I64, 'itemId', None, None, ), # 1
4878
  )
4879
 
4880
  def __init__(self, itemId=None,):
4881
    self.itemId = itemId
4882
 
4883
  def read(self, iprot):
4884
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4885
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4886
      return
4887
    iprot.readStructBegin()
4888
    while True:
4889
      (fname, ftype, fid) = iprot.readFieldBegin()
4890
      if ftype == TType.STOP:
4891
        break
4892
      if fid == 1:
4893
        if ftype == TType.I64:
4894
          self.itemId = iprot.readI64();
4895
        else:
4896
          iprot.skip(ftype)
4897
      else:
4898
        iprot.skip(ftype)
4899
      iprot.readFieldEnd()
4900
    iprot.readStructEnd()
4901
 
4902
  def write(self, oprot):
4903
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4904
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4905
      return
4906
    oprot.writeStructBegin('getAllItemPricing_args')
4907
    if self.itemId is not None:
4908
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4909
      oprot.writeI64(self.itemId)
4910
      oprot.writeFieldEnd()
4911
    oprot.writeFieldStop()
4912
    oprot.writeStructEnd()
4913
 
4914
  def validate(self):
4915
    return
4916
 
4917
 
4918
  def __repr__(self):
4919
    L = ['%s=%r' % (key, value)
4920
      for key, value in self.__dict__.iteritems()]
4921
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4922
 
4923
  def __eq__(self, other):
4924
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4925
 
4926
  def __ne__(self, other):
4927
    return not (self == other)
4928
 
4929
class getAllItemPricing_result:
4930
  """
4931
  Attributes:
4932
   - success
4933
   - cex
4934
  """
4935
 
4936
  thrift_spec = (
4937
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemPricing, VendorItemPricing.thrift_spec)), None, ), # 0
4938
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
4939
  )
4940
 
4941
  def __init__(self, success=None, cex=None,):
4942
    self.success = success
4943
    self.cex = cex
4944
 
4945
  def read(self, iprot):
4946
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4947
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4948
      return
4949
    iprot.readStructBegin()
4950
    while True:
4951
      (fname, ftype, fid) = iprot.readFieldBegin()
4952
      if ftype == TType.STOP:
4953
        break
4954
      if fid == 0:
4955
        if ftype == TType.LIST:
4956
          self.success = []
4957
          (_etype60, _size57) = iprot.readListBegin()
4958
          for _i61 in xrange(_size57):
4959
            _elem62 = VendorItemPricing()
4960
            _elem62.read(iprot)
4961
            self.success.append(_elem62)
4962
          iprot.readListEnd()
4963
        else:
4964
          iprot.skip(ftype)
4965
      elif fid == 1:
4966
        if ftype == TType.STRUCT:
4967
          self.cex = InventoryServiceException()
4968
          self.cex.read(iprot)
4969
        else:
4970
          iprot.skip(ftype)
4971
      else:
4972
        iprot.skip(ftype)
4973
      iprot.readFieldEnd()
4974
    iprot.readStructEnd()
4975
 
4976
  def write(self, oprot):
4977
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4978
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4979
      return
4980
    oprot.writeStructBegin('getAllItemPricing_result')
4981
    if self.success is not None:
4982
      oprot.writeFieldBegin('success', TType.LIST, 0)
4983
      oprot.writeListBegin(TType.STRUCT, len(self.success))
4984
      for iter63 in self.success:
4985
        iter63.write(oprot)
4986
      oprot.writeListEnd()
4987
      oprot.writeFieldEnd()
4988
    if self.cex is not None:
4989
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4990
      self.cex.write(oprot)
4991
      oprot.writeFieldEnd()
4992
    oprot.writeFieldStop()
4993
    oprot.writeStructEnd()
4994
 
4995
  def validate(self):
4996
    return
4997
 
4998
 
4999
  def __repr__(self):
5000
    L = ['%s=%r' % (key, value)
5001
      for key, value in self.__dict__.iteritems()]
5002
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5003
 
5004
  def __eq__(self, other):
5005
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5006
 
5007
  def __ne__(self, other):
5008
    return not (self == other)
5009
 
5010
class addVendorItemPricing_args:
5011
  """
5012
  Attributes:
5013
   - vendorItemPricing
5014
  """
5015
 
5016
  thrift_spec = (
5017
    None, # 0
5018
    (1, TType.STRUCT, 'vendorItemPricing', (VendorItemPricing, VendorItemPricing.thrift_spec), None, ), # 1
5019
  )
5020
 
5021
  def __init__(self, vendorItemPricing=None,):
5022
    self.vendorItemPricing = vendorItemPricing
5023
 
5024
  def read(self, iprot):
5025
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5026
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5027
      return
5028
    iprot.readStructBegin()
5029
    while True:
5030
      (fname, ftype, fid) = iprot.readFieldBegin()
5031
      if ftype == TType.STOP:
5032
        break
5033
      if fid == 1:
5034
        if ftype == TType.STRUCT:
5035
          self.vendorItemPricing = VendorItemPricing()
5036
          self.vendorItemPricing.read(iprot)
5037
        else:
5038
          iprot.skip(ftype)
5039
      else:
5040
        iprot.skip(ftype)
5041
      iprot.readFieldEnd()
5042
    iprot.readStructEnd()
5043
 
5044
  def write(self, oprot):
5045
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5046
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5047
      return
5048
    oprot.writeStructBegin('addVendorItemPricing_args')
5049
    if self.vendorItemPricing is not None:
5050
      oprot.writeFieldBegin('vendorItemPricing', TType.STRUCT, 1)
5051
      self.vendorItemPricing.write(oprot)
5052
      oprot.writeFieldEnd()
5053
    oprot.writeFieldStop()
5054
    oprot.writeStructEnd()
5055
 
5056
  def validate(self):
5057
    return
5058
 
5059
 
5060
  def __repr__(self):
5061
    L = ['%s=%r' % (key, value)
5062
      for key, value in self.__dict__.iteritems()]
5063
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5064
 
5065
  def __eq__(self, other):
5066
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5067
 
5068
  def __ne__(self, other):
5069
    return not (self == other)
5070
 
5071
class addVendorItemPricing_result:
5072
  """
5073
  Attributes:
5074
   - cex
5075
  """
5076
 
5077
  thrift_spec = (
5078
    None, # 0
5079
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5080
  )
5081
 
5082
  def __init__(self, cex=None,):
5083
    self.cex = cex
5084
 
5085
  def read(self, iprot):
5086
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5087
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5088
      return
5089
    iprot.readStructBegin()
5090
    while True:
5091
      (fname, ftype, fid) = iprot.readFieldBegin()
5092
      if ftype == TType.STOP:
5093
        break
5094
      if fid == 1:
5095
        if ftype == TType.STRUCT:
5096
          self.cex = InventoryServiceException()
5097
          self.cex.read(iprot)
5098
        else:
5099
          iprot.skip(ftype)
5100
      else:
5101
        iprot.skip(ftype)
5102
      iprot.readFieldEnd()
5103
    iprot.readStructEnd()
5104
 
5105
  def write(self, oprot):
5106
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5107
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5108
      return
5109
    oprot.writeStructBegin('addVendorItemPricing_result')
5110
    if self.cex is not None:
5111
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5112
      self.cex.write(oprot)
5113
      oprot.writeFieldEnd()
5114
    oprot.writeFieldStop()
5115
    oprot.writeStructEnd()
5116
 
5117
  def validate(self):
5118
    return
5119
 
5120
 
5121
  def __repr__(self):
5122
    L = ['%s=%r' % (key, value)
5123
      for key, value in self.__dict__.iteritems()]
5124
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5125
 
5126
  def __eq__(self, other):
5127
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5128
 
5129
  def __ne__(self, other):
5130
    return not (self == other)
5131
 
5132
class getVendor_args:
5133
  """
5134
  Attributes:
5135
   - vendorId
5136
  """
5137
 
5138
  thrift_spec = (
5139
    None, # 0
5140
    (1, TType.I64, 'vendorId', None, None, ), # 1
5141
  )
5142
 
5143
  def __init__(self, vendorId=None,):
5144
    self.vendorId = vendorId
5145
 
5146
  def read(self, iprot):
5147
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5148
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5149
      return
5150
    iprot.readStructBegin()
5151
    while True:
5152
      (fname, ftype, fid) = iprot.readFieldBegin()
5153
      if ftype == TType.STOP:
5154
        break
5155
      if fid == 1:
5156
        if ftype == TType.I64:
5157
          self.vendorId = iprot.readI64();
5158
        else:
5159
          iprot.skip(ftype)
5160
      else:
5161
        iprot.skip(ftype)
5162
      iprot.readFieldEnd()
5163
    iprot.readStructEnd()
5164
 
5165
  def write(self, oprot):
5166
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5167
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5168
      return
5169
    oprot.writeStructBegin('getVendor_args')
5170
    if self.vendorId is not None:
5171
      oprot.writeFieldBegin('vendorId', TType.I64, 1)
5172
      oprot.writeI64(self.vendorId)
5173
      oprot.writeFieldEnd()
5174
    oprot.writeFieldStop()
5175
    oprot.writeStructEnd()
5176
 
5177
  def validate(self):
5178
    return
5179
 
5180
 
5181
  def __repr__(self):
5182
    L = ['%s=%r' % (key, value)
5183
      for key, value in self.__dict__.iteritems()]
5184
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5185
 
5186
  def __eq__(self, other):
5187
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5188
 
5189
  def __ne__(self, other):
5190
    return not (self == other)
5191
 
5192
class getVendor_result:
5193
  """
5194
  Attributes:
5195
   - success
5196
  """
5197
 
5198
  thrift_spec = (
5199
    (0, TType.STRUCT, 'success', (Vendor, Vendor.thrift_spec), None, ), # 0
5200
  )
5201
 
5202
  def __init__(self, success=None,):
5203
    self.success = success
5204
 
5205
  def read(self, iprot):
5206
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5207
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5208
      return
5209
    iprot.readStructBegin()
5210
    while True:
5211
      (fname, ftype, fid) = iprot.readFieldBegin()
5212
      if ftype == TType.STOP:
5213
        break
5214
      if fid == 0:
5215
        if ftype == TType.STRUCT:
5216
          self.success = Vendor()
5217
          self.success.read(iprot)
5218
        else:
5219
          iprot.skip(ftype)
5220
      else:
5221
        iprot.skip(ftype)
5222
      iprot.readFieldEnd()
5223
    iprot.readStructEnd()
5224
 
5225
  def write(self, oprot):
5226
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5227
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5228
      return
5229
    oprot.writeStructBegin('getVendor_result')
5230
    if self.success is not None:
5231
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5232
      self.success.write(oprot)
5233
      oprot.writeFieldEnd()
5234
    oprot.writeFieldStop()
5235
    oprot.writeStructEnd()
5236
 
5237
  def validate(self):
5238
    return
5239
 
5240
 
5241
  def __repr__(self):
5242
    L = ['%s=%r' % (key, value)
5243
      for key, value in self.__dict__.iteritems()]
5244
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5245
 
5246
  def __eq__(self, other):
5247
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5248
 
5249
  def __ne__(self, other):
5250
    return not (self == other)
5251
 
5252
class getAllVendors_args:
5253
 
5254
  thrift_spec = (
5255
  )
5256
 
5257
  def read(self, iprot):
5258
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5259
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5260
      return
5261
    iprot.readStructBegin()
5262
    while True:
5263
      (fname, ftype, fid) = iprot.readFieldBegin()
5264
      if ftype == TType.STOP:
5265
        break
5266
      else:
5267
        iprot.skip(ftype)
5268
      iprot.readFieldEnd()
5269
    iprot.readStructEnd()
5270
 
5271
  def write(self, oprot):
5272
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5273
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5274
      return
5275
    oprot.writeStructBegin('getAllVendors_args')
5276
    oprot.writeFieldStop()
5277
    oprot.writeStructEnd()
5278
 
5279
  def validate(self):
5280
    return
5281
 
5282
 
5283
  def __repr__(self):
5284
    L = ['%s=%r' % (key, value)
5285
      for key, value in self.__dict__.iteritems()]
5286
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5287
 
5288
  def __eq__(self, other):
5289
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5290
 
5291
  def __ne__(self, other):
5292
    return not (self == other)
5293
 
5294
class getAllVendors_result:
5295
  """
5296
  Attributes:
5297
   - success
5298
  """
5299
 
5300
  thrift_spec = (
5301
    (0, TType.LIST, 'success', (TType.STRUCT,(Vendor, Vendor.thrift_spec)), None, ), # 0
5302
  )
5303
 
5304
  def __init__(self, success=None,):
5305
    self.success = success
5306
 
5307
  def read(self, iprot):
5308
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5309
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5310
      return
5311
    iprot.readStructBegin()
5312
    while True:
5313
      (fname, ftype, fid) = iprot.readFieldBegin()
5314
      if ftype == TType.STOP:
5315
        break
5316
      if fid == 0:
5317
        if ftype == TType.LIST:
5318
          self.success = []
5319
          (_etype67, _size64) = iprot.readListBegin()
5320
          for _i68 in xrange(_size64):
5321
            _elem69 = Vendor()
5322
            _elem69.read(iprot)
5323
            self.success.append(_elem69)
5324
          iprot.readListEnd()
5325
        else:
5326
          iprot.skip(ftype)
5327
      else:
5328
        iprot.skip(ftype)
5329
      iprot.readFieldEnd()
5330
    iprot.readStructEnd()
5331
 
5332
  def write(self, oprot):
5333
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5334
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5335
      return
5336
    oprot.writeStructBegin('getAllVendors_result')
5337
    if self.success is not None:
5338
      oprot.writeFieldBegin('success', TType.LIST, 0)
5339
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5340
      for iter70 in self.success:
5341
        iter70.write(oprot)
5342
      oprot.writeListEnd()
5343
      oprot.writeFieldEnd()
5344
    oprot.writeFieldStop()
5345
    oprot.writeStructEnd()
5346
 
5347
  def validate(self):
5348
    return
5349
 
5350
 
5351
  def __repr__(self):
5352
    L = ['%s=%r' % (key, value)
5353
      for key, value in self.__dict__.iteritems()]
5354
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5355
 
5356
  def __eq__(self, other):
5357
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5358
 
5359
  def __ne__(self, other):
5360
    return not (self == other)
5361
 
5362
class addVendorItemMapping_args:
5363
  """
5364
  Attributes:
5365
   - key
5366
   - vendorItemMapping
5367
  """
5368
 
5369
  thrift_spec = (
5370
    None, # 0
5371
    (1, TType.STRING, 'key', None, None, ), # 1
5372
    (2, TType.STRUCT, 'vendorItemMapping', (VendorItemMapping, VendorItemMapping.thrift_spec), None, ), # 2
5373
  )
5374
 
5375
  def __init__(self, key=None, vendorItemMapping=None,):
5376
    self.key = key
5377
    self.vendorItemMapping = vendorItemMapping
5378
 
5379
  def read(self, iprot):
5380
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5381
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5382
      return
5383
    iprot.readStructBegin()
5384
    while True:
5385
      (fname, ftype, fid) = iprot.readFieldBegin()
5386
      if ftype == TType.STOP:
5387
        break
5388
      if fid == 1:
5389
        if ftype == TType.STRING:
5390
          self.key = iprot.readString();
5391
        else:
5392
          iprot.skip(ftype)
5393
      elif fid == 2:
5394
        if ftype == TType.STRUCT:
5395
          self.vendorItemMapping = VendorItemMapping()
5396
          self.vendorItemMapping.read(iprot)
5397
        else:
5398
          iprot.skip(ftype)
5399
      else:
5400
        iprot.skip(ftype)
5401
      iprot.readFieldEnd()
5402
    iprot.readStructEnd()
5403
 
5404
  def write(self, oprot):
5405
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5406
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5407
      return
5408
    oprot.writeStructBegin('addVendorItemMapping_args')
5409
    if self.key is not None:
5410
      oprot.writeFieldBegin('key', TType.STRING, 1)
5411
      oprot.writeString(self.key)
5412
      oprot.writeFieldEnd()
5413
    if self.vendorItemMapping is not None:
5414
      oprot.writeFieldBegin('vendorItemMapping', TType.STRUCT, 2)
5415
      self.vendorItemMapping.write(oprot)
5416
      oprot.writeFieldEnd()
5417
    oprot.writeFieldStop()
5418
    oprot.writeStructEnd()
5419
 
5420
  def validate(self):
5421
    return
5422
 
5423
 
5424
  def __repr__(self):
5425
    L = ['%s=%r' % (key, value)
5426
      for key, value in self.__dict__.iteritems()]
5427
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5428
 
5429
  def __eq__(self, other):
5430
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5431
 
5432
  def __ne__(self, other):
5433
    return not (self == other)
5434
 
5435
class addVendorItemMapping_result:
5436
  """
5437
  Attributes:
5438
   - cex
5439
  """
5440
 
5441
  thrift_spec = (
5442
    None, # 0
5443
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5444
  )
5445
 
5446
  def __init__(self, cex=None,):
5447
    self.cex = cex
5448
 
5449
  def read(self, iprot):
5450
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5451
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5452
      return
5453
    iprot.readStructBegin()
5454
    while True:
5455
      (fname, ftype, fid) = iprot.readFieldBegin()
5456
      if ftype == TType.STOP:
5457
        break
5458
      if fid == 1:
5459
        if ftype == TType.STRUCT:
5460
          self.cex = InventoryServiceException()
5461
          self.cex.read(iprot)
5462
        else:
5463
          iprot.skip(ftype)
5464
      else:
5465
        iprot.skip(ftype)
5466
      iprot.readFieldEnd()
5467
    iprot.readStructEnd()
5468
 
5469
  def write(self, oprot):
5470
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5471
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5472
      return
5473
    oprot.writeStructBegin('addVendorItemMapping_result')
5474
    if self.cex is not None:
5475
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5476
      self.cex.write(oprot)
5477
      oprot.writeFieldEnd()
5478
    oprot.writeFieldStop()
5479
    oprot.writeStructEnd()
5480
 
5481
  def validate(self):
5482
    return
5483
 
5484
 
5485
  def __repr__(self):
5486
    L = ['%s=%r' % (key, value)
5487
      for key, value in self.__dict__.iteritems()]
5488
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5489
 
5490
  def __eq__(self, other):
5491
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5492
 
5493
  def __ne__(self, other):
5494
    return not (self == other)
5495
 
5496
class getVendorItemMappings_args:
5497
  """
5498
  Attributes:
5499
   - itemId
5500
  """
5501
 
5502
  thrift_spec = (
5503
    None, # 0
5504
    (1, TType.I64, 'itemId', None, None, ), # 1
5505
  )
5506
 
5507
  def __init__(self, itemId=None,):
5508
    self.itemId = itemId
5509
 
5510
  def read(self, iprot):
5511
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5512
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5513
      return
5514
    iprot.readStructBegin()
5515
    while True:
5516
      (fname, ftype, fid) = iprot.readFieldBegin()
5517
      if ftype == TType.STOP:
5518
        break
5519
      if fid == 1:
5520
        if ftype == TType.I64:
5521
          self.itemId = iprot.readI64();
5522
        else:
5523
          iprot.skip(ftype)
5524
      else:
5525
        iprot.skip(ftype)
5526
      iprot.readFieldEnd()
5527
    iprot.readStructEnd()
5528
 
5529
  def write(self, oprot):
5530
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5531
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5532
      return
5533
    oprot.writeStructBegin('getVendorItemMappings_args')
5534
    if self.itemId is not None:
5535
      oprot.writeFieldBegin('itemId', TType.I64, 1)
5536
      oprot.writeI64(self.itemId)
5537
      oprot.writeFieldEnd()
5538
    oprot.writeFieldStop()
5539
    oprot.writeStructEnd()
5540
 
5541
  def validate(self):
5542
    return
5543
 
5544
 
5545
  def __repr__(self):
5546
    L = ['%s=%r' % (key, value)
5547
      for key, value in self.__dict__.iteritems()]
5548
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5549
 
5550
  def __eq__(self, other):
5551
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5552
 
5553
  def __ne__(self, other):
5554
    return not (self == other)
5555
 
5556
class getVendorItemMappings_result:
5557
  """
5558
  Attributes:
5559
   - success
5560
   - cex
5561
  """
5562
 
5563
  thrift_spec = (
5564
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemMapping, VendorItemMapping.thrift_spec)), None, ), # 0
5565
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
5566
  )
5567
 
5568
  def __init__(self, success=None, cex=None,):
5569
    self.success = success
5570
    self.cex = cex
5571
 
5572
  def read(self, iprot):
5573
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5574
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5575
      return
5576
    iprot.readStructBegin()
5577
    while True:
5578
      (fname, ftype, fid) = iprot.readFieldBegin()
5579
      if ftype == TType.STOP:
5580
        break
5581
      if fid == 0:
5582
        if ftype == TType.LIST:
5583
          self.success = []
5584
          (_etype74, _size71) = iprot.readListBegin()
5585
          for _i75 in xrange(_size71):
5586
            _elem76 = VendorItemMapping()
5587
            _elem76.read(iprot)
5588
            self.success.append(_elem76)
5589
          iprot.readListEnd()
5590
        else:
5591
          iprot.skip(ftype)
5592
      elif fid == 1:
5593
        if ftype == TType.STRUCT:
5594
          self.cex = InventoryServiceException()
5595
          self.cex.read(iprot)
5596
        else:
5597
          iprot.skip(ftype)
5598
      else:
5599
        iprot.skip(ftype)
5600
      iprot.readFieldEnd()
5601
    iprot.readStructEnd()
5602
 
5603
  def write(self, oprot):
5604
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5605
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5606
      return
5607
    oprot.writeStructBegin('getVendorItemMappings_result')
5608
    if self.success is not None:
5609
      oprot.writeFieldBegin('success', TType.LIST, 0)
5610
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5611
      for iter77 in self.success:
5612
        iter77.write(oprot)
5613
      oprot.writeListEnd()
5614
      oprot.writeFieldEnd()
5615
    if self.cex is not None:
5616
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5617
      self.cex.write(oprot)
5618
      oprot.writeFieldEnd()
5619
    oprot.writeFieldStop()
5620
    oprot.writeStructEnd()
5621
 
5622
  def validate(self):
5623
    return
5624
 
5625
 
5626
  def __repr__(self):
5627
    L = ['%s=%r' % (key, value)
5628
      for key, value in self.__dict__.iteritems()]
5629
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5630
 
5631
  def __eq__(self, other):
5632
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5633
 
5634
  def __ne__(self, other):
5635
    return not (self == other)
5636
 
5637
class getPendingOrdersInventory_args:
5638
  """
5639
  Attributes:
5640
   - vendorid
5641
  """
5642
 
5643
  thrift_spec = (
5644
    None, # 0
5645
    (1, TType.I64, 'vendorid', None, None, ), # 1
5646
  )
5647
 
5648
  def __init__(self, vendorid=None,):
5649
    self.vendorid = vendorid
5650
 
5651
  def read(self, iprot):
5652
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5653
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5654
      return
5655
    iprot.readStructBegin()
5656
    while True:
5657
      (fname, ftype, fid) = iprot.readFieldBegin()
5658
      if ftype == TType.STOP:
5659
        break
5660
      if fid == 1:
5661
        if ftype == TType.I64:
5662
          self.vendorid = iprot.readI64();
5663
        else:
5664
          iprot.skip(ftype)
5665
      else:
5666
        iprot.skip(ftype)
5667
      iprot.readFieldEnd()
5668
    iprot.readStructEnd()
5669
 
5670
  def write(self, oprot):
5671
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5672
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5673
      return
5674
    oprot.writeStructBegin('getPendingOrdersInventory_args')
5675
    if self.vendorid is not None:
5676
      oprot.writeFieldBegin('vendorid', TType.I64, 1)
5677
      oprot.writeI64(self.vendorid)
5678
      oprot.writeFieldEnd()
5679
    oprot.writeFieldStop()
5680
    oprot.writeStructEnd()
5681
 
5682
  def validate(self):
5683
    return
5684
 
5685
 
5686
  def __repr__(self):
5687
    L = ['%s=%r' % (key, value)
5688
      for key, value in self.__dict__.iteritems()]
5689
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5690
 
5691
  def __eq__(self, other):
5692
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5693
 
5694
  def __ne__(self, other):
5695
    return not (self == other)
5696
 
5697
class getPendingOrdersInventory_result:
5698
  """
5699
  Attributes:
5700
   - success
5701
  """
5702
 
5703
  thrift_spec = (
5704
    (0, TType.LIST, 'success', (TType.STRUCT,(AvailableAndReservedStock, AvailableAndReservedStock.thrift_spec)), None, ), # 0
5705
  )
5706
 
5707
  def __init__(self, success=None,):
5708
    self.success = success
5709
 
5710
  def read(self, iprot):
5711
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5712
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5713
      return
5714
    iprot.readStructBegin()
5715
    while True:
5716
      (fname, ftype, fid) = iprot.readFieldBegin()
5717
      if ftype == TType.STOP:
5718
        break
5719
      if fid == 0:
5720
        if ftype == TType.LIST:
5721
          self.success = []
5722
          (_etype81, _size78) = iprot.readListBegin()
5723
          for _i82 in xrange(_size78):
5724
            _elem83 = AvailableAndReservedStock()
5725
            _elem83.read(iprot)
5726
            self.success.append(_elem83)
5727
          iprot.readListEnd()
5728
        else:
5729
          iprot.skip(ftype)
5730
      else:
5731
        iprot.skip(ftype)
5732
      iprot.readFieldEnd()
5733
    iprot.readStructEnd()
5734
 
5735
  def write(self, oprot):
5736
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5737
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5738
      return
5739
    oprot.writeStructBegin('getPendingOrdersInventory_result')
5740
    if self.success is not None:
5741
      oprot.writeFieldBegin('success', TType.LIST, 0)
5742
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5743
      for iter84 in self.success:
5744
        iter84.write(oprot)
5745
      oprot.writeListEnd()
5746
      oprot.writeFieldEnd()
5747
    oprot.writeFieldStop()
5748
    oprot.writeStructEnd()
5749
 
5750
  def validate(self):
5751
    return
5752
 
5753
 
5754
  def __repr__(self):
5755
    L = ['%s=%r' % (key, value)
5756
      for key, value in self.__dict__.iteritems()]
5757
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5758
 
5759
  def __eq__(self, other):
5760
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5761
 
5762
  def __ne__(self, other):
5763
    return not (self == other)
5764
 
5765
class getWarehouses_args:
5766
  """
5767
  Attributes:
5768
   - warehouseType
5769
   - inventoryType
5770
   - vendorId
5771
   - billingWarehouseId
5772
   - shippingWarehouseId
5773
  """
5774
 
5775
  thrift_spec = (
5776
    None, # 0
5777
    (1, TType.I32, 'warehouseType', None, None, ), # 1
5778
    (2, TType.I32, 'inventoryType', None, None, ), # 2
5779
    (3, TType.I64, 'vendorId', None, None, ), # 3
5780
    (4, TType.I64, 'billingWarehouseId', None, None, ), # 4
5781
    (5, TType.I64, 'shippingWarehouseId', None, None, ), # 5
5782
  )
5783
 
5784
  def __init__(self, warehouseType=None, inventoryType=None, vendorId=None, billingWarehouseId=None, shippingWarehouseId=None,):
5785
    self.warehouseType = warehouseType
5786
    self.inventoryType = inventoryType
5787
    self.vendorId = vendorId
5788
    self.billingWarehouseId = billingWarehouseId
5789
    self.shippingWarehouseId = shippingWarehouseId
5790
 
5791
  def read(self, iprot):
5792
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5793
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5794
      return
5795
    iprot.readStructBegin()
5796
    while True:
5797
      (fname, ftype, fid) = iprot.readFieldBegin()
5798
      if ftype == TType.STOP:
5799
        break
5800
      if fid == 1:
5801
        if ftype == TType.I32:
5802
          self.warehouseType = iprot.readI32();
5803
        else:
5804
          iprot.skip(ftype)
5805
      elif fid == 2:
5806
        if ftype == TType.I32:
5807
          self.inventoryType = iprot.readI32();
5808
        else:
5809
          iprot.skip(ftype)
5810
      elif fid == 3:
5811
        if ftype == TType.I64:
5812
          self.vendorId = iprot.readI64();
5813
        else:
5814
          iprot.skip(ftype)
5815
      elif fid == 4:
5816
        if ftype == TType.I64:
5817
          self.billingWarehouseId = iprot.readI64();
5818
        else:
5819
          iprot.skip(ftype)
5820
      elif fid == 5:
5821
        if ftype == TType.I64:
5822
          self.shippingWarehouseId = iprot.readI64();
5823
        else:
5824
          iprot.skip(ftype)
5825
      else:
5826
        iprot.skip(ftype)
5827
      iprot.readFieldEnd()
5828
    iprot.readStructEnd()
5829
 
5830
  def write(self, oprot):
5831
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5832
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5833
      return
5834
    oprot.writeStructBegin('getWarehouses_args')
5835
    if self.warehouseType is not None:
5836
      oprot.writeFieldBegin('warehouseType', TType.I32, 1)
5837
      oprot.writeI32(self.warehouseType)
5838
      oprot.writeFieldEnd()
5839
    if self.inventoryType is not None:
5840
      oprot.writeFieldBegin('inventoryType', TType.I32, 2)
5841
      oprot.writeI32(self.inventoryType)
5842
      oprot.writeFieldEnd()
5843
    if self.vendorId is not None:
5844
      oprot.writeFieldBegin('vendorId', TType.I64, 3)
5845
      oprot.writeI64(self.vendorId)
5846
      oprot.writeFieldEnd()
5847
    if self.billingWarehouseId is not None:
5848
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 4)
5849
      oprot.writeI64(self.billingWarehouseId)
5850
      oprot.writeFieldEnd()
5851
    if self.shippingWarehouseId is not None:
5852
      oprot.writeFieldBegin('shippingWarehouseId', TType.I64, 5)
5853
      oprot.writeI64(self.shippingWarehouseId)
5854
      oprot.writeFieldEnd()
5855
    oprot.writeFieldStop()
5856
    oprot.writeStructEnd()
5857
 
5858
  def validate(self):
5859
    return
5860
 
5861
 
5862
  def __repr__(self):
5863
    L = ['%s=%r' % (key, value)
5864
      for key, value in self.__dict__.iteritems()]
5865
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5866
 
5867
  def __eq__(self, other):
5868
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5869
 
5870
  def __ne__(self, other):
5871
    return not (self == other)
5872
 
5873
class getWarehouses_result:
5874
  """
5875
  Attributes:
5876
   - success
5877
  """
5878
 
5879
  thrift_spec = (
5880
    (0, TType.LIST, 'success', (TType.STRUCT,(Warehouse, Warehouse.thrift_spec)), None, ), # 0
5881
  )
5882
 
5883
  def __init__(self, success=None,):
5884
    self.success = success
5885
 
5886
  def read(self, iprot):
5887
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5888
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5889
      return
5890
    iprot.readStructBegin()
5891
    while True:
5892
      (fname, ftype, fid) = iprot.readFieldBegin()
5893
      if ftype == TType.STOP:
5894
        break
5895
      if fid == 0:
5896
        if ftype == TType.LIST:
5897
          self.success = []
5898
          (_etype88, _size85) = iprot.readListBegin()
5899
          for _i89 in xrange(_size85):
5900
            _elem90 = Warehouse()
5901
            _elem90.read(iprot)
5902
            self.success.append(_elem90)
5903
          iprot.readListEnd()
5904
        else:
5905
          iprot.skip(ftype)
5906
      else:
5907
        iprot.skip(ftype)
5908
      iprot.readFieldEnd()
5909
    iprot.readStructEnd()
5910
 
5911
  def write(self, oprot):
5912
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5913
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5914
      return
5915
    oprot.writeStructBegin('getWarehouses_result')
5916
    if self.success is not None:
5917
      oprot.writeFieldBegin('success', TType.LIST, 0)
5918
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5919
      for iter91 in self.success:
5920
        iter91.write(oprot)
5921
      oprot.writeListEnd()
5922
      oprot.writeFieldEnd()
5923
    oprot.writeFieldStop()
5924
    oprot.writeStructEnd()
5925
 
5926
  def validate(self):
5927
    return
5928
 
5929
 
5930
  def __repr__(self):
5931
    L = ['%s=%r' % (key, value)
5932
      for key, value in self.__dict__.iteritems()]
5933
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5934
 
5935
  def __eq__(self, other):
5936
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5937
 
5938
  def __ne__(self, other):
5939
    return not (self == other)
5940
 
5941
class resetAvailability_args:
5942
  """
5943
  Attributes:
5944
   - itemKey
5945
   - vendorId
5946
   - quantity
5947
   - warehouseId
5948
  """
5949
 
5950
  thrift_spec = (
5951
    None, # 0
5952
    (1, TType.STRING, 'itemKey', None, None, ), # 1
5953
    (2, TType.I64, 'vendorId', None, None, ), # 2
5954
    (3, TType.I64, 'quantity', None, None, ), # 3
5955
    (4, TType.I64, 'warehouseId', None, None, ), # 4
5956
  )
5957
 
5958
  def __init__(self, itemKey=None, vendorId=None, quantity=None, warehouseId=None,):
5959
    self.itemKey = itemKey
5960
    self.vendorId = vendorId
5961
    self.quantity = quantity
5962
    self.warehouseId = warehouseId
5963
 
5964
  def read(self, iprot):
5965
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5966
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5967
      return
5968
    iprot.readStructBegin()
5969
    while True:
5970
      (fname, ftype, fid) = iprot.readFieldBegin()
5971
      if ftype == TType.STOP:
5972
        break
5973
      if fid == 1:
5974
        if ftype == TType.STRING:
5975
          self.itemKey = iprot.readString();
5976
        else:
5977
          iprot.skip(ftype)
5978
      elif fid == 2:
5979
        if ftype == TType.I64:
5980
          self.vendorId = iprot.readI64();
5981
        else:
5982
          iprot.skip(ftype)
5983
      elif fid == 3:
5984
        if ftype == TType.I64:
5985
          self.quantity = iprot.readI64();
5986
        else:
5987
          iprot.skip(ftype)
5988
      elif fid == 4:
5989
        if ftype == TType.I64:
5990
          self.warehouseId = iprot.readI64();
5991
        else:
5992
          iprot.skip(ftype)
5993
      else:
5994
        iprot.skip(ftype)
5995
      iprot.readFieldEnd()
5996
    iprot.readStructEnd()
5997
 
5998
  def write(self, oprot):
5999
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6000
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6001
      return
6002
    oprot.writeStructBegin('resetAvailability_args')
6003
    if self.itemKey is not None:
6004
      oprot.writeFieldBegin('itemKey', TType.STRING, 1)
6005
      oprot.writeString(self.itemKey)
6006
      oprot.writeFieldEnd()
6007
    if self.vendorId is not None:
6008
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
6009
      oprot.writeI64(self.vendorId)
6010
      oprot.writeFieldEnd()
6011
    if self.quantity is not None:
6012
      oprot.writeFieldBegin('quantity', TType.I64, 3)
6013
      oprot.writeI64(self.quantity)
6014
      oprot.writeFieldEnd()
6015
    if self.warehouseId is not None:
6016
      oprot.writeFieldBegin('warehouseId', TType.I64, 4)
6017
      oprot.writeI64(self.warehouseId)
6018
      oprot.writeFieldEnd()
6019
    oprot.writeFieldStop()
6020
    oprot.writeStructEnd()
6021
 
6022
  def validate(self):
6023
    return
6024
 
6025
 
6026
  def __repr__(self):
6027
    L = ['%s=%r' % (key, value)
6028
      for key, value in self.__dict__.iteritems()]
6029
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6030
 
6031
  def __eq__(self, other):
6032
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6033
 
6034
  def __ne__(self, other):
6035
    return not (self == other)
6036
 
6037
class resetAvailability_result:
6038
  """
6039
  Attributes:
6040
   - cex
6041
  """
6042
 
6043
  thrift_spec = (
6044
    None, # 0
6045
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6046
  )
6047
 
6048
  def __init__(self, cex=None,):
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 == 1:
6061
        if ftype == TType.STRUCT:
6062
          self.cex = InventoryServiceException()
6063
          self.cex.read(iprot)
6064
        else:
6065
          iprot.skip(ftype)
6066
      else:
6067
        iprot.skip(ftype)
6068
      iprot.readFieldEnd()
6069
    iprot.readStructEnd()
6070
 
6071
  def write(self, oprot):
6072
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6073
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6074
      return
6075
    oprot.writeStructBegin('resetAvailability_result')
6076
    if self.cex is not None:
6077
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6078
      self.cex.write(oprot)
6079
      oprot.writeFieldEnd()
6080
    oprot.writeFieldStop()
6081
    oprot.writeStructEnd()
6082
 
6083
  def validate(self):
6084
    return
6085
 
6086
 
6087
  def __repr__(self):
6088
    L = ['%s=%r' % (key, value)
6089
      for key, value in self.__dict__.iteritems()]
6090
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6091
 
6092
  def __eq__(self, other):
6093
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6094
 
6095
  def __ne__(self, other):
6096
    return not (self == other)
6097
 
6098
class resetAvailabilityForWarehouse_args:
6099
  """
6100
  Attributes:
6101
   - warehouseId
6102
  """
6103
 
6104
  thrift_spec = (
6105
    None, # 0
6106
    (1, TType.I64, 'warehouseId', None, None, ), # 1
6107
  )
6108
 
6109
  def __init__(self, warehouseId=None,):
6110
    self.warehouseId = warehouseId
6111
 
6112
  def read(self, iprot):
6113
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6114
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6115
      return
6116
    iprot.readStructBegin()
6117
    while True:
6118
      (fname, ftype, fid) = iprot.readFieldBegin()
6119
      if ftype == TType.STOP:
6120
        break
6121
      if fid == 1:
6122
        if ftype == TType.I64:
6123
          self.warehouseId = iprot.readI64();
6124
        else:
6125
          iprot.skip(ftype)
6126
      else:
6127
        iprot.skip(ftype)
6128
      iprot.readFieldEnd()
6129
    iprot.readStructEnd()
6130
 
6131
  def write(self, oprot):
6132
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6133
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6134
      return
6135
    oprot.writeStructBegin('resetAvailabilityForWarehouse_args')
6136
    if self.warehouseId is not None:
6137
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
6138
      oprot.writeI64(self.warehouseId)
6139
      oprot.writeFieldEnd()
6140
    oprot.writeFieldStop()
6141
    oprot.writeStructEnd()
6142
 
6143
  def validate(self):
6144
    return
6145
 
6146
 
6147
  def __repr__(self):
6148
    L = ['%s=%r' % (key, value)
6149
      for key, value in self.__dict__.iteritems()]
6150
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6151
 
6152
  def __eq__(self, other):
6153
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6154
 
6155
  def __ne__(self, other):
6156
    return not (self == other)
6157
 
6158
class resetAvailabilityForWarehouse_result:
6159
  """
6160
  Attributes:
6161
   - cex
6162
  """
6163
 
6164
  thrift_spec = (
6165
    None, # 0
6166
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6167
  )
6168
 
6169
  def __init__(self, cex=None,):
6170
    self.cex = cex
6171
 
6172
  def read(self, iprot):
6173
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6174
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6175
      return
6176
    iprot.readStructBegin()
6177
    while True:
6178
      (fname, ftype, fid) = iprot.readFieldBegin()
6179
      if ftype == TType.STOP:
6180
        break
6181
      if fid == 1:
6182
        if ftype == TType.STRUCT:
6183
          self.cex = InventoryServiceException()
6184
          self.cex.read(iprot)
6185
        else:
6186
          iprot.skip(ftype)
6187
      else:
6188
        iprot.skip(ftype)
6189
      iprot.readFieldEnd()
6190
    iprot.readStructEnd()
6191
 
6192
  def write(self, oprot):
6193
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6194
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6195
      return
6196
    oprot.writeStructBegin('resetAvailabilityForWarehouse_result')
6197
    if self.cex is not None:
6198
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6199
      self.cex.write(oprot)
6200
      oprot.writeFieldEnd()
6201
    oprot.writeFieldStop()
6202
    oprot.writeStructEnd()
6203
 
6204
  def validate(self):
6205
    return
6206
 
6207
 
6208
  def __repr__(self):
6209
    L = ['%s=%r' % (key, value)
6210
      for key, value in self.__dict__.iteritems()]
6211
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6212
 
6213
  def __eq__(self, other):
6214
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6215
 
6216
  def __ne__(self, other):
6217
    return not (self == other)
6218
 
6219
class getItemKeysToBeProcessed_args:
6220
  """
6221
  Attributes:
6222
   - warehouseId
6223
  """
6224
 
6225
  thrift_spec = (
6226
    None, # 0
6227
    (1, TType.I64, 'warehouseId', None, None, ), # 1
6228
  )
6229
 
6230
  def __init__(self, warehouseId=None,):
6231
    self.warehouseId = warehouseId
6232
 
6233
  def read(self, iprot):
6234
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6235
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6236
      return
6237
    iprot.readStructBegin()
6238
    while True:
6239
      (fname, ftype, fid) = iprot.readFieldBegin()
6240
      if ftype == TType.STOP:
6241
        break
6242
      if fid == 1:
6243
        if ftype == TType.I64:
6244
          self.warehouseId = iprot.readI64();
6245
        else:
6246
          iprot.skip(ftype)
6247
      else:
6248
        iprot.skip(ftype)
6249
      iprot.readFieldEnd()
6250
    iprot.readStructEnd()
6251
 
6252
  def write(self, oprot):
6253
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6254
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6255
      return
6256
    oprot.writeStructBegin('getItemKeysToBeProcessed_args')
6257
    if self.warehouseId is not None:
6258
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
6259
      oprot.writeI64(self.warehouseId)
6260
      oprot.writeFieldEnd()
6261
    oprot.writeFieldStop()
6262
    oprot.writeStructEnd()
6263
 
6264
  def validate(self):
6265
    return
6266
 
6267
 
6268
  def __repr__(self):
6269
    L = ['%s=%r' % (key, value)
6270
      for key, value in self.__dict__.iteritems()]
6271
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6272
 
6273
  def __eq__(self, other):
6274
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6275
 
6276
  def __ne__(self, other):
6277
    return not (self == other)
6278
 
6279
class getItemKeysToBeProcessed_result:
6280
  """
6281
  Attributes:
6282
   - success
6283
  """
6284
 
6285
  thrift_spec = (
6286
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
6287
  )
6288
 
6289
  def __init__(self, success=None,):
6290
    self.success = success
6291
 
6292
  def read(self, iprot):
6293
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6294
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6295
      return
6296
    iprot.readStructBegin()
6297
    while True:
6298
      (fname, ftype, fid) = iprot.readFieldBegin()
6299
      if ftype == TType.STOP:
6300
        break
6301
      if fid == 0:
6302
        if ftype == TType.LIST:
6303
          self.success = []
6304
          (_etype95, _size92) = iprot.readListBegin()
6305
          for _i96 in xrange(_size92):
6306
            _elem97 = iprot.readString();
6307
            self.success.append(_elem97)
6308
          iprot.readListEnd()
6309
        else:
6310
          iprot.skip(ftype)
6311
      else:
6312
        iprot.skip(ftype)
6313
      iprot.readFieldEnd()
6314
    iprot.readStructEnd()
6315
 
6316
  def write(self, oprot):
6317
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6318
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6319
      return
6320
    oprot.writeStructBegin('getItemKeysToBeProcessed_result')
6321
    if self.success is not None:
6322
      oprot.writeFieldBegin('success', TType.LIST, 0)
6323
      oprot.writeListBegin(TType.STRING, len(self.success))
6324
      for iter98 in self.success:
6325
        oprot.writeString(iter98)
6326
      oprot.writeListEnd()
6327
      oprot.writeFieldEnd()
6328
    oprot.writeFieldStop()
6329
    oprot.writeStructEnd()
6330
 
6331
  def validate(self):
6332
    return
6333
 
6334
 
6335
  def __repr__(self):
6336
    L = ['%s=%r' % (key, value)
6337
      for key, value in self.__dict__.iteritems()]
6338
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6339
 
6340
  def __eq__(self, other):
6341
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6342
 
6343
  def __ne__(self, other):
6344
    return not (self == other)
6345
 
6346
class markMissedInventoryUpdatesAsProcessed_args:
6347
  """
6348
  Attributes:
6349
   - itemKey
6350
   - warehouseId
6351
  """
6352
 
6353
  thrift_spec = (
6354
    None, # 0
6355
    (1, TType.STRING, 'itemKey', None, None, ), # 1
6356
    (2, TType.I64, 'warehouseId', None, None, ), # 2
6357
  )
6358
 
6359
  def __init__(self, itemKey=None, warehouseId=None,):
6360
    self.itemKey = itemKey
6361
    self.warehouseId = warehouseId
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
      if fid == 1:
6373
        if ftype == TType.STRING:
6374
          self.itemKey = iprot.readString();
6375
        else:
6376
          iprot.skip(ftype)
6377
      elif fid == 2:
6378
        if ftype == TType.I64:
6379
          self.warehouseId = iprot.readI64();
6380
        else:
6381
          iprot.skip(ftype)
6382
      else:
6383
        iprot.skip(ftype)
6384
      iprot.readFieldEnd()
6385
    iprot.readStructEnd()
6386
 
6387
  def write(self, oprot):
6388
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6389
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6390
      return
6391
    oprot.writeStructBegin('markMissedInventoryUpdatesAsProcessed_args')
6392
    if self.itemKey is not None:
6393
      oprot.writeFieldBegin('itemKey', TType.STRING, 1)
6394
      oprot.writeString(self.itemKey)
6395
      oprot.writeFieldEnd()
6396
    if self.warehouseId is not None:
6397
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
6398
      oprot.writeI64(self.warehouseId)
6399
      oprot.writeFieldEnd()
6400
    oprot.writeFieldStop()
6401
    oprot.writeStructEnd()
6402
 
6403
  def validate(self):
6404
    return
6405
 
6406
 
6407
  def __repr__(self):
6408
    L = ['%s=%r' % (key, value)
6409
      for key, value in self.__dict__.iteritems()]
6410
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6411
 
6412
  def __eq__(self, other):
6413
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6414
 
6415
  def __ne__(self, other):
6416
    return not (self == other)
6417
 
6418
class markMissedInventoryUpdatesAsProcessed_result:
6419
 
6420
  thrift_spec = (
6421
  )
6422
 
6423
  def read(self, iprot):
6424
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6425
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6426
      return
6427
    iprot.readStructBegin()
6428
    while True:
6429
      (fname, ftype, fid) = iprot.readFieldBegin()
6430
      if ftype == TType.STOP:
6431
        break
6432
      else:
6433
        iprot.skip(ftype)
6434
      iprot.readFieldEnd()
6435
    iprot.readStructEnd()
6436
 
6437
  def write(self, oprot):
6438
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6439
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6440
      return
6441
    oprot.writeStructBegin('markMissedInventoryUpdatesAsProcessed_result')
6442
    oprot.writeFieldStop()
6443
    oprot.writeStructEnd()
6444
 
6445
  def validate(self):
6446
    return
6447
 
6448
 
6449
  def __repr__(self):
6450
    L = ['%s=%r' % (key, value)
6451
      for key, value in self.__dict__.iteritems()]
6452
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6453
 
6454
  def __eq__(self, other):
6455
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6456
 
6457
  def __ne__(self, other):
6458
    return not (self == other)
6459
 
6460
class getIgnoredItemKeys_args:
6461
 
6462
  thrift_spec = (
6463
  )
6464
 
6465
  def read(self, iprot):
6466
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6467
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6468
      return
6469
    iprot.readStructBegin()
6470
    while True:
6471
      (fname, ftype, fid) = iprot.readFieldBegin()
6472
      if ftype == TType.STOP:
6473
        break
6474
      else:
6475
        iprot.skip(ftype)
6476
      iprot.readFieldEnd()
6477
    iprot.readStructEnd()
6478
 
6479
  def write(self, oprot):
6480
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6481
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6482
      return
6483
    oprot.writeStructBegin('getIgnoredItemKeys_args')
6484
    oprot.writeFieldStop()
6485
    oprot.writeStructEnd()
6486
 
6487
  def validate(self):
6488
    return
6489
 
6490
 
6491
  def __repr__(self):
6492
    L = ['%s=%r' % (key, value)
6493
      for key, value in self.__dict__.iteritems()]
6494
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6495
 
6496
  def __eq__(self, other):
6497
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6498
 
6499
  def __ne__(self, other):
6500
    return not (self == other)
6501
 
6502
class getIgnoredItemKeys_result:
6503
  """
6504
  Attributes:
6505
   - success
6506
  """
6507
 
6508
  thrift_spec = (
6509
    (0, TType.MAP, 'success', (TType.STRING,None,TType.MAP,(TType.I64,None,TType.I64,None)), None, ), # 0
6510
  )
6511
 
6512
  def __init__(self, success=None,):
6513
    self.success = success
6514
 
6515
  def read(self, iprot):
6516
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6517
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6518
      return
6519
    iprot.readStructBegin()
6520
    while True:
6521
      (fname, ftype, fid) = iprot.readFieldBegin()
6522
      if ftype == TType.STOP:
6523
        break
6524
      if fid == 0:
6525
        if ftype == TType.MAP:
6526
          self.success = {}
6527
          (_ktype100, _vtype101, _size99 ) = iprot.readMapBegin() 
6528
          for _i103 in xrange(_size99):
6529
            _key104 = iprot.readString();
6530
            _val105 = {}
6531
            (_ktype107, _vtype108, _size106 ) = iprot.readMapBegin() 
6532
            for _i110 in xrange(_size106):
6533
              _key111 = iprot.readI64();
6534
              _val112 = iprot.readI64();
6535
              _val105[_key111] = _val112
6536
            iprot.readMapEnd()
6537
            self.success[_key104] = _val105
6538
          iprot.readMapEnd()
6539
        else:
6540
          iprot.skip(ftype)
6541
      else:
6542
        iprot.skip(ftype)
6543
      iprot.readFieldEnd()
6544
    iprot.readStructEnd()
6545
 
6546
  def write(self, oprot):
6547
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6548
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6549
      return
6550
    oprot.writeStructBegin('getIgnoredItemKeys_result')
6551
    if self.success is not None:
6552
      oprot.writeFieldBegin('success', TType.MAP, 0)
6553
      oprot.writeMapBegin(TType.STRING, TType.MAP, len(self.success))
6554
      for kiter113,viter114 in self.success.items():
6555
        oprot.writeString(kiter113)
6556
        oprot.writeMapBegin(TType.I64, TType.I64, len(viter114))
6557
        for kiter115,viter116 in viter114.items():
6558
          oprot.writeI64(kiter115)
6559
          oprot.writeI64(viter116)
6560
        oprot.writeMapEnd()
6561
      oprot.writeMapEnd()
6562
      oprot.writeFieldEnd()
6563
    oprot.writeFieldStop()
6564
    oprot.writeStructEnd()
6565
 
6566
  def validate(self):
6567
    return
6568
 
6569
 
6570
  def __repr__(self):
6571
    L = ['%s=%r' % (key, value)
6572
      for key, value in self.__dict__.iteritems()]
6573
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6574
 
6575
  def __eq__(self, other):
6576
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6577
 
6578
  def __ne__(self, other):
6579
    return not (self == other)
6580
 
6581
class addBadInventory_args:
6582
  """
6583
  Attributes:
6584
   - itemId
6585
   - warehouseId
6586
   - quantity
6587
  """
6588
 
6589
  thrift_spec = (
6590
    None, # 0
6591
    (1, TType.I64, 'itemId', None, None, ), # 1
6592
    (2, TType.I64, 'warehouseId', None, None, ), # 2
6593
    (3, TType.I64, 'quantity', None, None, ), # 3
6594
  )
6595
 
6596
  def __init__(self, itemId=None, warehouseId=None, quantity=None,):
6597
    self.itemId = itemId
6598
    self.warehouseId = warehouseId
6599
    self.quantity = quantity
6600
 
6601
  def read(self, iprot):
6602
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6603
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6604
      return
6605
    iprot.readStructBegin()
6606
    while True:
6607
      (fname, ftype, fid) = iprot.readFieldBegin()
6608
      if ftype == TType.STOP:
6609
        break
6610
      if fid == 1:
6611
        if ftype == TType.I64:
6612
          self.itemId = iprot.readI64();
6613
        else:
6614
          iprot.skip(ftype)
6615
      elif fid == 2:
6616
        if ftype == TType.I64:
6617
          self.warehouseId = iprot.readI64();
6618
        else:
6619
          iprot.skip(ftype)
6620
      elif fid == 3:
6621
        if ftype == TType.I64:
6622
          self.quantity = iprot.readI64();
6623
        else:
6624
          iprot.skip(ftype)
6625
      else:
6626
        iprot.skip(ftype)
6627
      iprot.readFieldEnd()
6628
    iprot.readStructEnd()
6629
 
6630
  def write(self, oprot):
6631
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6632
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6633
      return
6634
    oprot.writeStructBegin('addBadInventory_args')
6635
    if self.itemId is not None:
6636
      oprot.writeFieldBegin('itemId', TType.I64, 1)
6637
      oprot.writeI64(self.itemId)
6638
      oprot.writeFieldEnd()
6639
    if self.warehouseId is not None:
6640
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
6641
      oprot.writeI64(self.warehouseId)
6642
      oprot.writeFieldEnd()
6643
    if self.quantity is not None:
6644
      oprot.writeFieldBegin('quantity', TType.I64, 3)
6645
      oprot.writeI64(self.quantity)
6646
      oprot.writeFieldEnd()
6647
    oprot.writeFieldStop()
6648
    oprot.writeStructEnd()
6649
 
6650
  def validate(self):
6651
    return
6652
 
6653
 
6654
  def __repr__(self):
6655
    L = ['%s=%r' % (key, value)
6656
      for key, value in self.__dict__.iteritems()]
6657
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6658
 
6659
  def __eq__(self, other):
6660
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6661
 
6662
  def __ne__(self, other):
6663
    return not (self == other)
6664
 
6665
class addBadInventory_result:
6666
  """
6667
  Attributes:
6668
   - cex
6669
  """
6670
 
6671
  thrift_spec = (
6672
    None, # 0
6673
    (1, TType.STRUCT, 'cex', (InventoryServiceException, InventoryServiceException.thrift_spec), None, ), # 1
6674
  )
6675
 
6676
  def __init__(self, cex=None,):
6677
    self.cex = cex
6678
 
6679
  def read(self, iprot):
6680
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6681
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6682
      return
6683
    iprot.readStructBegin()
6684
    while True:
6685
      (fname, ftype, fid) = iprot.readFieldBegin()
6686
      if ftype == TType.STOP:
6687
        break
6688
      if fid == 1:
6689
        if ftype == TType.STRUCT:
6690
          self.cex = InventoryServiceException()
6691
          self.cex.read(iprot)
6692
        else:
6693
          iprot.skip(ftype)
6694
      else:
6695
        iprot.skip(ftype)
6696
      iprot.readFieldEnd()
6697
    iprot.readStructEnd()
6698
 
6699
  def write(self, oprot):
6700
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6701
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6702
      return
6703
    oprot.writeStructBegin('addBadInventory_result')
6704
    if self.cex is not None:
6705
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6706
      self.cex.write(oprot)
6707
      oprot.writeFieldEnd()
6708
    oprot.writeFieldStop()
6709
    oprot.writeStructEnd()
6710
 
6711
  def validate(self):
6712
    return
6713
 
6714
 
6715
  def __repr__(self):
6716
    L = ['%s=%r' % (key, value)
6717
      for key, value in self.__dict__.iteritems()]
6718
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6719
 
6720
  def __eq__(self, other):
6721
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6722
 
6723
  def __ne__(self, other):
6724
    return not (self == other)
6725
 
6726
class getShippingLocations_args:
6727
 
6728
  thrift_spec = (
6729
  )
6730
 
6731
  def read(self, iprot):
6732
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6733
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6734
      return
6735
    iprot.readStructBegin()
6736
    while True:
6737
      (fname, ftype, fid) = iprot.readFieldBegin()
6738
      if ftype == TType.STOP:
6739
        break
6740
      else:
6741
        iprot.skip(ftype)
6742
      iprot.readFieldEnd()
6743
    iprot.readStructEnd()
6744
 
6745
  def write(self, oprot):
6746
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6747
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6748
      return
6749
    oprot.writeStructBegin('getShippingLocations_args')
6750
    oprot.writeFieldStop()
6751
    oprot.writeStructEnd()
6752
 
6753
  def validate(self):
6754
    return
6755
 
6756
 
6757
  def __repr__(self):
6758
    L = ['%s=%r' % (key, value)
6759
      for key, value in self.__dict__.iteritems()]
6760
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6761
 
6762
  def __eq__(self, other):
6763
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6764
 
6765
  def __ne__(self, other):
6766
    return not (self == other)
6767
 
6768
class getShippingLocations_result:
6769
  """
6770
  Attributes:
6771
   - success
6772
  """
6773
 
6774
  thrift_spec = (
6775
    (0, TType.LIST, 'success', (TType.STRUCT,(Warehouse, Warehouse.thrift_spec)), None, ), # 0
6776
  )
6777
 
6778
  def __init__(self, success=None,):
6779
    self.success = success
6780
 
6781
  def read(self, iprot):
6782
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6783
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6784
      return
6785
    iprot.readStructBegin()
6786
    while True:
6787
      (fname, ftype, fid) = iprot.readFieldBegin()
6788
      if ftype == TType.STOP:
6789
        break
6790
      if fid == 0:
6791
        if ftype == TType.LIST:
6792
          self.success = []
6793
          (_etype120, _size117) = iprot.readListBegin()
6794
          for _i121 in xrange(_size117):
6795
            _elem122 = Warehouse()
6796
            _elem122.read(iprot)
6797
            self.success.append(_elem122)
6798
          iprot.readListEnd()
6799
        else:
6800
          iprot.skip(ftype)
6801
      else:
6802
        iprot.skip(ftype)
6803
      iprot.readFieldEnd()
6804
    iprot.readStructEnd()
6805
 
6806
  def write(self, oprot):
6807
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6808
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6809
      return
6810
    oprot.writeStructBegin('getShippingLocations_result')
6811
    if self.success is not None:
6812
      oprot.writeFieldBegin('success', TType.LIST, 0)
6813
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6814
      for iter123 in self.success:
6815
        iter123.write(oprot)
6816
      oprot.writeListEnd()
6817
      oprot.writeFieldEnd()
6818
    oprot.writeFieldStop()
6819
    oprot.writeStructEnd()
6820
 
6821
  def validate(self):
6822
    return
6823
 
6824
 
6825
  def __repr__(self):
6826
    L = ['%s=%r' % (key, value)
6827
      for key, value in self.__dict__.iteritems()]
6828
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6829
 
6830
  def __eq__(self, other):
6831
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6832
 
6833
  def __ne__(self, other):
6834
    return not (self == other)
6835
 
6836
class getAllVendorItemMappings_args:
6837
 
6838
  thrift_spec = (
6839
  )
6840
 
6841
  def read(self, iprot):
6842
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6843
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6844
      return
6845
    iprot.readStructBegin()
6846
    while True:
6847
      (fname, ftype, fid) = iprot.readFieldBegin()
6848
      if ftype == TType.STOP:
6849
        break
6850
      else:
6851
        iprot.skip(ftype)
6852
      iprot.readFieldEnd()
6853
    iprot.readStructEnd()
6854
 
6855
  def write(self, oprot):
6856
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6857
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6858
      return
6859
    oprot.writeStructBegin('getAllVendorItemMappings_args')
6860
    oprot.writeFieldStop()
6861
    oprot.writeStructEnd()
6862
 
6863
  def validate(self):
6864
    return
6865
 
6866
 
6867
  def __repr__(self):
6868
    L = ['%s=%r' % (key, value)
6869
      for key, value in self.__dict__.iteritems()]
6870
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6871
 
6872
  def __eq__(self, other):
6873
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6874
 
6875
  def __ne__(self, other):
6876
    return not (self == other)
6877
 
6878
class getAllVendorItemMappings_result:
6879
  """
6880
  Attributes:
6881
   - success
6882
  """
6883
 
6884
  thrift_spec = (
6885
    (0, TType.LIST, 'success', (TType.STRUCT,(VendorItemMapping, VendorItemMapping.thrift_spec)), None, ), # 0
6886
  )
6887
 
6888
  def __init__(self, success=None,):
6889
    self.success = success
6890
 
6891
  def read(self, iprot):
6892
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6893
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6894
      return
6895
    iprot.readStructBegin()
6896
    while True:
6897
      (fname, ftype, fid) = iprot.readFieldBegin()
6898
      if ftype == TType.STOP:
6899
        break
6900
      if fid == 0:
6901
        if ftype == TType.LIST:
6902
          self.success = []
6903
          (_etype127, _size124) = iprot.readListBegin()
6904
          for _i128 in xrange(_size124):
6905
            _elem129 = VendorItemMapping()
6906
            _elem129.read(iprot)
6907
            self.success.append(_elem129)
6908
          iprot.readListEnd()
6909
        else:
6910
          iprot.skip(ftype)
6911
      else:
6912
        iprot.skip(ftype)
6913
      iprot.readFieldEnd()
6914
    iprot.readStructEnd()
6915
 
6916
  def write(self, oprot):
6917
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6918
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6919
      return
6920
    oprot.writeStructBegin('getAllVendorItemMappings_result')
6921
    if self.success is not None:
6922
      oprot.writeFieldBegin('success', TType.LIST, 0)
6923
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6924
      for iter130 in self.success:
6925
        iter130.write(oprot)
6926
      oprot.writeListEnd()
6927
      oprot.writeFieldEnd()
6928
    oprot.writeFieldStop()
6929
    oprot.writeStructEnd()
6930
 
6931
  def validate(self):
6932
    return
6933
 
6934
 
6935
  def __repr__(self):
6936
    L = ['%s=%r' % (key, value)
6937
      for key, value in self.__dict__.iteritems()]
6938
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6939
 
6940
  def __eq__(self, other):
6941
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6942
 
6943
  def __ne__(self, other):
6944
    return not (self == other)
6945
 
6946
class getInventorySnapshot_args:
6947
  """
6948
  Attributes:
6949
   - warehouseId
6950
  """
6951
 
6952
  thrift_spec = (
6953
    None, # 0
6954
    (1, TType.I64, 'warehouseId', None, None, ), # 1
6955
  )
6956
 
6957
  def __init__(self, warehouseId=None,):
6958
    self.warehouseId = warehouseId
6959
 
6960
  def read(self, iprot):
6961
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6962
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6963
      return
6964
    iprot.readStructBegin()
6965
    while True:
6966
      (fname, ftype, fid) = iprot.readFieldBegin()
6967
      if ftype == TType.STOP:
6968
        break
6969
      if fid == 1:
6970
        if ftype == TType.I64:
6971
          self.warehouseId = iprot.readI64();
6972
        else:
6973
          iprot.skip(ftype)
6974
      else:
6975
        iprot.skip(ftype)
6976
      iprot.readFieldEnd()
6977
    iprot.readStructEnd()
6978
 
6979
  def write(self, oprot):
6980
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6981
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6982
      return
6983
    oprot.writeStructBegin('getInventorySnapshot_args')
6984
    if self.warehouseId is not None:
6985
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
6986
      oprot.writeI64(self.warehouseId)
6987
      oprot.writeFieldEnd()
6988
    oprot.writeFieldStop()
6989
    oprot.writeStructEnd()
6990
 
6991
  def validate(self):
6992
    return
6993
 
6994
 
6995
  def __repr__(self):
6996
    L = ['%s=%r' % (key, value)
6997
      for key, value in self.__dict__.iteritems()]
6998
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6999
 
7000
  def __eq__(self, other):
7001
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7002
 
7003
  def __ne__(self, other):
7004
    return not (self == other)
7005
 
7006
class getInventorySnapshot_result:
7007
  """
7008
  Attributes:
7009
   - success
7010
  """
7011
 
7012
  thrift_spec = (
7013
    (0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(ItemInventory, ItemInventory.thrift_spec)), None, ), # 0
7014
  )
7015
 
7016
  def __init__(self, success=None,):
7017
    self.success = success
7018
 
7019
  def read(self, iprot):
7020
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7021
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7022
      return
7023
    iprot.readStructBegin()
7024
    while True:
7025
      (fname, ftype, fid) = iprot.readFieldBegin()
7026
      if ftype == TType.STOP:
7027
        break
7028
      if fid == 0:
7029
        if ftype == TType.MAP:
7030
          self.success = {}
7031
          (_ktype132, _vtype133, _size131 ) = iprot.readMapBegin() 
7032
          for _i135 in xrange(_size131):
7033
            _key136 = iprot.readI64();
7034
            _val137 = ItemInventory()
7035
            _val137.read(iprot)
7036
            self.success[_key136] = _val137
7037
          iprot.readMapEnd()
7038
        else:
7039
          iprot.skip(ftype)
7040
      else:
7041
        iprot.skip(ftype)
7042
      iprot.readFieldEnd()
7043
    iprot.readStructEnd()
7044
 
7045
  def write(self, oprot):
7046
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7047
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7048
      return
7049
    oprot.writeStructBegin('getInventorySnapshot_result')
7050
    if self.success is not None:
7051
      oprot.writeFieldBegin('success', TType.MAP, 0)
7052
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))
7053
      for kiter138,viter139 in self.success.items():
7054
        oprot.writeI64(kiter138)
7055
        viter139.write(oprot)
7056
      oprot.writeMapEnd()
7057
      oprot.writeFieldEnd()
7058
    oprot.writeFieldStop()
7059
    oprot.writeStructEnd()
7060
 
7061
  def validate(self):
7062
    return
7063
 
7064
 
7065
  def __repr__(self):
7066
    L = ['%s=%r' % (key, value)
7067
      for key, value in self.__dict__.iteritems()]
7068
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7069
 
7070
  def __eq__(self, other):
7071
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7072
 
7073
  def __ne__(self, other):
7074
    return not (self == other)
7075
 
7076
class clearItemAvailabilityCache_args:
7077
 
7078
  thrift_spec = (
7079
  )
7080
 
7081
  def read(self, iprot):
7082
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7083
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7084
      return
7085
    iprot.readStructBegin()
7086
    while True:
7087
      (fname, ftype, fid) = iprot.readFieldBegin()
7088
      if ftype == TType.STOP:
7089
        break
7090
      else:
7091
        iprot.skip(ftype)
7092
      iprot.readFieldEnd()
7093
    iprot.readStructEnd()
7094
 
7095
  def write(self, oprot):
7096
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7097
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7098
      return
7099
    oprot.writeStructBegin('clearItemAvailabilityCache_args')
7100
    oprot.writeFieldStop()
7101
    oprot.writeStructEnd()
7102
 
7103
  def validate(self):
7104
    return
7105
 
7106
 
7107
  def __repr__(self):
7108
    L = ['%s=%r' % (key, value)
7109
      for key, value in self.__dict__.iteritems()]
7110
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7111
 
7112
  def __eq__(self, other):
7113
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7114
 
7115
  def __ne__(self, other):
7116
    return not (self == other)
7117
 
7118
class clearItemAvailabilityCache_result:
7119
 
7120
  thrift_spec = (
7121
  )
7122
 
7123
  def read(self, iprot):
7124
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7125
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7126
      return
7127
    iprot.readStructBegin()
7128
    while True:
7129
      (fname, ftype, fid) = iprot.readFieldBegin()
7130
      if ftype == TType.STOP:
7131
        break
7132
      else:
7133
        iprot.skip(ftype)
7134
      iprot.readFieldEnd()
7135
    iprot.readStructEnd()
7136
 
7137
  def write(self, oprot):
7138
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7139
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7140
      return
7141
    oprot.writeStructBegin('clearItemAvailabilityCache_result')
7142
    oprot.writeFieldStop()
7143
    oprot.writeStructEnd()
7144
 
7145
  def validate(self):
7146
    return
7147
 
7148
 
7149
  def __repr__(self):
7150
    L = ['%s=%r' % (key, value)
7151
      for key, value in self.__dict__.iteritems()]
7152
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7153
 
7154
  def __eq__(self, other):
7155
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7156
 
7157
  def __ne__(self, other):
7158
    return not (self == other)
7159
 
7160
class updateVendorString_args:
7161
  """
7162
  Attributes:
7163
   - warehouseId
7164
   - vendorString
7165
  """
7166
 
7167
  thrift_spec = (
7168
    None, # 0
7169
    (1, TType.I64, 'warehouseId', None, None, ), # 1
7170
    (2, TType.STRING, 'vendorString', None, None, ), # 2
7171
  )
7172
 
7173
  def __init__(self, warehouseId=None, vendorString=None,):
7174
    self.warehouseId = warehouseId
7175
    self.vendorString = vendorString
7176
 
7177
  def read(self, iprot):
7178
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7179
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7180
      return
7181
    iprot.readStructBegin()
7182
    while True:
7183
      (fname, ftype, fid) = iprot.readFieldBegin()
7184
      if ftype == TType.STOP:
7185
        break
7186
      if fid == 1:
7187
        if ftype == TType.I64:
7188
          self.warehouseId = iprot.readI64();
7189
        else:
7190
          iprot.skip(ftype)
7191
      elif fid == 2:
7192
        if ftype == TType.STRING:
7193
          self.vendorString = iprot.readString();
7194
        else:
7195
          iprot.skip(ftype)
7196
      else:
7197
        iprot.skip(ftype)
7198
      iprot.readFieldEnd()
7199
    iprot.readStructEnd()
7200
 
7201
  def write(self, oprot):
7202
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7203
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7204
      return
7205
    oprot.writeStructBegin('updateVendorString_args')
7206
    if self.warehouseId is not None:
7207
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
7208
      oprot.writeI64(self.warehouseId)
7209
      oprot.writeFieldEnd()
7210
    if self.vendorString is not None:
7211
      oprot.writeFieldBegin('vendorString', TType.STRING, 2)
7212
      oprot.writeString(self.vendorString)
7213
      oprot.writeFieldEnd()
7214
    oprot.writeFieldStop()
7215
    oprot.writeStructEnd()
7216
 
7217
  def validate(self):
7218
    return
7219
 
7220
 
7221
  def __repr__(self):
7222
    L = ['%s=%r' % (key, value)
7223
      for key, value in self.__dict__.iteritems()]
7224
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7225
 
7226
  def __eq__(self, other):
7227
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7228
 
7229
  def __ne__(self, other):
7230
    return not (self == other)
7231
 
7232
class updateVendorString_result:
7233
 
7234
  thrift_spec = (
7235
  )
7236
 
7237
  def read(self, iprot):
7238
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7239
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7240
      return
7241
    iprot.readStructBegin()
7242
    while True:
7243
      (fname, ftype, fid) = iprot.readFieldBegin()
7244
      if ftype == TType.STOP:
7245
        break
7246
      else:
7247
        iprot.skip(ftype)
7248
      iprot.readFieldEnd()
7249
    iprot.readStructEnd()
7250
 
7251
  def write(self, oprot):
7252
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7253
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7254
      return
7255
    oprot.writeStructBegin('updateVendorString_result')
7256
    oprot.writeFieldStop()
7257
    oprot.writeStructEnd()
7258
 
7259
  def validate(self):
7260
    return
7261
 
7262
 
7263
  def __repr__(self):
7264
    L = ['%s=%r' % (key, value)
7265
      for key, value in self.__dict__.iteritems()]
7266
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7267
 
7268
  def __eq__(self, other):
7269
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7270
 
7271
  def __ne__(self, other):
7272
    return not (self == other)
6096 amit.gupta 7273
 
7274
class clearItemAvailabilityCacheForItem_args:
7275
  """
7276
  Attributes:
7277
   - item_id
7278
  """
7279
 
7280
  thrift_spec = (
7281
    None, # 0
7282
    (1, TType.I64, 'item_id', None, None, ), # 1
7283
  )
7284
 
7285
  def __init__(self, item_id=None,):
7286
    self.item_id = item_id
7287
 
7288
  def read(self, iprot):
7289
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7290
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7291
      return
7292
    iprot.readStructBegin()
7293
    while True:
7294
      (fname, ftype, fid) = iprot.readFieldBegin()
7295
      if ftype == TType.STOP:
7296
        break
7297
      if fid == 1:
7298
        if ftype == TType.I64:
7299
          self.item_id = iprot.readI64();
7300
        else:
7301
          iprot.skip(ftype)
7302
      else:
7303
        iprot.skip(ftype)
7304
      iprot.readFieldEnd()
7305
    iprot.readStructEnd()
7306
 
7307
  def write(self, oprot):
7308
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7309
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7310
      return
7311
    oprot.writeStructBegin('clearItemAvailabilityCacheForItem_args')
7312
    if self.item_id is not None:
7313
      oprot.writeFieldBegin('item_id', TType.I64, 1)
7314
      oprot.writeI64(self.item_id)
7315
      oprot.writeFieldEnd()
7316
    oprot.writeFieldStop()
7317
    oprot.writeStructEnd()
7318
 
7319
  def validate(self):
7320
    return
7321
 
7322
 
7323
  def __repr__(self):
7324
    L = ['%s=%r' % (key, value)
7325
      for key, value in self.__dict__.iteritems()]
7326
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7327
 
7328
  def __eq__(self, other):
7329
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7330
 
7331
  def __ne__(self, other):
7332
    return not (self == other)
7333
 
7334
class clearItemAvailabilityCacheForItem_result:
7335
 
7336
  thrift_spec = (
7337
  )
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
      else:
7349
        iprot.skip(ftype)
7350
      iprot.readFieldEnd()
7351
    iprot.readStructEnd()
7352
 
7353
  def write(self, oprot):
7354
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7355
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7356
      return
7357
    oprot.writeStructBegin('clearItemAvailabilityCacheForItem_result')
7358
    oprot.writeFieldStop()
7359
    oprot.writeStructEnd()
7360
 
7361
  def validate(self):
7362
    return
7363
 
7364
 
7365
  def __repr__(self):
7366
    L = ['%s=%r' % (key, value)
7367
      for key, value in self.__dict__.iteritems()]
7368
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7369
 
7370
  def __eq__(self, other):
7371
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7372
 
7373
  def __ne__(self, other):
7374
    return not (self == other)
6467 amar.kumar 7375
 
7376
class getOurWarehouseIdForVendor_args:
7377
  """
7378
  Attributes:
7379
   - vendorId
7380
  """
7381
 
7382
  thrift_spec = (
7383
    None, # 0
7384
    (1, TType.I64, 'vendorId', None, None, ), # 1
7385
  )
7386
 
7387
  def __init__(self, vendorId=None,):
7388
    self.vendorId = vendorId
7389
 
7390
  def read(self, iprot):
7391
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7392
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7393
      return
7394
    iprot.readStructBegin()
7395
    while True:
7396
      (fname, ftype, fid) = iprot.readFieldBegin()
7397
      if ftype == TType.STOP:
7398
        break
7399
      if fid == 1:
7400
        if ftype == TType.I64:
7401
          self.vendorId = iprot.readI64();
7402
        else:
7403
          iprot.skip(ftype)
7404
      else:
7405
        iprot.skip(ftype)
7406
      iprot.readFieldEnd()
7407
    iprot.readStructEnd()
7408
 
7409
  def write(self, oprot):
7410
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7411
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7412
      return
7413
    oprot.writeStructBegin('getOurWarehouseIdForVendor_args')
7414
    if self.vendorId is not None:
7415
      oprot.writeFieldBegin('vendorId', TType.I64, 1)
7416
      oprot.writeI64(self.vendorId)
7417
      oprot.writeFieldEnd()
7418
    oprot.writeFieldStop()
7419
    oprot.writeStructEnd()
7420
 
7421
  def validate(self):
7422
    return
7423
 
7424
 
7425
  def __repr__(self):
7426
    L = ['%s=%r' % (key, value)
7427
      for key, value in self.__dict__.iteritems()]
7428
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7429
 
7430
  def __eq__(self, other):
7431
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7432
 
7433
  def __ne__(self, other):
7434
    return not (self == other)
7435
 
7436
class getOurWarehouseIdForVendor_result:
7437
  """
7438
  Attributes:
7439
   - success
7440
  """
7441
 
7442
  thrift_spec = (
7443
    (0, TType.I64, 'success', None, None, ), # 0
7444
  )
7445
 
7446
  def __init__(self, success=None,):
7447
    self.success = success
7448
 
7449
  def read(self, iprot):
7450
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7451
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7452
      return
7453
    iprot.readStructBegin()
7454
    while True:
7455
      (fname, ftype, fid) = iprot.readFieldBegin()
7456
      if ftype == TType.STOP:
7457
        break
7458
      if fid == 0:
7459
        if ftype == TType.I64:
7460
          self.success = iprot.readI64();
7461
        else:
7462
          iprot.skip(ftype)
7463
      else:
7464
        iprot.skip(ftype)
7465
      iprot.readFieldEnd()
7466
    iprot.readStructEnd()
7467
 
7468
  def write(self, oprot):
7469
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7470
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7471
      return
7472
    oprot.writeStructBegin('getOurWarehouseIdForVendor_result')
7473
    if self.success is not None:
7474
      oprot.writeFieldBegin('success', TType.I64, 0)
7475
      oprot.writeI64(self.success)
7476
      oprot.writeFieldEnd()
7477
    oprot.writeFieldStop()
7478
    oprot.writeStructEnd()
7479
 
7480
  def validate(self):
7481
    return
7482
 
7483
 
7484
  def __repr__(self):
7485
    L = ['%s=%r' % (key, value)
7486
      for key, value in self.__dict__.iteritems()]
7487
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7488
 
7489
  def __eq__(self, other):
7490
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7491
 
7492
  def __ne__(self, other):
7493
    return not (self == other)
6484 amar.kumar 7494
 
7495
class getItemAvailabilitiesAtOurWarehouses_args:
7496
  """
7497
  Attributes:
7498
   - item_ids
7499
  """
7500
 
7501
  thrift_spec = (
7502
    None, # 0
7503
    (1, TType.LIST, 'item_ids', (TType.I64,None), None, ), # 1
7504
  )
7505
 
7506
  def __init__(self, item_ids=None,):
7507
    self.item_ids = item_ids
7508
 
7509
  def read(self, iprot):
7510
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7511
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7512
      return
7513
    iprot.readStructBegin()
7514
    while True:
7515
      (fname, ftype, fid) = iprot.readFieldBegin()
7516
      if ftype == TType.STOP:
7517
        break
7518
      if fid == 1:
7519
        if ftype == TType.LIST:
7520
          self.item_ids = []
7521
          (_etype143, _size140) = iprot.readListBegin()
7522
          for _i144 in xrange(_size140):
7523
            _elem145 = iprot.readI64();
7524
            self.item_ids.append(_elem145)
7525
          iprot.readListEnd()
7526
        else:
7527
          iprot.skip(ftype)
7528
      else:
7529
        iprot.skip(ftype)
7530
      iprot.readFieldEnd()
7531
    iprot.readStructEnd()
7532
 
7533
  def write(self, oprot):
7534
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7535
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7536
      return
7537
    oprot.writeStructBegin('getItemAvailabilitiesAtOurWarehouses_args')
7538
    if self.item_ids is not None:
7539
      oprot.writeFieldBegin('item_ids', TType.LIST, 1)
7540
      oprot.writeListBegin(TType.I64, len(self.item_ids))
7541
      for iter146 in self.item_ids:
7542
        oprot.writeI64(iter146)
7543
      oprot.writeListEnd()
7544
      oprot.writeFieldEnd()
7545
    oprot.writeFieldStop()
7546
    oprot.writeStructEnd()
7547
 
7548
  def validate(self):
7549
    return
7550
 
7551
 
7552
  def __repr__(self):
7553
    L = ['%s=%r' % (key, value)
7554
      for key, value in self.__dict__.iteritems()]
7555
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7556
 
7557
  def __eq__(self, other):
7558
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7559
 
7560
  def __ne__(self, other):
7561
    return not (self == other)
7562
 
7563
class getItemAvailabilitiesAtOurWarehouses_result:
7564
  """
7565
  Attributes:
7566
   - success
7567
  """
7568
 
7569
  thrift_spec = (
7570
    (0, TType.MAP, 'success', (TType.I64,None,TType.I64,None), None, ), # 0
7571
  )
7572
 
7573
  def __init__(self, success=None,):
7574
    self.success = success
7575
 
7576
  def read(self, iprot):
7577
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7578
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7579
      return
7580
    iprot.readStructBegin()
7581
    while True:
7582
      (fname, ftype, fid) = iprot.readFieldBegin()
7583
      if ftype == TType.STOP:
7584
        break
7585
      if fid == 0:
7586
        if ftype == TType.MAP:
7587
          self.success = {}
7588
          (_ktype148, _vtype149, _size147 ) = iprot.readMapBegin() 
7589
          for _i151 in xrange(_size147):
7590
            _key152 = iprot.readI64();
7591
            _val153 = iprot.readI64();
7592
            self.success[_key152] = _val153
7593
          iprot.readMapEnd()
7594
        else:
7595
          iprot.skip(ftype)
7596
      else:
7597
        iprot.skip(ftype)
7598
      iprot.readFieldEnd()
7599
    iprot.readStructEnd()
7600
 
7601
  def write(self, oprot):
7602
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7603
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7604
      return
7605
    oprot.writeStructBegin('getItemAvailabilitiesAtOurWarehouses_result')
7606
    if self.success is not None:
7607
      oprot.writeFieldBegin('success', TType.MAP, 0)
7608
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.success))
7609
      for kiter154,viter155 in self.success.items():
7610
        oprot.writeI64(kiter154)
7611
        oprot.writeI64(viter155)
7612
      oprot.writeMapEnd()
7613
      oprot.writeFieldEnd()
7614
    oprot.writeFieldStop()
7615
    oprot.writeStructEnd()
7616
 
7617
  def validate(self):
7618
    return
7619
 
7620
 
7621
  def __repr__(self):
7622
    L = ['%s=%r' % (key, value)
7623
      for key, value in self.__dict__.iteritems()]
7624
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7625
 
7626
  def __eq__(self, other):
7627
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7628
 
7629
  def __ne__(self, other):
7630
    return not (self == other)
6531 vikram.rag 7631
 
7632
class getMonitoredWarehouseForVendors_args:
7633
  """
7634
  Attributes:
7635
   - vendorIds
7636
  """
7637
 
7638
  thrift_spec = (
7639
    None, # 0
7640
    (1, TType.LIST, 'vendorIds', (TType.I64,None), None, ), # 1
7641
  )
7642
 
7643
  def __init__(self, vendorIds=None,):
7644
    self.vendorIds = vendorIds
7645
 
7646
  def read(self, iprot):
7647
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7648
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7649
      return
7650
    iprot.readStructBegin()
7651
    while True:
7652
      (fname, ftype, fid) = iprot.readFieldBegin()
7653
      if ftype == TType.STOP:
7654
        break
7655
      if fid == 1:
7656
        if ftype == TType.LIST:
7657
          self.vendorIds = []
7658
          (_etype159, _size156) = iprot.readListBegin()
7659
          for _i160 in xrange(_size156):
7660
            _elem161 = iprot.readI64();
7661
            self.vendorIds.append(_elem161)
7662
          iprot.readListEnd()
7663
        else:
7664
          iprot.skip(ftype)
7665
      else:
7666
        iprot.skip(ftype)
7667
      iprot.readFieldEnd()
7668
    iprot.readStructEnd()
7669
 
7670
  def write(self, oprot):
7671
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7672
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7673
      return
7674
    oprot.writeStructBegin('getMonitoredWarehouseForVendors_args')
7675
    if self.vendorIds is not None:
7676
      oprot.writeFieldBegin('vendorIds', TType.LIST, 1)
7677
      oprot.writeListBegin(TType.I64, len(self.vendorIds))
7678
      for iter162 in self.vendorIds:
7679
        oprot.writeI64(iter162)
7680
      oprot.writeListEnd()
7681
      oprot.writeFieldEnd()
7682
    oprot.writeFieldStop()
7683
    oprot.writeStructEnd()
7684
 
7685
  def validate(self):
7686
    return
7687
 
7688
 
7689
  def __repr__(self):
7690
    L = ['%s=%r' % (key, value)
7691
      for key, value in self.__dict__.iteritems()]
7692
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7693
 
7694
  def __eq__(self, other):
7695
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7696
 
7697
  def __ne__(self, other):
7698
    return not (self == other)
7699
 
7700
class getMonitoredWarehouseForVendors_result:
7701
  """
7702
  Attributes:
7703
   - success
7704
  """
7705
 
7706
  thrift_spec = (
7707
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
7708
  )
7709
 
7710
  def __init__(self, success=None,):
7711
    self.success = success
7712
 
7713
  def read(self, iprot):
7714
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7715
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7716
      return
7717
    iprot.readStructBegin()
7718
    while True:
7719
      (fname, ftype, fid) = iprot.readFieldBegin()
7720
      if ftype == TType.STOP:
7721
        break
7722
      if fid == 0:
7723
        if ftype == TType.LIST:
7724
          self.success = []
7725
          (_etype166, _size163) = iprot.readListBegin()
7726
          for _i167 in xrange(_size163):
7727
            _elem168 = iprot.readI64();
7728
            self.success.append(_elem168)
7729
          iprot.readListEnd()
7730
        else:
7731
          iprot.skip(ftype)
7732
      else:
7733
        iprot.skip(ftype)
7734
      iprot.readFieldEnd()
7735
    iprot.readStructEnd()
7736
 
7737
  def write(self, oprot):
7738
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7739
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7740
      return
7741
    oprot.writeStructBegin('getMonitoredWarehouseForVendors_result')
7742
    if self.success is not None:
7743
      oprot.writeFieldBegin('success', TType.LIST, 0)
7744
      oprot.writeListBegin(TType.I64, len(self.success))
7745
      for iter169 in self.success:
7746
        oprot.writeI64(iter169)
7747
      oprot.writeListEnd()
7748
      oprot.writeFieldEnd()
7749
    oprot.writeFieldStop()
7750
    oprot.writeStructEnd()
7751
 
7752
  def validate(self):
7753
    return
7754
 
7755
 
7756
  def __repr__(self):
7757
    L = ['%s=%r' % (key, value)
7758
      for key, value in self.__dict__.iteritems()]
7759
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7760
 
7761
  def __eq__(self, other):
7762
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7763
 
7764
  def __ne__(self, other):
7765
    return not (self == other)
7766
 
7767
class getIgnoredWarehouseidsAndItemids_args:
7768
 
7769
  thrift_spec = (
7770
  )
7771
 
7772
  def read(self, iprot):
7773
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7774
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7775
      return
7776
    iprot.readStructBegin()
7777
    while True:
7778
      (fname, ftype, fid) = iprot.readFieldBegin()
7779
      if ftype == TType.STOP:
7780
        break
7781
      else:
7782
        iprot.skip(ftype)
7783
      iprot.readFieldEnd()
7784
    iprot.readStructEnd()
7785
 
7786
  def write(self, oprot):
7787
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7788
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7789
      return
7790
    oprot.writeStructBegin('getIgnoredWarehouseidsAndItemids_args')
7791
    oprot.writeFieldStop()
7792
    oprot.writeStructEnd()
7793
 
7794
  def validate(self):
7795
    return
7796
 
7797
 
7798
  def __repr__(self):
7799
    L = ['%s=%r' % (key, value)
7800
      for key, value in self.__dict__.iteritems()]
7801
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7802
 
7803
  def __eq__(self, other):
7804
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7805
 
7806
  def __ne__(self, other):
7807
    return not (self == other)
7808
 
7809
class getIgnoredWarehouseidsAndItemids_result:
7810
  """
7811
  Attributes:
7812
   - success
7813
  """
7814
 
7815
  thrift_spec = (
7816
    (0, TType.LIST, 'success', (TType.STRUCT,(IgnoredInventoryUpdateItems, IgnoredInventoryUpdateItems.thrift_spec)), None, ), # 0
7817
  )
7818
 
7819
  def __init__(self, success=None,):
7820
    self.success = success
7821
 
7822
  def read(self, iprot):
7823
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7824
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7825
      return
7826
    iprot.readStructBegin()
7827
    while True:
7828
      (fname, ftype, fid) = iprot.readFieldBegin()
7829
      if ftype == TType.STOP:
7830
        break
7831
      if fid == 0:
7832
        if ftype == TType.LIST:
7833
          self.success = []
7834
          (_etype173, _size170) = iprot.readListBegin()
7835
          for _i174 in xrange(_size170):
7836
            _elem175 = IgnoredInventoryUpdateItems()
7837
            _elem175.read(iprot)
7838
            self.success.append(_elem175)
7839
          iprot.readListEnd()
7840
        else:
7841
          iprot.skip(ftype)
7842
      else:
7843
        iprot.skip(ftype)
7844
      iprot.readFieldEnd()
7845
    iprot.readStructEnd()
7846
 
7847
  def write(self, oprot):
7848
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7849
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7850
      return
7851
    oprot.writeStructBegin('getIgnoredWarehouseidsAndItemids_result')
7852
    if self.success is not None:
7853
      oprot.writeFieldBegin('success', TType.LIST, 0)
7854
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7855
      for iter176 in self.success:
7856
        iter176.write(oprot)
7857
      oprot.writeListEnd()
7858
      oprot.writeFieldEnd()
7859
    oprot.writeFieldStop()
7860
    oprot.writeStructEnd()
7861
 
7862
  def validate(self):
7863
    return
7864
 
7865
 
7866
  def __repr__(self):
7867
    L = ['%s=%r' % (key, value)
7868
      for key, value in self.__dict__.iteritems()]
7869
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7870
 
7871
  def __eq__(self, other):
7872
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7873
 
7874
  def __ne__(self, other):
7875
    return not (self == other)
7876
 
7877
class insertItemtoIgnoreInventoryUpdatelist_args:
7878
  """
7879
  Attributes:
7880
   - item_id
7881
   - warehouse_id
7882
  """
7883
 
7884
  thrift_spec = (
7885
    None, # 0
7886
    (1, TType.I64, 'item_id', None, None, ), # 1
7887
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
7888
  )
7889
 
7890
  def __init__(self, item_id=None, warehouse_id=None,):
7891
    self.item_id = item_id
7892
    self.warehouse_id = warehouse_id
7893
 
7894
  def read(self, iprot):
7895
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7896
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7897
      return
7898
    iprot.readStructBegin()
7899
    while True:
7900
      (fname, ftype, fid) = iprot.readFieldBegin()
7901
      if ftype == TType.STOP:
7902
        break
7903
      if fid == 1:
7904
        if ftype == TType.I64:
7905
          self.item_id = iprot.readI64();
7906
        else:
7907
          iprot.skip(ftype)
7908
      elif fid == 2:
7909
        if ftype == TType.I64:
7910
          self.warehouse_id = iprot.readI64();
7911
        else:
7912
          iprot.skip(ftype)
7913
      else:
7914
        iprot.skip(ftype)
7915
      iprot.readFieldEnd()
7916
    iprot.readStructEnd()
7917
 
7918
  def write(self, oprot):
7919
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7920
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7921
      return
7922
    oprot.writeStructBegin('insertItemtoIgnoreInventoryUpdatelist_args')
7923
    if self.item_id is not None:
7924
      oprot.writeFieldBegin('item_id', TType.I64, 1)
7925
      oprot.writeI64(self.item_id)
7926
      oprot.writeFieldEnd()
7927
    if self.warehouse_id is not None:
7928
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
7929
      oprot.writeI64(self.warehouse_id)
7930
      oprot.writeFieldEnd()
7931
    oprot.writeFieldStop()
7932
    oprot.writeStructEnd()
7933
 
7934
  def validate(self):
7935
    return
7936
 
7937
 
7938
  def __repr__(self):
7939
    L = ['%s=%r' % (key, value)
7940
      for key, value in self.__dict__.iteritems()]
7941
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7942
 
7943
  def __eq__(self, other):
7944
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7945
 
7946
  def __ne__(self, other):
7947
    return not (self == other)
7948
 
7949
class insertItemtoIgnoreInventoryUpdatelist_result:
7950
  """
7951
  Attributes:
7952
   - success
7953
  """
7954
 
7955
  thrift_spec = (
7956
    (0, TType.BOOL, 'success', None, None, ), # 0
7957
  )
7958
 
7959
  def __init__(self, success=None,):
7960
    self.success = success
7961
 
7962
  def read(self, iprot):
7963
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7964
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7965
      return
7966
    iprot.readStructBegin()
7967
    while True:
7968
      (fname, ftype, fid) = iprot.readFieldBegin()
7969
      if ftype == TType.STOP:
7970
        break
7971
      if fid == 0:
7972
        if ftype == TType.BOOL:
7973
          self.success = iprot.readBool();
7974
        else:
7975
          iprot.skip(ftype)
7976
      else:
7977
        iprot.skip(ftype)
7978
      iprot.readFieldEnd()
7979
    iprot.readStructEnd()
7980
 
7981
  def write(self, oprot):
7982
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7983
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7984
      return
7985
    oprot.writeStructBegin('insertItemtoIgnoreInventoryUpdatelist_result')
7986
    if self.success is not None:
7987
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7988
      oprot.writeBool(self.success)
7989
      oprot.writeFieldEnd()
7990
    oprot.writeFieldStop()
7991
    oprot.writeStructEnd()
7992
 
7993
  def validate(self):
7994
    return
7995
 
7996
 
7997
  def __repr__(self):
7998
    L = ['%s=%r' % (key, value)
7999
      for key, value in self.__dict__.iteritems()]
8000
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8001
 
8002
  def __eq__(self, other):
8003
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8004
 
8005
  def __ne__(self, other):
8006
    return not (self == other)
8007
 
8008
class deleteItemFromIgnoredInventoryUpdateList_args:
8009
  """
8010
  Attributes:
8011
   - item_id
8012
   - warehouse_id
8013
  """
8014
 
8015
  thrift_spec = (
8016
    None, # 0
8017
    (1, TType.I64, 'item_id', None, None, ), # 1
8018
    (2, TType.I64, 'warehouse_id', None, None, ), # 2
8019
  )
8020
 
8021
  def __init__(self, item_id=None, warehouse_id=None,):
8022
    self.item_id = item_id
8023
    self.warehouse_id = warehouse_id
8024
 
8025
  def read(self, iprot):
8026
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8027
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8028
      return
8029
    iprot.readStructBegin()
8030
    while True:
8031
      (fname, ftype, fid) = iprot.readFieldBegin()
8032
      if ftype == TType.STOP:
8033
        break
8034
      if fid == 1:
8035
        if ftype == TType.I64:
8036
          self.item_id = iprot.readI64();
8037
        else:
8038
          iprot.skip(ftype)
8039
      elif fid == 2:
8040
        if ftype == TType.I64:
8041
          self.warehouse_id = iprot.readI64();
8042
        else:
8043
          iprot.skip(ftype)
8044
      else:
8045
        iprot.skip(ftype)
8046
      iprot.readFieldEnd()
8047
    iprot.readStructEnd()
8048
 
8049
  def write(self, oprot):
8050
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8051
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8052
      return
8053
    oprot.writeStructBegin('deleteItemFromIgnoredInventoryUpdateList_args')
8054
    if self.item_id is not None:
8055
      oprot.writeFieldBegin('item_id', TType.I64, 1)
8056
      oprot.writeI64(self.item_id)
8057
      oprot.writeFieldEnd()
8058
    if self.warehouse_id is not None:
8059
      oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
8060
      oprot.writeI64(self.warehouse_id)
8061
      oprot.writeFieldEnd()
8062
    oprot.writeFieldStop()
8063
    oprot.writeStructEnd()
8064
 
8065
  def validate(self):
8066
    return
8067
 
8068
 
8069
  def __repr__(self):
8070
    L = ['%s=%r' % (key, value)
8071
      for key, value in self.__dict__.iteritems()]
8072
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8073
 
8074
  def __eq__(self, other):
8075
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8076
 
8077
  def __ne__(self, other):
8078
    return not (self == other)
8079
 
8080
class deleteItemFromIgnoredInventoryUpdateList_result:
8081
  """
8082
  Attributes:
8083
   - success
8084
  """
8085
 
8086
  thrift_spec = (
8087
    (0, TType.BOOL, 'success', None, None, ), # 0
8088
  )
8089
 
8090
  def __init__(self, success=None,):
8091
    self.success = success
8092
 
8093
  def read(self, iprot):
8094
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8095
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8096
      return
8097
    iprot.readStructBegin()
8098
    while True:
8099
      (fname, ftype, fid) = iprot.readFieldBegin()
8100
      if ftype == TType.STOP:
8101
        break
8102
      if fid == 0:
8103
        if ftype == TType.BOOL:
8104
          self.success = iprot.readBool();
8105
        else:
8106
          iprot.skip(ftype)
8107
      else:
8108
        iprot.skip(ftype)
8109
      iprot.readFieldEnd()
8110
    iprot.readStructEnd()
8111
 
8112
  def write(self, oprot):
8113
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8114
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8115
      return
8116
    oprot.writeStructBegin('deleteItemFromIgnoredInventoryUpdateList_result')
8117
    if self.success is not None:
8118
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8119
      oprot.writeBool(self.success)
8120
      oprot.writeFieldEnd()
8121
    oprot.writeFieldStop()
8122
    oprot.writeStructEnd()
8123
 
8124
  def validate(self):
8125
    return
8126
 
8127
 
8128
  def __repr__(self):
8129
    L = ['%s=%r' % (key, value)
8130
      for key, value in self.__dict__.iteritems()]
8131
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8132
 
8133
  def __eq__(self, other):
8134
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8135
 
8136
  def __ne__(self, other):
8137
    return not (self == other)
8138
 
8139
class getAllIgnoredInventoryupdateItemsCount_args:
8140
 
8141
  thrift_spec = (
8142
  )
8143
 
8144
  def read(self, iprot):
8145
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8146
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8147
      return
8148
    iprot.readStructBegin()
8149
    while True:
8150
      (fname, ftype, fid) = iprot.readFieldBegin()
8151
      if ftype == TType.STOP:
8152
        break
8153
      else:
8154
        iprot.skip(ftype)
8155
      iprot.readFieldEnd()
8156
    iprot.readStructEnd()
8157
 
8158
  def write(self, oprot):
8159
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8160
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8161
      return
8162
    oprot.writeStructBegin('getAllIgnoredInventoryupdateItemsCount_args')
8163
    oprot.writeFieldStop()
8164
    oprot.writeStructEnd()
8165
 
8166
  def validate(self):
8167
    return
8168
 
8169
 
8170
  def __repr__(self):
8171
    L = ['%s=%r' % (key, value)
8172
      for key, value in self.__dict__.iteritems()]
8173
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8174
 
8175
  def __eq__(self, other):
8176
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8177
 
8178
  def __ne__(self, other):
8179
    return not (self == other)
8180
 
8181
class getAllIgnoredInventoryupdateItemsCount_result:
8182
  """
8183
  Attributes:
8184
   - success
8185
  """
8186
 
8187
  thrift_spec = (
8188
    (0, TType.I32, 'success', None, None, ), # 0
8189
  )
8190
 
8191
  def __init__(self, success=None,):
8192
    self.success = success
8193
 
8194
  def read(self, iprot):
8195
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8196
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8197
      return
8198
    iprot.readStructBegin()
8199
    while True:
8200
      (fname, ftype, fid) = iprot.readFieldBegin()
8201
      if ftype == TType.STOP:
8202
        break
8203
      if fid == 0:
8204
        if ftype == TType.I32:
8205
          self.success = iprot.readI32();
8206
        else:
8207
          iprot.skip(ftype)
8208
      else:
8209
        iprot.skip(ftype)
8210
      iprot.readFieldEnd()
8211
    iprot.readStructEnd()
8212
 
8213
  def write(self, oprot):
8214
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8215
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8216
      return
8217
    oprot.writeStructBegin('getAllIgnoredInventoryupdateItemsCount_result')
8218
    if self.success is not None:
8219
      oprot.writeFieldBegin('success', TType.I32, 0)
8220
      oprot.writeI32(self.success)
8221
      oprot.writeFieldEnd()
8222
    oprot.writeFieldStop()
8223
    oprot.writeStructEnd()
8224
 
8225
  def validate(self):
8226
    return
8227
 
8228
 
8229
  def __repr__(self):
8230
    L = ['%s=%r' % (key, value)
8231
      for key, value in self.__dict__.iteritems()]
8232
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8233
 
8234
  def __eq__(self, other):
8235
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8236
 
8237
  def __ne__(self, other):
8238
    return not (self == other)
8239
 
8240
class getIgnoredInventoryUpdateItemids_args:
8241
  """
8242
  Attributes:
8243
   - offset
8244
   - limit
8245
  """
8246
 
8247
  thrift_spec = (
8248
    None, # 0
8249
    (1, TType.I32, 'offset', None, None, ), # 1
8250
    (2, TType.I32, 'limit', None, None, ), # 2
8251
  )
8252
 
8253
  def __init__(self, offset=None, limit=None,):
8254
    self.offset = offset
8255
    self.limit = limit
8256
 
8257
  def read(self, iprot):
8258
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8259
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8260
      return
8261
    iprot.readStructBegin()
8262
    while True:
8263
      (fname, ftype, fid) = iprot.readFieldBegin()
8264
      if ftype == TType.STOP:
8265
        break
8266
      if fid == 1:
8267
        if ftype == TType.I32:
8268
          self.offset = iprot.readI32();
8269
        else:
8270
          iprot.skip(ftype)
8271
      elif fid == 2:
8272
        if ftype == TType.I32:
8273
          self.limit = iprot.readI32();
8274
        else:
8275
          iprot.skip(ftype)
8276
      else:
8277
        iprot.skip(ftype)
8278
      iprot.readFieldEnd()
8279
    iprot.readStructEnd()
8280
 
8281
  def write(self, oprot):
8282
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8283
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8284
      return
8285
    oprot.writeStructBegin('getIgnoredInventoryUpdateItemids_args')
8286
    if self.offset is not None:
8287
      oprot.writeFieldBegin('offset', TType.I32, 1)
8288
      oprot.writeI32(self.offset)
8289
      oprot.writeFieldEnd()
8290
    if self.limit is not None:
8291
      oprot.writeFieldBegin('limit', TType.I32, 2)
8292
      oprot.writeI32(self.limit)
8293
      oprot.writeFieldEnd()
8294
    oprot.writeFieldStop()
8295
    oprot.writeStructEnd()
8296
 
8297
  def validate(self):
8298
    return
8299
 
8300
 
8301
  def __repr__(self):
8302
    L = ['%s=%r' % (key, value)
8303
      for key, value in self.__dict__.iteritems()]
8304
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8305
 
8306
  def __eq__(self, other):
8307
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8308
 
8309
  def __ne__(self, other):
8310
    return not (self == other)
8311
 
8312
class getIgnoredInventoryUpdateItemids_result:
8313
  """
8314
  Attributes:
8315
   - success
8316
  """
8317
 
8318
  thrift_spec = (
8319
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
8320
  )
8321
 
8322
  def __init__(self, success=None,):
8323
    self.success = success
8324
 
8325
  def read(self, iprot):
8326
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8327
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8328
      return
8329
    iprot.readStructBegin()
8330
    while True:
8331
      (fname, ftype, fid) = iprot.readFieldBegin()
8332
      if ftype == TType.STOP:
8333
        break
8334
      if fid == 0:
8335
        if ftype == TType.LIST:
8336
          self.success = []
8337
          (_etype180, _size177) = iprot.readListBegin()
8338
          for _i181 in xrange(_size177):
8339
            _elem182 = iprot.readI64();
8340
            self.success.append(_elem182)
8341
          iprot.readListEnd()
8342
        else:
8343
          iprot.skip(ftype)
8344
      else:
8345
        iprot.skip(ftype)
8346
      iprot.readFieldEnd()
8347
    iprot.readStructEnd()
8348
 
8349
  def write(self, oprot):
8350
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8351
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8352
      return
8353
    oprot.writeStructBegin('getIgnoredInventoryUpdateItemids_result')
8354
    if self.success is not None:
8355
      oprot.writeFieldBegin('success', TType.LIST, 0)
8356
      oprot.writeListBegin(TType.I64, len(self.success))
8357
      for iter183 in self.success:
8358
        oprot.writeI64(iter183)
8359
      oprot.writeListEnd()
8360
      oprot.writeFieldEnd()
8361
    oprot.writeFieldStop()
8362
    oprot.writeStructEnd()
8363
 
8364
  def validate(self):
8365
    return
8366
 
8367
 
8368
  def __repr__(self):
8369
    L = ['%s=%r' % (key, value)
8370
      for key, value in self.__dict__.iteritems()]
8371
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8372
 
8373
  def __eq__(self, other):
8374
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8375
 
8376
  def __ne__(self, other):
8377
    return not (self == other)