Subversion Repositories SmartDukaan

Rev

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

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