Subversion Repositories SmartDukaan

Rev

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

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