Subversion Repositories SmartDukaan

Rev

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