Subversion Repositories SmartDukaan

Rev

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

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