Subversion Repositories SmartDukaan

Rev

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

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