Subversion Repositories SmartDukaan

Rev

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

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