Subversion Repositories SmartDukaan

Rev

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