Subversion Repositories SmartDukaan

Rev

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