Subversion Repositories SmartDukaan

Rev

Rev 6039 | Rev 6531 | 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 addItem(self, item):
21
    """
22
    Availability and inventory attributes
23
 
24
    Parameters:
25
     - item
26
    """
27
    pass
28
 
29
  def updateItem(self, item):
30
    """
31
    Parameters:
32
     - item
33
    """
34
    pass
35
 
36
  def isActive(self, itemId):
37
    """
38
    Checks if the item given to the corresponding itemId is active. If it's active,
39
    whether it's risky and if it's risky, its inventory position.
40
 
41
    Parameters:
42
     - itemId
43
    """
44
    pass
45
 
46
  def getItemStatusDescription(self, itemId):
47
    """
48
    Parameters:
49
     - itemId
50
    """
51
    pass
52
 
53
  def startItemOn(self, item_id, timestamp):
54
    """
55
    Parameters:
56
     - item_id
57
     - timestamp
58
    """
59
    pass
60
 
61
  def retireItemOn(self, item_id, timestamp):
62
    """
63
    Parameters:
64
     - item_id
65
     - timestamp
66
    """
67
    pass
68
 
69
  def changeItemStatus(self, item_id, timestamp, newstatus):
70
    """
71
    Parameters:
72
     - item_id
73
     - timestamp
74
     - newstatus
75
    """
76
    pass
77
 
78
  def getItem(self, item_id):
79
    """
80
    Parameters:
81
     - item_id
82
    """
83
    pass
84
 
85
  def getItemsByCatalogId(self, catalog_item_id):
86
    """
87
    Parameters:
88
     - catalog_item_id
89
    """
90
    pass
91
 
92
  def getValidItemsByCatalogId(self, catalog_item_id):
93
    """
94
    Parameters:
95
     - catalog_item_id
96
    """
97
    pass
98
 
99
  def getAllItems(self, isActive):
100
    """
101
    Parameters:
102
     - isActive
103
    """
104
    pass
105
 
106
  def getAllItemsByStatus(self, itemStatus):
107
    """
108
    Parameters:
109
     - itemStatus
110
    """
111
    pass
112
 
113
  def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber):
114
    """
115
    Parameters:
116
     - entityId
117
     - category
118
     - brand
119
     - modelName
120
     - modelNumber
121
    """
122
    pass
123
 
124
  def getAllItemsInRange(self, offset, limit):
125
    """
126
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
127
 
128
    Parameters:
129
     - offset
130
     - limit
131
    """
132
    pass
133
 
134
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
135
    """
136
    Gets at most 'limit' items starting at the given offset in the given status. Returns an empty list if there are no more items at the given offset.
137
 
138
    Parameters:
139
     - itemStatus
140
     - offset
141
     - limit
142
    """
143
    pass
144
 
145
  def getItemCountByStatus(self, useStatus, itemStatus):
146
    """
147
    Gets a count of all items by status
148
 
149
    Parameters:
150
     - useStatus
151
     - itemStatus
152
    """
153
    pass
154
 
155
  def getBestSellers(self, ):
156
    pass
157
 
158
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
159
    """
160
    Parameters:
161
     - beginIndex
162
     - totalItems
163
     - brand
164
     - category
165
    """
166
    pass
167
 
168
  def getBestSellersCount(self, ):
169
    pass
170
 
171
  def getBestDeals(self, ):
172
    pass
173
 
174
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
175
    """
176
    Parameters:
177
     - beginIndex
178
     - totalItems
179
     - brand
180
     - category
181
    """
182
    pass
183
 
184
  def getBestDealsCount(self, ):
185
    pass
186
 
187
  def getComingSoon(self, ):
188
    pass
189
 
190
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
191
    """
192
    Parameters:
193
     - beginIndex
194
     - totalItems
195
     - brand
196
     - category
197
    """
198
    pass
199
 
200
  def getComingSoonCount(self, ):
201
    pass
202
 
203
  def getLatestArrivals(self, ):
204
    """
205
    Returns a list of items sorted in the descending order by start date.
206
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
207
    """
208
    pass
209
 
210
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
211
    """
212
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
213
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
214
 
215
    Parameters:
216
     - beginIndex
217
     - totalItems
218
     - brand
219
     - categories
220
    """
221
    pass
222
 
223
  def getLatestArrivalsCount(self, ):
224
    """
225
    Get the total number of latest arrivals we are willing to show.
226
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
227
    """
228
    pass
229
 
230
  def generateNewEntityID(self, ):
231
    pass
232
 
233
  def addCategory(self, category):
234
    """
235
    All category related functions
236
 
237
    Parameters:
238
     - category
239
    """
240
    pass
241
 
242
  def getCategory(self, id):
243
    """
244
    Parameters:
245
     - id
246
    """
247
    pass
248
 
249
  def getAllCategories(self, ):
250
    pass
251
 
252
  def getAllSimilarItems(self, itemId):
253
    """
254
    Returns the list of similar items.
255
 
256
    Parameters:
257
     - itemId
258
    """
259
    pass
260
 
261
  def addSimilarItem(self, itemId, catalogItemId):
262
    """
263
    Adds similar item.
264
 
265
    Parameters:
266
     - itemId
267
     - catalogItemId
268
    """
269
    pass
270
 
6512 kshitij.so 271
  def addTag(self, displayName, itemId):
272
    """
273
    Tag Related
274
 
275
    Parameters:
276
     - displayName
277
     - itemId
278
    """
279
    pass
280
 
281
  def deleteEntityTag(self, displayName, itemId):
282
    """
283
    Parameters:
284
     - displayName
285
     - itemId
286
    """
287
    pass
288
 
289
  def deleteTag(self, displayName):
290
    """
291
    Parameters:
292
     - displayName
293
    """
294
    pass
295
 
296
  def getAllTags(self, ):
297
    pass
298
 
299
  def getAllEntitiesByTagName(self, displayName):
300
    """
301
    Parameters:
302
     - displayName
303
    """
304
    pass
305
 
5944 mandeep.dh 306
  def deleteSimilarItem(self, itemId, catalogItemId):
307
    """
308
    Delete similar item.
309
 
310
    Parameters:
311
     - itemId
312
     - catalogItemId
313
    """
314
    pass
315
 
316
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
317
    """
318
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
319
    If yes, returns the itemId else returns 0
320
 
321
    Parameters:
322
     - brand
323
     - modelNumber
324
     - modelName
325
     - color
326
    """
327
    pass
328
 
329
  def validateRiskyStatus(self, itemId):
330
    """
331
    Check wether item is risky and change status if inventory is not available for risky items
332
 
333
    Parameters:
334
     - itemId
335
    """
336
    pass
337
 
338
  def changeItemRiskyFlag(self, itemId, risky):
339
    """
340
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
341
 
342
    Parameters:
343
     - itemId
344
     - risky
345
    """
346
    pass
347
 
348
  def getItemsByRiskyFlag(self, ):
349
    """
350
    Returns list of items marked as risky.
351
    """
352
    pass
353
 
354
  def getItemsForMasterSheet(self, category, brand):
355
    """
356
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
357
 
358
    Parameters:
359
     - category
360
     - brand
361
    """
362
    pass
363
 
364
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
365
    """
366
    Returns list of catalog ids of items with same similarity index as of the given itemId
367
 
368
    Parameters:
369
     - beginIndex
370
     - totalItems
371
     - itemId
372
    """
373
    pass
374
 
375
  def addProductNotification(self, itemId, email):
376
    """
377
    Add user requests for out of stock items. Once user will ask for notify me an entry will
378
 
379
    Parameters:
380
     - itemId
381
     - email
382
    """
383
    pass
384
 
385
  def sendProductNotifications(self, ):
386
    """
387
    Send the product notifications to the users for items which has stock.
388
    """
389
    pass
390
 
391
  def getAllBrandsByCategory(self, categoryId):
392
    """
393
    Returns list of brand names for a given category Id
394
 
395
    Parameters:
396
     - categoryId
397
    """
398
    pass
399
 
400
  def getAllBrands(self, ):
401
    """
402
    Returns list of brand names
403
    """
404
    pass
405
 
406
  def getAllSources(self, ):
407
    """
408
    Return list of all sources
409
    """
410
    pass
411
 
412
  def getItemPricingBySource(self, itemId, sourceId):
413
    """
414
    Returns the pricing information of an item. If no information is found, exception will be thrown.
415
 
416
    Parameters:
417
     - itemId
418
     - sourceId
419
    """
420
    pass
421
 
422
  def addSourceItemPricing(self, sourceItemPricing):
423
    """
424
    Adds prices to be displayed corresponding to the item if user comes from a source.
425
    If item is not found or source is not found, it will throw exception.
426
 
427
    Parameters:
428
     - sourceItemPricing
429
    """
430
    pass
431
 
432
  def getAllSourcePricing(self, itemId):
433
    """
434
    Returns the list of source pricing information of an item.
435
    Raises an exception if item not found corresponding to itemId
436
 
437
    Parameters:
438
     - itemId
439
    """
440
    pass
441
 
442
  def getItemForSource(self, item_id, sourceId):
443
    """
444
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
445
 
446
    Parameters:
447
     - item_id
448
     - sourceId
449
    """
450
    pass
451
 
452
  def searchItemsInRange(self, searchTerms, offset, limit):
453
    """
454
    Searches items matching the the given terms in the catalog and returns results within the specified range.
455
 
456
    Parameters:
457
     - searchTerms
458
     - offset
459
     - limit
460
    """
461
    pass
462
 
463
  def getSearchResultCount(self, searchTerms):
464
    """
465
    Gets the count of search results for the given search terms so that the user can go through all the pages.
466
 
467
    Parameters:
468
     - searchTerms
469
    """
470
    pass
471
 
472
  def getProductNotifications(self, startDateTime):
473
    """
474
    Returns a list of product notifications added after a supplied datetime
475
 
476
    Parameters:
477
     - startDateTime
478
    """
479
    pass
480
 
481
  def getProductNotificationRequestCount(self, startDateTime):
482
    """
483
    Returns a list of count of requests for product notification against each item
484
 
485
    Parameters:
486
     - startDateTime
487
    """
488
    pass
489
 
490
  def addAuthorizationLog(self, itemId, username, reason):
491
    """
492
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
493
 
494
    Parameters:
495
     - itemId
496
     - username
497
     - reason
498
    """
499
    pass
500
 
501
  def getClearanceSaleCatalogIds(self, ):
502
    pass
503
 
504
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
505
    """
506
    Parameters:
507
     - catalog_item_id
508
     - voucherType
509
     - voucherAmount
510
    """
511
    pass
512
 
513
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
514
    """
515
    Parameters:
516
     - catalog_item_id
517
     - voucherType
518
    """
519
    pass
520
 
521
  def getVoucherAmount(self, itemId, voucherType):
522
    """
523
    Parameters:
524
     - itemId
525
     - voucherType
526
    """
527
    pass
528
 
529
  def getAllItemVouchers(self, itemId):
530
    """
531
    Parameters:
532
     - itemId
533
    """
534
    pass
535
 
536
  def isValidCatalogItemId(self, catalog_item_id):
537
    """
538
    Parameters:
539
     - catalog_item_id
540
    """
541
    pass
542
 
6039 amit.gupta 543
  def getVatPercentageForItem(self, itemId, price):
544
    """
545
    Parameters:
546
     - itemId
547
     - price
548
    """
549
    pass
5944 mandeep.dh 550
 
6039 amit.gupta 551
  def getVatAmountForItem(self, itemId, price):
552
    """
553
    Parameters:
554
     - itemId
555
     - price
556
    """
557
    pass
558
 
559
 
5944 mandeep.dh 560
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
561
  def __init__(self, iprot, oprot=None):
562
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
563
 
564
  def addItem(self, item):
565
    """
566
    Availability and inventory attributes
567
 
568
    Parameters:
569
     - item
570
    """
571
    self.send_addItem(item)
572
    return self.recv_addItem()
573
 
574
  def send_addItem(self, item):
575
    self._oprot.writeMessageBegin('addItem', TMessageType.CALL, self._seqid)
576
    args = addItem_args()
577
    args.item = item
578
    args.write(self._oprot)
579
    self._oprot.writeMessageEnd()
580
    self._oprot.trans.flush()
581
 
582
  def recv_addItem(self, ):
583
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
584
    if mtype == TMessageType.EXCEPTION:
585
      x = TApplicationException()
586
      x.read(self._iprot)
587
      self._iprot.readMessageEnd()
588
      raise x
589
    result = addItem_result()
590
    result.read(self._iprot)
591
    self._iprot.readMessageEnd()
592
    if result.success is not None:
593
      return result.success
594
    if result.cex is not None:
595
      raise result.cex
596
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItem failed: unknown result");
597
 
598
  def updateItem(self, item):
599
    """
600
    Parameters:
601
     - item
602
    """
603
    self.send_updateItem(item)
604
    return self.recv_updateItem()
605
 
606
  def send_updateItem(self, item):
607
    self._oprot.writeMessageBegin('updateItem', TMessageType.CALL, self._seqid)
608
    args = updateItem_args()
609
    args.item = item
610
    args.write(self._oprot)
611
    self._oprot.writeMessageEnd()
612
    self._oprot.trans.flush()
613
 
614
  def recv_updateItem(self, ):
615
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
616
    if mtype == TMessageType.EXCEPTION:
617
      x = TApplicationException()
618
      x.read(self._iprot)
619
      self._iprot.readMessageEnd()
620
      raise x
621
    result = updateItem_result()
622
    result.read(self._iprot)
623
    self._iprot.readMessageEnd()
624
    if result.success is not None:
625
      return result.success
626
    if result.cex is not None:
627
      raise result.cex
628
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItem failed: unknown result");
629
 
630
  def isActive(self, itemId):
631
    """
632
    Checks if the item given to the corresponding itemId is active. If it's active,
633
    whether it's risky and if it's risky, its inventory position.
634
 
635
    Parameters:
636
     - itemId
637
    """
638
    self.send_isActive(itemId)
639
    return self.recv_isActive()
640
 
641
  def send_isActive(self, itemId):
642
    self._oprot.writeMessageBegin('isActive', TMessageType.CALL, self._seqid)
643
    args = isActive_args()
644
    args.itemId = itemId
645
    args.write(self._oprot)
646
    self._oprot.writeMessageEnd()
647
    self._oprot.trans.flush()
648
 
649
  def recv_isActive(self, ):
650
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
651
    if mtype == TMessageType.EXCEPTION:
652
      x = TApplicationException()
653
      x.read(self._iprot)
654
      self._iprot.readMessageEnd()
655
      raise x
656
    result = isActive_result()
657
    result.read(self._iprot)
658
    self._iprot.readMessageEnd()
659
    if result.success is not None:
660
      return result.success
661
    if result.isex is not None:
662
      raise result.isex
663
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isActive failed: unknown result");
664
 
665
  def getItemStatusDescription(self, itemId):
666
    """
667
    Parameters:
668
     - itemId
669
    """
670
    self.send_getItemStatusDescription(itemId)
671
    return self.recv_getItemStatusDescription()
672
 
673
  def send_getItemStatusDescription(self, itemId):
674
    self._oprot.writeMessageBegin('getItemStatusDescription', TMessageType.CALL, self._seqid)
675
    args = getItemStatusDescription_args()
676
    args.itemId = itemId
677
    args.write(self._oprot)
678
    self._oprot.writeMessageEnd()
679
    self._oprot.trans.flush()
680
 
681
  def recv_getItemStatusDescription(self, ):
682
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
683
    if mtype == TMessageType.EXCEPTION:
684
      x = TApplicationException()
685
      x.read(self._iprot)
686
      self._iprot.readMessageEnd()
687
      raise x
688
    result = getItemStatusDescription_result()
689
    result.read(self._iprot)
690
    self._iprot.readMessageEnd()
691
    if result.success is not None:
692
      return result.success
693
    if result.isex is not None:
694
      raise result.isex
695
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStatusDescription failed: unknown result");
696
 
697
  def startItemOn(self, item_id, timestamp):
698
    """
699
    Parameters:
700
     - item_id
701
     - timestamp
702
    """
703
    self.send_startItemOn(item_id, timestamp)
704
    self.recv_startItemOn()
705
 
706
  def send_startItemOn(self, item_id, timestamp):
707
    self._oprot.writeMessageBegin('startItemOn', TMessageType.CALL, self._seqid)
708
    args = startItemOn_args()
709
    args.item_id = item_id
710
    args.timestamp = timestamp
711
    args.write(self._oprot)
712
    self._oprot.writeMessageEnd()
713
    self._oprot.trans.flush()
714
 
715
  def recv_startItemOn(self, ):
716
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
717
    if mtype == TMessageType.EXCEPTION:
718
      x = TApplicationException()
719
      x.read(self._iprot)
720
      self._iprot.readMessageEnd()
721
      raise x
722
    result = startItemOn_result()
723
    result.read(self._iprot)
724
    self._iprot.readMessageEnd()
725
    if result.cex is not None:
726
      raise result.cex
727
    return
728
 
729
  def retireItemOn(self, item_id, timestamp):
730
    """
731
    Parameters:
732
     - item_id
733
     - timestamp
734
    """
735
    self.send_retireItemOn(item_id, timestamp)
736
    self.recv_retireItemOn()
737
 
738
  def send_retireItemOn(self, item_id, timestamp):
739
    self._oprot.writeMessageBegin('retireItemOn', TMessageType.CALL, self._seqid)
740
    args = retireItemOn_args()
741
    args.item_id = item_id
742
    args.timestamp = timestamp
743
    args.write(self._oprot)
744
    self._oprot.writeMessageEnd()
745
    self._oprot.trans.flush()
746
 
747
  def recv_retireItemOn(self, ):
748
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
749
    if mtype == TMessageType.EXCEPTION:
750
      x = TApplicationException()
751
      x.read(self._iprot)
752
      self._iprot.readMessageEnd()
753
      raise x
754
    result = retireItemOn_result()
755
    result.read(self._iprot)
756
    self._iprot.readMessageEnd()
757
    if result.cex is not None:
758
      raise result.cex
759
    return
760
 
761
  def changeItemStatus(self, item_id, timestamp, newstatus):
762
    """
763
    Parameters:
764
     - item_id
765
     - timestamp
766
     - newstatus
767
    """
768
    self.send_changeItemStatus(item_id, timestamp, newstatus)
769
    self.recv_changeItemStatus()
770
 
771
  def send_changeItemStatus(self, item_id, timestamp, newstatus):
772
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
773
    args = changeItemStatus_args()
774
    args.item_id = item_id
775
    args.timestamp = timestamp
776
    args.newstatus = newstatus
777
    args.write(self._oprot)
778
    self._oprot.writeMessageEnd()
779
    self._oprot.trans.flush()
780
 
781
  def recv_changeItemStatus(self, ):
782
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
783
    if mtype == TMessageType.EXCEPTION:
784
      x = TApplicationException()
785
      x.read(self._iprot)
786
      self._iprot.readMessageEnd()
787
      raise x
788
    result = changeItemStatus_result()
789
    result.read(self._iprot)
790
    self._iprot.readMessageEnd()
791
    if result.cex is not None:
792
      raise result.cex
793
    return
794
 
795
  def getItem(self, item_id):
796
    """
797
    Parameters:
798
     - item_id
799
    """
800
    self.send_getItem(item_id)
801
    return self.recv_getItem()
802
 
803
  def send_getItem(self, item_id):
804
    self._oprot.writeMessageBegin('getItem', TMessageType.CALL, self._seqid)
805
    args = getItem_args()
806
    args.item_id = item_id
807
    args.write(self._oprot)
808
    self._oprot.writeMessageEnd()
809
    self._oprot.trans.flush()
810
 
811
  def recv_getItem(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 = getItem_result()
819
    result.read(self._iprot)
820
    self._iprot.readMessageEnd()
821
    if result.success is not None:
822
      return result.success
823
    if result.cex is not None:
824
      raise result.cex
825
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItem failed: unknown result");
826
 
827
  def getItemsByCatalogId(self, catalog_item_id):
828
    """
829
    Parameters:
830
     - catalog_item_id
831
    """
832
    self.send_getItemsByCatalogId(catalog_item_id)
833
    return self.recv_getItemsByCatalogId()
834
 
835
  def send_getItemsByCatalogId(self, catalog_item_id):
836
    self._oprot.writeMessageBegin('getItemsByCatalogId', TMessageType.CALL, self._seqid)
837
    args = getItemsByCatalogId_args()
838
    args.catalog_item_id = catalog_item_id
839
    args.write(self._oprot)
840
    self._oprot.writeMessageEnd()
841
    self._oprot.trans.flush()
842
 
843
  def recv_getItemsByCatalogId(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 = getItemsByCatalogId_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, "getItemsByCatalogId failed: unknown result");
858
 
859
  def getValidItemsByCatalogId(self, catalog_item_id):
860
    """
861
    Parameters:
862
     - catalog_item_id
863
    """
864
    self.send_getValidItemsByCatalogId(catalog_item_id)
865
    return self.recv_getValidItemsByCatalogId()
866
 
867
  def send_getValidItemsByCatalogId(self, catalog_item_id):
868
    self._oprot.writeMessageBegin('getValidItemsByCatalogId', TMessageType.CALL, self._seqid)
869
    args = getValidItemsByCatalogId_args()
870
    args.catalog_item_id = catalog_item_id
871
    args.write(self._oprot)
872
    self._oprot.writeMessageEnd()
873
    self._oprot.trans.flush()
874
 
875
  def recv_getValidItemsByCatalogId(self, ):
876
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
877
    if mtype == TMessageType.EXCEPTION:
878
      x = TApplicationException()
879
      x.read(self._iprot)
880
      self._iprot.readMessageEnd()
881
      raise x
882
    result = getValidItemsByCatalogId_result()
883
    result.read(self._iprot)
884
    self._iprot.readMessageEnd()
885
    if result.success is not None:
886
      return result.success
887
    if result.cex is not None:
888
      raise result.cex
889
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidItemsByCatalogId failed: unknown result");
890
 
891
  def getAllItems(self, isActive):
892
    """
893
    Parameters:
894
     - isActive
895
    """
896
    self.send_getAllItems(isActive)
897
    return self.recv_getAllItems()
898
 
899
  def send_getAllItems(self, isActive):
900
    self._oprot.writeMessageBegin('getAllItems', TMessageType.CALL, self._seqid)
901
    args = getAllItems_args()
902
    args.isActive = isActive
903
    args.write(self._oprot)
904
    self._oprot.writeMessageEnd()
905
    self._oprot.trans.flush()
906
 
907
  def recv_getAllItems(self, ):
908
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
909
    if mtype == TMessageType.EXCEPTION:
910
      x = TApplicationException()
911
      x.read(self._iprot)
912
      self._iprot.readMessageEnd()
913
      raise x
914
    result = getAllItems_result()
915
    result.read(self._iprot)
916
    self._iprot.readMessageEnd()
917
    if result.success is not None:
918
      return result.success
919
    if result.cex is not None:
920
      raise result.cex
921
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItems failed: unknown result");
922
 
923
  def getAllItemsByStatus(self, itemStatus):
924
    """
925
    Parameters:
926
     - itemStatus
927
    """
928
    self.send_getAllItemsByStatus(itemStatus)
929
    return self.recv_getAllItemsByStatus()
930
 
931
  def send_getAllItemsByStatus(self, itemStatus):
932
    self._oprot.writeMessageBegin('getAllItemsByStatus', TMessageType.CALL, self._seqid)
933
    args = getAllItemsByStatus_args()
934
    args.itemStatus = itemStatus
935
    args.write(self._oprot)
936
    self._oprot.writeMessageEnd()
937
    self._oprot.trans.flush()
938
 
939
  def recv_getAllItemsByStatus(self, ):
940
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
941
    if mtype == TMessageType.EXCEPTION:
942
      x = TApplicationException()
943
      x.read(self._iprot)
944
      self._iprot.readMessageEnd()
945
      raise x
946
    result = getAllItemsByStatus_result()
947
    result.read(self._iprot)
948
    self._iprot.readMessageEnd()
949
    if result.success is not None:
950
      return result.success
951
    if result.cex is not None:
952
      raise result.cex
953
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatus failed: unknown result");
954
 
955
  def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber):
956
    """
957
    Parameters:
958
     - entityId
959
     - category
960
     - brand
961
     - modelName
962
     - modelNumber
963
    """
964
    self.send_markItemAsContentComplete(entityId, category, brand, modelName, modelNumber)
965
    return self.recv_markItemAsContentComplete()
966
 
967
  def send_markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber):
968
    self._oprot.writeMessageBegin('markItemAsContentComplete', TMessageType.CALL, self._seqid)
969
    args = markItemAsContentComplete_args()
970
    args.entityId = entityId
971
    args.category = category
972
    args.brand = brand
973
    args.modelName = modelName
974
    args.modelNumber = modelNumber
975
    args.write(self._oprot)
976
    self._oprot.writeMessageEnd()
977
    self._oprot.trans.flush()
978
 
979
  def recv_markItemAsContentComplete(self, ):
980
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
981
    if mtype == TMessageType.EXCEPTION:
982
      x = TApplicationException()
983
      x.read(self._iprot)
984
      self._iprot.readMessageEnd()
985
      raise x
986
    result = markItemAsContentComplete_result()
987
    result.read(self._iprot)
988
    self._iprot.readMessageEnd()
989
    if result.success is not None:
990
      return result.success
991
    if result.cex is not None:
992
      raise result.cex
993
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markItemAsContentComplete failed: unknown result");
994
 
995
  def getAllItemsInRange(self, offset, limit):
996
    """
997
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
998
 
999
    Parameters:
1000
     - offset
1001
     - limit
1002
    """
1003
    self.send_getAllItemsInRange(offset, limit)
1004
    return self.recv_getAllItemsInRange()
1005
 
1006
  def send_getAllItemsInRange(self, offset, limit):
1007
    self._oprot.writeMessageBegin('getAllItemsInRange', TMessageType.CALL, self._seqid)
1008
    args = getAllItemsInRange_args()
1009
    args.offset = offset
1010
    args.limit = limit
1011
    args.write(self._oprot)
1012
    self._oprot.writeMessageEnd()
1013
    self._oprot.trans.flush()
1014
 
1015
  def recv_getAllItemsInRange(self, ):
1016
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1017
    if mtype == TMessageType.EXCEPTION:
1018
      x = TApplicationException()
1019
      x.read(self._iprot)
1020
      self._iprot.readMessageEnd()
1021
      raise x
1022
    result = getAllItemsInRange_result()
1023
    result.read(self._iprot)
1024
    self._iprot.readMessageEnd()
1025
    if result.success is not None:
1026
      return result.success
1027
    if result.cex is not None:
1028
      raise result.cex
1029
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsInRange failed: unknown result");
1030
 
1031
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1032
    """
1033
    Gets at most 'limit' items starting at the given offset in the given status. Returns an empty list if there are no more items at the given offset.
1034
 
1035
    Parameters:
1036
     - itemStatus
1037
     - offset
1038
     - limit
1039
    """
1040
    self.send_getAllItemsByStatusInRange(itemStatus, offset, limit)
1041
    return self.recv_getAllItemsByStatusInRange()
1042
 
1043
  def send_getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1044
    self._oprot.writeMessageBegin('getAllItemsByStatusInRange', TMessageType.CALL, self._seqid)
1045
    args = getAllItemsByStatusInRange_args()
1046
    args.itemStatus = itemStatus
1047
    args.offset = offset
1048
    args.limit = limit
1049
    args.write(self._oprot)
1050
    self._oprot.writeMessageEnd()
1051
    self._oprot.trans.flush()
1052
 
1053
  def recv_getAllItemsByStatusInRange(self, ):
1054
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1055
    if mtype == TMessageType.EXCEPTION:
1056
      x = TApplicationException()
1057
      x.read(self._iprot)
1058
      self._iprot.readMessageEnd()
1059
      raise x
1060
    result = getAllItemsByStatusInRange_result()
1061
    result.read(self._iprot)
1062
    self._iprot.readMessageEnd()
1063
    if result.success is not None:
1064
      return result.success
1065
    if result.cex is not None:
1066
      raise result.cex
1067
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatusInRange failed: unknown result");
1068
 
1069
  def getItemCountByStatus(self, useStatus, itemStatus):
1070
    """
1071
    Gets a count of all items by status
1072
 
1073
    Parameters:
1074
     - useStatus
1075
     - itemStatus
1076
    """
1077
    self.send_getItemCountByStatus(useStatus, itemStatus)
1078
    return self.recv_getItemCountByStatus()
1079
 
1080
  def send_getItemCountByStatus(self, useStatus, itemStatus):
1081
    self._oprot.writeMessageBegin('getItemCountByStatus', TMessageType.CALL, self._seqid)
1082
    args = getItemCountByStatus_args()
1083
    args.useStatus = useStatus
1084
    args.itemStatus = itemStatus
1085
    args.write(self._oprot)
1086
    self._oprot.writeMessageEnd()
1087
    self._oprot.trans.flush()
1088
 
1089
  def recv_getItemCountByStatus(self, ):
1090
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1091
    if mtype == TMessageType.EXCEPTION:
1092
      x = TApplicationException()
1093
      x.read(self._iprot)
1094
      self._iprot.readMessageEnd()
1095
      raise x
1096
    result = getItemCountByStatus_result()
1097
    result.read(self._iprot)
1098
    self._iprot.readMessageEnd()
1099
    if result.success is not None:
1100
      return result.success
1101
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemCountByStatus failed: unknown result");
1102
 
1103
  def getBestSellers(self, ):
1104
    self.send_getBestSellers()
1105
    return self.recv_getBestSellers()
1106
 
1107
  def send_getBestSellers(self, ):
1108
    self._oprot.writeMessageBegin('getBestSellers', TMessageType.CALL, self._seqid)
1109
    args = getBestSellers_args()
1110
    args.write(self._oprot)
1111
    self._oprot.writeMessageEnd()
1112
    self._oprot.trans.flush()
1113
 
1114
  def recv_getBestSellers(self, ):
1115
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1116
    if mtype == TMessageType.EXCEPTION:
1117
      x = TApplicationException()
1118
      x.read(self._iprot)
1119
      self._iprot.readMessageEnd()
1120
      raise x
1121
    result = getBestSellers_result()
1122
    result.read(self._iprot)
1123
    self._iprot.readMessageEnd()
1124
    if result.success is not None:
1125
      return result.success
1126
    if result.isex is not None:
1127
      raise result.isex
1128
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellers failed: unknown result");
1129
 
1130
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1131
    """
1132
    Parameters:
1133
     - beginIndex
1134
     - totalItems
1135
     - brand
1136
     - category
1137
    """
1138
    self.send_getBestSellersCatalogIds(beginIndex, totalItems, brand, category)
1139
    return self.recv_getBestSellersCatalogIds()
1140
 
1141
  def send_getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1142
    self._oprot.writeMessageBegin('getBestSellersCatalogIds', TMessageType.CALL, self._seqid)
1143
    args = getBestSellersCatalogIds_args()
1144
    args.beginIndex = beginIndex
1145
    args.totalItems = totalItems
1146
    args.brand = brand
1147
    args.category = category
1148
    args.write(self._oprot)
1149
    self._oprot.writeMessageEnd()
1150
    self._oprot.trans.flush()
1151
 
1152
  def recv_getBestSellersCatalogIds(self, ):
1153
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1154
    if mtype == TMessageType.EXCEPTION:
1155
      x = TApplicationException()
1156
      x.read(self._iprot)
1157
      self._iprot.readMessageEnd()
1158
      raise x
1159
    result = getBestSellersCatalogIds_result()
1160
    result.read(self._iprot)
1161
    self._iprot.readMessageEnd()
1162
    if result.success is not None:
1163
      return result.success
1164
    if result.cex is not None:
1165
      raise result.cex
1166
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCatalogIds failed: unknown result");
1167
 
1168
  def getBestSellersCount(self, ):
1169
    self.send_getBestSellersCount()
1170
    return self.recv_getBestSellersCount()
1171
 
1172
  def send_getBestSellersCount(self, ):
1173
    self._oprot.writeMessageBegin('getBestSellersCount', TMessageType.CALL, self._seqid)
1174
    args = getBestSellersCount_args()
1175
    args.write(self._oprot)
1176
    self._oprot.writeMessageEnd()
1177
    self._oprot.trans.flush()
1178
 
1179
  def recv_getBestSellersCount(self, ):
1180
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1181
    if mtype == TMessageType.EXCEPTION:
1182
      x = TApplicationException()
1183
      x.read(self._iprot)
1184
      self._iprot.readMessageEnd()
1185
      raise x
1186
    result = getBestSellersCount_result()
1187
    result.read(self._iprot)
1188
    self._iprot.readMessageEnd()
1189
    if result.success is not None:
1190
      return result.success
1191
    if result.cex is not None:
1192
      raise result.cex
1193
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCount failed: unknown result");
1194
 
1195
  def getBestDeals(self, ):
1196
    self.send_getBestDeals()
1197
    return self.recv_getBestDeals()
1198
 
1199
  def send_getBestDeals(self, ):
1200
    self._oprot.writeMessageBegin('getBestDeals', TMessageType.CALL, self._seqid)
1201
    args = getBestDeals_args()
1202
    args.write(self._oprot)
1203
    self._oprot.writeMessageEnd()
1204
    self._oprot.trans.flush()
1205
 
1206
  def recv_getBestDeals(self, ):
1207
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1208
    if mtype == TMessageType.EXCEPTION:
1209
      x = TApplicationException()
1210
      x.read(self._iprot)
1211
      self._iprot.readMessageEnd()
1212
      raise x
1213
    result = getBestDeals_result()
1214
    result.read(self._iprot)
1215
    self._iprot.readMessageEnd()
1216
    if result.success is not None:
1217
      return result.success
1218
    if result.isex is not None:
1219
      raise result.isex
1220
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDeals failed: unknown result");
1221
 
1222
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1223
    """
1224
    Parameters:
1225
     - beginIndex
1226
     - totalItems
1227
     - brand
1228
     - category
1229
    """
1230
    self.send_getBestDealsCatalogIds(beginIndex, totalItems, brand, category)
1231
    return self.recv_getBestDealsCatalogIds()
1232
 
1233
  def send_getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
1234
    self._oprot.writeMessageBegin('getBestDealsCatalogIds', TMessageType.CALL, self._seqid)
1235
    args = getBestDealsCatalogIds_args()
1236
    args.beginIndex = beginIndex
1237
    args.totalItems = totalItems
1238
    args.brand = brand
1239
    args.category = category
1240
    args.write(self._oprot)
1241
    self._oprot.writeMessageEnd()
1242
    self._oprot.trans.flush()
1243
 
1244
  def recv_getBestDealsCatalogIds(self, ):
1245
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1246
    if mtype == TMessageType.EXCEPTION:
1247
      x = TApplicationException()
1248
      x.read(self._iprot)
1249
      self._iprot.readMessageEnd()
1250
      raise x
1251
    result = getBestDealsCatalogIds_result()
1252
    result.read(self._iprot)
1253
    self._iprot.readMessageEnd()
1254
    if result.success is not None:
1255
      return result.success
1256
    if result.cex is not None:
1257
      raise result.cex
1258
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCatalogIds failed: unknown result");
1259
 
1260
  def getBestDealsCount(self, ):
1261
    self.send_getBestDealsCount()
1262
    return self.recv_getBestDealsCount()
1263
 
1264
  def send_getBestDealsCount(self, ):
1265
    self._oprot.writeMessageBegin('getBestDealsCount', TMessageType.CALL, self._seqid)
1266
    args = getBestDealsCount_args()
1267
    args.write(self._oprot)
1268
    self._oprot.writeMessageEnd()
1269
    self._oprot.trans.flush()
1270
 
1271
  def recv_getBestDealsCount(self, ):
1272
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1273
    if mtype == TMessageType.EXCEPTION:
1274
      x = TApplicationException()
1275
      x.read(self._iprot)
1276
      self._iprot.readMessageEnd()
1277
      raise x
1278
    result = getBestDealsCount_result()
1279
    result.read(self._iprot)
1280
    self._iprot.readMessageEnd()
1281
    if result.success is not None:
1282
      return result.success
1283
    if result.cex is not None:
1284
      raise result.cex
1285
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCount failed: unknown result");
1286
 
1287
  def getComingSoon(self, ):
1288
    self.send_getComingSoon()
1289
    return self.recv_getComingSoon()
1290
 
1291
  def send_getComingSoon(self, ):
1292
    self._oprot.writeMessageBegin('getComingSoon', TMessageType.CALL, self._seqid)
1293
    args = getComingSoon_args()
1294
    args.write(self._oprot)
1295
    self._oprot.writeMessageEnd()
1296
    self._oprot.trans.flush()
1297
 
1298
  def recv_getComingSoon(self, ):
1299
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1300
    if mtype == TMessageType.EXCEPTION:
1301
      x = TApplicationException()
1302
      x.read(self._iprot)
1303
      self._iprot.readMessageEnd()
1304
      raise x
1305
    result = getComingSoon_result()
1306
    result.read(self._iprot)
1307
    self._iprot.readMessageEnd()
1308
    if result.success is not None:
1309
      return result.success
1310
    if result.isex is not None:
1311
      raise result.isex
1312
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoon failed: unknown result");
1313
 
1314
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
1315
    """
1316
    Parameters:
1317
     - beginIndex
1318
     - totalItems
1319
     - brand
1320
     - category
1321
    """
1322
    self.send_getComingSoonCatalogIds(beginIndex, totalItems, brand, category)
1323
    return self.recv_getComingSoonCatalogIds()
1324
 
1325
  def send_getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
1326
    self._oprot.writeMessageBegin('getComingSoonCatalogIds', TMessageType.CALL, self._seqid)
1327
    args = getComingSoonCatalogIds_args()
1328
    args.beginIndex = beginIndex
1329
    args.totalItems = totalItems
1330
    args.brand = brand
1331
    args.category = category
1332
    args.write(self._oprot)
1333
    self._oprot.writeMessageEnd()
1334
    self._oprot.trans.flush()
1335
 
1336
  def recv_getComingSoonCatalogIds(self, ):
1337
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1338
    if mtype == TMessageType.EXCEPTION:
1339
      x = TApplicationException()
1340
      x.read(self._iprot)
1341
      self._iprot.readMessageEnd()
1342
      raise x
1343
    result = getComingSoonCatalogIds_result()
1344
    result.read(self._iprot)
1345
    self._iprot.readMessageEnd()
1346
    if result.success is not None:
1347
      return result.success
1348
    if result.cex is not None:
1349
      raise result.cex
1350
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCatalogIds failed: unknown result");
1351
 
1352
  def getComingSoonCount(self, ):
1353
    self.send_getComingSoonCount()
1354
    return self.recv_getComingSoonCount()
1355
 
1356
  def send_getComingSoonCount(self, ):
1357
    self._oprot.writeMessageBegin('getComingSoonCount', TMessageType.CALL, self._seqid)
1358
    args = getComingSoonCount_args()
1359
    args.write(self._oprot)
1360
    self._oprot.writeMessageEnd()
1361
    self._oprot.trans.flush()
1362
 
1363
  def recv_getComingSoonCount(self, ):
1364
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1365
    if mtype == TMessageType.EXCEPTION:
1366
      x = TApplicationException()
1367
      x.read(self._iprot)
1368
      self._iprot.readMessageEnd()
1369
      raise x
1370
    result = getComingSoonCount_result()
1371
    result.read(self._iprot)
1372
    self._iprot.readMessageEnd()
1373
    if result.success is not None:
1374
      return result.success
1375
    if result.cex is not None:
1376
      raise result.cex
1377
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCount failed: unknown result");
1378
 
1379
  def getLatestArrivals(self, ):
1380
    """
1381
    Returns a list of items sorted in the descending order by start date.
1382
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
1383
    """
1384
    self.send_getLatestArrivals()
1385
    return self.recv_getLatestArrivals()
1386
 
1387
  def send_getLatestArrivals(self, ):
1388
    self._oprot.writeMessageBegin('getLatestArrivals', TMessageType.CALL, self._seqid)
1389
    args = getLatestArrivals_args()
1390
    args.write(self._oprot)
1391
    self._oprot.writeMessageEnd()
1392
    self._oprot.trans.flush()
1393
 
1394
  def recv_getLatestArrivals(self, ):
1395
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1396
    if mtype == TMessageType.EXCEPTION:
1397
      x = TApplicationException()
1398
      x.read(self._iprot)
1399
      self._iprot.readMessageEnd()
1400
      raise x
1401
    result = getLatestArrivals_result()
1402
    result.read(self._iprot)
1403
    self._iprot.readMessageEnd()
1404
    if result.success is not None:
1405
      return result.success
1406
    if result.isex is not None:
1407
      raise result.isex
1408
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivals failed: unknown result");
1409
 
1410
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
1411
    """
1412
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
1413
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
1414
 
1415
    Parameters:
1416
     - beginIndex
1417
     - totalItems
1418
     - brand
1419
     - categories
1420
    """
1421
    self.send_getLatestArrivalsCatalogIds(beginIndex, totalItems, brand, categories)
1422
    return self.recv_getLatestArrivalsCatalogIds()
1423
 
1424
  def send_getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
1425
    self._oprot.writeMessageBegin('getLatestArrivalsCatalogIds', TMessageType.CALL, self._seqid)
1426
    args = getLatestArrivalsCatalogIds_args()
1427
    args.beginIndex = beginIndex
1428
    args.totalItems = totalItems
1429
    args.brand = brand
1430
    args.categories = categories
1431
    args.write(self._oprot)
1432
    self._oprot.writeMessageEnd()
1433
    self._oprot.trans.flush()
1434
 
1435
  def recv_getLatestArrivalsCatalogIds(self, ):
1436
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1437
    if mtype == TMessageType.EXCEPTION:
1438
      x = TApplicationException()
1439
      x.read(self._iprot)
1440
      self._iprot.readMessageEnd()
1441
      raise x
1442
    result = getLatestArrivalsCatalogIds_result()
1443
    result.read(self._iprot)
1444
    self._iprot.readMessageEnd()
1445
    if result.success is not None:
1446
      return result.success
1447
    if result.cex is not None:
1448
      raise result.cex
1449
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCatalogIds failed: unknown result");
1450
 
1451
  def getLatestArrivalsCount(self, ):
1452
    """
1453
    Get the total number of latest arrivals we are willing to show.
1454
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
1455
    """
1456
    self.send_getLatestArrivalsCount()
1457
    return self.recv_getLatestArrivalsCount()
1458
 
1459
  def send_getLatestArrivalsCount(self, ):
1460
    self._oprot.writeMessageBegin('getLatestArrivalsCount', TMessageType.CALL, self._seqid)
1461
    args = getLatestArrivalsCount_args()
1462
    args.write(self._oprot)
1463
    self._oprot.writeMessageEnd()
1464
    self._oprot.trans.flush()
1465
 
1466
  def recv_getLatestArrivalsCount(self, ):
1467
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1468
    if mtype == TMessageType.EXCEPTION:
1469
      x = TApplicationException()
1470
      x.read(self._iprot)
1471
      self._iprot.readMessageEnd()
1472
      raise x
1473
    result = getLatestArrivalsCount_result()
1474
    result.read(self._iprot)
1475
    self._iprot.readMessageEnd()
1476
    if result.success is not None:
1477
      return result.success
1478
    if result.cex is not None:
1479
      raise result.cex
1480
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCount failed: unknown result");
1481
 
1482
  def generateNewEntityID(self, ):
1483
    self.send_generateNewEntityID()
1484
    return self.recv_generateNewEntityID()
1485
 
1486
  def send_generateNewEntityID(self, ):
1487
    self._oprot.writeMessageBegin('generateNewEntityID', TMessageType.CALL, self._seqid)
1488
    args = generateNewEntityID_args()
1489
    args.write(self._oprot)
1490
    self._oprot.writeMessageEnd()
1491
    self._oprot.trans.flush()
1492
 
1493
  def recv_generateNewEntityID(self, ):
1494
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1495
    if mtype == TMessageType.EXCEPTION:
1496
      x = TApplicationException()
1497
      x.read(self._iprot)
1498
      self._iprot.readMessageEnd()
1499
      raise x
1500
    result = generateNewEntityID_result()
1501
    result.read(self._iprot)
1502
    self._iprot.readMessageEnd()
1503
    if result.success is not None:
1504
      return result.success
1505
    raise TApplicationException(TApplicationException.MISSING_RESULT, "generateNewEntityID failed: unknown result");
1506
 
1507
  def addCategory(self, category):
1508
    """
1509
    All category related functions
1510
 
1511
    Parameters:
1512
     - category
1513
    """
1514
    self.send_addCategory(category)
1515
    return self.recv_addCategory()
1516
 
1517
  def send_addCategory(self, category):
1518
    self._oprot.writeMessageBegin('addCategory', TMessageType.CALL, self._seqid)
1519
    args = addCategory_args()
1520
    args.category = category
1521
    args.write(self._oprot)
1522
    self._oprot.writeMessageEnd()
1523
    self._oprot.trans.flush()
1524
 
1525
  def recv_addCategory(self, ):
1526
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1527
    if mtype == TMessageType.EXCEPTION:
1528
      x = TApplicationException()
1529
      x.read(self._iprot)
1530
      self._iprot.readMessageEnd()
1531
      raise x
1532
    result = addCategory_result()
1533
    result.read(self._iprot)
1534
    self._iprot.readMessageEnd()
1535
    if result.success is not None:
1536
      return result.success
1537
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addCategory failed: unknown result");
1538
 
1539
  def getCategory(self, id):
1540
    """
1541
    Parameters:
1542
     - id
1543
    """
1544
    self.send_getCategory(id)
1545
    return self.recv_getCategory()
1546
 
1547
  def send_getCategory(self, id):
1548
    self._oprot.writeMessageBegin('getCategory', TMessageType.CALL, self._seqid)
1549
    args = getCategory_args()
1550
    args.id = id
1551
    args.write(self._oprot)
1552
    self._oprot.writeMessageEnd()
1553
    self._oprot.trans.flush()
1554
 
1555
  def recv_getCategory(self, ):
1556
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1557
    if mtype == TMessageType.EXCEPTION:
1558
      x = TApplicationException()
1559
      x.read(self._iprot)
1560
      self._iprot.readMessageEnd()
1561
      raise x
1562
    result = getCategory_result()
1563
    result.read(self._iprot)
1564
    self._iprot.readMessageEnd()
1565
    if result.success is not None:
1566
      return result.success
1567
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCategory failed: unknown result");
1568
 
1569
  def getAllCategories(self, ):
1570
    self.send_getAllCategories()
1571
    return self.recv_getAllCategories()
1572
 
1573
  def send_getAllCategories(self, ):
1574
    self._oprot.writeMessageBegin('getAllCategories', TMessageType.CALL, self._seqid)
1575
    args = getAllCategories_args()
1576
    args.write(self._oprot)
1577
    self._oprot.writeMessageEnd()
1578
    self._oprot.trans.flush()
1579
 
1580
  def recv_getAllCategories(self, ):
1581
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1582
    if mtype == TMessageType.EXCEPTION:
1583
      x = TApplicationException()
1584
      x.read(self._iprot)
1585
      self._iprot.readMessageEnd()
1586
      raise x
1587
    result = getAllCategories_result()
1588
    result.read(self._iprot)
1589
    self._iprot.readMessageEnd()
1590
    if result.success is not None:
1591
      return result.success
1592
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCategories failed: unknown result");
1593
 
1594
  def getAllSimilarItems(self, itemId):
1595
    """
1596
    Returns the list of similar items.
1597
 
1598
    Parameters:
1599
     - itemId
1600
    """
1601
    self.send_getAllSimilarItems(itemId)
1602
    return self.recv_getAllSimilarItems()
1603
 
1604
  def send_getAllSimilarItems(self, itemId):
1605
    self._oprot.writeMessageBegin('getAllSimilarItems', TMessageType.CALL, self._seqid)
1606
    args = getAllSimilarItems_args()
1607
    args.itemId = itemId
1608
    args.write(self._oprot)
1609
    self._oprot.writeMessageEnd()
1610
    self._oprot.trans.flush()
1611
 
1612
  def recv_getAllSimilarItems(self, ):
1613
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1614
    if mtype == TMessageType.EXCEPTION:
1615
      x = TApplicationException()
1616
      x.read(self._iprot)
1617
      self._iprot.readMessageEnd()
1618
      raise x
1619
    result = getAllSimilarItems_result()
1620
    result.read(self._iprot)
1621
    self._iprot.readMessageEnd()
1622
    if result.success is not None:
1623
      return result.success
1624
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSimilarItems failed: unknown result");
1625
 
1626
  def addSimilarItem(self, itemId, catalogItemId):
1627
    """
1628
    Adds similar item.
1629
 
1630
    Parameters:
1631
     - itemId
1632
     - catalogItemId
1633
    """
1634
    self.send_addSimilarItem(itemId, catalogItemId)
1635
    return self.recv_addSimilarItem()
1636
 
1637
  def send_addSimilarItem(self, itemId, catalogItemId):
1638
    self._oprot.writeMessageBegin('addSimilarItem', TMessageType.CALL, self._seqid)
1639
    args = addSimilarItem_args()
1640
    args.itemId = itemId
1641
    args.catalogItemId = catalogItemId
1642
    args.write(self._oprot)
1643
    self._oprot.writeMessageEnd()
1644
    self._oprot.trans.flush()
1645
 
1646
  def recv_addSimilarItem(self, ):
1647
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1648
    if mtype == TMessageType.EXCEPTION:
1649
      x = TApplicationException()
1650
      x.read(self._iprot)
1651
      self._iprot.readMessageEnd()
1652
      raise x
1653
    result = addSimilarItem_result()
1654
    result.read(self._iprot)
1655
    self._iprot.readMessageEnd()
1656
    if result.success is not None:
1657
      return result.success
1658
    if result.cex is not None:
1659
      raise result.cex
1660
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addSimilarItem failed: unknown result");
1661
 
6512 kshitij.so 1662
  def addTag(self, displayName, itemId):
1663
    """
1664
    Tag Related
1665
 
1666
    Parameters:
1667
     - displayName
1668
     - itemId
1669
    """
1670
    self.send_addTag(displayName, itemId)
1671
    return self.recv_addTag()
1672
 
1673
  def send_addTag(self, displayName, itemId):
1674
    self._oprot.writeMessageBegin('addTag', TMessageType.CALL, self._seqid)
1675
    args = addTag_args()
1676
    args.displayName = displayName
1677
    args.itemId = itemId
1678
    args.write(self._oprot)
1679
    self._oprot.writeMessageEnd()
1680
    self._oprot.trans.flush()
1681
 
1682
  def recv_addTag(self, ):
1683
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1684
    if mtype == TMessageType.EXCEPTION:
1685
      x = TApplicationException()
1686
      x.read(self._iprot)
1687
      self._iprot.readMessageEnd()
1688
      raise x
1689
    result = addTag_result()
1690
    result.read(self._iprot)
1691
    self._iprot.readMessageEnd()
1692
    if result.success is not None:
1693
      return result.success
1694
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTag failed: unknown result");
1695
 
1696
  def deleteEntityTag(self, displayName, itemId):
1697
    """
1698
    Parameters:
1699
     - displayName
1700
     - itemId
1701
    """
1702
    self.send_deleteEntityTag(displayName, itemId)
1703
    return self.recv_deleteEntityTag()
1704
 
1705
  def send_deleteEntityTag(self, displayName, itemId):
1706
    self._oprot.writeMessageBegin('deleteEntityTag', TMessageType.CALL, self._seqid)
1707
    args = deleteEntityTag_args()
1708
    args.displayName = displayName
1709
    args.itemId = itemId
1710
    args.write(self._oprot)
1711
    self._oprot.writeMessageEnd()
1712
    self._oprot.trans.flush()
1713
 
1714
  def recv_deleteEntityTag(self, ):
1715
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1716
    if mtype == TMessageType.EXCEPTION:
1717
      x = TApplicationException()
1718
      x.read(self._iprot)
1719
      self._iprot.readMessageEnd()
1720
      raise x
1721
    result = deleteEntityTag_result()
1722
    result.read(self._iprot)
1723
    self._iprot.readMessageEnd()
1724
    if result.success is not None:
1725
      return result.success
1726
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteEntityTag failed: unknown result");
1727
 
1728
  def deleteTag(self, displayName):
1729
    """
1730
    Parameters:
1731
     - displayName
1732
    """
1733
    self.send_deleteTag(displayName)
1734
    return self.recv_deleteTag()
1735
 
1736
  def send_deleteTag(self, displayName):
1737
    self._oprot.writeMessageBegin('deleteTag', TMessageType.CALL, self._seqid)
1738
    args = deleteTag_args()
1739
    args.displayName = displayName
1740
    args.write(self._oprot)
1741
    self._oprot.writeMessageEnd()
1742
    self._oprot.trans.flush()
1743
 
1744
  def recv_deleteTag(self, ):
1745
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1746
    if mtype == TMessageType.EXCEPTION:
1747
      x = TApplicationException()
1748
      x.read(self._iprot)
1749
      self._iprot.readMessageEnd()
1750
      raise x
1751
    result = deleteTag_result()
1752
    result.read(self._iprot)
1753
    self._iprot.readMessageEnd()
1754
    if result.success is not None:
1755
      return result.success
1756
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteTag failed: unknown result");
1757
 
1758
  def getAllTags(self, ):
1759
    self.send_getAllTags()
1760
    return self.recv_getAllTags()
1761
 
1762
  def send_getAllTags(self, ):
1763
    self._oprot.writeMessageBegin('getAllTags', TMessageType.CALL, self._seqid)
1764
    args = getAllTags_args()
1765
    args.write(self._oprot)
1766
    self._oprot.writeMessageEnd()
1767
    self._oprot.trans.flush()
1768
 
1769
  def recv_getAllTags(self, ):
1770
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1771
    if mtype == TMessageType.EXCEPTION:
1772
      x = TApplicationException()
1773
      x.read(self._iprot)
1774
      self._iprot.readMessageEnd()
1775
      raise x
1776
    result = getAllTags_result()
1777
    result.read(self._iprot)
1778
    self._iprot.readMessageEnd()
1779
    if result.success is not None:
1780
      return result.success
1781
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllTags failed: unknown result");
1782
 
1783
  def getAllEntitiesByTagName(self, displayName):
1784
    """
1785
    Parameters:
1786
     - displayName
1787
    """
1788
    self.send_getAllEntitiesByTagName(displayName)
1789
    return self.recv_getAllEntitiesByTagName()
1790
 
1791
  def send_getAllEntitiesByTagName(self, displayName):
1792
    self._oprot.writeMessageBegin('getAllEntitiesByTagName', TMessageType.CALL, self._seqid)
1793
    args = getAllEntitiesByTagName_args()
1794
    args.displayName = displayName
1795
    args.write(self._oprot)
1796
    self._oprot.writeMessageEnd()
1797
    self._oprot.trans.flush()
1798
 
1799
  def recv_getAllEntitiesByTagName(self, ):
1800
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1801
    if mtype == TMessageType.EXCEPTION:
1802
      x = TApplicationException()
1803
      x.read(self._iprot)
1804
      self._iprot.readMessageEnd()
1805
      raise x
1806
    result = getAllEntitiesByTagName_result()
1807
    result.read(self._iprot)
1808
    self._iprot.readMessageEnd()
1809
    if result.success is not None:
1810
      return result.success
1811
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntitiesByTagName failed: unknown result");
1812
 
5944 mandeep.dh 1813
  def deleteSimilarItem(self, itemId, catalogItemId):
1814
    """
1815
    Delete similar item.
1816
 
1817
    Parameters:
1818
     - itemId
1819
     - catalogItemId
1820
    """
1821
    self.send_deleteSimilarItem(itemId, catalogItemId)
1822
    return self.recv_deleteSimilarItem()
1823
 
1824
  def send_deleteSimilarItem(self, itemId, catalogItemId):
1825
    self._oprot.writeMessageBegin('deleteSimilarItem', TMessageType.CALL, self._seqid)
1826
    args = deleteSimilarItem_args()
1827
    args.itemId = itemId
1828
    args.catalogItemId = catalogItemId
1829
    args.write(self._oprot)
1830
    self._oprot.writeMessageEnd()
1831
    self._oprot.trans.flush()
1832
 
1833
  def recv_deleteSimilarItem(self, ):
1834
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1835
    if mtype == TMessageType.EXCEPTION:
1836
      x = TApplicationException()
1837
      x.read(self._iprot)
1838
      self._iprot.readMessageEnd()
1839
      raise x
1840
    result = deleteSimilarItem_result()
1841
    result.read(self._iprot)
1842
    self._iprot.readMessageEnd()
1843
    if result.success is not None:
1844
      return result.success
1845
    if result.cex is not None:
1846
      raise result.cex
1847
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteSimilarItem failed: unknown result");
1848
 
1849
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
1850
    """
1851
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
1852
    If yes, returns the itemId else returns 0
1853
 
1854
    Parameters:
1855
     - brand
1856
     - modelNumber
1857
     - modelName
1858
     - color
1859
    """
1860
    self.send_checkSimilarItem(brand, modelNumber, modelName, color)
1861
    return self.recv_checkSimilarItem()
1862
 
1863
  def send_checkSimilarItem(self, brand, modelNumber, modelName, color):
1864
    self._oprot.writeMessageBegin('checkSimilarItem', TMessageType.CALL, self._seqid)
1865
    args = checkSimilarItem_args()
1866
    args.brand = brand
1867
    args.modelNumber = modelNumber
1868
    args.modelName = modelName
1869
    args.color = color
1870
    args.write(self._oprot)
1871
    self._oprot.writeMessageEnd()
1872
    self._oprot.trans.flush()
1873
 
1874
  def recv_checkSimilarItem(self, ):
1875
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1876
    if mtype == TMessageType.EXCEPTION:
1877
      x = TApplicationException()
1878
      x.read(self._iprot)
1879
      self._iprot.readMessageEnd()
1880
      raise x
1881
    result = checkSimilarItem_result()
1882
    result.read(self._iprot)
1883
    self._iprot.readMessageEnd()
1884
    if result.success is not None:
1885
      return result.success
1886
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkSimilarItem failed: unknown result");
1887
 
1888
  def validateRiskyStatus(self, itemId):
1889
    """
1890
    Check wether item is risky and change status if inventory is not available for risky items
1891
 
1892
    Parameters:
1893
     - itemId
1894
    """
1895
    self.send_validateRiskyStatus(itemId)
1896
    self.recv_validateRiskyStatus()
1897
 
1898
  def send_validateRiskyStatus(self, itemId):
1899
    self._oprot.writeMessageBegin('validateRiskyStatus', TMessageType.CALL, self._seqid)
1900
    args = validateRiskyStatus_args()
1901
    args.itemId = itemId
1902
    args.write(self._oprot)
1903
    self._oprot.writeMessageEnd()
1904
    self._oprot.trans.flush()
1905
 
1906
  def recv_validateRiskyStatus(self, ):
1907
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1908
    if mtype == TMessageType.EXCEPTION:
1909
      x = TApplicationException()
1910
      x.read(self._iprot)
1911
      self._iprot.readMessageEnd()
1912
      raise x
1913
    result = validateRiskyStatus_result()
1914
    result.read(self._iprot)
1915
    self._iprot.readMessageEnd()
1916
    return
1917
 
1918
  def changeItemRiskyFlag(self, itemId, risky):
1919
    """
1920
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
1921
 
1922
    Parameters:
1923
     - itemId
1924
     - risky
1925
    """
1926
    self.send_changeItemRiskyFlag(itemId, risky)
1927
    self.recv_changeItemRiskyFlag()
1928
 
1929
  def send_changeItemRiskyFlag(self, itemId, risky):
1930
    self._oprot.writeMessageBegin('changeItemRiskyFlag', TMessageType.CALL, self._seqid)
1931
    args = changeItemRiskyFlag_args()
1932
    args.itemId = itemId
1933
    args.risky = risky
1934
    args.write(self._oprot)
1935
    self._oprot.writeMessageEnd()
1936
    self._oprot.trans.flush()
1937
 
1938
  def recv_changeItemRiskyFlag(self, ):
1939
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1940
    if mtype == TMessageType.EXCEPTION:
1941
      x = TApplicationException()
1942
      x.read(self._iprot)
1943
      self._iprot.readMessageEnd()
1944
      raise x
1945
    result = changeItemRiskyFlag_result()
1946
    result.read(self._iprot)
1947
    self._iprot.readMessageEnd()
1948
    return
1949
 
1950
  def getItemsByRiskyFlag(self, ):
1951
    """
1952
    Returns list of items marked as risky.
1953
    """
1954
    self.send_getItemsByRiskyFlag()
1955
    return self.recv_getItemsByRiskyFlag()
1956
 
1957
  def send_getItemsByRiskyFlag(self, ):
1958
    self._oprot.writeMessageBegin('getItemsByRiskyFlag', TMessageType.CALL, self._seqid)
1959
    args = getItemsByRiskyFlag_args()
1960
    args.write(self._oprot)
1961
    self._oprot.writeMessageEnd()
1962
    self._oprot.trans.flush()
1963
 
1964
  def recv_getItemsByRiskyFlag(self, ):
1965
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1966
    if mtype == TMessageType.EXCEPTION:
1967
      x = TApplicationException()
1968
      x.read(self._iprot)
1969
      self._iprot.readMessageEnd()
1970
      raise x
1971
    result = getItemsByRiskyFlag_result()
1972
    result.read(self._iprot)
1973
    self._iprot.readMessageEnd()
1974
    if result.success is not None:
1975
      return result.success
1976
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByRiskyFlag failed: unknown result");
1977
 
1978
  def getItemsForMasterSheet(self, category, brand):
1979
    """
1980
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
1981
 
1982
    Parameters:
1983
     - category
1984
     - brand
1985
    """
1986
    self.send_getItemsForMasterSheet(category, brand)
1987
    return self.recv_getItemsForMasterSheet()
1988
 
1989
  def send_getItemsForMasterSheet(self, category, brand):
1990
    self._oprot.writeMessageBegin('getItemsForMasterSheet', TMessageType.CALL, self._seqid)
1991
    args = getItemsForMasterSheet_args()
1992
    args.category = category
1993
    args.brand = brand
1994
    args.write(self._oprot)
1995
    self._oprot.writeMessageEnd()
1996
    self._oprot.trans.flush()
1997
 
1998
  def recv_getItemsForMasterSheet(self, ):
1999
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2000
    if mtype == TMessageType.EXCEPTION:
2001
      x = TApplicationException()
2002
      x.read(self._iprot)
2003
      self._iprot.readMessageEnd()
2004
      raise x
2005
    result = getItemsForMasterSheet_result()
2006
    result.read(self._iprot)
2007
    self._iprot.readMessageEnd()
2008
    if result.success is not None:
2009
      return result.success
2010
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsForMasterSheet failed: unknown result");
2011
 
2012
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
2013
    """
2014
    Returns list of catalog ids of items with same similarity index as of the given itemId
2015
 
2016
    Parameters:
2017
     - beginIndex
2018
     - totalItems
2019
     - itemId
2020
    """
2021
    self.send_getSimilarItemsCatalogIds(beginIndex, totalItems, itemId)
2022
    return self.recv_getSimilarItemsCatalogIds()
2023
 
2024
  def send_getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
2025
    self._oprot.writeMessageBegin('getSimilarItemsCatalogIds', TMessageType.CALL, self._seqid)
2026
    args = getSimilarItemsCatalogIds_args()
2027
    args.beginIndex = beginIndex
2028
    args.totalItems = totalItems
2029
    args.itemId = itemId
2030
    args.write(self._oprot)
2031
    self._oprot.writeMessageEnd()
2032
    self._oprot.trans.flush()
2033
 
2034
  def recv_getSimilarItemsCatalogIds(self, ):
2035
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2036
    if mtype == TMessageType.EXCEPTION:
2037
      x = TApplicationException()
2038
      x.read(self._iprot)
2039
      self._iprot.readMessageEnd()
2040
      raise x
2041
    result = getSimilarItemsCatalogIds_result()
2042
    result.read(self._iprot)
2043
    self._iprot.readMessageEnd()
2044
    if result.success is not None:
2045
      return result.success
2046
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSimilarItemsCatalogIds failed: unknown result");
2047
 
2048
  def addProductNotification(self, itemId, email):
2049
    """
2050
    Add user requests for out of stock items. Once user will ask for notify me an entry will
2051
 
2052
    Parameters:
2053
     - itemId
2054
     - email
2055
    """
2056
    self.send_addProductNotification(itemId, email)
2057
    return self.recv_addProductNotification()
2058
 
2059
  def send_addProductNotification(self, itemId, email):
2060
    self._oprot.writeMessageBegin('addProductNotification', TMessageType.CALL, self._seqid)
2061
    args = addProductNotification_args()
2062
    args.itemId = itemId
2063
    args.email = email
2064
    args.write(self._oprot)
2065
    self._oprot.writeMessageEnd()
2066
    self._oprot.trans.flush()
2067
 
2068
  def recv_addProductNotification(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 = addProductNotification_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, "addProductNotification failed: unknown result");
2081
 
2082
  def sendProductNotifications(self, ):
2083
    """
2084
    Send the product notifications to the users for items which has stock.
2085
    """
2086
    self.send_sendProductNotifications()
2087
    return self.recv_sendProductNotifications()
2088
 
2089
  def send_sendProductNotifications(self, ):
2090
    self._oprot.writeMessageBegin('sendProductNotifications', TMessageType.CALL, self._seqid)
2091
    args = sendProductNotifications_args()
2092
    args.write(self._oprot)
2093
    self._oprot.writeMessageEnd()
2094
    self._oprot.trans.flush()
2095
 
2096
  def recv_sendProductNotifications(self, ):
2097
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2098
    if mtype == TMessageType.EXCEPTION:
2099
      x = TApplicationException()
2100
      x.read(self._iprot)
2101
      self._iprot.readMessageEnd()
2102
      raise x
2103
    result = sendProductNotifications_result()
2104
    result.read(self._iprot)
2105
    self._iprot.readMessageEnd()
2106
    if result.success is not None:
2107
      return result.success
2108
    raise TApplicationException(TApplicationException.MISSING_RESULT, "sendProductNotifications failed: unknown result");
2109
 
2110
  def getAllBrandsByCategory(self, categoryId):
2111
    """
2112
    Returns list of brand names for a given category Id
2113
 
2114
    Parameters:
2115
     - categoryId
2116
    """
2117
    self.send_getAllBrandsByCategory(categoryId)
2118
    return self.recv_getAllBrandsByCategory()
2119
 
2120
  def send_getAllBrandsByCategory(self, categoryId):
2121
    self._oprot.writeMessageBegin('getAllBrandsByCategory', TMessageType.CALL, self._seqid)
2122
    args = getAllBrandsByCategory_args()
2123
    args.categoryId = categoryId
2124
    args.write(self._oprot)
2125
    self._oprot.writeMessageEnd()
2126
    self._oprot.trans.flush()
2127
 
2128
  def recv_getAllBrandsByCategory(self, ):
2129
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2130
    if mtype == TMessageType.EXCEPTION:
2131
      x = TApplicationException()
2132
      x.read(self._iprot)
2133
      self._iprot.readMessageEnd()
2134
      raise x
2135
    result = getAllBrandsByCategory_result()
2136
    result.read(self._iprot)
2137
    self._iprot.readMessageEnd()
2138
    if result.success is not None:
2139
      return result.success
2140
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrandsByCategory failed: unknown result");
2141
 
2142
  def getAllBrands(self, ):
2143
    """
2144
    Returns list of brand names
2145
    """
2146
    self.send_getAllBrands()
2147
    return self.recv_getAllBrands()
2148
 
2149
  def send_getAllBrands(self, ):
2150
    self._oprot.writeMessageBegin('getAllBrands', TMessageType.CALL, self._seqid)
2151
    args = getAllBrands_args()
2152
    args.write(self._oprot)
2153
    self._oprot.writeMessageEnd()
2154
    self._oprot.trans.flush()
2155
 
2156
  def recv_getAllBrands(self, ):
2157
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2158
    if mtype == TMessageType.EXCEPTION:
2159
      x = TApplicationException()
2160
      x.read(self._iprot)
2161
      self._iprot.readMessageEnd()
2162
      raise x
2163
    result = getAllBrands_result()
2164
    result.read(self._iprot)
2165
    self._iprot.readMessageEnd()
2166
    if result.success is not None:
2167
      return result.success
2168
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrands failed: unknown result");
2169
 
2170
  def getAllSources(self, ):
2171
    """
2172
    Return list of all sources
2173
    """
2174
    self.send_getAllSources()
2175
    return self.recv_getAllSources()
2176
 
2177
  def send_getAllSources(self, ):
2178
    self._oprot.writeMessageBegin('getAllSources', TMessageType.CALL, self._seqid)
2179
    args = getAllSources_args()
2180
    args.write(self._oprot)
2181
    self._oprot.writeMessageEnd()
2182
    self._oprot.trans.flush()
2183
 
2184
  def recv_getAllSources(self, ):
2185
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2186
    if mtype == TMessageType.EXCEPTION:
2187
      x = TApplicationException()
2188
      x.read(self._iprot)
2189
      self._iprot.readMessageEnd()
2190
      raise x
2191
    result = getAllSources_result()
2192
    result.read(self._iprot)
2193
    self._iprot.readMessageEnd()
2194
    if result.success is not None:
2195
      return result.success
2196
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSources failed: unknown result");
2197
 
2198
  def getItemPricingBySource(self, itemId, sourceId):
2199
    """
2200
    Returns the pricing information of an item. If no information is found, exception will be thrown.
2201
 
2202
    Parameters:
2203
     - itemId
2204
     - sourceId
2205
    """
2206
    self.send_getItemPricingBySource(itemId, sourceId)
2207
    return self.recv_getItemPricingBySource()
2208
 
2209
  def send_getItemPricingBySource(self, itemId, sourceId):
2210
    self._oprot.writeMessageBegin('getItemPricingBySource', TMessageType.CALL, self._seqid)
2211
    args = getItemPricingBySource_args()
2212
    args.itemId = itemId
2213
    args.sourceId = sourceId
2214
    args.write(self._oprot)
2215
    self._oprot.writeMessageEnd()
2216
    self._oprot.trans.flush()
2217
 
2218
  def recv_getItemPricingBySource(self, ):
2219
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2220
    if mtype == TMessageType.EXCEPTION:
2221
      x = TApplicationException()
2222
      x.read(self._iprot)
2223
      self._iprot.readMessageEnd()
2224
      raise x
2225
    result = getItemPricingBySource_result()
2226
    result.read(self._iprot)
2227
    self._iprot.readMessageEnd()
2228
    if result.success is not None:
2229
      return result.success
2230
    if result.cex is not None:
2231
      raise result.cex
2232
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricingBySource failed: unknown result");
2233
 
2234
  def addSourceItemPricing(self, sourceItemPricing):
2235
    """
2236
    Adds prices to be displayed corresponding to the item if user comes from a source.
2237
    If item is not found or source is not found, it will throw exception.
2238
 
2239
    Parameters:
2240
     - sourceItemPricing
2241
    """
2242
    self.send_addSourceItemPricing(sourceItemPricing)
2243
    self.recv_addSourceItemPricing()
2244
 
2245
  def send_addSourceItemPricing(self, sourceItemPricing):
2246
    self._oprot.writeMessageBegin('addSourceItemPricing', TMessageType.CALL, self._seqid)
2247
    args = addSourceItemPricing_args()
2248
    args.sourceItemPricing = sourceItemPricing
2249
    args.write(self._oprot)
2250
    self._oprot.writeMessageEnd()
2251
    self._oprot.trans.flush()
2252
 
2253
  def recv_addSourceItemPricing(self, ):
2254
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2255
    if mtype == TMessageType.EXCEPTION:
2256
      x = TApplicationException()
2257
      x.read(self._iprot)
2258
      self._iprot.readMessageEnd()
2259
      raise x
2260
    result = addSourceItemPricing_result()
2261
    result.read(self._iprot)
2262
    self._iprot.readMessageEnd()
2263
    if result.cex is not None:
2264
      raise result.cex
2265
    return
2266
 
2267
  def getAllSourcePricing(self, itemId):
2268
    """
2269
    Returns the list of source pricing information of an item.
2270
    Raises an exception if item not found corresponding to itemId
2271
 
2272
    Parameters:
2273
     - itemId
2274
    """
2275
    self.send_getAllSourcePricing(itemId)
2276
    return self.recv_getAllSourcePricing()
2277
 
2278
  def send_getAllSourcePricing(self, itemId):
2279
    self._oprot.writeMessageBegin('getAllSourcePricing', TMessageType.CALL, self._seqid)
2280
    args = getAllSourcePricing_args()
2281
    args.itemId = itemId
2282
    args.write(self._oprot)
2283
    self._oprot.writeMessageEnd()
2284
    self._oprot.trans.flush()
2285
 
2286
  def recv_getAllSourcePricing(self, ):
2287
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2288
    if mtype == TMessageType.EXCEPTION:
2289
      x = TApplicationException()
2290
      x.read(self._iprot)
2291
      self._iprot.readMessageEnd()
2292
      raise x
2293
    result = getAllSourcePricing_result()
2294
    result.read(self._iprot)
2295
    self._iprot.readMessageEnd()
2296
    if result.success is not None:
2297
      return result.success
2298
    if result.cex is not None:
2299
      raise result.cex
2300
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSourcePricing failed: unknown result");
2301
 
2302
  def getItemForSource(self, item_id, sourceId):
2303
    """
2304
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
2305
 
2306
    Parameters:
2307
     - item_id
2308
     - sourceId
2309
    """
2310
    self.send_getItemForSource(item_id, sourceId)
2311
    return self.recv_getItemForSource()
2312
 
2313
  def send_getItemForSource(self, item_id, sourceId):
2314
    self._oprot.writeMessageBegin('getItemForSource', TMessageType.CALL, self._seqid)
2315
    args = getItemForSource_args()
2316
    args.item_id = item_id
2317
    args.sourceId = sourceId
2318
    args.write(self._oprot)
2319
    self._oprot.writeMessageEnd()
2320
    self._oprot.trans.flush()
2321
 
2322
  def recv_getItemForSource(self, ):
2323
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2324
    if mtype == TMessageType.EXCEPTION:
2325
      x = TApplicationException()
2326
      x.read(self._iprot)
2327
      self._iprot.readMessageEnd()
2328
      raise x
2329
    result = getItemForSource_result()
2330
    result.read(self._iprot)
2331
    self._iprot.readMessageEnd()
2332
    if result.success is not None:
2333
      return result.success
2334
    if result.cex is not None:
2335
      raise result.cex
2336
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemForSource failed: unknown result");
2337
 
2338
  def searchItemsInRange(self, searchTerms, offset, limit):
2339
    """
2340
    Searches items matching the the given terms in the catalog and returns results within the specified range.
2341
 
2342
    Parameters:
2343
     - searchTerms
2344
     - offset
2345
     - limit
2346
    """
2347
    self.send_searchItemsInRange(searchTerms, offset, limit)
2348
    return self.recv_searchItemsInRange()
2349
 
2350
  def send_searchItemsInRange(self, searchTerms, offset, limit):
2351
    self._oprot.writeMessageBegin('searchItemsInRange', TMessageType.CALL, self._seqid)
2352
    args = searchItemsInRange_args()
2353
    args.searchTerms = searchTerms
2354
    args.offset = offset
2355
    args.limit = limit
2356
    args.write(self._oprot)
2357
    self._oprot.writeMessageEnd()
2358
    self._oprot.trans.flush()
2359
 
2360
  def recv_searchItemsInRange(self, ):
2361
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2362
    if mtype == TMessageType.EXCEPTION:
2363
      x = TApplicationException()
2364
      x.read(self._iprot)
2365
      self._iprot.readMessageEnd()
2366
      raise x
2367
    result = searchItemsInRange_result()
2368
    result.read(self._iprot)
2369
    self._iprot.readMessageEnd()
2370
    if result.success is not None:
2371
      return result.success
2372
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchItemsInRange failed: unknown result");
2373
 
2374
  def getSearchResultCount(self, searchTerms):
2375
    """
2376
    Gets the count of search results for the given search terms so that the user can go through all the pages.
2377
 
2378
    Parameters:
2379
     - searchTerms
2380
    """
2381
    self.send_getSearchResultCount(searchTerms)
2382
    return self.recv_getSearchResultCount()
2383
 
2384
  def send_getSearchResultCount(self, searchTerms):
2385
    self._oprot.writeMessageBegin('getSearchResultCount', TMessageType.CALL, self._seqid)
2386
    args = getSearchResultCount_args()
2387
    args.searchTerms = searchTerms
2388
    args.write(self._oprot)
2389
    self._oprot.writeMessageEnd()
2390
    self._oprot.trans.flush()
2391
 
2392
  def recv_getSearchResultCount(self, ):
2393
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2394
    if mtype == TMessageType.EXCEPTION:
2395
      x = TApplicationException()
2396
      x.read(self._iprot)
2397
      self._iprot.readMessageEnd()
2398
      raise x
2399
    result = getSearchResultCount_result()
2400
    result.read(self._iprot)
2401
    self._iprot.readMessageEnd()
2402
    if result.success is not None:
2403
      return result.success
2404
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSearchResultCount failed: unknown result");
2405
 
2406
  def getProductNotifications(self, startDateTime):
2407
    """
2408
    Returns a list of product notifications added after a supplied datetime
2409
 
2410
    Parameters:
2411
     - startDateTime
2412
    """
2413
    self.send_getProductNotifications(startDateTime)
2414
    return self.recv_getProductNotifications()
2415
 
2416
  def send_getProductNotifications(self, startDateTime):
2417
    self._oprot.writeMessageBegin('getProductNotifications', TMessageType.CALL, self._seqid)
2418
    args = getProductNotifications_args()
2419
    args.startDateTime = startDateTime
2420
    args.write(self._oprot)
2421
    self._oprot.writeMessageEnd()
2422
    self._oprot.trans.flush()
2423
 
2424
  def recv_getProductNotifications(self, ):
2425
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2426
    if mtype == TMessageType.EXCEPTION:
2427
      x = TApplicationException()
2428
      x.read(self._iprot)
2429
      self._iprot.readMessageEnd()
2430
      raise x
2431
    result = getProductNotifications_result()
2432
    result.read(self._iprot)
2433
    self._iprot.readMessageEnd()
2434
    if result.success is not None:
2435
      return result.success
2436
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotifications failed: unknown result");
2437
 
2438
  def getProductNotificationRequestCount(self, startDateTime):
2439
    """
2440
    Returns a list of count of requests for product notification against each item
2441
 
2442
    Parameters:
2443
     - startDateTime
2444
    """
2445
    self.send_getProductNotificationRequestCount(startDateTime)
2446
    return self.recv_getProductNotificationRequestCount()
2447
 
2448
  def send_getProductNotificationRequestCount(self, startDateTime):
2449
    self._oprot.writeMessageBegin('getProductNotificationRequestCount', TMessageType.CALL, self._seqid)
2450
    args = getProductNotificationRequestCount_args()
2451
    args.startDateTime = startDateTime
2452
    args.write(self._oprot)
2453
    self._oprot.writeMessageEnd()
2454
    self._oprot.trans.flush()
2455
 
2456
  def recv_getProductNotificationRequestCount(self, ):
2457
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2458
    if mtype == TMessageType.EXCEPTION:
2459
      x = TApplicationException()
2460
      x.read(self._iprot)
2461
      self._iprot.readMessageEnd()
2462
      raise x
2463
    result = getProductNotificationRequestCount_result()
2464
    result.read(self._iprot)
2465
    self._iprot.readMessageEnd()
2466
    if result.success is not None:
2467
      return result.success
2468
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotificationRequestCount failed: unknown result");
2469
 
2470
  def addAuthorizationLog(self, itemId, username, reason):
2471
    """
2472
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
2473
 
2474
    Parameters:
2475
     - itemId
2476
     - username
2477
     - reason
2478
    """
2479
    self.send_addAuthorizationLog(itemId, username, reason)
2480
    return self.recv_addAuthorizationLog()
2481
 
2482
  def send_addAuthorizationLog(self, itemId, username, reason):
2483
    self._oprot.writeMessageBegin('addAuthorizationLog', TMessageType.CALL, self._seqid)
2484
    args = addAuthorizationLog_args()
2485
    args.itemId = itemId
2486
    args.username = username
2487
    args.reason = reason
2488
    args.write(self._oprot)
2489
    self._oprot.writeMessageEnd()
2490
    self._oprot.trans.flush()
2491
 
2492
  def recv_addAuthorizationLog(self, ):
2493
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2494
    if mtype == TMessageType.EXCEPTION:
2495
      x = TApplicationException()
2496
      x.read(self._iprot)
2497
      self._iprot.readMessageEnd()
2498
      raise x
2499
    result = addAuthorizationLog_result()
2500
    result.read(self._iprot)
2501
    self._iprot.readMessageEnd()
2502
    if result.success is not None:
2503
      return result.success
2504
    if result.cex is not None:
2505
      raise result.cex
2506
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAuthorizationLog failed: unknown result");
2507
 
2508
  def getClearanceSaleCatalogIds(self, ):
2509
    self.send_getClearanceSaleCatalogIds()
2510
    return self.recv_getClearanceSaleCatalogIds()
2511
 
2512
  def send_getClearanceSaleCatalogIds(self, ):
2513
    self._oprot.writeMessageBegin('getClearanceSaleCatalogIds', TMessageType.CALL, self._seqid)
2514
    args = getClearanceSaleCatalogIds_args()
2515
    args.write(self._oprot)
2516
    self._oprot.writeMessageEnd()
2517
    self._oprot.trans.flush()
2518
 
2519
  def recv_getClearanceSaleCatalogIds(self, ):
2520
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2521
    if mtype == TMessageType.EXCEPTION:
2522
      x = TApplicationException()
2523
      x.read(self._iprot)
2524
      self._iprot.readMessageEnd()
2525
      raise x
2526
    result = getClearanceSaleCatalogIds_result()
2527
    result.read(self._iprot)
2528
    self._iprot.readMessageEnd()
2529
    if result.success is not None:
2530
      return result.success
2531
    if result.cex is not None:
2532
      raise result.cex
2533
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getClearanceSaleCatalogIds failed: unknown result");
2534
 
2535
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
2536
    """
2537
    Parameters:
2538
     - catalog_item_id
2539
     - voucherType
2540
     - voucherAmount
2541
    """
2542
    self.send_addupdateVoucherForItem(catalog_item_id, voucherType, voucherAmount)
2543
    return self.recv_addupdateVoucherForItem()
2544
 
2545
  def send_addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
2546
    self._oprot.writeMessageBegin('addupdateVoucherForItem', TMessageType.CALL, self._seqid)
2547
    args = addupdateVoucherForItem_args()
2548
    args.catalog_item_id = catalog_item_id
2549
    args.voucherType = voucherType
2550
    args.voucherAmount = voucherAmount
2551
    args.write(self._oprot)
2552
    self._oprot.writeMessageEnd()
2553
    self._oprot.trans.flush()
2554
 
2555
  def recv_addupdateVoucherForItem(self, ):
2556
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2557
    if mtype == TMessageType.EXCEPTION:
2558
      x = TApplicationException()
2559
      x.read(self._iprot)
2560
      self._iprot.readMessageEnd()
2561
      raise x
2562
    result = addupdateVoucherForItem_result()
2563
    result.read(self._iprot)
2564
    self._iprot.readMessageEnd()
2565
    if result.success is not None:
2566
      return result.success
2567
    if result.cex is not None:
2568
      raise result.cex
2569
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addupdateVoucherForItem failed: unknown result");
2570
 
2571
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
2572
    """
2573
    Parameters:
2574
     - catalog_item_id
2575
     - voucherType
2576
    """
2577
    self.send_deleteVoucherForItem(catalog_item_id, voucherType)
2578
    return self.recv_deleteVoucherForItem()
2579
 
2580
  def send_deleteVoucherForItem(self, catalog_item_id, voucherType):
2581
    self._oprot.writeMessageBegin('deleteVoucherForItem', TMessageType.CALL, self._seqid)
2582
    args = deleteVoucherForItem_args()
2583
    args.catalog_item_id = catalog_item_id
2584
    args.voucherType = voucherType
2585
    args.write(self._oprot)
2586
    self._oprot.writeMessageEnd()
2587
    self._oprot.trans.flush()
2588
 
2589
  def recv_deleteVoucherForItem(self, ):
2590
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2591
    if mtype == TMessageType.EXCEPTION:
2592
      x = TApplicationException()
2593
      x.read(self._iprot)
2594
      self._iprot.readMessageEnd()
2595
      raise x
2596
    result = deleteVoucherForItem_result()
2597
    result.read(self._iprot)
2598
    self._iprot.readMessageEnd()
2599
    if result.success is not None:
2600
      return result.success
2601
    if result.cex is not None:
2602
      raise result.cex
2603
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteVoucherForItem failed: unknown result");
2604
 
2605
  def getVoucherAmount(self, itemId, voucherType):
2606
    """
2607
    Parameters:
2608
     - itemId
2609
     - voucherType
2610
    """
2611
    self.send_getVoucherAmount(itemId, voucherType)
2612
    return self.recv_getVoucherAmount()
2613
 
2614
  def send_getVoucherAmount(self, itemId, voucherType):
2615
    self._oprot.writeMessageBegin('getVoucherAmount', TMessageType.CALL, self._seqid)
2616
    args = getVoucherAmount_args()
2617
    args.itemId = itemId
2618
    args.voucherType = voucherType
2619
    args.write(self._oprot)
2620
    self._oprot.writeMessageEnd()
2621
    self._oprot.trans.flush()
2622
 
2623
  def recv_getVoucherAmount(self, ):
2624
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2625
    if mtype == TMessageType.EXCEPTION:
2626
      x = TApplicationException()
2627
      x.read(self._iprot)
2628
      self._iprot.readMessageEnd()
2629
      raise x
2630
    result = getVoucherAmount_result()
2631
    result.read(self._iprot)
2632
    self._iprot.readMessageEnd()
2633
    if result.success is not None:
2634
      return result.success
2635
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVoucherAmount failed: unknown result");
2636
 
2637
  def getAllItemVouchers(self, itemId):
2638
    """
2639
    Parameters:
2640
     - itemId
2641
    """
2642
    self.send_getAllItemVouchers(itemId)
2643
    return self.recv_getAllItemVouchers()
2644
 
2645
  def send_getAllItemVouchers(self, itemId):
2646
    self._oprot.writeMessageBegin('getAllItemVouchers', TMessageType.CALL, self._seqid)
2647
    args = getAllItemVouchers_args()
2648
    args.itemId = itemId
2649
    args.write(self._oprot)
2650
    self._oprot.writeMessageEnd()
2651
    self._oprot.trans.flush()
2652
 
2653
  def recv_getAllItemVouchers(self, ):
2654
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2655
    if mtype == TMessageType.EXCEPTION:
2656
      x = TApplicationException()
2657
      x.read(self._iprot)
2658
      self._iprot.readMessageEnd()
2659
      raise x
2660
    result = getAllItemVouchers_result()
2661
    result.read(self._iprot)
2662
    self._iprot.readMessageEnd()
2663
    if result.success is not None:
2664
      return result.success
2665
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemVouchers failed: unknown result");
2666
 
2667
  def isValidCatalogItemId(self, catalog_item_id):
2668
    """
2669
    Parameters:
2670
     - catalog_item_id
2671
    """
2672
    self.send_isValidCatalogItemId(catalog_item_id)
2673
    return self.recv_isValidCatalogItemId()
2674
 
2675
  def send_isValidCatalogItemId(self, catalog_item_id):
2676
    self._oprot.writeMessageBegin('isValidCatalogItemId', TMessageType.CALL, self._seqid)
2677
    args = isValidCatalogItemId_args()
2678
    args.catalog_item_id = catalog_item_id
2679
    args.write(self._oprot)
2680
    self._oprot.writeMessageEnd()
2681
    self._oprot.trans.flush()
2682
 
2683
  def recv_isValidCatalogItemId(self, ):
2684
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2685
    if mtype == TMessageType.EXCEPTION:
2686
      x = TApplicationException()
2687
      x.read(self._iprot)
2688
      self._iprot.readMessageEnd()
2689
      raise x
2690
    result = isValidCatalogItemId_result()
2691
    result.read(self._iprot)
2692
    self._iprot.readMessageEnd()
2693
    if result.success is not None:
2694
      return result.success
2695
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isValidCatalogItemId failed: unknown result");
2696
 
6039 amit.gupta 2697
  def getVatPercentageForItem(self, itemId, price):
2698
    """
2699
    Parameters:
2700
     - itemId
2701
     - price
2702
    """
2703
    self.send_getVatPercentageForItem(itemId, price)
2704
    return self.recv_getVatPercentageForItem()
5944 mandeep.dh 2705
 
6039 amit.gupta 2706
  def send_getVatPercentageForItem(self, itemId, price):
2707
    self._oprot.writeMessageBegin('getVatPercentageForItem', TMessageType.CALL, self._seqid)
2708
    args = getVatPercentageForItem_args()
2709
    args.itemId = itemId
2710
    args.price = price
2711
    args.write(self._oprot)
2712
    self._oprot.writeMessageEnd()
2713
    self._oprot.trans.flush()
2714
 
2715
  def recv_getVatPercentageForItem(self, ):
2716
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2717
    if mtype == TMessageType.EXCEPTION:
2718
      x = TApplicationException()
2719
      x.read(self._iprot)
2720
      self._iprot.readMessageEnd()
2721
      raise x
2722
    result = getVatPercentageForItem_result()
2723
    result.read(self._iprot)
2724
    self._iprot.readMessageEnd()
2725
    if result.success is not None:
2726
      return result.success
2727
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatPercentageForItem failed: unknown result");
2728
 
2729
  def getVatAmountForItem(self, itemId, price):
2730
    """
2731
    Parameters:
2732
     - itemId
2733
     - price
2734
    """
2735
    self.send_getVatAmountForItem(itemId, price)
2736
    return self.recv_getVatAmountForItem()
2737
 
2738
  def send_getVatAmountForItem(self, itemId, price):
2739
    self._oprot.writeMessageBegin('getVatAmountForItem', TMessageType.CALL, self._seqid)
2740
    args = getVatAmountForItem_args()
2741
    args.itemId = itemId
2742
    args.price = price
2743
    args.write(self._oprot)
2744
    self._oprot.writeMessageEnd()
2745
    self._oprot.trans.flush()
2746
 
2747
  def recv_getVatAmountForItem(self, ):
2748
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2749
    if mtype == TMessageType.EXCEPTION:
2750
      x = TApplicationException()
2751
      x.read(self._iprot)
2752
      self._iprot.readMessageEnd()
2753
      raise x
2754
    result = getVatAmountForItem_result()
2755
    result.read(self._iprot)
2756
    self._iprot.readMessageEnd()
2757
    if result.success is not None:
2758
      return result.success
2759
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatAmountForItem failed: unknown result");
2760
 
2761
 
5944 mandeep.dh 2762
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
2763
  def __init__(self, handler):
2764
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
2765
    self._processMap["addItem"] = Processor.process_addItem
2766
    self._processMap["updateItem"] = Processor.process_updateItem
2767
    self._processMap["isActive"] = Processor.process_isActive
2768
    self._processMap["getItemStatusDescription"] = Processor.process_getItemStatusDescription
2769
    self._processMap["startItemOn"] = Processor.process_startItemOn
2770
    self._processMap["retireItemOn"] = Processor.process_retireItemOn
2771
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
2772
    self._processMap["getItem"] = Processor.process_getItem
2773
    self._processMap["getItemsByCatalogId"] = Processor.process_getItemsByCatalogId
2774
    self._processMap["getValidItemsByCatalogId"] = Processor.process_getValidItemsByCatalogId
2775
    self._processMap["getAllItems"] = Processor.process_getAllItems
2776
    self._processMap["getAllItemsByStatus"] = Processor.process_getAllItemsByStatus
2777
    self._processMap["markItemAsContentComplete"] = Processor.process_markItemAsContentComplete
2778
    self._processMap["getAllItemsInRange"] = Processor.process_getAllItemsInRange
2779
    self._processMap["getAllItemsByStatusInRange"] = Processor.process_getAllItemsByStatusInRange
2780
    self._processMap["getItemCountByStatus"] = Processor.process_getItemCountByStatus
2781
    self._processMap["getBestSellers"] = Processor.process_getBestSellers
2782
    self._processMap["getBestSellersCatalogIds"] = Processor.process_getBestSellersCatalogIds
2783
    self._processMap["getBestSellersCount"] = Processor.process_getBestSellersCount
2784
    self._processMap["getBestDeals"] = Processor.process_getBestDeals
2785
    self._processMap["getBestDealsCatalogIds"] = Processor.process_getBestDealsCatalogIds
2786
    self._processMap["getBestDealsCount"] = Processor.process_getBestDealsCount
2787
    self._processMap["getComingSoon"] = Processor.process_getComingSoon
2788
    self._processMap["getComingSoonCatalogIds"] = Processor.process_getComingSoonCatalogIds
2789
    self._processMap["getComingSoonCount"] = Processor.process_getComingSoonCount
2790
    self._processMap["getLatestArrivals"] = Processor.process_getLatestArrivals
2791
    self._processMap["getLatestArrivalsCatalogIds"] = Processor.process_getLatestArrivalsCatalogIds
2792
    self._processMap["getLatestArrivalsCount"] = Processor.process_getLatestArrivalsCount
2793
    self._processMap["generateNewEntityID"] = Processor.process_generateNewEntityID
2794
    self._processMap["addCategory"] = Processor.process_addCategory
2795
    self._processMap["getCategory"] = Processor.process_getCategory
2796
    self._processMap["getAllCategories"] = Processor.process_getAllCategories
2797
    self._processMap["getAllSimilarItems"] = Processor.process_getAllSimilarItems
2798
    self._processMap["addSimilarItem"] = Processor.process_addSimilarItem
6512 kshitij.so 2799
    self._processMap["addTag"] = Processor.process_addTag
2800
    self._processMap["deleteEntityTag"] = Processor.process_deleteEntityTag
2801
    self._processMap["deleteTag"] = Processor.process_deleteTag
2802
    self._processMap["getAllTags"] = Processor.process_getAllTags
2803
    self._processMap["getAllEntitiesByTagName"] = Processor.process_getAllEntitiesByTagName
5944 mandeep.dh 2804
    self._processMap["deleteSimilarItem"] = Processor.process_deleteSimilarItem
2805
    self._processMap["checkSimilarItem"] = Processor.process_checkSimilarItem
2806
    self._processMap["validateRiskyStatus"] = Processor.process_validateRiskyStatus
2807
    self._processMap["changeItemRiskyFlag"] = Processor.process_changeItemRiskyFlag
2808
    self._processMap["getItemsByRiskyFlag"] = Processor.process_getItemsByRiskyFlag
2809
    self._processMap["getItemsForMasterSheet"] = Processor.process_getItemsForMasterSheet
2810
    self._processMap["getSimilarItemsCatalogIds"] = Processor.process_getSimilarItemsCatalogIds
2811
    self._processMap["addProductNotification"] = Processor.process_addProductNotification
2812
    self._processMap["sendProductNotifications"] = Processor.process_sendProductNotifications
2813
    self._processMap["getAllBrandsByCategory"] = Processor.process_getAllBrandsByCategory
2814
    self._processMap["getAllBrands"] = Processor.process_getAllBrands
2815
    self._processMap["getAllSources"] = Processor.process_getAllSources
2816
    self._processMap["getItemPricingBySource"] = Processor.process_getItemPricingBySource
2817
    self._processMap["addSourceItemPricing"] = Processor.process_addSourceItemPricing
2818
    self._processMap["getAllSourcePricing"] = Processor.process_getAllSourcePricing
2819
    self._processMap["getItemForSource"] = Processor.process_getItemForSource
2820
    self._processMap["searchItemsInRange"] = Processor.process_searchItemsInRange
2821
    self._processMap["getSearchResultCount"] = Processor.process_getSearchResultCount
2822
    self._processMap["getProductNotifications"] = Processor.process_getProductNotifications
2823
    self._processMap["getProductNotificationRequestCount"] = Processor.process_getProductNotificationRequestCount
2824
    self._processMap["addAuthorizationLog"] = Processor.process_addAuthorizationLog
2825
    self._processMap["getClearanceSaleCatalogIds"] = Processor.process_getClearanceSaleCatalogIds
2826
    self._processMap["addupdateVoucherForItem"] = Processor.process_addupdateVoucherForItem
2827
    self._processMap["deleteVoucherForItem"] = Processor.process_deleteVoucherForItem
2828
    self._processMap["getVoucherAmount"] = Processor.process_getVoucherAmount
2829
    self._processMap["getAllItemVouchers"] = Processor.process_getAllItemVouchers
2830
    self._processMap["isValidCatalogItemId"] = Processor.process_isValidCatalogItemId
6039 amit.gupta 2831
    self._processMap["getVatPercentageForItem"] = Processor.process_getVatPercentageForItem
2832
    self._processMap["getVatAmountForItem"] = Processor.process_getVatAmountForItem
5944 mandeep.dh 2833
 
2834
  def process(self, iprot, oprot):
2835
    (name, type, seqid) = iprot.readMessageBegin()
2836
    if name not in self._processMap:
2837
      iprot.skip(TType.STRUCT)
2838
      iprot.readMessageEnd()
2839
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
2840
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
2841
      x.write(oprot)
2842
      oprot.writeMessageEnd()
2843
      oprot.trans.flush()
2844
      return
2845
    else:
2846
      self._processMap[name](self, seqid, iprot, oprot)
2847
    return True
2848
 
2849
  def process_addItem(self, seqid, iprot, oprot):
2850
    args = addItem_args()
2851
    args.read(iprot)
2852
    iprot.readMessageEnd()
2853
    result = addItem_result()
2854
    try:
2855
      result.success = self._handler.addItem(args.item)
2856
    except CatalogServiceException, cex:
2857
      result.cex = cex
2858
    oprot.writeMessageBegin("addItem", TMessageType.REPLY, seqid)
2859
    result.write(oprot)
2860
    oprot.writeMessageEnd()
2861
    oprot.trans.flush()
2862
 
2863
  def process_updateItem(self, seqid, iprot, oprot):
2864
    args = updateItem_args()
2865
    args.read(iprot)
2866
    iprot.readMessageEnd()
2867
    result = updateItem_result()
2868
    try:
2869
      result.success = self._handler.updateItem(args.item)
2870
    except CatalogServiceException, cex:
2871
      result.cex = cex
2872
    oprot.writeMessageBegin("updateItem", TMessageType.REPLY, seqid)
2873
    result.write(oprot)
2874
    oprot.writeMessageEnd()
2875
    oprot.trans.flush()
2876
 
2877
  def process_isActive(self, seqid, iprot, oprot):
2878
    args = isActive_args()
2879
    args.read(iprot)
2880
    iprot.readMessageEnd()
2881
    result = isActive_result()
2882
    try:
2883
      result.success = self._handler.isActive(args.itemId)
2884
    except CatalogServiceException, isex:
2885
      result.isex = isex
2886
    oprot.writeMessageBegin("isActive", TMessageType.REPLY, seqid)
2887
    result.write(oprot)
2888
    oprot.writeMessageEnd()
2889
    oprot.trans.flush()
2890
 
2891
  def process_getItemStatusDescription(self, seqid, iprot, oprot):
2892
    args = getItemStatusDescription_args()
2893
    args.read(iprot)
2894
    iprot.readMessageEnd()
2895
    result = getItemStatusDescription_result()
2896
    try:
2897
      result.success = self._handler.getItemStatusDescription(args.itemId)
2898
    except CatalogServiceException, isex:
2899
      result.isex = isex
2900
    oprot.writeMessageBegin("getItemStatusDescription", TMessageType.REPLY, seqid)
2901
    result.write(oprot)
2902
    oprot.writeMessageEnd()
2903
    oprot.trans.flush()
2904
 
2905
  def process_startItemOn(self, seqid, iprot, oprot):
2906
    args = startItemOn_args()
2907
    args.read(iprot)
2908
    iprot.readMessageEnd()
2909
    result = startItemOn_result()
2910
    try:
2911
      self._handler.startItemOn(args.item_id, args.timestamp)
2912
    except CatalogServiceException, cex:
2913
      result.cex = cex
2914
    oprot.writeMessageBegin("startItemOn", TMessageType.REPLY, seqid)
2915
    result.write(oprot)
2916
    oprot.writeMessageEnd()
2917
    oprot.trans.flush()
2918
 
2919
  def process_retireItemOn(self, seqid, iprot, oprot):
2920
    args = retireItemOn_args()
2921
    args.read(iprot)
2922
    iprot.readMessageEnd()
2923
    result = retireItemOn_result()
2924
    try:
2925
      self._handler.retireItemOn(args.item_id, args.timestamp)
2926
    except CatalogServiceException, cex:
2927
      result.cex = cex
2928
    oprot.writeMessageBegin("retireItemOn", TMessageType.REPLY, seqid)
2929
    result.write(oprot)
2930
    oprot.writeMessageEnd()
2931
    oprot.trans.flush()
2932
 
2933
  def process_changeItemStatus(self, seqid, iprot, oprot):
2934
    args = changeItemStatus_args()
2935
    args.read(iprot)
2936
    iprot.readMessageEnd()
2937
    result = changeItemStatus_result()
2938
    try:
2939
      self._handler.changeItemStatus(args.item_id, args.timestamp, args.newstatus)
2940
    except CatalogServiceException, cex:
2941
      result.cex = cex
2942
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
2943
    result.write(oprot)
2944
    oprot.writeMessageEnd()
2945
    oprot.trans.flush()
2946
 
2947
  def process_getItem(self, seqid, iprot, oprot):
2948
    args = getItem_args()
2949
    args.read(iprot)
2950
    iprot.readMessageEnd()
2951
    result = getItem_result()
2952
    try:
2953
      result.success = self._handler.getItem(args.item_id)
2954
    except CatalogServiceException, cex:
2955
      result.cex = cex
2956
    oprot.writeMessageBegin("getItem", TMessageType.REPLY, seqid)
2957
    result.write(oprot)
2958
    oprot.writeMessageEnd()
2959
    oprot.trans.flush()
2960
 
2961
  def process_getItemsByCatalogId(self, seqid, iprot, oprot):
2962
    args = getItemsByCatalogId_args()
2963
    args.read(iprot)
2964
    iprot.readMessageEnd()
2965
    result = getItemsByCatalogId_result()
2966
    try:
2967
      result.success = self._handler.getItemsByCatalogId(args.catalog_item_id)
2968
    except CatalogServiceException, cex:
2969
      result.cex = cex
2970
    oprot.writeMessageBegin("getItemsByCatalogId", TMessageType.REPLY, seqid)
2971
    result.write(oprot)
2972
    oprot.writeMessageEnd()
2973
    oprot.trans.flush()
2974
 
2975
  def process_getValidItemsByCatalogId(self, seqid, iprot, oprot):
2976
    args = getValidItemsByCatalogId_args()
2977
    args.read(iprot)
2978
    iprot.readMessageEnd()
2979
    result = getValidItemsByCatalogId_result()
2980
    try:
2981
      result.success = self._handler.getValidItemsByCatalogId(args.catalog_item_id)
2982
    except CatalogServiceException, cex:
2983
      result.cex = cex
2984
    oprot.writeMessageBegin("getValidItemsByCatalogId", TMessageType.REPLY, seqid)
2985
    result.write(oprot)
2986
    oprot.writeMessageEnd()
2987
    oprot.trans.flush()
2988
 
2989
  def process_getAllItems(self, seqid, iprot, oprot):
2990
    args = getAllItems_args()
2991
    args.read(iprot)
2992
    iprot.readMessageEnd()
2993
    result = getAllItems_result()
2994
    try:
2995
      result.success = self._handler.getAllItems(args.isActive)
2996
    except CatalogServiceException, cex:
2997
      result.cex = cex
2998
    oprot.writeMessageBegin("getAllItems", TMessageType.REPLY, seqid)
2999
    result.write(oprot)
3000
    oprot.writeMessageEnd()
3001
    oprot.trans.flush()
3002
 
3003
  def process_getAllItemsByStatus(self, seqid, iprot, oprot):
3004
    args = getAllItemsByStatus_args()
3005
    args.read(iprot)
3006
    iprot.readMessageEnd()
3007
    result = getAllItemsByStatus_result()
3008
    try:
3009
      result.success = self._handler.getAllItemsByStatus(args.itemStatus)
3010
    except CatalogServiceException, cex:
3011
      result.cex = cex
3012
    oprot.writeMessageBegin("getAllItemsByStatus", TMessageType.REPLY, seqid)
3013
    result.write(oprot)
3014
    oprot.writeMessageEnd()
3015
    oprot.trans.flush()
3016
 
3017
  def process_markItemAsContentComplete(self, seqid, iprot, oprot):
3018
    args = markItemAsContentComplete_args()
3019
    args.read(iprot)
3020
    iprot.readMessageEnd()
3021
    result = markItemAsContentComplete_result()
3022
    try:
3023
      result.success = self._handler.markItemAsContentComplete(args.entityId, args.category, args.brand, args.modelName, args.modelNumber)
3024
    except CatalogServiceException, cex:
3025
      result.cex = cex
3026
    oprot.writeMessageBegin("markItemAsContentComplete", TMessageType.REPLY, seqid)
3027
    result.write(oprot)
3028
    oprot.writeMessageEnd()
3029
    oprot.trans.flush()
3030
 
3031
  def process_getAllItemsInRange(self, seqid, iprot, oprot):
3032
    args = getAllItemsInRange_args()
3033
    args.read(iprot)
3034
    iprot.readMessageEnd()
3035
    result = getAllItemsInRange_result()
3036
    try:
3037
      result.success = self._handler.getAllItemsInRange(args.offset, args.limit)
3038
    except CatalogServiceException, cex:
3039
      result.cex = cex
3040
    oprot.writeMessageBegin("getAllItemsInRange", TMessageType.REPLY, seqid)
3041
    result.write(oprot)
3042
    oprot.writeMessageEnd()
3043
    oprot.trans.flush()
3044
 
3045
  def process_getAllItemsByStatusInRange(self, seqid, iprot, oprot):
3046
    args = getAllItemsByStatusInRange_args()
3047
    args.read(iprot)
3048
    iprot.readMessageEnd()
3049
    result = getAllItemsByStatusInRange_result()
3050
    try:
3051
      result.success = self._handler.getAllItemsByStatusInRange(args.itemStatus, args.offset, args.limit)
3052
    except CatalogServiceException, cex:
3053
      result.cex = cex
3054
    oprot.writeMessageBegin("getAllItemsByStatusInRange", TMessageType.REPLY, seqid)
3055
    result.write(oprot)
3056
    oprot.writeMessageEnd()
3057
    oprot.trans.flush()
3058
 
3059
  def process_getItemCountByStatus(self, seqid, iprot, oprot):
3060
    args = getItemCountByStatus_args()
3061
    args.read(iprot)
3062
    iprot.readMessageEnd()
3063
    result = getItemCountByStatus_result()
3064
    result.success = self._handler.getItemCountByStatus(args.useStatus, args.itemStatus)
3065
    oprot.writeMessageBegin("getItemCountByStatus", TMessageType.REPLY, seqid)
3066
    result.write(oprot)
3067
    oprot.writeMessageEnd()
3068
    oprot.trans.flush()
3069
 
3070
  def process_getBestSellers(self, seqid, iprot, oprot):
3071
    args = getBestSellers_args()
3072
    args.read(iprot)
3073
    iprot.readMessageEnd()
3074
    result = getBestSellers_result()
3075
    try:
3076
      result.success = self._handler.getBestSellers()
3077
    except CatalogServiceException, isex:
3078
      result.isex = isex
3079
    oprot.writeMessageBegin("getBestSellers", TMessageType.REPLY, seqid)
3080
    result.write(oprot)
3081
    oprot.writeMessageEnd()
3082
    oprot.trans.flush()
3083
 
3084
  def process_getBestSellersCatalogIds(self, seqid, iprot, oprot):
3085
    args = getBestSellersCatalogIds_args()
3086
    args.read(iprot)
3087
    iprot.readMessageEnd()
3088
    result = getBestSellersCatalogIds_result()
3089
    try:
3090
      result.success = self._handler.getBestSellersCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3091
    except CatalogServiceException, cex:
3092
      result.cex = cex
3093
    oprot.writeMessageBegin("getBestSellersCatalogIds", TMessageType.REPLY, seqid)
3094
    result.write(oprot)
3095
    oprot.writeMessageEnd()
3096
    oprot.trans.flush()
3097
 
3098
  def process_getBestSellersCount(self, seqid, iprot, oprot):
3099
    args = getBestSellersCount_args()
3100
    args.read(iprot)
3101
    iprot.readMessageEnd()
3102
    result = getBestSellersCount_result()
3103
    try:
3104
      result.success = self._handler.getBestSellersCount()
3105
    except CatalogServiceException, cex:
3106
      result.cex = cex
3107
    oprot.writeMessageBegin("getBestSellersCount", TMessageType.REPLY, seqid)
3108
    result.write(oprot)
3109
    oprot.writeMessageEnd()
3110
    oprot.trans.flush()
3111
 
3112
  def process_getBestDeals(self, seqid, iprot, oprot):
3113
    args = getBestDeals_args()
3114
    args.read(iprot)
3115
    iprot.readMessageEnd()
3116
    result = getBestDeals_result()
3117
    try:
3118
      result.success = self._handler.getBestDeals()
3119
    except CatalogServiceException, isex:
3120
      result.isex = isex
3121
    oprot.writeMessageBegin("getBestDeals", TMessageType.REPLY, seqid)
3122
    result.write(oprot)
3123
    oprot.writeMessageEnd()
3124
    oprot.trans.flush()
3125
 
3126
  def process_getBestDealsCatalogIds(self, seqid, iprot, oprot):
3127
    args = getBestDealsCatalogIds_args()
3128
    args.read(iprot)
3129
    iprot.readMessageEnd()
3130
    result = getBestDealsCatalogIds_result()
3131
    try:
3132
      result.success = self._handler.getBestDealsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3133
    except CatalogServiceException, cex:
3134
      result.cex = cex
3135
    oprot.writeMessageBegin("getBestDealsCatalogIds", TMessageType.REPLY, seqid)
3136
    result.write(oprot)
3137
    oprot.writeMessageEnd()
3138
    oprot.trans.flush()
3139
 
3140
  def process_getBestDealsCount(self, seqid, iprot, oprot):
3141
    args = getBestDealsCount_args()
3142
    args.read(iprot)
3143
    iprot.readMessageEnd()
3144
    result = getBestDealsCount_result()
3145
    try:
3146
      result.success = self._handler.getBestDealsCount()
3147
    except CatalogServiceException, cex:
3148
      result.cex = cex
3149
    oprot.writeMessageBegin("getBestDealsCount", TMessageType.REPLY, seqid)
3150
    result.write(oprot)
3151
    oprot.writeMessageEnd()
3152
    oprot.trans.flush()
3153
 
3154
  def process_getComingSoon(self, seqid, iprot, oprot):
3155
    args = getComingSoon_args()
3156
    args.read(iprot)
3157
    iprot.readMessageEnd()
3158
    result = getComingSoon_result()
3159
    try:
3160
      result.success = self._handler.getComingSoon()
3161
    except CatalogServiceException, isex:
3162
      result.isex = isex
3163
    oprot.writeMessageBegin("getComingSoon", TMessageType.REPLY, seqid)
3164
    result.write(oprot)
3165
    oprot.writeMessageEnd()
3166
    oprot.trans.flush()
3167
 
3168
  def process_getComingSoonCatalogIds(self, seqid, iprot, oprot):
3169
    args = getComingSoonCatalogIds_args()
3170
    args.read(iprot)
3171
    iprot.readMessageEnd()
3172
    result = getComingSoonCatalogIds_result()
3173
    try:
3174
      result.success = self._handler.getComingSoonCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
3175
    except CatalogServiceException, cex:
3176
      result.cex = cex
3177
    oprot.writeMessageBegin("getComingSoonCatalogIds", TMessageType.REPLY, seqid)
3178
    result.write(oprot)
3179
    oprot.writeMessageEnd()
3180
    oprot.trans.flush()
3181
 
3182
  def process_getComingSoonCount(self, seqid, iprot, oprot):
3183
    args = getComingSoonCount_args()
3184
    args.read(iprot)
3185
    iprot.readMessageEnd()
3186
    result = getComingSoonCount_result()
3187
    try:
3188
      result.success = self._handler.getComingSoonCount()
3189
    except CatalogServiceException, cex:
3190
      result.cex = cex
3191
    oprot.writeMessageBegin("getComingSoonCount", TMessageType.REPLY, seqid)
3192
    result.write(oprot)
3193
    oprot.writeMessageEnd()
3194
    oprot.trans.flush()
3195
 
3196
  def process_getLatestArrivals(self, seqid, iprot, oprot):
3197
    args = getLatestArrivals_args()
3198
    args.read(iprot)
3199
    iprot.readMessageEnd()
3200
    result = getLatestArrivals_result()
3201
    try:
3202
      result.success = self._handler.getLatestArrivals()
3203
    except CatalogServiceException, isex:
3204
      result.isex = isex
3205
    oprot.writeMessageBegin("getLatestArrivals", TMessageType.REPLY, seqid)
3206
    result.write(oprot)
3207
    oprot.writeMessageEnd()
3208
    oprot.trans.flush()
3209
 
3210
  def process_getLatestArrivalsCatalogIds(self, seqid, iprot, oprot):
3211
    args = getLatestArrivalsCatalogIds_args()
3212
    args.read(iprot)
3213
    iprot.readMessageEnd()
3214
    result = getLatestArrivalsCatalogIds_result()
3215
    try:
3216
      result.success = self._handler.getLatestArrivalsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.categories)
3217
    except CatalogServiceException, cex:
3218
      result.cex = cex
3219
    oprot.writeMessageBegin("getLatestArrivalsCatalogIds", TMessageType.REPLY, seqid)
3220
    result.write(oprot)
3221
    oprot.writeMessageEnd()
3222
    oprot.trans.flush()
3223
 
3224
  def process_getLatestArrivalsCount(self, seqid, iprot, oprot):
3225
    args = getLatestArrivalsCount_args()
3226
    args.read(iprot)
3227
    iprot.readMessageEnd()
3228
    result = getLatestArrivalsCount_result()
3229
    try:
3230
      result.success = self._handler.getLatestArrivalsCount()
3231
    except CatalogServiceException, cex:
3232
      result.cex = cex
3233
    oprot.writeMessageBegin("getLatestArrivalsCount", TMessageType.REPLY, seqid)
3234
    result.write(oprot)
3235
    oprot.writeMessageEnd()
3236
    oprot.trans.flush()
3237
 
3238
  def process_generateNewEntityID(self, seqid, iprot, oprot):
3239
    args = generateNewEntityID_args()
3240
    args.read(iprot)
3241
    iprot.readMessageEnd()
3242
    result = generateNewEntityID_result()
3243
    result.success = self._handler.generateNewEntityID()
3244
    oprot.writeMessageBegin("generateNewEntityID", TMessageType.REPLY, seqid)
3245
    result.write(oprot)
3246
    oprot.writeMessageEnd()
3247
    oprot.trans.flush()
3248
 
3249
  def process_addCategory(self, seqid, iprot, oprot):
3250
    args = addCategory_args()
3251
    args.read(iprot)
3252
    iprot.readMessageEnd()
3253
    result = addCategory_result()
3254
    result.success = self._handler.addCategory(args.category)
3255
    oprot.writeMessageBegin("addCategory", TMessageType.REPLY, seqid)
3256
    result.write(oprot)
3257
    oprot.writeMessageEnd()
3258
    oprot.trans.flush()
3259
 
3260
  def process_getCategory(self, seqid, iprot, oprot):
3261
    args = getCategory_args()
3262
    args.read(iprot)
3263
    iprot.readMessageEnd()
3264
    result = getCategory_result()
3265
    result.success = self._handler.getCategory(args.id)
3266
    oprot.writeMessageBegin("getCategory", TMessageType.REPLY, seqid)
3267
    result.write(oprot)
3268
    oprot.writeMessageEnd()
3269
    oprot.trans.flush()
3270
 
3271
  def process_getAllCategories(self, seqid, iprot, oprot):
3272
    args = getAllCategories_args()
3273
    args.read(iprot)
3274
    iprot.readMessageEnd()
3275
    result = getAllCategories_result()
3276
    result.success = self._handler.getAllCategories()
3277
    oprot.writeMessageBegin("getAllCategories", TMessageType.REPLY, seqid)
3278
    result.write(oprot)
3279
    oprot.writeMessageEnd()
3280
    oprot.trans.flush()
3281
 
3282
  def process_getAllSimilarItems(self, seqid, iprot, oprot):
3283
    args = getAllSimilarItems_args()
3284
    args.read(iprot)
3285
    iprot.readMessageEnd()
3286
    result = getAllSimilarItems_result()
3287
    result.success = self._handler.getAllSimilarItems(args.itemId)
3288
    oprot.writeMessageBegin("getAllSimilarItems", TMessageType.REPLY, seqid)
3289
    result.write(oprot)
3290
    oprot.writeMessageEnd()
3291
    oprot.trans.flush()
3292
 
3293
  def process_addSimilarItem(self, seqid, iprot, oprot):
3294
    args = addSimilarItem_args()
3295
    args.read(iprot)
3296
    iprot.readMessageEnd()
3297
    result = addSimilarItem_result()
3298
    try:
3299
      result.success = self._handler.addSimilarItem(args.itemId, args.catalogItemId)
3300
    except CatalogServiceException, cex:
3301
      result.cex = cex
3302
    oprot.writeMessageBegin("addSimilarItem", TMessageType.REPLY, seqid)
3303
    result.write(oprot)
3304
    oprot.writeMessageEnd()
3305
    oprot.trans.flush()
3306
 
6512 kshitij.so 3307
  def process_addTag(self, seqid, iprot, oprot):
3308
    args = addTag_args()
3309
    args.read(iprot)
3310
    iprot.readMessageEnd()
3311
    result = addTag_result()
3312
    result.success = self._handler.addTag(args.displayName, args.itemId)
3313
    oprot.writeMessageBegin("addTag", TMessageType.REPLY, seqid)
3314
    result.write(oprot)
3315
    oprot.writeMessageEnd()
3316
    oprot.trans.flush()
3317
 
3318
  def process_deleteEntityTag(self, seqid, iprot, oprot):
3319
    args = deleteEntityTag_args()
3320
    args.read(iprot)
3321
    iprot.readMessageEnd()
3322
    result = deleteEntityTag_result()
3323
    result.success = self._handler.deleteEntityTag(args.displayName, args.itemId)
3324
    oprot.writeMessageBegin("deleteEntityTag", TMessageType.REPLY, seqid)
3325
    result.write(oprot)
3326
    oprot.writeMessageEnd()
3327
    oprot.trans.flush()
3328
 
3329
  def process_deleteTag(self, seqid, iprot, oprot):
3330
    args = deleteTag_args()
3331
    args.read(iprot)
3332
    iprot.readMessageEnd()
3333
    result = deleteTag_result()
3334
    result.success = self._handler.deleteTag(args.displayName)
3335
    oprot.writeMessageBegin("deleteTag", TMessageType.REPLY, seqid)
3336
    result.write(oprot)
3337
    oprot.writeMessageEnd()
3338
    oprot.trans.flush()
3339
 
3340
  def process_getAllTags(self, seqid, iprot, oprot):
3341
    args = getAllTags_args()
3342
    args.read(iprot)
3343
    iprot.readMessageEnd()
3344
    result = getAllTags_result()
3345
    result.success = self._handler.getAllTags()
3346
    oprot.writeMessageBegin("getAllTags", TMessageType.REPLY, seqid)
3347
    result.write(oprot)
3348
    oprot.writeMessageEnd()
3349
    oprot.trans.flush()
3350
 
3351
  def process_getAllEntitiesByTagName(self, seqid, iprot, oprot):
3352
    args = getAllEntitiesByTagName_args()
3353
    args.read(iprot)
3354
    iprot.readMessageEnd()
3355
    result = getAllEntitiesByTagName_result()
3356
    result.success = self._handler.getAllEntitiesByTagName(args.displayName)
3357
    oprot.writeMessageBegin("getAllEntitiesByTagName", TMessageType.REPLY, seqid)
3358
    result.write(oprot)
3359
    oprot.writeMessageEnd()
3360
    oprot.trans.flush()
3361
 
5944 mandeep.dh 3362
  def process_deleteSimilarItem(self, seqid, iprot, oprot):
3363
    args = deleteSimilarItem_args()
3364
    args.read(iprot)
3365
    iprot.readMessageEnd()
3366
    result = deleteSimilarItem_result()
3367
    try:
3368
      result.success = self._handler.deleteSimilarItem(args.itemId, args.catalogItemId)
3369
    except CatalogServiceException, cex:
3370
      result.cex = cex
3371
    oprot.writeMessageBegin("deleteSimilarItem", TMessageType.REPLY, seqid)
3372
    result.write(oprot)
3373
    oprot.writeMessageEnd()
3374
    oprot.trans.flush()
3375
 
3376
  def process_checkSimilarItem(self, seqid, iprot, oprot):
3377
    args = checkSimilarItem_args()
3378
    args.read(iprot)
3379
    iprot.readMessageEnd()
3380
    result = checkSimilarItem_result()
3381
    result.success = self._handler.checkSimilarItem(args.brand, args.modelNumber, args.modelName, args.color)
3382
    oprot.writeMessageBegin("checkSimilarItem", TMessageType.REPLY, seqid)
3383
    result.write(oprot)
3384
    oprot.writeMessageEnd()
3385
    oprot.trans.flush()
3386
 
3387
  def process_validateRiskyStatus(self, seqid, iprot, oprot):
3388
    args = validateRiskyStatus_args()
3389
    args.read(iprot)
3390
    iprot.readMessageEnd()
3391
    result = validateRiskyStatus_result()
3392
    self._handler.validateRiskyStatus(args.itemId)
3393
    oprot.writeMessageBegin("validateRiskyStatus", TMessageType.REPLY, seqid)
3394
    result.write(oprot)
3395
    oprot.writeMessageEnd()
3396
    oprot.trans.flush()
3397
 
3398
  def process_changeItemRiskyFlag(self, seqid, iprot, oprot):
3399
    args = changeItemRiskyFlag_args()
3400
    args.read(iprot)
3401
    iprot.readMessageEnd()
3402
    result = changeItemRiskyFlag_result()
3403
    self._handler.changeItemRiskyFlag(args.itemId, args.risky)
3404
    oprot.writeMessageBegin("changeItemRiskyFlag", TMessageType.REPLY, seqid)
3405
    result.write(oprot)
3406
    oprot.writeMessageEnd()
3407
    oprot.trans.flush()
3408
 
3409
  def process_getItemsByRiskyFlag(self, seqid, iprot, oprot):
3410
    args = getItemsByRiskyFlag_args()
3411
    args.read(iprot)
3412
    iprot.readMessageEnd()
3413
    result = getItemsByRiskyFlag_result()
3414
    result.success = self._handler.getItemsByRiskyFlag()
3415
    oprot.writeMessageBegin("getItemsByRiskyFlag", TMessageType.REPLY, seqid)
3416
    result.write(oprot)
3417
    oprot.writeMessageEnd()
3418
    oprot.trans.flush()
3419
 
3420
  def process_getItemsForMasterSheet(self, seqid, iprot, oprot):
3421
    args = getItemsForMasterSheet_args()
3422
    args.read(iprot)
3423
    iprot.readMessageEnd()
3424
    result = getItemsForMasterSheet_result()
3425
    result.success = self._handler.getItemsForMasterSheet(args.category, args.brand)
3426
    oprot.writeMessageBegin("getItemsForMasterSheet", TMessageType.REPLY, seqid)
3427
    result.write(oprot)
3428
    oprot.writeMessageEnd()
3429
    oprot.trans.flush()
3430
 
3431
  def process_getSimilarItemsCatalogIds(self, seqid, iprot, oprot):
3432
    args = getSimilarItemsCatalogIds_args()
3433
    args.read(iprot)
3434
    iprot.readMessageEnd()
3435
    result = getSimilarItemsCatalogIds_result()
3436
    result.success = self._handler.getSimilarItemsCatalogIds(args.beginIndex, args.totalItems, args.itemId)
3437
    oprot.writeMessageBegin("getSimilarItemsCatalogIds", TMessageType.REPLY, seqid)
3438
    result.write(oprot)
3439
    oprot.writeMessageEnd()
3440
    oprot.trans.flush()
3441
 
3442
  def process_addProductNotification(self, seqid, iprot, oprot):
3443
    args = addProductNotification_args()
3444
    args.read(iprot)
3445
    iprot.readMessageEnd()
3446
    result = addProductNotification_result()
3447
    result.success = self._handler.addProductNotification(args.itemId, args.email)
3448
    oprot.writeMessageBegin("addProductNotification", TMessageType.REPLY, seqid)
3449
    result.write(oprot)
3450
    oprot.writeMessageEnd()
3451
    oprot.trans.flush()
3452
 
3453
  def process_sendProductNotifications(self, seqid, iprot, oprot):
3454
    args = sendProductNotifications_args()
3455
    args.read(iprot)
3456
    iprot.readMessageEnd()
3457
    result = sendProductNotifications_result()
3458
    result.success = self._handler.sendProductNotifications()
3459
    oprot.writeMessageBegin("sendProductNotifications", TMessageType.REPLY, seqid)
3460
    result.write(oprot)
3461
    oprot.writeMessageEnd()
3462
    oprot.trans.flush()
3463
 
3464
  def process_getAllBrandsByCategory(self, seqid, iprot, oprot):
3465
    args = getAllBrandsByCategory_args()
3466
    args.read(iprot)
3467
    iprot.readMessageEnd()
3468
    result = getAllBrandsByCategory_result()
3469
    result.success = self._handler.getAllBrandsByCategory(args.categoryId)
3470
    oprot.writeMessageBegin("getAllBrandsByCategory", TMessageType.REPLY, seqid)
3471
    result.write(oprot)
3472
    oprot.writeMessageEnd()
3473
    oprot.trans.flush()
3474
 
3475
  def process_getAllBrands(self, seqid, iprot, oprot):
3476
    args = getAllBrands_args()
3477
    args.read(iprot)
3478
    iprot.readMessageEnd()
3479
    result = getAllBrands_result()
3480
    result.success = self._handler.getAllBrands()
3481
    oprot.writeMessageBegin("getAllBrands", TMessageType.REPLY, seqid)
3482
    result.write(oprot)
3483
    oprot.writeMessageEnd()
3484
    oprot.trans.flush()
3485
 
3486
  def process_getAllSources(self, seqid, iprot, oprot):
3487
    args = getAllSources_args()
3488
    args.read(iprot)
3489
    iprot.readMessageEnd()
3490
    result = getAllSources_result()
3491
    result.success = self._handler.getAllSources()
3492
    oprot.writeMessageBegin("getAllSources", TMessageType.REPLY, seqid)
3493
    result.write(oprot)
3494
    oprot.writeMessageEnd()
3495
    oprot.trans.flush()
3496
 
3497
  def process_getItemPricingBySource(self, seqid, iprot, oprot):
3498
    args = getItemPricingBySource_args()
3499
    args.read(iprot)
3500
    iprot.readMessageEnd()
3501
    result = getItemPricingBySource_result()
3502
    try:
3503
      result.success = self._handler.getItemPricingBySource(args.itemId, args.sourceId)
3504
    except CatalogServiceException, cex:
3505
      result.cex = cex
3506
    oprot.writeMessageBegin("getItemPricingBySource", TMessageType.REPLY, seqid)
3507
    result.write(oprot)
3508
    oprot.writeMessageEnd()
3509
    oprot.trans.flush()
3510
 
3511
  def process_addSourceItemPricing(self, seqid, iprot, oprot):
3512
    args = addSourceItemPricing_args()
3513
    args.read(iprot)
3514
    iprot.readMessageEnd()
3515
    result = addSourceItemPricing_result()
3516
    try:
3517
      self._handler.addSourceItemPricing(args.sourceItemPricing)
3518
    except CatalogServiceException, cex:
3519
      result.cex = cex
3520
    oprot.writeMessageBegin("addSourceItemPricing", TMessageType.REPLY, seqid)
3521
    result.write(oprot)
3522
    oprot.writeMessageEnd()
3523
    oprot.trans.flush()
3524
 
3525
  def process_getAllSourcePricing(self, seqid, iprot, oprot):
3526
    args = getAllSourcePricing_args()
3527
    args.read(iprot)
3528
    iprot.readMessageEnd()
3529
    result = getAllSourcePricing_result()
3530
    try:
3531
      result.success = self._handler.getAllSourcePricing(args.itemId)
3532
    except CatalogServiceException, cex:
3533
      result.cex = cex
3534
    oprot.writeMessageBegin("getAllSourcePricing", TMessageType.REPLY, seqid)
3535
    result.write(oprot)
3536
    oprot.writeMessageEnd()
3537
    oprot.trans.flush()
3538
 
3539
  def process_getItemForSource(self, seqid, iprot, oprot):
3540
    args = getItemForSource_args()
3541
    args.read(iprot)
3542
    iprot.readMessageEnd()
3543
    result = getItemForSource_result()
3544
    try:
3545
      result.success = self._handler.getItemForSource(args.item_id, args.sourceId)
3546
    except CatalogServiceException, cex:
3547
      result.cex = cex
3548
    oprot.writeMessageBegin("getItemForSource", TMessageType.REPLY, seqid)
3549
    result.write(oprot)
3550
    oprot.writeMessageEnd()
3551
    oprot.trans.flush()
3552
 
3553
  def process_searchItemsInRange(self, seqid, iprot, oprot):
3554
    args = searchItemsInRange_args()
3555
    args.read(iprot)
3556
    iprot.readMessageEnd()
3557
    result = searchItemsInRange_result()
3558
    result.success = self._handler.searchItemsInRange(args.searchTerms, args.offset, args.limit)
3559
    oprot.writeMessageBegin("searchItemsInRange", TMessageType.REPLY, seqid)
3560
    result.write(oprot)
3561
    oprot.writeMessageEnd()
3562
    oprot.trans.flush()
3563
 
3564
  def process_getSearchResultCount(self, seqid, iprot, oprot):
3565
    args = getSearchResultCount_args()
3566
    args.read(iprot)
3567
    iprot.readMessageEnd()
3568
    result = getSearchResultCount_result()
3569
    result.success = self._handler.getSearchResultCount(args.searchTerms)
3570
    oprot.writeMessageBegin("getSearchResultCount", TMessageType.REPLY, seqid)
3571
    result.write(oprot)
3572
    oprot.writeMessageEnd()
3573
    oprot.trans.flush()
3574
 
3575
  def process_getProductNotifications(self, seqid, iprot, oprot):
3576
    args = getProductNotifications_args()
3577
    args.read(iprot)
3578
    iprot.readMessageEnd()
3579
    result = getProductNotifications_result()
3580
    result.success = self._handler.getProductNotifications(args.startDateTime)
3581
    oprot.writeMessageBegin("getProductNotifications", TMessageType.REPLY, seqid)
3582
    result.write(oprot)
3583
    oprot.writeMessageEnd()
3584
    oprot.trans.flush()
3585
 
3586
  def process_getProductNotificationRequestCount(self, seqid, iprot, oprot):
3587
    args = getProductNotificationRequestCount_args()
3588
    args.read(iprot)
3589
    iprot.readMessageEnd()
3590
    result = getProductNotificationRequestCount_result()
3591
    result.success = self._handler.getProductNotificationRequestCount(args.startDateTime)
3592
    oprot.writeMessageBegin("getProductNotificationRequestCount", TMessageType.REPLY, seqid)
3593
    result.write(oprot)
3594
    oprot.writeMessageEnd()
3595
    oprot.trans.flush()
3596
 
3597
  def process_addAuthorizationLog(self, seqid, iprot, oprot):
3598
    args = addAuthorizationLog_args()
3599
    args.read(iprot)
3600
    iprot.readMessageEnd()
3601
    result = addAuthorizationLog_result()
3602
    try:
3603
      result.success = self._handler.addAuthorizationLog(args.itemId, args.username, args.reason)
3604
    except CatalogServiceException, cex:
3605
      result.cex = cex
3606
    oprot.writeMessageBegin("addAuthorizationLog", TMessageType.REPLY, seqid)
3607
    result.write(oprot)
3608
    oprot.writeMessageEnd()
3609
    oprot.trans.flush()
3610
 
3611
  def process_getClearanceSaleCatalogIds(self, seqid, iprot, oprot):
3612
    args = getClearanceSaleCatalogIds_args()
3613
    args.read(iprot)
3614
    iprot.readMessageEnd()
3615
    result = getClearanceSaleCatalogIds_result()
3616
    try:
3617
      result.success = self._handler.getClearanceSaleCatalogIds()
3618
    except CatalogServiceException, cex:
3619
      result.cex = cex
3620
    oprot.writeMessageBegin("getClearanceSaleCatalogIds", TMessageType.REPLY, seqid)
3621
    result.write(oprot)
3622
    oprot.writeMessageEnd()
3623
    oprot.trans.flush()
3624
 
3625
  def process_addupdateVoucherForItem(self, seqid, iprot, oprot):
3626
    args = addupdateVoucherForItem_args()
3627
    args.read(iprot)
3628
    iprot.readMessageEnd()
3629
    result = addupdateVoucherForItem_result()
3630
    try:
3631
      result.success = self._handler.addupdateVoucherForItem(args.catalog_item_id, args.voucherType, args.voucherAmount)
3632
    except CatalogServiceException, cex:
3633
      result.cex = cex
3634
    oprot.writeMessageBegin("addupdateVoucherForItem", TMessageType.REPLY, seqid)
3635
    result.write(oprot)
3636
    oprot.writeMessageEnd()
3637
    oprot.trans.flush()
3638
 
3639
  def process_deleteVoucherForItem(self, seqid, iprot, oprot):
3640
    args = deleteVoucherForItem_args()
3641
    args.read(iprot)
3642
    iprot.readMessageEnd()
3643
    result = deleteVoucherForItem_result()
3644
    try:
3645
      result.success = self._handler.deleteVoucherForItem(args.catalog_item_id, args.voucherType)
3646
    except CatalogServiceException, cex:
3647
      result.cex = cex
3648
    oprot.writeMessageBegin("deleteVoucherForItem", TMessageType.REPLY, seqid)
3649
    result.write(oprot)
3650
    oprot.writeMessageEnd()
3651
    oprot.trans.flush()
3652
 
3653
  def process_getVoucherAmount(self, seqid, iprot, oprot):
3654
    args = getVoucherAmount_args()
3655
    args.read(iprot)
3656
    iprot.readMessageEnd()
3657
    result = getVoucherAmount_result()
3658
    result.success = self._handler.getVoucherAmount(args.itemId, args.voucherType)
3659
    oprot.writeMessageBegin("getVoucherAmount", TMessageType.REPLY, seqid)
3660
    result.write(oprot)
3661
    oprot.writeMessageEnd()
3662
    oprot.trans.flush()
3663
 
3664
  def process_getAllItemVouchers(self, seqid, iprot, oprot):
3665
    args = getAllItemVouchers_args()
3666
    args.read(iprot)
3667
    iprot.readMessageEnd()
3668
    result = getAllItemVouchers_result()
3669
    result.success = self._handler.getAllItemVouchers(args.itemId)
3670
    oprot.writeMessageBegin("getAllItemVouchers", TMessageType.REPLY, seqid)
3671
    result.write(oprot)
3672
    oprot.writeMessageEnd()
3673
    oprot.trans.flush()
3674
 
3675
  def process_isValidCatalogItemId(self, seqid, iprot, oprot):
3676
    args = isValidCatalogItemId_args()
3677
    args.read(iprot)
3678
    iprot.readMessageEnd()
3679
    result = isValidCatalogItemId_result()
3680
    result.success = self._handler.isValidCatalogItemId(args.catalog_item_id)
3681
    oprot.writeMessageBegin("isValidCatalogItemId", TMessageType.REPLY, seqid)
3682
    result.write(oprot)
3683
    oprot.writeMessageEnd()
3684
    oprot.trans.flush()
3685
 
6039 amit.gupta 3686
  def process_getVatPercentageForItem(self, seqid, iprot, oprot):
3687
    args = getVatPercentageForItem_args()
3688
    args.read(iprot)
3689
    iprot.readMessageEnd()
3690
    result = getVatPercentageForItem_result()
3691
    result.success = self._handler.getVatPercentageForItem(args.itemId, args.price)
3692
    oprot.writeMessageBegin("getVatPercentageForItem", TMessageType.REPLY, seqid)
3693
    result.write(oprot)
3694
    oprot.writeMessageEnd()
3695
    oprot.trans.flush()
5944 mandeep.dh 3696
 
6039 amit.gupta 3697
  def process_getVatAmountForItem(self, seqid, iprot, oprot):
3698
    args = getVatAmountForItem_args()
3699
    args.read(iprot)
3700
    iprot.readMessageEnd()
3701
    result = getVatAmountForItem_result()
3702
    result.success = self._handler.getVatAmountForItem(args.itemId, args.price)
3703
    oprot.writeMessageBegin("getVatAmountForItem", TMessageType.REPLY, seqid)
3704
    result.write(oprot)
3705
    oprot.writeMessageEnd()
3706
    oprot.trans.flush()
3707
 
3708
 
5944 mandeep.dh 3709
# HELPER FUNCTIONS AND STRUCTURES
3710
 
3711
class addItem_args:
3712
  """
3713
  Attributes:
3714
   - item
3715
  """
3716
 
3717
  thrift_spec = (
3718
    None, # 0
3719
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
3720
  )
3721
 
3722
  def __init__(self, item=None,):
3723
    self.item = item
3724
 
3725
  def read(self, iprot):
3726
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3727
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3728
      return
3729
    iprot.readStructBegin()
3730
    while True:
3731
      (fname, ftype, fid) = iprot.readFieldBegin()
3732
      if ftype == TType.STOP:
3733
        break
3734
      if fid == 1:
3735
        if ftype == TType.STRUCT:
3736
          self.item = Item()
3737
          self.item.read(iprot)
3738
        else:
3739
          iprot.skip(ftype)
3740
      else:
3741
        iprot.skip(ftype)
3742
      iprot.readFieldEnd()
3743
    iprot.readStructEnd()
3744
 
3745
  def write(self, oprot):
3746
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3747
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3748
      return
3749
    oprot.writeStructBegin('addItem_args')
3750
    if self.item is not None:
3751
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
3752
      self.item.write(oprot)
3753
      oprot.writeFieldEnd()
3754
    oprot.writeFieldStop()
3755
    oprot.writeStructEnd()
3756
 
3757
  def validate(self):
3758
    return
3759
 
3760
 
3761
  def __repr__(self):
3762
    L = ['%s=%r' % (key, value)
3763
      for key, value in self.__dict__.iteritems()]
3764
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3765
 
3766
  def __eq__(self, other):
3767
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3768
 
3769
  def __ne__(self, other):
3770
    return not (self == other)
3771
 
3772
class addItem_result:
3773
  """
3774
  Attributes:
3775
   - success
3776
   - cex
3777
  """
3778
 
3779
  thrift_spec = (
3780
    (0, TType.I64, 'success', None, None, ), # 0
3781
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
3782
  )
3783
 
3784
  def __init__(self, success=None, cex=None,):
3785
    self.success = success
3786
    self.cex = cex
3787
 
3788
  def read(self, iprot):
3789
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3790
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3791
      return
3792
    iprot.readStructBegin()
3793
    while True:
3794
      (fname, ftype, fid) = iprot.readFieldBegin()
3795
      if ftype == TType.STOP:
3796
        break
3797
      if fid == 0:
3798
        if ftype == TType.I64:
3799
          self.success = iprot.readI64();
3800
        else:
3801
          iprot.skip(ftype)
3802
      elif fid == 1:
3803
        if ftype == TType.STRUCT:
3804
          self.cex = CatalogServiceException()
3805
          self.cex.read(iprot)
3806
        else:
3807
          iprot.skip(ftype)
3808
      else:
3809
        iprot.skip(ftype)
3810
      iprot.readFieldEnd()
3811
    iprot.readStructEnd()
3812
 
3813
  def write(self, oprot):
3814
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3815
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3816
      return
3817
    oprot.writeStructBegin('addItem_result')
3818
    if self.success is not None:
3819
      oprot.writeFieldBegin('success', TType.I64, 0)
3820
      oprot.writeI64(self.success)
3821
      oprot.writeFieldEnd()
3822
    if self.cex is not None:
3823
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
3824
      self.cex.write(oprot)
3825
      oprot.writeFieldEnd()
3826
    oprot.writeFieldStop()
3827
    oprot.writeStructEnd()
3828
 
3829
  def validate(self):
3830
    return
3831
 
3832
 
3833
  def __repr__(self):
3834
    L = ['%s=%r' % (key, value)
3835
      for key, value in self.__dict__.iteritems()]
3836
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3837
 
3838
  def __eq__(self, other):
3839
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3840
 
3841
  def __ne__(self, other):
3842
    return not (self == other)
3843
 
3844
class updateItem_args:
3845
  """
3846
  Attributes:
3847
   - item
3848
  """
3849
 
3850
  thrift_spec = (
3851
    None, # 0
3852
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
3853
  )
3854
 
3855
  def __init__(self, item=None,):
3856
    self.item = item
3857
 
3858
  def read(self, iprot):
3859
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3860
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3861
      return
3862
    iprot.readStructBegin()
3863
    while True:
3864
      (fname, ftype, fid) = iprot.readFieldBegin()
3865
      if ftype == TType.STOP:
3866
        break
3867
      if fid == 1:
3868
        if ftype == TType.STRUCT:
3869
          self.item = Item()
3870
          self.item.read(iprot)
3871
        else:
3872
          iprot.skip(ftype)
3873
      else:
3874
        iprot.skip(ftype)
3875
      iprot.readFieldEnd()
3876
    iprot.readStructEnd()
3877
 
3878
  def write(self, oprot):
3879
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3880
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3881
      return
3882
    oprot.writeStructBegin('updateItem_args')
3883
    if self.item is not None:
3884
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
3885
      self.item.write(oprot)
3886
      oprot.writeFieldEnd()
3887
    oprot.writeFieldStop()
3888
    oprot.writeStructEnd()
3889
 
3890
  def validate(self):
3891
    return
3892
 
3893
 
3894
  def __repr__(self):
3895
    L = ['%s=%r' % (key, value)
3896
      for key, value in self.__dict__.iteritems()]
3897
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3898
 
3899
  def __eq__(self, other):
3900
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3901
 
3902
  def __ne__(self, other):
3903
    return not (self == other)
3904
 
3905
class updateItem_result:
3906
  """
3907
  Attributes:
3908
   - success
3909
   - cex
3910
  """
3911
 
3912
  thrift_spec = (
3913
    (0, TType.I64, 'success', None, None, ), # 0
3914
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
3915
  )
3916
 
3917
  def __init__(self, success=None, cex=None,):
3918
    self.success = success
3919
    self.cex = cex
3920
 
3921
  def read(self, iprot):
3922
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3923
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3924
      return
3925
    iprot.readStructBegin()
3926
    while True:
3927
      (fname, ftype, fid) = iprot.readFieldBegin()
3928
      if ftype == TType.STOP:
3929
        break
3930
      if fid == 0:
3931
        if ftype == TType.I64:
3932
          self.success = iprot.readI64();
3933
        else:
3934
          iprot.skip(ftype)
3935
      elif fid == 1:
3936
        if ftype == TType.STRUCT:
3937
          self.cex = CatalogServiceException()
3938
          self.cex.read(iprot)
3939
        else:
3940
          iprot.skip(ftype)
3941
      else:
3942
        iprot.skip(ftype)
3943
      iprot.readFieldEnd()
3944
    iprot.readStructEnd()
3945
 
3946
  def write(self, oprot):
3947
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3948
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3949
      return
3950
    oprot.writeStructBegin('updateItem_result')
3951
    if self.success is not None:
3952
      oprot.writeFieldBegin('success', TType.I64, 0)
3953
      oprot.writeI64(self.success)
3954
      oprot.writeFieldEnd()
3955
    if self.cex is not None:
3956
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
3957
      self.cex.write(oprot)
3958
      oprot.writeFieldEnd()
3959
    oprot.writeFieldStop()
3960
    oprot.writeStructEnd()
3961
 
3962
  def validate(self):
3963
    return
3964
 
3965
 
3966
  def __repr__(self):
3967
    L = ['%s=%r' % (key, value)
3968
      for key, value in self.__dict__.iteritems()]
3969
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3970
 
3971
  def __eq__(self, other):
3972
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3973
 
3974
  def __ne__(self, other):
3975
    return not (self == other)
3976
 
3977
class isActive_args:
3978
  """
3979
  Attributes:
3980
   - itemId
3981
  """
3982
 
3983
  thrift_spec = (
3984
    None, # 0
3985
    (1, TType.I64, 'itemId', None, None, ), # 1
3986
  )
3987
 
3988
  def __init__(self, itemId=None,):
3989
    self.itemId = itemId
3990
 
3991
  def read(self, iprot):
3992
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3993
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3994
      return
3995
    iprot.readStructBegin()
3996
    while True:
3997
      (fname, ftype, fid) = iprot.readFieldBegin()
3998
      if ftype == TType.STOP:
3999
        break
4000
      if fid == 1:
4001
        if ftype == TType.I64:
4002
          self.itemId = iprot.readI64();
4003
        else:
4004
          iprot.skip(ftype)
4005
      else:
4006
        iprot.skip(ftype)
4007
      iprot.readFieldEnd()
4008
    iprot.readStructEnd()
4009
 
4010
  def write(self, oprot):
4011
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4012
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4013
      return
4014
    oprot.writeStructBegin('isActive_args')
4015
    if self.itemId is not None:
4016
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4017
      oprot.writeI64(self.itemId)
4018
      oprot.writeFieldEnd()
4019
    oprot.writeFieldStop()
4020
    oprot.writeStructEnd()
4021
 
4022
  def validate(self):
4023
    return
4024
 
4025
 
4026
  def __repr__(self):
4027
    L = ['%s=%r' % (key, value)
4028
      for key, value in self.__dict__.iteritems()]
4029
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4030
 
4031
  def __eq__(self, other):
4032
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4033
 
4034
  def __ne__(self, other):
4035
    return not (self == other)
4036
 
4037
class isActive_result:
4038
  """
4039
  Attributes:
4040
   - success
4041
   - isex
4042
  """
4043
 
4044
  thrift_spec = (
4045
    (0, TType.STRUCT, 'success', (ItemShippingInfo, ItemShippingInfo.thrift_spec), None, ), # 0
4046
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4047
  )
4048
 
4049
  def __init__(self, success=None, isex=None,):
4050
    self.success = success
4051
    self.isex = isex
4052
 
4053
  def read(self, iprot):
4054
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4055
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4056
      return
4057
    iprot.readStructBegin()
4058
    while True:
4059
      (fname, ftype, fid) = iprot.readFieldBegin()
4060
      if ftype == TType.STOP:
4061
        break
4062
      if fid == 0:
4063
        if ftype == TType.STRUCT:
4064
          self.success = ItemShippingInfo()
4065
          self.success.read(iprot)
4066
        else:
4067
          iprot.skip(ftype)
4068
      elif fid == 1:
4069
        if ftype == TType.STRUCT:
4070
          self.isex = CatalogServiceException()
4071
          self.isex.read(iprot)
4072
        else:
4073
          iprot.skip(ftype)
4074
      else:
4075
        iprot.skip(ftype)
4076
      iprot.readFieldEnd()
4077
    iprot.readStructEnd()
4078
 
4079
  def write(self, oprot):
4080
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4081
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4082
      return
4083
    oprot.writeStructBegin('isActive_result')
4084
    if self.success is not None:
4085
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4086
      self.success.write(oprot)
4087
      oprot.writeFieldEnd()
4088
    if self.isex is not None:
4089
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
4090
      self.isex.write(oprot)
4091
      oprot.writeFieldEnd()
4092
    oprot.writeFieldStop()
4093
    oprot.writeStructEnd()
4094
 
4095
  def validate(self):
4096
    return
4097
 
4098
 
4099
  def __repr__(self):
4100
    L = ['%s=%r' % (key, value)
4101
      for key, value in self.__dict__.iteritems()]
4102
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4103
 
4104
  def __eq__(self, other):
4105
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4106
 
4107
  def __ne__(self, other):
4108
    return not (self == other)
4109
 
4110
class getItemStatusDescription_args:
4111
  """
4112
  Attributes:
4113
   - itemId
4114
  """
4115
 
4116
  thrift_spec = (
4117
    None, # 0
4118
    (1, TType.I64, 'itemId', None, None, ), # 1
4119
  )
4120
 
4121
  def __init__(self, itemId=None,):
4122
    self.itemId = itemId
4123
 
4124
  def read(self, iprot):
4125
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4126
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4127
      return
4128
    iprot.readStructBegin()
4129
    while True:
4130
      (fname, ftype, fid) = iprot.readFieldBegin()
4131
      if ftype == TType.STOP:
4132
        break
4133
      if fid == 1:
4134
        if ftype == TType.I64:
4135
          self.itemId = iprot.readI64();
4136
        else:
4137
          iprot.skip(ftype)
4138
      else:
4139
        iprot.skip(ftype)
4140
      iprot.readFieldEnd()
4141
    iprot.readStructEnd()
4142
 
4143
  def write(self, oprot):
4144
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4145
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4146
      return
4147
    oprot.writeStructBegin('getItemStatusDescription_args')
4148
    if self.itemId is not None:
4149
      oprot.writeFieldBegin('itemId', TType.I64, 1)
4150
      oprot.writeI64(self.itemId)
4151
      oprot.writeFieldEnd()
4152
    oprot.writeFieldStop()
4153
    oprot.writeStructEnd()
4154
 
4155
  def validate(self):
4156
    return
4157
 
4158
 
4159
  def __repr__(self):
4160
    L = ['%s=%r' % (key, value)
4161
      for key, value in self.__dict__.iteritems()]
4162
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4163
 
4164
  def __eq__(self, other):
4165
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4166
 
4167
  def __ne__(self, other):
4168
    return not (self == other)
4169
 
4170
class getItemStatusDescription_result:
4171
  """
4172
  Attributes:
4173
   - success
4174
   - isex
4175
  """
4176
 
4177
  thrift_spec = (
4178
    (0, TType.STRING, 'success', None, None, ), # 0
4179
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4180
  )
4181
 
4182
  def __init__(self, success=None, isex=None,):
4183
    self.success = success
4184
    self.isex = isex
4185
 
4186
  def read(self, iprot):
4187
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4188
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4189
      return
4190
    iprot.readStructBegin()
4191
    while True:
4192
      (fname, ftype, fid) = iprot.readFieldBegin()
4193
      if ftype == TType.STOP:
4194
        break
4195
      if fid == 0:
4196
        if ftype == TType.STRING:
4197
          self.success = iprot.readString();
4198
        else:
4199
          iprot.skip(ftype)
4200
      elif fid == 1:
4201
        if ftype == TType.STRUCT:
4202
          self.isex = CatalogServiceException()
4203
          self.isex.read(iprot)
4204
        else:
4205
          iprot.skip(ftype)
4206
      else:
4207
        iprot.skip(ftype)
4208
      iprot.readFieldEnd()
4209
    iprot.readStructEnd()
4210
 
4211
  def write(self, oprot):
4212
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4213
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4214
      return
4215
    oprot.writeStructBegin('getItemStatusDescription_result')
4216
    if self.success is not None:
4217
      oprot.writeFieldBegin('success', TType.STRING, 0)
4218
      oprot.writeString(self.success)
4219
      oprot.writeFieldEnd()
4220
    if self.isex is not None:
4221
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
4222
      self.isex.write(oprot)
4223
      oprot.writeFieldEnd()
4224
    oprot.writeFieldStop()
4225
    oprot.writeStructEnd()
4226
 
4227
  def validate(self):
4228
    return
4229
 
4230
 
4231
  def __repr__(self):
4232
    L = ['%s=%r' % (key, value)
4233
      for key, value in self.__dict__.iteritems()]
4234
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4235
 
4236
  def __eq__(self, other):
4237
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4238
 
4239
  def __ne__(self, other):
4240
    return not (self == other)
4241
 
4242
class startItemOn_args:
4243
  """
4244
  Attributes:
4245
   - item_id
4246
   - timestamp
4247
  """
4248
 
4249
  thrift_spec = (
4250
    None, # 0
4251
    (1, TType.I64, 'item_id', None, None, ), # 1
4252
    (2, TType.I64, 'timestamp', None, None, ), # 2
4253
  )
4254
 
4255
  def __init__(self, item_id=None, timestamp=None,):
4256
    self.item_id = item_id
4257
    self.timestamp = timestamp
4258
 
4259
  def read(self, iprot):
4260
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4261
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4262
      return
4263
    iprot.readStructBegin()
4264
    while True:
4265
      (fname, ftype, fid) = iprot.readFieldBegin()
4266
      if ftype == TType.STOP:
4267
        break
4268
      if fid == 1:
4269
        if ftype == TType.I64:
4270
          self.item_id = iprot.readI64();
4271
        else:
4272
          iprot.skip(ftype)
4273
      elif fid == 2:
4274
        if ftype == TType.I64:
4275
          self.timestamp = iprot.readI64();
4276
        else:
4277
          iprot.skip(ftype)
4278
      else:
4279
        iprot.skip(ftype)
4280
      iprot.readFieldEnd()
4281
    iprot.readStructEnd()
4282
 
4283
  def write(self, oprot):
4284
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4285
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4286
      return
4287
    oprot.writeStructBegin('startItemOn_args')
4288
    if self.item_id is not None:
4289
      oprot.writeFieldBegin('item_id', TType.I64, 1)
4290
      oprot.writeI64(self.item_id)
4291
      oprot.writeFieldEnd()
4292
    if self.timestamp is not None:
4293
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
4294
      oprot.writeI64(self.timestamp)
4295
      oprot.writeFieldEnd()
4296
    oprot.writeFieldStop()
4297
    oprot.writeStructEnd()
4298
 
4299
  def validate(self):
4300
    return
4301
 
4302
 
4303
  def __repr__(self):
4304
    L = ['%s=%r' % (key, value)
4305
      for key, value in self.__dict__.iteritems()]
4306
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4307
 
4308
  def __eq__(self, other):
4309
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4310
 
4311
  def __ne__(self, other):
4312
    return not (self == other)
4313
 
4314
class startItemOn_result:
4315
  """
4316
  Attributes:
4317
   - cex
4318
  """
4319
 
4320
  thrift_spec = (
4321
    None, # 0
4322
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4323
  )
4324
 
4325
  def __init__(self, cex=None,):
4326
    self.cex = cex
4327
 
4328
  def read(self, iprot):
4329
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4330
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4331
      return
4332
    iprot.readStructBegin()
4333
    while True:
4334
      (fname, ftype, fid) = iprot.readFieldBegin()
4335
      if ftype == TType.STOP:
4336
        break
4337
      if fid == 1:
4338
        if ftype == TType.STRUCT:
4339
          self.cex = CatalogServiceException()
4340
          self.cex.read(iprot)
4341
        else:
4342
          iprot.skip(ftype)
4343
      else:
4344
        iprot.skip(ftype)
4345
      iprot.readFieldEnd()
4346
    iprot.readStructEnd()
4347
 
4348
  def write(self, oprot):
4349
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4350
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4351
      return
4352
    oprot.writeStructBegin('startItemOn_result')
4353
    if self.cex is not None:
4354
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4355
      self.cex.write(oprot)
4356
      oprot.writeFieldEnd()
4357
    oprot.writeFieldStop()
4358
    oprot.writeStructEnd()
4359
 
4360
  def validate(self):
4361
    return
4362
 
4363
 
4364
  def __repr__(self):
4365
    L = ['%s=%r' % (key, value)
4366
      for key, value in self.__dict__.iteritems()]
4367
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4368
 
4369
  def __eq__(self, other):
4370
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4371
 
4372
  def __ne__(self, other):
4373
    return not (self == other)
4374
 
4375
class retireItemOn_args:
4376
  """
4377
  Attributes:
4378
   - item_id
4379
   - timestamp
4380
  """
4381
 
4382
  thrift_spec = (
4383
    None, # 0
4384
    (1, TType.I64, 'item_id', None, None, ), # 1
4385
    (2, TType.I64, 'timestamp', None, None, ), # 2
4386
  )
4387
 
4388
  def __init__(self, item_id=None, timestamp=None,):
4389
    self.item_id = item_id
4390
    self.timestamp = timestamp
4391
 
4392
  def read(self, iprot):
4393
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4394
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4395
      return
4396
    iprot.readStructBegin()
4397
    while True:
4398
      (fname, ftype, fid) = iprot.readFieldBegin()
4399
      if ftype == TType.STOP:
4400
        break
4401
      if fid == 1:
4402
        if ftype == TType.I64:
4403
          self.item_id = iprot.readI64();
4404
        else:
4405
          iprot.skip(ftype)
4406
      elif fid == 2:
4407
        if ftype == TType.I64:
4408
          self.timestamp = iprot.readI64();
4409
        else:
4410
          iprot.skip(ftype)
4411
      else:
4412
        iprot.skip(ftype)
4413
      iprot.readFieldEnd()
4414
    iprot.readStructEnd()
4415
 
4416
  def write(self, oprot):
4417
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4418
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4419
      return
4420
    oprot.writeStructBegin('retireItemOn_args')
4421
    if self.item_id is not None:
4422
      oprot.writeFieldBegin('item_id', TType.I64, 1)
4423
      oprot.writeI64(self.item_id)
4424
      oprot.writeFieldEnd()
4425
    if self.timestamp is not None:
4426
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
4427
      oprot.writeI64(self.timestamp)
4428
      oprot.writeFieldEnd()
4429
    oprot.writeFieldStop()
4430
    oprot.writeStructEnd()
4431
 
4432
  def validate(self):
4433
    return
4434
 
4435
 
4436
  def __repr__(self):
4437
    L = ['%s=%r' % (key, value)
4438
      for key, value in self.__dict__.iteritems()]
4439
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4440
 
4441
  def __eq__(self, other):
4442
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4443
 
4444
  def __ne__(self, other):
4445
    return not (self == other)
4446
 
4447
class retireItemOn_result:
4448
  """
4449
  Attributes:
4450
   - cex
4451
  """
4452
 
4453
  thrift_spec = (
4454
    None, # 0
4455
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4456
  )
4457
 
4458
  def __init__(self, cex=None,):
4459
    self.cex = cex
4460
 
4461
  def read(self, iprot):
4462
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4463
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4464
      return
4465
    iprot.readStructBegin()
4466
    while True:
4467
      (fname, ftype, fid) = iprot.readFieldBegin()
4468
      if ftype == TType.STOP:
4469
        break
4470
      if fid == 1:
4471
        if ftype == TType.STRUCT:
4472
          self.cex = CatalogServiceException()
4473
          self.cex.read(iprot)
4474
        else:
4475
          iprot.skip(ftype)
4476
      else:
4477
        iprot.skip(ftype)
4478
      iprot.readFieldEnd()
4479
    iprot.readStructEnd()
4480
 
4481
  def write(self, oprot):
4482
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4483
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4484
      return
4485
    oprot.writeStructBegin('retireItemOn_result')
4486
    if self.cex is not None:
4487
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4488
      self.cex.write(oprot)
4489
      oprot.writeFieldEnd()
4490
    oprot.writeFieldStop()
4491
    oprot.writeStructEnd()
4492
 
4493
  def validate(self):
4494
    return
4495
 
4496
 
4497
  def __repr__(self):
4498
    L = ['%s=%r' % (key, value)
4499
      for key, value in self.__dict__.iteritems()]
4500
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4501
 
4502
  def __eq__(self, other):
4503
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4504
 
4505
  def __ne__(self, other):
4506
    return not (self == other)
4507
 
4508
class changeItemStatus_args:
4509
  """
4510
  Attributes:
4511
   - item_id
4512
   - timestamp
4513
   - newstatus
4514
  """
4515
 
4516
  thrift_spec = (
4517
    None, # 0
4518
    (1, TType.I64, 'item_id', None, None, ), # 1
4519
    (2, TType.I64, 'timestamp', None, None, ), # 2
4520
    (3, TType.I32, 'newstatus', None, None, ), # 3
4521
  )
4522
 
4523
  def __init__(self, item_id=None, timestamp=None, newstatus=None,):
4524
    self.item_id = item_id
4525
    self.timestamp = timestamp
4526
    self.newstatus = newstatus
4527
 
4528
  def read(self, iprot):
4529
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4530
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4531
      return
4532
    iprot.readStructBegin()
4533
    while True:
4534
      (fname, ftype, fid) = iprot.readFieldBegin()
4535
      if ftype == TType.STOP:
4536
        break
4537
      if fid == 1:
4538
        if ftype == TType.I64:
4539
          self.item_id = iprot.readI64();
4540
        else:
4541
          iprot.skip(ftype)
4542
      elif fid == 2:
4543
        if ftype == TType.I64:
4544
          self.timestamp = iprot.readI64();
4545
        else:
4546
          iprot.skip(ftype)
4547
      elif fid == 3:
4548
        if ftype == TType.I32:
4549
          self.newstatus = iprot.readI32();
4550
        else:
4551
          iprot.skip(ftype)
4552
      else:
4553
        iprot.skip(ftype)
4554
      iprot.readFieldEnd()
4555
    iprot.readStructEnd()
4556
 
4557
  def write(self, oprot):
4558
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4559
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4560
      return
4561
    oprot.writeStructBegin('changeItemStatus_args')
4562
    if self.item_id is not None:
4563
      oprot.writeFieldBegin('item_id', TType.I64, 1)
4564
      oprot.writeI64(self.item_id)
4565
      oprot.writeFieldEnd()
4566
    if self.timestamp is not None:
4567
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
4568
      oprot.writeI64(self.timestamp)
4569
      oprot.writeFieldEnd()
4570
    if self.newstatus is not None:
4571
      oprot.writeFieldBegin('newstatus', TType.I32, 3)
4572
      oprot.writeI32(self.newstatus)
4573
      oprot.writeFieldEnd()
4574
    oprot.writeFieldStop()
4575
    oprot.writeStructEnd()
4576
 
4577
  def validate(self):
4578
    return
4579
 
4580
 
4581
  def __repr__(self):
4582
    L = ['%s=%r' % (key, value)
4583
      for key, value in self.__dict__.iteritems()]
4584
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4585
 
4586
  def __eq__(self, other):
4587
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4588
 
4589
  def __ne__(self, other):
4590
    return not (self == other)
4591
 
4592
class changeItemStatus_result:
4593
  """
4594
  Attributes:
4595
   - cex
4596
  """
4597
 
4598
  thrift_spec = (
4599
    None, # 0
4600
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4601
  )
4602
 
4603
  def __init__(self, cex=None,):
4604
    self.cex = cex
4605
 
4606
  def read(self, iprot):
4607
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4608
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4609
      return
4610
    iprot.readStructBegin()
4611
    while True:
4612
      (fname, ftype, fid) = iprot.readFieldBegin()
4613
      if ftype == TType.STOP:
4614
        break
4615
      if fid == 1:
4616
        if ftype == TType.STRUCT:
4617
          self.cex = CatalogServiceException()
4618
          self.cex.read(iprot)
4619
        else:
4620
          iprot.skip(ftype)
4621
      else:
4622
        iprot.skip(ftype)
4623
      iprot.readFieldEnd()
4624
    iprot.readStructEnd()
4625
 
4626
  def write(self, oprot):
4627
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4628
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4629
      return
4630
    oprot.writeStructBegin('changeItemStatus_result')
4631
    if self.cex is not None:
4632
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4633
      self.cex.write(oprot)
4634
      oprot.writeFieldEnd()
4635
    oprot.writeFieldStop()
4636
    oprot.writeStructEnd()
4637
 
4638
  def validate(self):
4639
    return
4640
 
4641
 
4642
  def __repr__(self):
4643
    L = ['%s=%r' % (key, value)
4644
      for key, value in self.__dict__.iteritems()]
4645
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4646
 
4647
  def __eq__(self, other):
4648
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4649
 
4650
  def __ne__(self, other):
4651
    return not (self == other)
4652
 
4653
class getItem_args:
4654
  """
4655
  Attributes:
4656
   - item_id
4657
  """
4658
 
4659
  thrift_spec = (
4660
    None, # 0
4661
    (1, TType.I64, 'item_id', None, None, ), # 1
4662
  )
4663
 
4664
  def __init__(self, item_id=None,):
4665
    self.item_id = item_id
4666
 
4667
  def read(self, iprot):
4668
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4669
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4670
      return
4671
    iprot.readStructBegin()
4672
    while True:
4673
      (fname, ftype, fid) = iprot.readFieldBegin()
4674
      if ftype == TType.STOP:
4675
        break
4676
      if fid == 1:
4677
        if ftype == TType.I64:
4678
          self.item_id = iprot.readI64();
4679
        else:
4680
          iprot.skip(ftype)
4681
      else:
4682
        iprot.skip(ftype)
4683
      iprot.readFieldEnd()
4684
    iprot.readStructEnd()
4685
 
4686
  def write(self, oprot):
4687
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4688
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4689
      return
4690
    oprot.writeStructBegin('getItem_args')
4691
    if self.item_id is not None:
4692
      oprot.writeFieldBegin('item_id', TType.I64, 1)
4693
      oprot.writeI64(self.item_id)
4694
      oprot.writeFieldEnd()
4695
    oprot.writeFieldStop()
4696
    oprot.writeStructEnd()
4697
 
4698
  def validate(self):
4699
    return
4700
 
4701
 
4702
  def __repr__(self):
4703
    L = ['%s=%r' % (key, value)
4704
      for key, value in self.__dict__.iteritems()]
4705
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4706
 
4707
  def __eq__(self, other):
4708
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4709
 
4710
  def __ne__(self, other):
4711
    return not (self == other)
4712
 
4713
class getItem_result:
4714
  """
4715
  Attributes:
4716
   - success
4717
   - cex
4718
  """
4719
 
4720
  thrift_spec = (
4721
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
4722
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4723
  )
4724
 
4725
  def __init__(self, success=None, cex=None,):
4726
    self.success = success
4727
    self.cex = cex
4728
 
4729
  def read(self, iprot):
4730
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4731
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4732
      return
4733
    iprot.readStructBegin()
4734
    while True:
4735
      (fname, ftype, fid) = iprot.readFieldBegin()
4736
      if ftype == TType.STOP:
4737
        break
4738
      if fid == 0:
4739
        if ftype == TType.STRUCT:
4740
          self.success = Item()
4741
          self.success.read(iprot)
4742
        else:
4743
          iprot.skip(ftype)
4744
      elif fid == 1:
4745
        if ftype == TType.STRUCT:
4746
          self.cex = CatalogServiceException()
4747
          self.cex.read(iprot)
4748
        else:
4749
          iprot.skip(ftype)
4750
      else:
4751
        iprot.skip(ftype)
4752
      iprot.readFieldEnd()
4753
    iprot.readStructEnd()
4754
 
4755
  def write(self, oprot):
4756
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4757
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4758
      return
4759
    oprot.writeStructBegin('getItem_result')
4760
    if self.success is not None:
4761
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4762
      self.success.write(oprot)
4763
      oprot.writeFieldEnd()
4764
    if self.cex is not None:
4765
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4766
      self.cex.write(oprot)
4767
      oprot.writeFieldEnd()
4768
    oprot.writeFieldStop()
4769
    oprot.writeStructEnd()
4770
 
4771
  def validate(self):
4772
    return
4773
 
4774
 
4775
  def __repr__(self):
4776
    L = ['%s=%r' % (key, value)
4777
      for key, value in self.__dict__.iteritems()]
4778
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4779
 
4780
  def __eq__(self, other):
4781
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4782
 
4783
  def __ne__(self, other):
4784
    return not (self == other)
4785
 
4786
class getItemsByCatalogId_args:
4787
  """
4788
  Attributes:
4789
   - catalog_item_id
4790
  """
4791
 
4792
  thrift_spec = (
4793
    None, # 0
4794
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
4795
  )
4796
 
4797
  def __init__(self, catalog_item_id=None,):
4798
    self.catalog_item_id = catalog_item_id
4799
 
4800
  def read(self, iprot):
4801
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4802
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4803
      return
4804
    iprot.readStructBegin()
4805
    while True:
4806
      (fname, ftype, fid) = iprot.readFieldBegin()
4807
      if ftype == TType.STOP:
4808
        break
4809
      if fid == 1:
4810
        if ftype == TType.I64:
4811
          self.catalog_item_id = iprot.readI64();
4812
        else:
4813
          iprot.skip(ftype)
4814
      else:
4815
        iprot.skip(ftype)
4816
      iprot.readFieldEnd()
4817
    iprot.readStructEnd()
4818
 
4819
  def write(self, oprot):
4820
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4821
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4822
      return
4823
    oprot.writeStructBegin('getItemsByCatalogId_args')
4824
    if self.catalog_item_id is not None:
4825
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
4826
      oprot.writeI64(self.catalog_item_id)
4827
      oprot.writeFieldEnd()
4828
    oprot.writeFieldStop()
4829
    oprot.writeStructEnd()
4830
 
4831
  def validate(self):
4832
    return
4833
 
4834
 
4835
  def __repr__(self):
4836
    L = ['%s=%r' % (key, value)
4837
      for key, value in self.__dict__.iteritems()]
4838
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4839
 
4840
  def __eq__(self, other):
4841
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4842
 
4843
  def __ne__(self, other):
4844
    return not (self == other)
4845
 
4846
class getItemsByCatalogId_result:
4847
  """
4848
  Attributes:
4849
   - success
4850
   - cex
4851
  """
4852
 
4853
  thrift_spec = (
4854
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
4855
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4856
  )
4857
 
4858
  def __init__(self, success=None, cex=None,):
4859
    self.success = success
4860
    self.cex = cex
4861
 
4862
  def read(self, iprot):
4863
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4864
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4865
      return
4866
    iprot.readStructBegin()
4867
    while True:
4868
      (fname, ftype, fid) = iprot.readFieldBegin()
4869
      if ftype == TType.STOP:
4870
        break
4871
      if fid == 0:
4872
        if ftype == TType.LIST:
4873
          self.success = []
4874
          (_etype19, _size16) = iprot.readListBegin()
4875
          for _i20 in xrange(_size16):
4876
            _elem21 = Item()
4877
            _elem21.read(iprot)
4878
            self.success.append(_elem21)
4879
          iprot.readListEnd()
4880
        else:
4881
          iprot.skip(ftype)
4882
      elif fid == 1:
4883
        if ftype == TType.STRUCT:
4884
          self.cex = CatalogServiceException()
4885
          self.cex.read(iprot)
4886
        else:
4887
          iprot.skip(ftype)
4888
      else:
4889
        iprot.skip(ftype)
4890
      iprot.readFieldEnd()
4891
    iprot.readStructEnd()
4892
 
4893
  def write(self, oprot):
4894
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4895
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4896
      return
4897
    oprot.writeStructBegin('getItemsByCatalogId_result')
4898
    if self.success is not None:
4899
      oprot.writeFieldBegin('success', TType.LIST, 0)
4900
      oprot.writeListBegin(TType.STRUCT, len(self.success))
4901
      for iter22 in self.success:
4902
        iter22.write(oprot)
4903
      oprot.writeListEnd()
4904
      oprot.writeFieldEnd()
4905
    if self.cex is not None:
4906
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
4907
      self.cex.write(oprot)
4908
      oprot.writeFieldEnd()
4909
    oprot.writeFieldStop()
4910
    oprot.writeStructEnd()
4911
 
4912
  def validate(self):
4913
    return
4914
 
4915
 
4916
  def __repr__(self):
4917
    L = ['%s=%r' % (key, value)
4918
      for key, value in self.__dict__.iteritems()]
4919
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4920
 
4921
  def __eq__(self, other):
4922
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4923
 
4924
  def __ne__(self, other):
4925
    return not (self == other)
4926
 
4927
class getValidItemsByCatalogId_args:
4928
  """
4929
  Attributes:
4930
   - catalog_item_id
4931
  """
4932
 
4933
  thrift_spec = (
4934
    None, # 0
4935
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
4936
  )
4937
 
4938
  def __init__(self, catalog_item_id=None,):
4939
    self.catalog_item_id = catalog_item_id
4940
 
4941
  def read(self, iprot):
4942
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4943
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4944
      return
4945
    iprot.readStructBegin()
4946
    while True:
4947
      (fname, ftype, fid) = iprot.readFieldBegin()
4948
      if ftype == TType.STOP:
4949
        break
4950
      if fid == 1:
4951
        if ftype == TType.I64:
4952
          self.catalog_item_id = iprot.readI64();
4953
        else:
4954
          iprot.skip(ftype)
4955
      else:
4956
        iprot.skip(ftype)
4957
      iprot.readFieldEnd()
4958
    iprot.readStructEnd()
4959
 
4960
  def write(self, oprot):
4961
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4962
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4963
      return
4964
    oprot.writeStructBegin('getValidItemsByCatalogId_args')
4965
    if self.catalog_item_id is not None:
4966
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
4967
      oprot.writeI64(self.catalog_item_id)
4968
      oprot.writeFieldEnd()
4969
    oprot.writeFieldStop()
4970
    oprot.writeStructEnd()
4971
 
4972
  def validate(self):
4973
    return
4974
 
4975
 
4976
  def __repr__(self):
4977
    L = ['%s=%r' % (key, value)
4978
      for key, value in self.__dict__.iteritems()]
4979
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4980
 
4981
  def __eq__(self, other):
4982
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4983
 
4984
  def __ne__(self, other):
4985
    return not (self == other)
4986
 
4987
class getValidItemsByCatalogId_result:
4988
  """
4989
  Attributes:
4990
   - success
4991
   - cex
4992
  """
4993
 
4994
  thrift_spec = (
4995
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
4996
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
4997
  )
4998
 
4999
  def __init__(self, success=None, cex=None,):
5000
    self.success = success
5001
    self.cex = cex
5002
 
5003
  def read(self, iprot):
5004
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5005
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5006
      return
5007
    iprot.readStructBegin()
5008
    while True:
5009
      (fname, ftype, fid) = iprot.readFieldBegin()
5010
      if ftype == TType.STOP:
5011
        break
5012
      if fid == 0:
5013
        if ftype == TType.LIST:
5014
          self.success = []
5015
          (_etype26, _size23) = iprot.readListBegin()
5016
          for _i27 in xrange(_size23):
5017
            _elem28 = Item()
5018
            _elem28.read(iprot)
5019
            self.success.append(_elem28)
5020
          iprot.readListEnd()
5021
        else:
5022
          iprot.skip(ftype)
5023
      elif fid == 1:
5024
        if ftype == TType.STRUCT:
5025
          self.cex = CatalogServiceException()
5026
          self.cex.read(iprot)
5027
        else:
5028
          iprot.skip(ftype)
5029
      else:
5030
        iprot.skip(ftype)
5031
      iprot.readFieldEnd()
5032
    iprot.readStructEnd()
5033
 
5034
  def write(self, oprot):
5035
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5036
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5037
      return
5038
    oprot.writeStructBegin('getValidItemsByCatalogId_result')
5039
    if self.success is not None:
5040
      oprot.writeFieldBegin('success', TType.LIST, 0)
5041
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5042
      for iter29 in self.success:
5043
        iter29.write(oprot)
5044
      oprot.writeListEnd()
5045
      oprot.writeFieldEnd()
5046
    if self.cex is not None:
5047
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5048
      self.cex.write(oprot)
5049
      oprot.writeFieldEnd()
5050
    oprot.writeFieldStop()
5051
    oprot.writeStructEnd()
5052
 
5053
  def validate(self):
5054
    return
5055
 
5056
 
5057
  def __repr__(self):
5058
    L = ['%s=%r' % (key, value)
5059
      for key, value in self.__dict__.iteritems()]
5060
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5061
 
5062
  def __eq__(self, other):
5063
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5064
 
5065
  def __ne__(self, other):
5066
    return not (self == other)
5067
 
5068
class getAllItems_args:
5069
  """
5070
  Attributes:
5071
   - isActive
5072
  """
5073
 
5074
  thrift_spec = (
5075
    None, # 0
5076
    (1, TType.BOOL, 'isActive', None, None, ), # 1
5077
  )
5078
 
5079
  def __init__(self, isActive=None,):
5080
    self.isActive = isActive
5081
 
5082
  def read(self, iprot):
5083
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5084
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5085
      return
5086
    iprot.readStructBegin()
5087
    while True:
5088
      (fname, ftype, fid) = iprot.readFieldBegin()
5089
      if ftype == TType.STOP:
5090
        break
5091
      if fid == 1:
5092
        if ftype == TType.BOOL:
5093
          self.isActive = iprot.readBool();
5094
        else:
5095
          iprot.skip(ftype)
5096
      else:
5097
        iprot.skip(ftype)
5098
      iprot.readFieldEnd()
5099
    iprot.readStructEnd()
5100
 
5101
  def write(self, oprot):
5102
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5103
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5104
      return
5105
    oprot.writeStructBegin('getAllItems_args')
5106
    if self.isActive is not None:
5107
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
5108
      oprot.writeBool(self.isActive)
5109
      oprot.writeFieldEnd()
5110
    oprot.writeFieldStop()
5111
    oprot.writeStructEnd()
5112
 
5113
  def validate(self):
5114
    return
5115
 
5116
 
5117
  def __repr__(self):
5118
    L = ['%s=%r' % (key, value)
5119
      for key, value in self.__dict__.iteritems()]
5120
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5121
 
5122
  def __eq__(self, other):
5123
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5124
 
5125
  def __ne__(self, other):
5126
    return not (self == other)
5127
 
5128
class getAllItems_result:
5129
  """
5130
  Attributes:
5131
   - success
5132
   - cex
5133
  """
5134
 
5135
  thrift_spec = (
5136
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5137
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5138
  )
5139
 
5140
  def __init__(self, success=None, cex=None,):
5141
    self.success = success
5142
    self.cex = cex
5143
 
5144
  def read(self, iprot):
5145
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5146
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5147
      return
5148
    iprot.readStructBegin()
5149
    while True:
5150
      (fname, ftype, fid) = iprot.readFieldBegin()
5151
      if ftype == TType.STOP:
5152
        break
5153
      if fid == 0:
5154
        if ftype == TType.LIST:
5155
          self.success = []
5156
          (_etype33, _size30) = iprot.readListBegin()
5157
          for _i34 in xrange(_size30):
5158
            _elem35 = Item()
5159
            _elem35.read(iprot)
5160
            self.success.append(_elem35)
5161
          iprot.readListEnd()
5162
        else:
5163
          iprot.skip(ftype)
5164
      elif fid == 1:
5165
        if ftype == TType.STRUCT:
5166
          self.cex = CatalogServiceException()
5167
          self.cex.read(iprot)
5168
        else:
5169
          iprot.skip(ftype)
5170
      else:
5171
        iprot.skip(ftype)
5172
      iprot.readFieldEnd()
5173
    iprot.readStructEnd()
5174
 
5175
  def write(self, oprot):
5176
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5177
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5178
      return
5179
    oprot.writeStructBegin('getAllItems_result')
5180
    if self.success is not None:
5181
      oprot.writeFieldBegin('success', TType.LIST, 0)
5182
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5183
      for iter36 in self.success:
5184
        iter36.write(oprot)
5185
      oprot.writeListEnd()
5186
      oprot.writeFieldEnd()
5187
    if self.cex is not None:
5188
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5189
      self.cex.write(oprot)
5190
      oprot.writeFieldEnd()
5191
    oprot.writeFieldStop()
5192
    oprot.writeStructEnd()
5193
 
5194
  def validate(self):
5195
    return
5196
 
5197
 
5198
  def __repr__(self):
5199
    L = ['%s=%r' % (key, value)
5200
      for key, value in self.__dict__.iteritems()]
5201
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5202
 
5203
  def __eq__(self, other):
5204
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5205
 
5206
  def __ne__(self, other):
5207
    return not (self == other)
5208
 
5209
class getAllItemsByStatus_args:
5210
  """
5211
  Attributes:
5212
   - itemStatus
5213
  """
5214
 
5215
  thrift_spec = (
5216
    None, # 0
5217
    (1, TType.I32, 'itemStatus', None, None, ), # 1
5218
  )
5219
 
5220
  def __init__(self, itemStatus=None,):
5221
    self.itemStatus = itemStatus
5222
 
5223
  def read(self, iprot):
5224
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5225
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5226
      return
5227
    iprot.readStructBegin()
5228
    while True:
5229
      (fname, ftype, fid) = iprot.readFieldBegin()
5230
      if ftype == TType.STOP:
5231
        break
5232
      if fid == 1:
5233
        if ftype == TType.I32:
5234
          self.itemStatus = iprot.readI32();
5235
        else:
5236
          iprot.skip(ftype)
5237
      else:
5238
        iprot.skip(ftype)
5239
      iprot.readFieldEnd()
5240
    iprot.readStructEnd()
5241
 
5242
  def write(self, oprot):
5243
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5244
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5245
      return
5246
    oprot.writeStructBegin('getAllItemsByStatus_args')
5247
    if self.itemStatus is not None:
5248
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
5249
      oprot.writeI32(self.itemStatus)
5250
      oprot.writeFieldEnd()
5251
    oprot.writeFieldStop()
5252
    oprot.writeStructEnd()
5253
 
5254
  def validate(self):
5255
    return
5256
 
5257
 
5258
  def __repr__(self):
5259
    L = ['%s=%r' % (key, value)
5260
      for key, value in self.__dict__.iteritems()]
5261
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5262
 
5263
  def __eq__(self, other):
5264
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5265
 
5266
  def __ne__(self, other):
5267
    return not (self == other)
5268
 
5269
class getAllItemsByStatus_result:
5270
  """
5271
  Attributes:
5272
   - success
5273
   - cex
5274
  """
5275
 
5276
  thrift_spec = (
5277
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5278
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5279
  )
5280
 
5281
  def __init__(self, success=None, cex=None,):
5282
    self.success = success
5283
    self.cex = cex
5284
 
5285
  def read(self, iprot):
5286
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5287
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5288
      return
5289
    iprot.readStructBegin()
5290
    while True:
5291
      (fname, ftype, fid) = iprot.readFieldBegin()
5292
      if ftype == TType.STOP:
5293
        break
5294
      if fid == 0:
5295
        if ftype == TType.LIST:
5296
          self.success = []
5297
          (_etype40, _size37) = iprot.readListBegin()
5298
          for _i41 in xrange(_size37):
5299
            _elem42 = Item()
5300
            _elem42.read(iprot)
5301
            self.success.append(_elem42)
5302
          iprot.readListEnd()
5303
        else:
5304
          iprot.skip(ftype)
5305
      elif fid == 1:
5306
        if ftype == TType.STRUCT:
5307
          self.cex = CatalogServiceException()
5308
          self.cex.read(iprot)
5309
        else:
5310
          iprot.skip(ftype)
5311
      else:
5312
        iprot.skip(ftype)
5313
      iprot.readFieldEnd()
5314
    iprot.readStructEnd()
5315
 
5316
  def write(self, oprot):
5317
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5318
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5319
      return
5320
    oprot.writeStructBegin('getAllItemsByStatus_result')
5321
    if self.success is not None:
5322
      oprot.writeFieldBegin('success', TType.LIST, 0)
5323
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5324
      for iter43 in self.success:
5325
        iter43.write(oprot)
5326
      oprot.writeListEnd()
5327
      oprot.writeFieldEnd()
5328
    if self.cex is not None:
5329
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5330
      self.cex.write(oprot)
5331
      oprot.writeFieldEnd()
5332
    oprot.writeFieldStop()
5333
    oprot.writeStructEnd()
5334
 
5335
  def validate(self):
5336
    return
5337
 
5338
 
5339
  def __repr__(self):
5340
    L = ['%s=%r' % (key, value)
5341
      for key, value in self.__dict__.iteritems()]
5342
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5343
 
5344
  def __eq__(self, other):
5345
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5346
 
5347
  def __ne__(self, other):
5348
    return not (self == other)
5349
 
5350
class markItemAsContentComplete_args:
5351
  """
5352
  Attributes:
5353
   - entityId
5354
   - category
5355
   - brand
5356
   - modelName
5357
   - modelNumber
5358
  """
5359
 
5360
  thrift_spec = (
5361
    None, # 0
5362
    (1, TType.I64, 'entityId', None, None, ), # 1
5363
    (2, TType.I64, 'category', None, None, ), # 2
5364
    (3, TType.STRING, 'brand', None, None, ), # 3
5365
    (4, TType.STRING, 'modelName', None, None, ), # 4
5366
    (5, TType.STRING, 'modelNumber', None, None, ), # 5
5367
  )
5368
 
5369
  def __init__(self, entityId=None, category=None, brand=None, modelName=None, modelNumber=None,):
5370
    self.entityId = entityId
5371
    self.category = category
5372
    self.brand = brand
5373
    self.modelName = modelName
5374
    self.modelNumber = modelNumber
5375
 
5376
  def read(self, iprot):
5377
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5378
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5379
      return
5380
    iprot.readStructBegin()
5381
    while True:
5382
      (fname, ftype, fid) = iprot.readFieldBegin()
5383
      if ftype == TType.STOP:
5384
        break
5385
      if fid == 1:
5386
        if ftype == TType.I64:
5387
          self.entityId = iprot.readI64();
5388
        else:
5389
          iprot.skip(ftype)
5390
      elif fid == 2:
5391
        if ftype == TType.I64:
5392
          self.category = iprot.readI64();
5393
        else:
5394
          iprot.skip(ftype)
5395
      elif fid == 3:
5396
        if ftype == TType.STRING:
5397
          self.brand = iprot.readString();
5398
        else:
5399
          iprot.skip(ftype)
5400
      elif fid == 4:
5401
        if ftype == TType.STRING:
5402
          self.modelName = iprot.readString();
5403
        else:
5404
          iprot.skip(ftype)
5405
      elif fid == 5:
5406
        if ftype == TType.STRING:
5407
          self.modelNumber = iprot.readString();
5408
        else:
5409
          iprot.skip(ftype)
5410
      else:
5411
        iprot.skip(ftype)
5412
      iprot.readFieldEnd()
5413
    iprot.readStructEnd()
5414
 
5415
  def write(self, oprot):
5416
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5417
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5418
      return
5419
    oprot.writeStructBegin('markItemAsContentComplete_args')
5420
    if self.entityId is not None:
5421
      oprot.writeFieldBegin('entityId', TType.I64, 1)
5422
      oprot.writeI64(self.entityId)
5423
      oprot.writeFieldEnd()
5424
    if self.category is not None:
5425
      oprot.writeFieldBegin('category', TType.I64, 2)
5426
      oprot.writeI64(self.category)
5427
      oprot.writeFieldEnd()
5428
    if self.brand is not None:
5429
      oprot.writeFieldBegin('brand', TType.STRING, 3)
5430
      oprot.writeString(self.brand)
5431
      oprot.writeFieldEnd()
5432
    if self.modelName is not None:
5433
      oprot.writeFieldBegin('modelName', TType.STRING, 4)
5434
      oprot.writeString(self.modelName)
5435
      oprot.writeFieldEnd()
5436
    if self.modelNumber is not None:
5437
      oprot.writeFieldBegin('modelNumber', TType.STRING, 5)
5438
      oprot.writeString(self.modelNumber)
5439
      oprot.writeFieldEnd()
5440
    oprot.writeFieldStop()
5441
    oprot.writeStructEnd()
5442
 
5443
  def validate(self):
5444
    return
5445
 
5446
 
5447
  def __repr__(self):
5448
    L = ['%s=%r' % (key, value)
5449
      for key, value in self.__dict__.iteritems()]
5450
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5451
 
5452
  def __eq__(self, other):
5453
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5454
 
5455
  def __ne__(self, other):
5456
    return not (self == other)
5457
 
5458
class markItemAsContentComplete_result:
5459
  """
5460
  Attributes:
5461
   - success
5462
   - cex
5463
  """
5464
 
5465
  thrift_spec = (
5466
    (0, TType.BOOL, 'success', None, None, ), # 0
5467
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5468
  )
5469
 
5470
  def __init__(self, success=None, cex=None,):
5471
    self.success = success
5472
    self.cex = cex
5473
 
5474
  def read(self, iprot):
5475
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5476
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5477
      return
5478
    iprot.readStructBegin()
5479
    while True:
5480
      (fname, ftype, fid) = iprot.readFieldBegin()
5481
      if ftype == TType.STOP:
5482
        break
5483
      if fid == 0:
5484
        if ftype == TType.BOOL:
5485
          self.success = iprot.readBool();
5486
        else:
5487
          iprot.skip(ftype)
5488
      elif fid == 1:
5489
        if ftype == TType.STRUCT:
5490
          self.cex = CatalogServiceException()
5491
          self.cex.read(iprot)
5492
        else:
5493
          iprot.skip(ftype)
5494
      else:
5495
        iprot.skip(ftype)
5496
      iprot.readFieldEnd()
5497
    iprot.readStructEnd()
5498
 
5499
  def write(self, oprot):
5500
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5501
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5502
      return
5503
    oprot.writeStructBegin('markItemAsContentComplete_result')
5504
    if self.success is not None:
5505
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5506
      oprot.writeBool(self.success)
5507
      oprot.writeFieldEnd()
5508
    if self.cex is not None:
5509
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5510
      self.cex.write(oprot)
5511
      oprot.writeFieldEnd()
5512
    oprot.writeFieldStop()
5513
    oprot.writeStructEnd()
5514
 
5515
  def validate(self):
5516
    return
5517
 
5518
 
5519
  def __repr__(self):
5520
    L = ['%s=%r' % (key, value)
5521
      for key, value in self.__dict__.iteritems()]
5522
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5523
 
5524
  def __eq__(self, other):
5525
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5526
 
5527
  def __ne__(self, other):
5528
    return not (self == other)
5529
 
5530
class getAllItemsInRange_args:
5531
  """
5532
  Attributes:
5533
   - offset
5534
   - limit
5535
  """
5536
 
5537
  thrift_spec = (
5538
    None, # 0
5539
    (1, TType.I64, 'offset', None, None, ), # 1
5540
    (2, TType.I64, 'limit', None, None, ), # 2
5541
  )
5542
 
5543
  def __init__(self, offset=None, limit=None,):
5544
    self.offset = offset
5545
    self.limit = limit
5546
 
5547
  def read(self, iprot):
5548
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5549
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5550
      return
5551
    iprot.readStructBegin()
5552
    while True:
5553
      (fname, ftype, fid) = iprot.readFieldBegin()
5554
      if ftype == TType.STOP:
5555
        break
5556
      if fid == 1:
5557
        if ftype == TType.I64:
5558
          self.offset = iprot.readI64();
5559
        else:
5560
          iprot.skip(ftype)
5561
      elif fid == 2:
5562
        if ftype == TType.I64:
5563
          self.limit = iprot.readI64();
5564
        else:
5565
          iprot.skip(ftype)
5566
      else:
5567
        iprot.skip(ftype)
5568
      iprot.readFieldEnd()
5569
    iprot.readStructEnd()
5570
 
5571
  def write(self, oprot):
5572
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5573
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5574
      return
5575
    oprot.writeStructBegin('getAllItemsInRange_args')
5576
    if self.offset is not None:
5577
      oprot.writeFieldBegin('offset', TType.I64, 1)
5578
      oprot.writeI64(self.offset)
5579
      oprot.writeFieldEnd()
5580
    if self.limit is not None:
5581
      oprot.writeFieldBegin('limit', TType.I64, 2)
5582
      oprot.writeI64(self.limit)
5583
      oprot.writeFieldEnd()
5584
    oprot.writeFieldStop()
5585
    oprot.writeStructEnd()
5586
 
5587
  def validate(self):
5588
    return
5589
 
5590
 
5591
  def __repr__(self):
5592
    L = ['%s=%r' % (key, value)
5593
      for key, value in self.__dict__.iteritems()]
5594
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5595
 
5596
  def __eq__(self, other):
5597
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5598
 
5599
  def __ne__(self, other):
5600
    return not (self == other)
5601
 
5602
class getAllItemsInRange_result:
5603
  """
5604
  Attributes:
5605
   - success
5606
   - cex
5607
  """
5608
 
5609
  thrift_spec = (
5610
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5611
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5612
  )
5613
 
5614
  def __init__(self, success=None, cex=None,):
5615
    self.success = success
5616
    self.cex = cex
5617
 
5618
  def read(self, iprot):
5619
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5620
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5621
      return
5622
    iprot.readStructBegin()
5623
    while True:
5624
      (fname, ftype, fid) = iprot.readFieldBegin()
5625
      if ftype == TType.STOP:
5626
        break
5627
      if fid == 0:
5628
        if ftype == TType.LIST:
5629
          self.success = []
5630
          (_etype47, _size44) = iprot.readListBegin()
5631
          for _i48 in xrange(_size44):
5632
            _elem49 = Item()
5633
            _elem49.read(iprot)
5634
            self.success.append(_elem49)
5635
          iprot.readListEnd()
5636
        else:
5637
          iprot.skip(ftype)
5638
      elif fid == 1:
5639
        if ftype == TType.STRUCT:
5640
          self.cex = CatalogServiceException()
5641
          self.cex.read(iprot)
5642
        else:
5643
          iprot.skip(ftype)
5644
      else:
5645
        iprot.skip(ftype)
5646
      iprot.readFieldEnd()
5647
    iprot.readStructEnd()
5648
 
5649
  def write(self, oprot):
5650
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5651
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5652
      return
5653
    oprot.writeStructBegin('getAllItemsInRange_result')
5654
    if self.success is not None:
5655
      oprot.writeFieldBegin('success', TType.LIST, 0)
5656
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5657
      for iter50 in self.success:
5658
        iter50.write(oprot)
5659
      oprot.writeListEnd()
5660
      oprot.writeFieldEnd()
5661
    if self.cex is not None:
5662
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5663
      self.cex.write(oprot)
5664
      oprot.writeFieldEnd()
5665
    oprot.writeFieldStop()
5666
    oprot.writeStructEnd()
5667
 
5668
  def validate(self):
5669
    return
5670
 
5671
 
5672
  def __repr__(self):
5673
    L = ['%s=%r' % (key, value)
5674
      for key, value in self.__dict__.iteritems()]
5675
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5676
 
5677
  def __eq__(self, other):
5678
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5679
 
5680
  def __ne__(self, other):
5681
    return not (self == other)
5682
 
5683
class getAllItemsByStatusInRange_args:
5684
  """
5685
  Attributes:
5686
   - itemStatus
5687
   - offset
5688
   - limit
5689
  """
5690
 
5691
  thrift_spec = (
5692
    None, # 0
5693
    (1, TType.I32, 'itemStatus', None, None, ), # 1
5694
    (2, TType.I64, 'offset', None, None, ), # 2
5695
    (3, TType.I64, 'limit', None, None, ), # 3
5696
  )
5697
 
5698
  def __init__(self, itemStatus=None, offset=None, limit=None,):
5699
    self.itemStatus = itemStatus
5700
    self.offset = offset
5701
    self.limit = limit
5702
 
5703
  def read(self, iprot):
5704
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5705
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5706
      return
5707
    iprot.readStructBegin()
5708
    while True:
5709
      (fname, ftype, fid) = iprot.readFieldBegin()
5710
      if ftype == TType.STOP:
5711
        break
5712
      if fid == 1:
5713
        if ftype == TType.I32:
5714
          self.itemStatus = iprot.readI32();
5715
        else:
5716
          iprot.skip(ftype)
5717
      elif fid == 2:
5718
        if ftype == TType.I64:
5719
          self.offset = iprot.readI64();
5720
        else:
5721
          iprot.skip(ftype)
5722
      elif fid == 3:
5723
        if ftype == TType.I64:
5724
          self.limit = iprot.readI64();
5725
        else:
5726
          iprot.skip(ftype)
5727
      else:
5728
        iprot.skip(ftype)
5729
      iprot.readFieldEnd()
5730
    iprot.readStructEnd()
5731
 
5732
  def write(self, oprot):
5733
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5734
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5735
      return
5736
    oprot.writeStructBegin('getAllItemsByStatusInRange_args')
5737
    if self.itemStatus is not None:
5738
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
5739
      oprot.writeI32(self.itemStatus)
5740
      oprot.writeFieldEnd()
5741
    if self.offset is not None:
5742
      oprot.writeFieldBegin('offset', TType.I64, 2)
5743
      oprot.writeI64(self.offset)
5744
      oprot.writeFieldEnd()
5745
    if self.limit is not None:
5746
      oprot.writeFieldBegin('limit', TType.I64, 3)
5747
      oprot.writeI64(self.limit)
5748
      oprot.writeFieldEnd()
5749
    oprot.writeFieldStop()
5750
    oprot.writeStructEnd()
5751
 
5752
  def validate(self):
5753
    return
5754
 
5755
 
5756
  def __repr__(self):
5757
    L = ['%s=%r' % (key, value)
5758
      for key, value in self.__dict__.iteritems()]
5759
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5760
 
5761
  def __eq__(self, other):
5762
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5763
 
5764
  def __ne__(self, other):
5765
    return not (self == other)
5766
 
5767
class getAllItemsByStatusInRange_result:
5768
  """
5769
  Attributes:
5770
   - success
5771
   - cex
5772
  """
5773
 
5774
  thrift_spec = (
5775
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
5776
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
5777
  )
5778
 
5779
  def __init__(self, success=None, cex=None,):
5780
    self.success = success
5781
    self.cex = cex
5782
 
5783
  def read(self, iprot):
5784
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5785
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5786
      return
5787
    iprot.readStructBegin()
5788
    while True:
5789
      (fname, ftype, fid) = iprot.readFieldBegin()
5790
      if ftype == TType.STOP:
5791
        break
5792
      if fid == 0:
5793
        if ftype == TType.LIST:
5794
          self.success = []
5795
          (_etype54, _size51) = iprot.readListBegin()
5796
          for _i55 in xrange(_size51):
5797
            _elem56 = Item()
5798
            _elem56.read(iprot)
5799
            self.success.append(_elem56)
5800
          iprot.readListEnd()
5801
        else:
5802
          iprot.skip(ftype)
5803
      elif fid == 1:
5804
        if ftype == TType.STRUCT:
5805
          self.cex = CatalogServiceException()
5806
          self.cex.read(iprot)
5807
        else:
5808
          iprot.skip(ftype)
5809
      else:
5810
        iprot.skip(ftype)
5811
      iprot.readFieldEnd()
5812
    iprot.readStructEnd()
5813
 
5814
  def write(self, oprot):
5815
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5816
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5817
      return
5818
    oprot.writeStructBegin('getAllItemsByStatusInRange_result')
5819
    if self.success is not None:
5820
      oprot.writeFieldBegin('success', TType.LIST, 0)
5821
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5822
      for iter57 in self.success:
5823
        iter57.write(oprot)
5824
      oprot.writeListEnd()
5825
      oprot.writeFieldEnd()
5826
    if self.cex is not None:
5827
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
5828
      self.cex.write(oprot)
5829
      oprot.writeFieldEnd()
5830
    oprot.writeFieldStop()
5831
    oprot.writeStructEnd()
5832
 
5833
  def validate(self):
5834
    return
5835
 
5836
 
5837
  def __repr__(self):
5838
    L = ['%s=%r' % (key, value)
5839
      for key, value in self.__dict__.iteritems()]
5840
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5841
 
5842
  def __eq__(self, other):
5843
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5844
 
5845
  def __ne__(self, other):
5846
    return not (self == other)
5847
 
5848
class getItemCountByStatus_args:
5849
  """
5850
  Attributes:
5851
   - useStatus
5852
   - itemStatus
5853
  """
5854
 
5855
  thrift_spec = (
5856
    None, # 0
5857
    (1, TType.BOOL, 'useStatus', None, None, ), # 1
5858
    (2, TType.I32, 'itemStatus', None, None, ), # 2
5859
  )
5860
 
5861
  def __init__(self, useStatus=None, itemStatus=None,):
5862
    self.useStatus = useStatus
5863
    self.itemStatus = itemStatus
5864
 
5865
  def read(self, iprot):
5866
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5867
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5868
      return
5869
    iprot.readStructBegin()
5870
    while True:
5871
      (fname, ftype, fid) = iprot.readFieldBegin()
5872
      if ftype == TType.STOP:
5873
        break
5874
      if fid == 1:
5875
        if ftype == TType.BOOL:
5876
          self.useStatus = iprot.readBool();
5877
        else:
5878
          iprot.skip(ftype)
5879
      elif fid == 2:
5880
        if ftype == TType.I32:
5881
          self.itemStatus = iprot.readI32();
5882
        else:
5883
          iprot.skip(ftype)
5884
      else:
5885
        iprot.skip(ftype)
5886
      iprot.readFieldEnd()
5887
    iprot.readStructEnd()
5888
 
5889
  def write(self, oprot):
5890
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5891
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5892
      return
5893
    oprot.writeStructBegin('getItemCountByStatus_args')
5894
    if self.useStatus is not None:
5895
      oprot.writeFieldBegin('useStatus', TType.BOOL, 1)
5896
      oprot.writeBool(self.useStatus)
5897
      oprot.writeFieldEnd()
5898
    if self.itemStatus is not None:
5899
      oprot.writeFieldBegin('itemStatus', TType.I32, 2)
5900
      oprot.writeI32(self.itemStatus)
5901
      oprot.writeFieldEnd()
5902
    oprot.writeFieldStop()
5903
    oprot.writeStructEnd()
5904
 
5905
  def validate(self):
5906
    return
5907
 
5908
 
5909
  def __repr__(self):
5910
    L = ['%s=%r' % (key, value)
5911
      for key, value in self.__dict__.iteritems()]
5912
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5913
 
5914
  def __eq__(self, other):
5915
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5916
 
5917
  def __ne__(self, other):
5918
    return not (self == other)
5919
 
5920
class getItemCountByStatus_result:
5921
  """
5922
  Attributes:
5923
   - success
5924
  """
5925
 
5926
  thrift_spec = (
5927
    (0, TType.I32, 'success', None, None, ), # 0
5928
  )
5929
 
5930
  def __init__(self, success=None,):
5931
    self.success = success
5932
 
5933
  def read(self, iprot):
5934
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5935
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5936
      return
5937
    iprot.readStructBegin()
5938
    while True:
5939
      (fname, ftype, fid) = iprot.readFieldBegin()
5940
      if ftype == TType.STOP:
5941
        break
5942
      if fid == 0:
5943
        if ftype == TType.I32:
5944
          self.success = iprot.readI32();
5945
        else:
5946
          iprot.skip(ftype)
5947
      else:
5948
        iprot.skip(ftype)
5949
      iprot.readFieldEnd()
5950
    iprot.readStructEnd()
5951
 
5952
  def write(self, oprot):
5953
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5954
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5955
      return
5956
    oprot.writeStructBegin('getItemCountByStatus_result')
5957
    if self.success is not None:
5958
      oprot.writeFieldBegin('success', TType.I32, 0)
5959
      oprot.writeI32(self.success)
5960
      oprot.writeFieldEnd()
5961
    oprot.writeFieldStop()
5962
    oprot.writeStructEnd()
5963
 
5964
  def validate(self):
5965
    return
5966
 
5967
 
5968
  def __repr__(self):
5969
    L = ['%s=%r' % (key, value)
5970
      for key, value in self.__dict__.iteritems()]
5971
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5972
 
5973
  def __eq__(self, other):
5974
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5975
 
5976
  def __ne__(self, other):
5977
    return not (self == other)
5978
 
5979
class getBestSellers_args:
5980
 
5981
  thrift_spec = (
5982
  )
5983
 
5984
  def read(self, iprot):
5985
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5986
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5987
      return
5988
    iprot.readStructBegin()
5989
    while True:
5990
      (fname, ftype, fid) = iprot.readFieldBegin()
5991
      if ftype == TType.STOP:
5992
        break
5993
      else:
5994
        iprot.skip(ftype)
5995
      iprot.readFieldEnd()
5996
    iprot.readStructEnd()
5997
 
5998
  def write(self, oprot):
5999
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6000
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6001
      return
6002
    oprot.writeStructBegin('getBestSellers_args')
6003
    oprot.writeFieldStop()
6004
    oprot.writeStructEnd()
6005
 
6006
  def validate(self):
6007
    return
6008
 
6009
 
6010
  def __repr__(self):
6011
    L = ['%s=%r' % (key, value)
6012
      for key, value in self.__dict__.iteritems()]
6013
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6014
 
6015
  def __eq__(self, other):
6016
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6017
 
6018
  def __ne__(self, other):
6019
    return not (self == other)
6020
 
6021
class getBestSellers_result:
6022
  """
6023
  Attributes:
6024
   - success
6025
   - isex
6026
  """
6027
 
6028
  thrift_spec = (
6029
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6030
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6031
  )
6032
 
6033
  def __init__(self, success=None, isex=None,):
6034
    self.success = success
6035
    self.isex = isex
6036
 
6037
  def read(self, iprot):
6038
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6039
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6040
      return
6041
    iprot.readStructBegin()
6042
    while True:
6043
      (fname, ftype, fid) = iprot.readFieldBegin()
6044
      if ftype == TType.STOP:
6045
        break
6046
      if fid == 0:
6047
        if ftype == TType.LIST:
6048
          self.success = []
6049
          (_etype61, _size58) = iprot.readListBegin()
6050
          for _i62 in xrange(_size58):
6051
            _elem63 = Item()
6052
            _elem63.read(iprot)
6053
            self.success.append(_elem63)
6054
          iprot.readListEnd()
6055
        else:
6056
          iprot.skip(ftype)
6057
      elif fid == 1:
6058
        if ftype == TType.STRUCT:
6059
          self.isex = CatalogServiceException()
6060
          self.isex.read(iprot)
6061
        else:
6062
          iprot.skip(ftype)
6063
      else:
6064
        iprot.skip(ftype)
6065
      iprot.readFieldEnd()
6066
    iprot.readStructEnd()
6067
 
6068
  def write(self, oprot):
6069
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6070
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6071
      return
6072
    oprot.writeStructBegin('getBestSellers_result')
6073
    if self.success is not None:
6074
      oprot.writeFieldBegin('success', TType.LIST, 0)
6075
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6076
      for iter64 in self.success:
6077
        iter64.write(oprot)
6078
      oprot.writeListEnd()
6079
      oprot.writeFieldEnd()
6080
    if self.isex is not None:
6081
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
6082
      self.isex.write(oprot)
6083
      oprot.writeFieldEnd()
6084
    oprot.writeFieldStop()
6085
    oprot.writeStructEnd()
6086
 
6087
  def validate(self):
6088
    return
6089
 
6090
 
6091
  def __repr__(self):
6092
    L = ['%s=%r' % (key, value)
6093
      for key, value in self.__dict__.iteritems()]
6094
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6095
 
6096
  def __eq__(self, other):
6097
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6098
 
6099
  def __ne__(self, other):
6100
    return not (self == other)
6101
 
6102
class getBestSellersCatalogIds_args:
6103
  """
6104
  Attributes:
6105
   - beginIndex
6106
   - totalItems
6107
   - brand
6108
   - category
6109
  """
6110
 
6111
  thrift_spec = (
6112
    None, # 0
6113
    (1, TType.I64, 'beginIndex', None, None, ), # 1
6114
    (2, TType.I64, 'totalItems', None, None, ), # 2
6115
    (3, TType.STRING, 'brand', None, None, ), # 3
6116
    (4, TType.I64, 'category', None, None, ), # 4
6117
  )
6118
 
6119
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
6120
    self.beginIndex = beginIndex
6121
    self.totalItems = totalItems
6122
    self.brand = brand
6123
    self.category = category
6124
 
6125
  def read(self, iprot):
6126
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6127
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6128
      return
6129
    iprot.readStructBegin()
6130
    while True:
6131
      (fname, ftype, fid) = iprot.readFieldBegin()
6132
      if ftype == TType.STOP:
6133
        break
6134
      if fid == 1:
6135
        if ftype == TType.I64:
6136
          self.beginIndex = iprot.readI64();
6137
        else:
6138
          iprot.skip(ftype)
6139
      elif fid == 2:
6140
        if ftype == TType.I64:
6141
          self.totalItems = iprot.readI64();
6142
        else:
6143
          iprot.skip(ftype)
6144
      elif fid == 3:
6145
        if ftype == TType.STRING:
6146
          self.brand = iprot.readString();
6147
        else:
6148
          iprot.skip(ftype)
6149
      elif fid == 4:
6150
        if ftype == TType.I64:
6151
          self.category = iprot.readI64();
6152
        else:
6153
          iprot.skip(ftype)
6154
      else:
6155
        iprot.skip(ftype)
6156
      iprot.readFieldEnd()
6157
    iprot.readStructEnd()
6158
 
6159
  def write(self, oprot):
6160
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6161
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6162
      return
6163
    oprot.writeStructBegin('getBestSellersCatalogIds_args')
6164
    if self.beginIndex is not None:
6165
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
6166
      oprot.writeI64(self.beginIndex)
6167
      oprot.writeFieldEnd()
6168
    if self.totalItems is not None:
6169
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
6170
      oprot.writeI64(self.totalItems)
6171
      oprot.writeFieldEnd()
6172
    if self.brand is not None:
6173
      oprot.writeFieldBegin('brand', TType.STRING, 3)
6174
      oprot.writeString(self.brand)
6175
      oprot.writeFieldEnd()
6176
    if self.category is not None:
6177
      oprot.writeFieldBegin('category', TType.I64, 4)
6178
      oprot.writeI64(self.category)
6179
      oprot.writeFieldEnd()
6180
    oprot.writeFieldStop()
6181
    oprot.writeStructEnd()
6182
 
6183
  def validate(self):
6184
    return
6185
 
6186
 
6187
  def __repr__(self):
6188
    L = ['%s=%r' % (key, value)
6189
      for key, value in self.__dict__.iteritems()]
6190
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6191
 
6192
  def __eq__(self, other):
6193
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6194
 
6195
  def __ne__(self, other):
6196
    return not (self == other)
6197
 
6198
class getBestSellersCatalogIds_result:
6199
  """
6200
  Attributes:
6201
   - success
6202
   - cex
6203
  """
6204
 
6205
  thrift_spec = (
6206
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
6207
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6208
  )
6209
 
6210
  def __init__(self, success=None, cex=None,):
6211
    self.success = success
6212
    self.cex = cex
6213
 
6214
  def read(self, iprot):
6215
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6216
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6217
      return
6218
    iprot.readStructBegin()
6219
    while True:
6220
      (fname, ftype, fid) = iprot.readFieldBegin()
6221
      if ftype == TType.STOP:
6222
        break
6223
      if fid == 0:
6224
        if ftype == TType.LIST:
6225
          self.success = []
6226
          (_etype68, _size65) = iprot.readListBegin()
6227
          for _i69 in xrange(_size65):
6228
            _elem70 = iprot.readI64();
6229
            self.success.append(_elem70)
6230
          iprot.readListEnd()
6231
        else:
6232
          iprot.skip(ftype)
6233
      elif fid == 1:
6234
        if ftype == TType.STRUCT:
6235
          self.cex = CatalogServiceException()
6236
          self.cex.read(iprot)
6237
        else:
6238
          iprot.skip(ftype)
6239
      else:
6240
        iprot.skip(ftype)
6241
      iprot.readFieldEnd()
6242
    iprot.readStructEnd()
6243
 
6244
  def write(self, oprot):
6245
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6246
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6247
      return
6248
    oprot.writeStructBegin('getBestSellersCatalogIds_result')
6249
    if self.success is not None:
6250
      oprot.writeFieldBegin('success', TType.LIST, 0)
6251
      oprot.writeListBegin(TType.I64, len(self.success))
6252
      for iter71 in self.success:
6253
        oprot.writeI64(iter71)
6254
      oprot.writeListEnd()
6255
      oprot.writeFieldEnd()
6256
    if self.cex is not None:
6257
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6258
      self.cex.write(oprot)
6259
      oprot.writeFieldEnd()
6260
    oprot.writeFieldStop()
6261
    oprot.writeStructEnd()
6262
 
6263
  def validate(self):
6264
    return
6265
 
6266
 
6267
  def __repr__(self):
6268
    L = ['%s=%r' % (key, value)
6269
      for key, value in self.__dict__.iteritems()]
6270
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6271
 
6272
  def __eq__(self, other):
6273
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6274
 
6275
  def __ne__(self, other):
6276
    return not (self == other)
6277
 
6278
class getBestSellersCount_args:
6279
 
6280
  thrift_spec = (
6281
  )
6282
 
6283
  def read(self, iprot):
6284
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6285
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6286
      return
6287
    iprot.readStructBegin()
6288
    while True:
6289
      (fname, ftype, fid) = iprot.readFieldBegin()
6290
      if ftype == TType.STOP:
6291
        break
6292
      else:
6293
        iprot.skip(ftype)
6294
      iprot.readFieldEnd()
6295
    iprot.readStructEnd()
6296
 
6297
  def write(self, oprot):
6298
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6299
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6300
      return
6301
    oprot.writeStructBegin('getBestSellersCount_args')
6302
    oprot.writeFieldStop()
6303
    oprot.writeStructEnd()
6304
 
6305
  def validate(self):
6306
    return
6307
 
6308
 
6309
  def __repr__(self):
6310
    L = ['%s=%r' % (key, value)
6311
      for key, value in self.__dict__.iteritems()]
6312
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6313
 
6314
  def __eq__(self, other):
6315
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6316
 
6317
  def __ne__(self, other):
6318
    return not (self == other)
6319
 
6320
class getBestSellersCount_result:
6321
  """
6322
  Attributes:
6323
   - success
6324
   - cex
6325
  """
6326
 
6327
  thrift_spec = (
6328
    (0, TType.I64, 'success', None, None, ), # 0
6329
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6330
  )
6331
 
6332
  def __init__(self, success=None, cex=None,):
6333
    self.success = success
6334
    self.cex = cex
6335
 
6336
  def read(self, iprot):
6337
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6338
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6339
      return
6340
    iprot.readStructBegin()
6341
    while True:
6342
      (fname, ftype, fid) = iprot.readFieldBegin()
6343
      if ftype == TType.STOP:
6344
        break
6345
      if fid == 0:
6346
        if ftype == TType.I64:
6347
          self.success = iprot.readI64();
6348
        else:
6349
          iprot.skip(ftype)
6350
      elif fid == 1:
6351
        if ftype == TType.STRUCT:
6352
          self.cex = CatalogServiceException()
6353
          self.cex.read(iprot)
6354
        else:
6355
          iprot.skip(ftype)
6356
      else:
6357
        iprot.skip(ftype)
6358
      iprot.readFieldEnd()
6359
    iprot.readStructEnd()
6360
 
6361
  def write(self, oprot):
6362
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6363
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6364
      return
6365
    oprot.writeStructBegin('getBestSellersCount_result')
6366
    if self.success is not None:
6367
      oprot.writeFieldBegin('success', TType.I64, 0)
6368
      oprot.writeI64(self.success)
6369
      oprot.writeFieldEnd()
6370
    if self.cex is not None:
6371
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6372
      self.cex.write(oprot)
6373
      oprot.writeFieldEnd()
6374
    oprot.writeFieldStop()
6375
    oprot.writeStructEnd()
6376
 
6377
  def validate(self):
6378
    return
6379
 
6380
 
6381
  def __repr__(self):
6382
    L = ['%s=%r' % (key, value)
6383
      for key, value in self.__dict__.iteritems()]
6384
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6385
 
6386
  def __eq__(self, other):
6387
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6388
 
6389
  def __ne__(self, other):
6390
    return not (self == other)
6391
 
6392
class getBestDeals_args:
6393
 
6394
  thrift_spec = (
6395
  )
6396
 
6397
  def read(self, iprot):
6398
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6399
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6400
      return
6401
    iprot.readStructBegin()
6402
    while True:
6403
      (fname, ftype, fid) = iprot.readFieldBegin()
6404
      if ftype == TType.STOP:
6405
        break
6406
      else:
6407
        iprot.skip(ftype)
6408
      iprot.readFieldEnd()
6409
    iprot.readStructEnd()
6410
 
6411
  def write(self, oprot):
6412
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6413
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6414
      return
6415
    oprot.writeStructBegin('getBestDeals_args')
6416
    oprot.writeFieldStop()
6417
    oprot.writeStructEnd()
6418
 
6419
  def validate(self):
6420
    return
6421
 
6422
 
6423
  def __repr__(self):
6424
    L = ['%s=%r' % (key, value)
6425
      for key, value in self.__dict__.iteritems()]
6426
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6427
 
6428
  def __eq__(self, other):
6429
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6430
 
6431
  def __ne__(self, other):
6432
    return not (self == other)
6433
 
6434
class getBestDeals_result:
6435
  """
6436
  Attributes:
6437
   - success
6438
   - isex
6439
  """
6440
 
6441
  thrift_spec = (
6442
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6443
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6444
  )
6445
 
6446
  def __init__(self, success=None, isex=None,):
6447
    self.success = success
6448
    self.isex = isex
6449
 
6450
  def read(self, iprot):
6451
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6452
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6453
      return
6454
    iprot.readStructBegin()
6455
    while True:
6456
      (fname, ftype, fid) = iprot.readFieldBegin()
6457
      if ftype == TType.STOP:
6458
        break
6459
      if fid == 0:
6460
        if ftype == TType.LIST:
6461
          self.success = []
6462
          (_etype75, _size72) = iprot.readListBegin()
6463
          for _i76 in xrange(_size72):
6464
            _elem77 = Item()
6465
            _elem77.read(iprot)
6466
            self.success.append(_elem77)
6467
          iprot.readListEnd()
6468
        else:
6469
          iprot.skip(ftype)
6470
      elif fid == 1:
6471
        if ftype == TType.STRUCT:
6472
          self.isex = CatalogServiceException()
6473
          self.isex.read(iprot)
6474
        else:
6475
          iprot.skip(ftype)
6476
      else:
6477
        iprot.skip(ftype)
6478
      iprot.readFieldEnd()
6479
    iprot.readStructEnd()
6480
 
6481
  def write(self, oprot):
6482
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6483
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6484
      return
6485
    oprot.writeStructBegin('getBestDeals_result')
6486
    if self.success is not None:
6487
      oprot.writeFieldBegin('success', TType.LIST, 0)
6488
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6489
      for iter78 in self.success:
6490
        iter78.write(oprot)
6491
      oprot.writeListEnd()
6492
      oprot.writeFieldEnd()
6493
    if self.isex is not None:
6494
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
6495
      self.isex.write(oprot)
6496
      oprot.writeFieldEnd()
6497
    oprot.writeFieldStop()
6498
    oprot.writeStructEnd()
6499
 
6500
  def validate(self):
6501
    return
6502
 
6503
 
6504
  def __repr__(self):
6505
    L = ['%s=%r' % (key, value)
6506
      for key, value in self.__dict__.iteritems()]
6507
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6508
 
6509
  def __eq__(self, other):
6510
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6511
 
6512
  def __ne__(self, other):
6513
    return not (self == other)
6514
 
6515
class getBestDealsCatalogIds_args:
6516
  """
6517
  Attributes:
6518
   - beginIndex
6519
   - totalItems
6520
   - brand
6521
   - category
6522
  """
6523
 
6524
  thrift_spec = (
6525
    None, # 0
6526
    (1, TType.I64, 'beginIndex', None, None, ), # 1
6527
    (2, TType.I64, 'totalItems', None, None, ), # 2
6528
    (3, TType.STRING, 'brand', None, None, ), # 3
6529
    (4, TType.I64, 'category', None, None, ), # 4
6530
  )
6531
 
6532
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
6533
    self.beginIndex = beginIndex
6534
    self.totalItems = totalItems
6535
    self.brand = brand
6536
    self.category = category
6537
 
6538
  def read(self, iprot):
6539
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6540
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6541
      return
6542
    iprot.readStructBegin()
6543
    while True:
6544
      (fname, ftype, fid) = iprot.readFieldBegin()
6545
      if ftype == TType.STOP:
6546
        break
6547
      if fid == 1:
6548
        if ftype == TType.I64:
6549
          self.beginIndex = iprot.readI64();
6550
        else:
6551
          iprot.skip(ftype)
6552
      elif fid == 2:
6553
        if ftype == TType.I64:
6554
          self.totalItems = iprot.readI64();
6555
        else:
6556
          iprot.skip(ftype)
6557
      elif fid == 3:
6558
        if ftype == TType.STRING:
6559
          self.brand = iprot.readString();
6560
        else:
6561
          iprot.skip(ftype)
6562
      elif fid == 4:
6563
        if ftype == TType.I64:
6564
          self.category = iprot.readI64();
6565
        else:
6566
          iprot.skip(ftype)
6567
      else:
6568
        iprot.skip(ftype)
6569
      iprot.readFieldEnd()
6570
    iprot.readStructEnd()
6571
 
6572
  def write(self, oprot):
6573
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6574
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6575
      return
6576
    oprot.writeStructBegin('getBestDealsCatalogIds_args')
6577
    if self.beginIndex is not None:
6578
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
6579
      oprot.writeI64(self.beginIndex)
6580
      oprot.writeFieldEnd()
6581
    if self.totalItems is not None:
6582
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
6583
      oprot.writeI64(self.totalItems)
6584
      oprot.writeFieldEnd()
6585
    if self.brand is not None:
6586
      oprot.writeFieldBegin('brand', TType.STRING, 3)
6587
      oprot.writeString(self.brand)
6588
      oprot.writeFieldEnd()
6589
    if self.category is not None:
6590
      oprot.writeFieldBegin('category', TType.I64, 4)
6591
      oprot.writeI64(self.category)
6592
      oprot.writeFieldEnd()
6593
    oprot.writeFieldStop()
6594
    oprot.writeStructEnd()
6595
 
6596
  def validate(self):
6597
    return
6598
 
6599
 
6600
  def __repr__(self):
6601
    L = ['%s=%r' % (key, value)
6602
      for key, value in self.__dict__.iteritems()]
6603
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6604
 
6605
  def __eq__(self, other):
6606
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6607
 
6608
  def __ne__(self, other):
6609
    return not (self == other)
6610
 
6611
class getBestDealsCatalogIds_result:
6612
  """
6613
  Attributes:
6614
   - success
6615
   - cex
6616
  """
6617
 
6618
  thrift_spec = (
6619
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
6620
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6621
  )
6622
 
6623
  def __init__(self, success=None, cex=None,):
6624
    self.success = success
6625
    self.cex = cex
6626
 
6627
  def read(self, iprot):
6628
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6629
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6630
      return
6631
    iprot.readStructBegin()
6632
    while True:
6633
      (fname, ftype, fid) = iprot.readFieldBegin()
6634
      if ftype == TType.STOP:
6635
        break
6636
      if fid == 0:
6637
        if ftype == TType.LIST:
6638
          self.success = []
6639
          (_etype82, _size79) = iprot.readListBegin()
6640
          for _i83 in xrange(_size79):
6641
            _elem84 = iprot.readI64();
6642
            self.success.append(_elem84)
6643
          iprot.readListEnd()
6644
        else:
6645
          iprot.skip(ftype)
6646
      elif fid == 1:
6647
        if ftype == TType.STRUCT:
6648
          self.cex = CatalogServiceException()
6649
          self.cex.read(iprot)
6650
        else:
6651
          iprot.skip(ftype)
6652
      else:
6653
        iprot.skip(ftype)
6654
      iprot.readFieldEnd()
6655
    iprot.readStructEnd()
6656
 
6657
  def write(self, oprot):
6658
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6659
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6660
      return
6661
    oprot.writeStructBegin('getBestDealsCatalogIds_result')
6662
    if self.success is not None:
6663
      oprot.writeFieldBegin('success', TType.LIST, 0)
6664
      oprot.writeListBegin(TType.I64, len(self.success))
6665
      for iter85 in self.success:
6666
        oprot.writeI64(iter85)
6667
      oprot.writeListEnd()
6668
      oprot.writeFieldEnd()
6669
    if self.cex is not None:
6670
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6671
      self.cex.write(oprot)
6672
      oprot.writeFieldEnd()
6673
    oprot.writeFieldStop()
6674
    oprot.writeStructEnd()
6675
 
6676
  def validate(self):
6677
    return
6678
 
6679
 
6680
  def __repr__(self):
6681
    L = ['%s=%r' % (key, value)
6682
      for key, value in self.__dict__.iteritems()]
6683
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6684
 
6685
  def __eq__(self, other):
6686
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6687
 
6688
  def __ne__(self, other):
6689
    return not (self == other)
6690
 
6691
class getBestDealsCount_args:
6692
 
6693
  thrift_spec = (
6694
  )
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
      else:
6706
        iprot.skip(ftype)
6707
      iprot.readFieldEnd()
6708
    iprot.readStructEnd()
6709
 
6710
  def write(self, oprot):
6711
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6712
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6713
      return
6714
    oprot.writeStructBegin('getBestDealsCount_args')
6715
    oprot.writeFieldStop()
6716
    oprot.writeStructEnd()
6717
 
6718
  def validate(self):
6719
    return
6720
 
6721
 
6722
  def __repr__(self):
6723
    L = ['%s=%r' % (key, value)
6724
      for key, value in self.__dict__.iteritems()]
6725
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6726
 
6727
  def __eq__(self, other):
6728
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6729
 
6730
  def __ne__(self, other):
6731
    return not (self == other)
6732
 
6733
class getBestDealsCount_result:
6734
  """
6735
  Attributes:
6736
   - success
6737
   - cex
6738
  """
6739
 
6740
  thrift_spec = (
6741
    (0, TType.I64, 'success', None, None, ), # 0
6742
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6743
  )
6744
 
6745
  def __init__(self, success=None, cex=None,):
6746
    self.success = success
6747
    self.cex = cex
6748
 
6749
  def read(self, iprot):
6750
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6751
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6752
      return
6753
    iprot.readStructBegin()
6754
    while True:
6755
      (fname, ftype, fid) = iprot.readFieldBegin()
6756
      if ftype == TType.STOP:
6757
        break
6758
      if fid == 0:
6759
        if ftype == TType.I64:
6760
          self.success = iprot.readI64();
6761
        else:
6762
          iprot.skip(ftype)
6763
      elif fid == 1:
6764
        if ftype == TType.STRUCT:
6765
          self.cex = CatalogServiceException()
6766
          self.cex.read(iprot)
6767
        else:
6768
          iprot.skip(ftype)
6769
      else:
6770
        iprot.skip(ftype)
6771
      iprot.readFieldEnd()
6772
    iprot.readStructEnd()
6773
 
6774
  def write(self, oprot):
6775
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6776
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6777
      return
6778
    oprot.writeStructBegin('getBestDealsCount_result')
6779
    if self.success is not None:
6780
      oprot.writeFieldBegin('success', TType.I64, 0)
6781
      oprot.writeI64(self.success)
6782
      oprot.writeFieldEnd()
6783
    if self.cex is not None:
6784
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
6785
      self.cex.write(oprot)
6786
      oprot.writeFieldEnd()
6787
    oprot.writeFieldStop()
6788
    oprot.writeStructEnd()
6789
 
6790
  def validate(self):
6791
    return
6792
 
6793
 
6794
  def __repr__(self):
6795
    L = ['%s=%r' % (key, value)
6796
      for key, value in self.__dict__.iteritems()]
6797
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6798
 
6799
  def __eq__(self, other):
6800
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6801
 
6802
  def __ne__(self, other):
6803
    return not (self == other)
6804
 
6805
class getComingSoon_args:
6806
 
6807
  thrift_spec = (
6808
  )
6809
 
6810
  def read(self, iprot):
6811
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6812
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6813
      return
6814
    iprot.readStructBegin()
6815
    while True:
6816
      (fname, ftype, fid) = iprot.readFieldBegin()
6817
      if ftype == TType.STOP:
6818
        break
6819
      else:
6820
        iprot.skip(ftype)
6821
      iprot.readFieldEnd()
6822
    iprot.readStructEnd()
6823
 
6824
  def write(self, oprot):
6825
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6826
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6827
      return
6828
    oprot.writeStructBegin('getComingSoon_args')
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 getComingSoon_result:
6848
  """
6849
  Attributes:
6850
   - success
6851
   - isex
6852
  """
6853
 
6854
  thrift_spec = (
6855
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
6856
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6857
  )
6858
 
6859
  def __init__(self, success=None, isex=None,):
6860
    self.success = success
6861
    self.isex = isex
6862
 
6863
  def read(self, iprot):
6864
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6865
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6866
      return
6867
    iprot.readStructBegin()
6868
    while True:
6869
      (fname, ftype, fid) = iprot.readFieldBegin()
6870
      if ftype == TType.STOP:
6871
        break
6872
      if fid == 0:
6873
        if ftype == TType.LIST:
6874
          self.success = []
6875
          (_etype89, _size86) = iprot.readListBegin()
6876
          for _i90 in xrange(_size86):
6877
            _elem91 = Item()
6878
            _elem91.read(iprot)
6879
            self.success.append(_elem91)
6880
          iprot.readListEnd()
6881
        else:
6882
          iprot.skip(ftype)
6883
      elif fid == 1:
6884
        if ftype == TType.STRUCT:
6885
          self.isex = CatalogServiceException()
6886
          self.isex.read(iprot)
6887
        else:
6888
          iprot.skip(ftype)
6889
      else:
6890
        iprot.skip(ftype)
6891
      iprot.readFieldEnd()
6892
    iprot.readStructEnd()
6893
 
6894
  def write(self, oprot):
6895
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6896
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6897
      return
6898
    oprot.writeStructBegin('getComingSoon_result')
6899
    if self.success is not None:
6900
      oprot.writeFieldBegin('success', TType.LIST, 0)
6901
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6902
      for iter92 in self.success:
6903
        iter92.write(oprot)
6904
      oprot.writeListEnd()
6905
      oprot.writeFieldEnd()
6906
    if self.isex is not None:
6907
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
6908
      self.isex.write(oprot)
6909
      oprot.writeFieldEnd()
6910
    oprot.writeFieldStop()
6911
    oprot.writeStructEnd()
6912
 
6913
  def validate(self):
6914
    return
6915
 
6916
 
6917
  def __repr__(self):
6918
    L = ['%s=%r' % (key, value)
6919
      for key, value in self.__dict__.iteritems()]
6920
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6921
 
6922
  def __eq__(self, other):
6923
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6924
 
6925
  def __ne__(self, other):
6926
    return not (self == other)
6927
 
6928
class getComingSoonCatalogIds_args:
6929
  """
6930
  Attributes:
6931
   - beginIndex
6932
   - totalItems
6933
   - brand
6934
   - category
6935
  """
6936
 
6937
  thrift_spec = (
6938
    None, # 0
6939
    (1, TType.I64, 'beginIndex', None, None, ), # 1
6940
    (2, TType.I64, 'totalItems', None, None, ), # 2
6941
    (3, TType.STRING, 'brand', None, None, ), # 3
6942
    (4, TType.I64, 'category', None, None, ), # 4
6943
  )
6944
 
6945
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
6946
    self.beginIndex = beginIndex
6947
    self.totalItems = totalItems
6948
    self.brand = brand
6949
    self.category = category
6950
 
6951
  def read(self, iprot):
6952
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6953
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6954
      return
6955
    iprot.readStructBegin()
6956
    while True:
6957
      (fname, ftype, fid) = iprot.readFieldBegin()
6958
      if ftype == TType.STOP:
6959
        break
6960
      if fid == 1:
6961
        if ftype == TType.I64:
6962
          self.beginIndex = iprot.readI64();
6963
        else:
6964
          iprot.skip(ftype)
6965
      elif fid == 2:
6966
        if ftype == TType.I64:
6967
          self.totalItems = iprot.readI64();
6968
        else:
6969
          iprot.skip(ftype)
6970
      elif fid == 3:
6971
        if ftype == TType.STRING:
6972
          self.brand = iprot.readString();
6973
        else:
6974
          iprot.skip(ftype)
6975
      elif fid == 4:
6976
        if ftype == TType.I64:
6977
          self.category = iprot.readI64();
6978
        else:
6979
          iprot.skip(ftype)
6980
      else:
6981
        iprot.skip(ftype)
6982
      iprot.readFieldEnd()
6983
    iprot.readStructEnd()
6984
 
6985
  def write(self, oprot):
6986
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6987
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6988
      return
6989
    oprot.writeStructBegin('getComingSoonCatalogIds_args')
6990
    if self.beginIndex is not None:
6991
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
6992
      oprot.writeI64(self.beginIndex)
6993
      oprot.writeFieldEnd()
6994
    if self.totalItems is not None:
6995
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
6996
      oprot.writeI64(self.totalItems)
6997
      oprot.writeFieldEnd()
6998
    if self.brand is not None:
6999
      oprot.writeFieldBegin('brand', TType.STRING, 3)
7000
      oprot.writeString(self.brand)
7001
      oprot.writeFieldEnd()
7002
    if self.category is not None:
7003
      oprot.writeFieldBegin('category', TType.I64, 4)
7004
      oprot.writeI64(self.category)
7005
      oprot.writeFieldEnd()
7006
    oprot.writeFieldStop()
7007
    oprot.writeStructEnd()
7008
 
7009
  def validate(self):
7010
    return
7011
 
7012
 
7013
  def __repr__(self):
7014
    L = ['%s=%r' % (key, value)
7015
      for key, value in self.__dict__.iteritems()]
7016
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7017
 
7018
  def __eq__(self, other):
7019
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7020
 
7021
  def __ne__(self, other):
7022
    return not (self == other)
7023
 
7024
class getComingSoonCatalogIds_result:
7025
  """
7026
  Attributes:
7027
   - success
7028
   - cex
7029
  """
7030
 
7031
  thrift_spec = (
7032
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
7033
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7034
  )
7035
 
7036
  def __init__(self, success=None, cex=None,):
7037
    self.success = success
7038
    self.cex = cex
7039
 
7040
  def read(self, iprot):
7041
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7042
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7043
      return
7044
    iprot.readStructBegin()
7045
    while True:
7046
      (fname, ftype, fid) = iprot.readFieldBegin()
7047
      if ftype == TType.STOP:
7048
        break
7049
      if fid == 0:
7050
        if ftype == TType.LIST:
7051
          self.success = []
7052
          (_etype96, _size93) = iprot.readListBegin()
7053
          for _i97 in xrange(_size93):
7054
            _elem98 = iprot.readI64();
7055
            self.success.append(_elem98)
7056
          iprot.readListEnd()
7057
        else:
7058
          iprot.skip(ftype)
7059
      elif fid == 1:
7060
        if ftype == TType.STRUCT:
7061
          self.cex = CatalogServiceException()
7062
          self.cex.read(iprot)
7063
        else:
7064
          iprot.skip(ftype)
7065
      else:
7066
        iprot.skip(ftype)
7067
      iprot.readFieldEnd()
7068
    iprot.readStructEnd()
7069
 
7070
  def write(self, oprot):
7071
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7072
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7073
      return
7074
    oprot.writeStructBegin('getComingSoonCatalogIds_result')
7075
    if self.success is not None:
7076
      oprot.writeFieldBegin('success', TType.LIST, 0)
7077
      oprot.writeListBegin(TType.I64, len(self.success))
7078
      for iter99 in self.success:
7079
        oprot.writeI64(iter99)
7080
      oprot.writeListEnd()
7081
      oprot.writeFieldEnd()
7082
    if self.cex is not None:
7083
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7084
      self.cex.write(oprot)
7085
      oprot.writeFieldEnd()
7086
    oprot.writeFieldStop()
7087
    oprot.writeStructEnd()
7088
 
7089
  def validate(self):
7090
    return
7091
 
7092
 
7093
  def __repr__(self):
7094
    L = ['%s=%r' % (key, value)
7095
      for key, value in self.__dict__.iteritems()]
7096
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7097
 
7098
  def __eq__(self, other):
7099
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7100
 
7101
  def __ne__(self, other):
7102
    return not (self == other)
7103
 
7104
class getComingSoonCount_args:
7105
 
7106
  thrift_spec = (
7107
  )
7108
 
7109
  def read(self, iprot):
7110
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7111
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7112
      return
7113
    iprot.readStructBegin()
7114
    while True:
7115
      (fname, ftype, fid) = iprot.readFieldBegin()
7116
      if ftype == TType.STOP:
7117
        break
7118
      else:
7119
        iprot.skip(ftype)
7120
      iprot.readFieldEnd()
7121
    iprot.readStructEnd()
7122
 
7123
  def write(self, oprot):
7124
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7125
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7126
      return
7127
    oprot.writeStructBegin('getComingSoonCount_args')
7128
    oprot.writeFieldStop()
7129
    oprot.writeStructEnd()
7130
 
7131
  def validate(self):
7132
    return
7133
 
7134
 
7135
  def __repr__(self):
7136
    L = ['%s=%r' % (key, value)
7137
      for key, value in self.__dict__.iteritems()]
7138
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7139
 
7140
  def __eq__(self, other):
7141
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7142
 
7143
  def __ne__(self, other):
7144
    return not (self == other)
7145
 
7146
class getComingSoonCount_result:
7147
  """
7148
  Attributes:
7149
   - success
7150
   - cex
7151
  """
7152
 
7153
  thrift_spec = (
7154
    (0, TType.I64, 'success', None, None, ), # 0
7155
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7156
  )
7157
 
7158
  def __init__(self, success=None, cex=None,):
7159
    self.success = success
7160
    self.cex = cex
7161
 
7162
  def read(self, iprot):
7163
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7164
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7165
      return
7166
    iprot.readStructBegin()
7167
    while True:
7168
      (fname, ftype, fid) = iprot.readFieldBegin()
7169
      if ftype == TType.STOP:
7170
        break
7171
      if fid == 0:
7172
        if ftype == TType.I64:
7173
          self.success = iprot.readI64();
7174
        else:
7175
          iprot.skip(ftype)
7176
      elif fid == 1:
7177
        if ftype == TType.STRUCT:
7178
          self.cex = CatalogServiceException()
7179
          self.cex.read(iprot)
7180
        else:
7181
          iprot.skip(ftype)
7182
      else:
7183
        iprot.skip(ftype)
7184
      iprot.readFieldEnd()
7185
    iprot.readStructEnd()
7186
 
7187
  def write(self, oprot):
7188
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7189
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7190
      return
7191
    oprot.writeStructBegin('getComingSoonCount_result')
7192
    if self.success is not None:
7193
      oprot.writeFieldBegin('success', TType.I64, 0)
7194
      oprot.writeI64(self.success)
7195
      oprot.writeFieldEnd()
7196
    if self.cex is not None:
7197
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7198
      self.cex.write(oprot)
7199
      oprot.writeFieldEnd()
7200
    oprot.writeFieldStop()
7201
    oprot.writeStructEnd()
7202
 
7203
  def validate(self):
7204
    return
7205
 
7206
 
7207
  def __repr__(self):
7208
    L = ['%s=%r' % (key, value)
7209
      for key, value in self.__dict__.iteritems()]
7210
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7211
 
7212
  def __eq__(self, other):
7213
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7214
 
7215
  def __ne__(self, other):
7216
    return not (self == other)
7217
 
7218
class getLatestArrivals_args:
7219
 
7220
  thrift_spec = (
7221
  )
7222
 
7223
  def read(self, iprot):
7224
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7225
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7226
      return
7227
    iprot.readStructBegin()
7228
    while True:
7229
      (fname, ftype, fid) = iprot.readFieldBegin()
7230
      if ftype == TType.STOP:
7231
        break
7232
      else:
7233
        iprot.skip(ftype)
7234
      iprot.readFieldEnd()
7235
    iprot.readStructEnd()
7236
 
7237
  def write(self, oprot):
7238
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7239
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7240
      return
7241
    oprot.writeStructBegin('getLatestArrivals_args')
7242
    oprot.writeFieldStop()
7243
    oprot.writeStructEnd()
7244
 
7245
  def validate(self):
7246
    return
7247
 
7248
 
7249
  def __repr__(self):
7250
    L = ['%s=%r' % (key, value)
7251
      for key, value in self.__dict__.iteritems()]
7252
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7253
 
7254
  def __eq__(self, other):
7255
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7256
 
7257
  def __ne__(self, other):
7258
    return not (self == other)
7259
 
7260
class getLatestArrivals_result:
7261
  """
7262
  Attributes:
7263
   - success
7264
   - isex
7265
  """
7266
 
7267
  thrift_spec = (
7268
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
7269
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7270
  )
7271
 
7272
  def __init__(self, success=None, isex=None,):
7273
    self.success = success
7274
    self.isex = isex
7275
 
7276
  def read(self, iprot):
7277
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7278
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7279
      return
7280
    iprot.readStructBegin()
7281
    while True:
7282
      (fname, ftype, fid) = iprot.readFieldBegin()
7283
      if ftype == TType.STOP:
7284
        break
7285
      if fid == 0:
7286
        if ftype == TType.LIST:
7287
          self.success = []
7288
          (_etype103, _size100) = iprot.readListBegin()
7289
          for _i104 in xrange(_size100):
7290
            _elem105 = Item()
7291
            _elem105.read(iprot)
7292
            self.success.append(_elem105)
7293
          iprot.readListEnd()
7294
        else:
7295
          iprot.skip(ftype)
7296
      elif fid == 1:
7297
        if ftype == TType.STRUCT:
7298
          self.isex = CatalogServiceException()
7299
          self.isex.read(iprot)
7300
        else:
7301
          iprot.skip(ftype)
7302
      else:
7303
        iprot.skip(ftype)
7304
      iprot.readFieldEnd()
7305
    iprot.readStructEnd()
7306
 
7307
  def write(self, oprot):
7308
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7309
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7310
      return
7311
    oprot.writeStructBegin('getLatestArrivals_result')
7312
    if self.success is not None:
7313
      oprot.writeFieldBegin('success', TType.LIST, 0)
7314
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7315
      for iter106 in self.success:
7316
        iter106.write(oprot)
7317
      oprot.writeListEnd()
7318
      oprot.writeFieldEnd()
7319
    if self.isex is not None:
7320
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
7321
      self.isex.write(oprot)
7322
      oprot.writeFieldEnd()
7323
    oprot.writeFieldStop()
7324
    oprot.writeStructEnd()
7325
 
7326
  def validate(self):
7327
    return
7328
 
7329
 
7330
  def __repr__(self):
7331
    L = ['%s=%r' % (key, value)
7332
      for key, value in self.__dict__.iteritems()]
7333
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7334
 
7335
  def __eq__(self, other):
7336
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7337
 
7338
  def __ne__(self, other):
7339
    return not (self == other)
7340
 
7341
class getLatestArrivalsCatalogIds_args:
7342
  """
7343
  Attributes:
7344
   - beginIndex
7345
   - totalItems
7346
   - brand
7347
   - categories
7348
  """
7349
 
7350
  thrift_spec = (
7351
    None, # 0
7352
    (1, TType.I64, 'beginIndex', None, None, ), # 1
7353
    (2, TType.I64, 'totalItems', None, None, ), # 2
7354
    (3, TType.STRING, 'brand', None, None, ), # 3
7355
    (4, TType.LIST, 'categories', (TType.I64,None), None, ), # 4
7356
  )
7357
 
7358
  def __init__(self, beginIndex=None, totalItems=None, brand=None, categories=None,):
7359
    self.beginIndex = beginIndex
7360
    self.totalItems = totalItems
7361
    self.brand = brand
7362
    self.categories = categories
7363
 
7364
  def read(self, iprot):
7365
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7366
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7367
      return
7368
    iprot.readStructBegin()
7369
    while True:
7370
      (fname, ftype, fid) = iprot.readFieldBegin()
7371
      if ftype == TType.STOP:
7372
        break
7373
      if fid == 1:
7374
        if ftype == TType.I64:
7375
          self.beginIndex = iprot.readI64();
7376
        else:
7377
          iprot.skip(ftype)
7378
      elif fid == 2:
7379
        if ftype == TType.I64:
7380
          self.totalItems = iprot.readI64();
7381
        else:
7382
          iprot.skip(ftype)
7383
      elif fid == 3:
7384
        if ftype == TType.STRING:
7385
          self.brand = iprot.readString();
7386
        else:
7387
          iprot.skip(ftype)
7388
      elif fid == 4:
7389
        if ftype == TType.LIST:
7390
          self.categories = []
7391
          (_etype110, _size107) = iprot.readListBegin()
7392
          for _i111 in xrange(_size107):
7393
            _elem112 = iprot.readI64();
7394
            self.categories.append(_elem112)
7395
          iprot.readListEnd()
7396
        else:
7397
          iprot.skip(ftype)
7398
      else:
7399
        iprot.skip(ftype)
7400
      iprot.readFieldEnd()
7401
    iprot.readStructEnd()
7402
 
7403
  def write(self, oprot):
7404
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7405
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7406
      return
7407
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_args')
7408
    if self.beginIndex is not None:
7409
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
7410
      oprot.writeI64(self.beginIndex)
7411
      oprot.writeFieldEnd()
7412
    if self.totalItems is not None:
7413
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
7414
      oprot.writeI64(self.totalItems)
7415
      oprot.writeFieldEnd()
7416
    if self.brand is not None:
7417
      oprot.writeFieldBegin('brand', TType.STRING, 3)
7418
      oprot.writeString(self.brand)
7419
      oprot.writeFieldEnd()
7420
    if self.categories is not None:
7421
      oprot.writeFieldBegin('categories', TType.LIST, 4)
7422
      oprot.writeListBegin(TType.I64, len(self.categories))
7423
      for iter113 in self.categories:
7424
        oprot.writeI64(iter113)
7425
      oprot.writeListEnd()
7426
      oprot.writeFieldEnd()
7427
    oprot.writeFieldStop()
7428
    oprot.writeStructEnd()
7429
 
7430
  def validate(self):
7431
    return
7432
 
7433
 
7434
  def __repr__(self):
7435
    L = ['%s=%r' % (key, value)
7436
      for key, value in self.__dict__.iteritems()]
7437
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7438
 
7439
  def __eq__(self, other):
7440
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7441
 
7442
  def __ne__(self, other):
7443
    return not (self == other)
7444
 
7445
class getLatestArrivalsCatalogIds_result:
7446
  """
7447
  Attributes:
7448
   - success
7449
   - cex
7450
  """
7451
 
7452
  thrift_spec = (
7453
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
7454
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7455
  )
7456
 
7457
  def __init__(self, success=None, cex=None,):
7458
    self.success = success
7459
    self.cex = cex
7460
 
7461
  def read(self, iprot):
7462
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7463
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7464
      return
7465
    iprot.readStructBegin()
7466
    while True:
7467
      (fname, ftype, fid) = iprot.readFieldBegin()
7468
      if ftype == TType.STOP:
7469
        break
7470
      if fid == 0:
7471
        if ftype == TType.LIST:
7472
          self.success = []
7473
          (_etype117, _size114) = iprot.readListBegin()
7474
          for _i118 in xrange(_size114):
7475
            _elem119 = iprot.readI64();
7476
            self.success.append(_elem119)
7477
          iprot.readListEnd()
7478
        else:
7479
          iprot.skip(ftype)
7480
      elif fid == 1:
7481
        if ftype == TType.STRUCT:
7482
          self.cex = CatalogServiceException()
7483
          self.cex.read(iprot)
7484
        else:
7485
          iprot.skip(ftype)
7486
      else:
7487
        iprot.skip(ftype)
7488
      iprot.readFieldEnd()
7489
    iprot.readStructEnd()
7490
 
7491
  def write(self, oprot):
7492
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7493
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7494
      return
7495
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_result')
7496
    if self.success is not None:
7497
      oprot.writeFieldBegin('success', TType.LIST, 0)
7498
      oprot.writeListBegin(TType.I64, len(self.success))
7499
      for iter120 in self.success:
7500
        oprot.writeI64(iter120)
7501
      oprot.writeListEnd()
7502
      oprot.writeFieldEnd()
7503
    if self.cex is not None:
7504
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7505
      self.cex.write(oprot)
7506
      oprot.writeFieldEnd()
7507
    oprot.writeFieldStop()
7508
    oprot.writeStructEnd()
7509
 
7510
  def validate(self):
7511
    return
7512
 
7513
 
7514
  def __repr__(self):
7515
    L = ['%s=%r' % (key, value)
7516
      for key, value in self.__dict__.iteritems()]
7517
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7518
 
7519
  def __eq__(self, other):
7520
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7521
 
7522
  def __ne__(self, other):
7523
    return not (self == other)
7524
 
7525
class getLatestArrivalsCount_args:
7526
 
7527
  thrift_spec = (
7528
  )
7529
 
7530
  def read(self, iprot):
7531
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7532
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7533
      return
7534
    iprot.readStructBegin()
7535
    while True:
7536
      (fname, ftype, fid) = iprot.readFieldBegin()
7537
      if ftype == TType.STOP:
7538
        break
7539
      else:
7540
        iprot.skip(ftype)
7541
      iprot.readFieldEnd()
7542
    iprot.readStructEnd()
7543
 
7544
  def write(self, oprot):
7545
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7546
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7547
      return
7548
    oprot.writeStructBegin('getLatestArrivalsCount_args')
7549
    oprot.writeFieldStop()
7550
    oprot.writeStructEnd()
7551
 
7552
  def validate(self):
7553
    return
7554
 
7555
 
7556
  def __repr__(self):
7557
    L = ['%s=%r' % (key, value)
7558
      for key, value in self.__dict__.iteritems()]
7559
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7560
 
7561
  def __eq__(self, other):
7562
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7563
 
7564
  def __ne__(self, other):
7565
    return not (self == other)
7566
 
7567
class getLatestArrivalsCount_result:
7568
  """
7569
  Attributes:
7570
   - success
7571
   - cex
7572
  """
7573
 
7574
  thrift_spec = (
7575
    (0, TType.I64, 'success', None, None, ), # 0
7576
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
7577
  )
7578
 
7579
  def __init__(self, success=None, cex=None,):
7580
    self.success = success
7581
    self.cex = cex
7582
 
7583
  def read(self, iprot):
7584
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7585
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7586
      return
7587
    iprot.readStructBegin()
7588
    while True:
7589
      (fname, ftype, fid) = iprot.readFieldBegin()
7590
      if ftype == TType.STOP:
7591
        break
7592
      if fid == 0:
7593
        if ftype == TType.I64:
7594
          self.success = iprot.readI64();
7595
        else:
7596
          iprot.skip(ftype)
7597
      elif fid == 1:
7598
        if ftype == TType.STRUCT:
7599
          self.cex = CatalogServiceException()
7600
          self.cex.read(iprot)
7601
        else:
7602
          iprot.skip(ftype)
7603
      else:
7604
        iprot.skip(ftype)
7605
      iprot.readFieldEnd()
7606
    iprot.readStructEnd()
7607
 
7608
  def write(self, oprot):
7609
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7610
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7611
      return
7612
    oprot.writeStructBegin('getLatestArrivalsCount_result')
7613
    if self.success is not None:
7614
      oprot.writeFieldBegin('success', TType.I64, 0)
7615
      oprot.writeI64(self.success)
7616
      oprot.writeFieldEnd()
7617
    if self.cex is not None:
7618
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
7619
      self.cex.write(oprot)
7620
      oprot.writeFieldEnd()
7621
    oprot.writeFieldStop()
7622
    oprot.writeStructEnd()
7623
 
7624
  def validate(self):
7625
    return
7626
 
7627
 
7628
  def __repr__(self):
7629
    L = ['%s=%r' % (key, value)
7630
      for key, value in self.__dict__.iteritems()]
7631
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7632
 
7633
  def __eq__(self, other):
7634
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7635
 
7636
  def __ne__(self, other):
7637
    return not (self == other)
7638
 
7639
class generateNewEntityID_args:
7640
 
7641
  thrift_spec = (
7642
  )
7643
 
7644
  def read(self, iprot):
7645
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7646
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7647
      return
7648
    iprot.readStructBegin()
7649
    while True:
7650
      (fname, ftype, fid) = iprot.readFieldBegin()
7651
      if ftype == TType.STOP:
7652
        break
7653
      else:
7654
        iprot.skip(ftype)
7655
      iprot.readFieldEnd()
7656
    iprot.readStructEnd()
7657
 
7658
  def write(self, oprot):
7659
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7660
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7661
      return
7662
    oprot.writeStructBegin('generateNewEntityID_args')
7663
    oprot.writeFieldStop()
7664
    oprot.writeStructEnd()
7665
 
7666
  def validate(self):
7667
    return
7668
 
7669
 
7670
  def __repr__(self):
7671
    L = ['%s=%r' % (key, value)
7672
      for key, value in self.__dict__.iteritems()]
7673
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7674
 
7675
  def __eq__(self, other):
7676
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7677
 
7678
  def __ne__(self, other):
7679
    return not (self == other)
7680
 
7681
class generateNewEntityID_result:
7682
  """
7683
  Attributes:
7684
   - success
7685
  """
7686
 
7687
  thrift_spec = (
7688
    (0, TType.I64, 'success', None, None, ), # 0
7689
  )
7690
 
7691
  def __init__(self, success=None,):
7692
    self.success = success
7693
 
7694
  def read(self, iprot):
7695
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7696
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7697
      return
7698
    iprot.readStructBegin()
7699
    while True:
7700
      (fname, ftype, fid) = iprot.readFieldBegin()
7701
      if ftype == TType.STOP:
7702
        break
7703
      if fid == 0:
7704
        if ftype == TType.I64:
7705
          self.success = iprot.readI64();
7706
        else:
7707
          iprot.skip(ftype)
7708
      else:
7709
        iprot.skip(ftype)
7710
      iprot.readFieldEnd()
7711
    iprot.readStructEnd()
7712
 
7713
  def write(self, oprot):
7714
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7715
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7716
      return
7717
    oprot.writeStructBegin('generateNewEntityID_result')
7718
    if self.success is not None:
7719
      oprot.writeFieldBegin('success', TType.I64, 0)
7720
      oprot.writeI64(self.success)
7721
      oprot.writeFieldEnd()
7722
    oprot.writeFieldStop()
7723
    oprot.writeStructEnd()
7724
 
7725
  def validate(self):
7726
    return
7727
 
7728
 
7729
  def __repr__(self):
7730
    L = ['%s=%r' % (key, value)
7731
      for key, value in self.__dict__.iteritems()]
7732
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7733
 
7734
  def __eq__(self, other):
7735
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7736
 
7737
  def __ne__(self, other):
7738
    return not (self == other)
7739
 
7740
class addCategory_args:
7741
  """
7742
  Attributes:
7743
   - category
7744
  """
7745
 
7746
  thrift_spec = (
7747
    None, # 0
7748
    (1, TType.STRUCT, 'category', (Category, Category.thrift_spec), None, ), # 1
7749
  )
7750
 
7751
  def __init__(self, category=None,):
7752
    self.category = category
7753
 
7754
  def read(self, iprot):
7755
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7756
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7757
      return
7758
    iprot.readStructBegin()
7759
    while True:
7760
      (fname, ftype, fid) = iprot.readFieldBegin()
7761
      if ftype == TType.STOP:
7762
        break
7763
      if fid == 1:
7764
        if ftype == TType.STRUCT:
7765
          self.category = Category()
7766
          self.category.read(iprot)
7767
        else:
7768
          iprot.skip(ftype)
7769
      else:
7770
        iprot.skip(ftype)
7771
      iprot.readFieldEnd()
7772
    iprot.readStructEnd()
7773
 
7774
  def write(self, oprot):
7775
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7776
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7777
      return
7778
    oprot.writeStructBegin('addCategory_args')
7779
    if self.category is not None:
7780
      oprot.writeFieldBegin('category', TType.STRUCT, 1)
7781
      self.category.write(oprot)
7782
      oprot.writeFieldEnd()
7783
    oprot.writeFieldStop()
7784
    oprot.writeStructEnd()
7785
 
7786
  def validate(self):
7787
    return
7788
 
7789
 
7790
  def __repr__(self):
7791
    L = ['%s=%r' % (key, value)
7792
      for key, value in self.__dict__.iteritems()]
7793
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7794
 
7795
  def __eq__(self, other):
7796
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7797
 
7798
  def __ne__(self, other):
7799
    return not (self == other)
7800
 
7801
class addCategory_result:
7802
  """
7803
  Attributes:
7804
   - success
7805
  """
7806
 
7807
  thrift_spec = (
7808
    (0, TType.BOOL, 'success', None, None, ), # 0
7809
  )
7810
 
7811
  def __init__(self, success=None,):
7812
    self.success = success
7813
 
7814
  def read(self, iprot):
7815
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7816
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7817
      return
7818
    iprot.readStructBegin()
7819
    while True:
7820
      (fname, ftype, fid) = iprot.readFieldBegin()
7821
      if ftype == TType.STOP:
7822
        break
7823
      if fid == 0:
7824
        if ftype == TType.BOOL:
7825
          self.success = iprot.readBool();
7826
        else:
7827
          iprot.skip(ftype)
7828
      else:
7829
        iprot.skip(ftype)
7830
      iprot.readFieldEnd()
7831
    iprot.readStructEnd()
7832
 
7833
  def write(self, oprot):
7834
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7835
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7836
      return
7837
    oprot.writeStructBegin('addCategory_result')
7838
    if self.success is not None:
7839
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7840
      oprot.writeBool(self.success)
7841
      oprot.writeFieldEnd()
7842
    oprot.writeFieldStop()
7843
    oprot.writeStructEnd()
7844
 
7845
  def validate(self):
7846
    return
7847
 
7848
 
7849
  def __repr__(self):
7850
    L = ['%s=%r' % (key, value)
7851
      for key, value in self.__dict__.iteritems()]
7852
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7853
 
7854
  def __eq__(self, other):
7855
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7856
 
7857
  def __ne__(self, other):
7858
    return not (self == other)
7859
 
7860
class getCategory_args:
7861
  """
7862
  Attributes:
7863
   - id
7864
  """
7865
 
7866
  thrift_spec = (
7867
    None, # 0
7868
    (1, TType.I64, 'id', None, None, ), # 1
7869
  )
7870
 
7871
  def __init__(self, id=None,):
7872
    self.id = id
7873
 
7874
  def read(self, iprot):
7875
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7876
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7877
      return
7878
    iprot.readStructBegin()
7879
    while True:
7880
      (fname, ftype, fid) = iprot.readFieldBegin()
7881
      if ftype == TType.STOP:
7882
        break
7883
      if fid == 1:
7884
        if ftype == TType.I64:
7885
          self.id = iprot.readI64();
7886
        else:
7887
          iprot.skip(ftype)
7888
      else:
7889
        iprot.skip(ftype)
7890
      iprot.readFieldEnd()
7891
    iprot.readStructEnd()
7892
 
7893
  def write(self, oprot):
7894
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7895
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7896
      return
7897
    oprot.writeStructBegin('getCategory_args')
7898
    if self.id is not None:
7899
      oprot.writeFieldBegin('id', TType.I64, 1)
7900
      oprot.writeI64(self.id)
7901
      oprot.writeFieldEnd()
7902
    oprot.writeFieldStop()
7903
    oprot.writeStructEnd()
7904
 
7905
  def validate(self):
7906
    return
7907
 
7908
 
7909
  def __repr__(self):
7910
    L = ['%s=%r' % (key, value)
7911
      for key, value in self.__dict__.iteritems()]
7912
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7913
 
7914
  def __eq__(self, other):
7915
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7916
 
7917
  def __ne__(self, other):
7918
    return not (self == other)
7919
 
7920
class getCategory_result:
7921
  """
7922
  Attributes:
7923
   - success
7924
  """
7925
 
7926
  thrift_spec = (
7927
    (0, TType.STRUCT, 'success', (Category, Category.thrift_spec), None, ), # 0
7928
  )
7929
 
7930
  def __init__(self, success=None,):
7931
    self.success = success
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
      if fid == 0:
7943
        if ftype == TType.STRUCT:
7944
          self.success = Category()
7945
          self.success.read(iprot)
7946
        else:
7947
          iprot.skip(ftype)
7948
      else:
7949
        iprot.skip(ftype)
7950
      iprot.readFieldEnd()
7951
    iprot.readStructEnd()
7952
 
7953
  def write(self, oprot):
7954
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7955
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7956
      return
7957
    oprot.writeStructBegin('getCategory_result')
7958
    if self.success is not None:
7959
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7960
      self.success.write(oprot)
7961
      oprot.writeFieldEnd()
7962
    oprot.writeFieldStop()
7963
    oprot.writeStructEnd()
7964
 
7965
  def validate(self):
7966
    return
7967
 
7968
 
7969
  def __repr__(self):
7970
    L = ['%s=%r' % (key, value)
7971
      for key, value in self.__dict__.iteritems()]
7972
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7973
 
7974
  def __eq__(self, other):
7975
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7976
 
7977
  def __ne__(self, other):
7978
    return not (self == other)
7979
 
7980
class getAllCategories_args:
7981
 
7982
  thrift_spec = (
7983
  )
7984
 
7985
  def read(self, iprot):
7986
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7987
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7988
      return
7989
    iprot.readStructBegin()
7990
    while True:
7991
      (fname, ftype, fid) = iprot.readFieldBegin()
7992
      if ftype == TType.STOP:
7993
        break
7994
      else:
7995
        iprot.skip(ftype)
7996
      iprot.readFieldEnd()
7997
    iprot.readStructEnd()
7998
 
7999
  def write(self, oprot):
8000
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8001
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8002
      return
8003
    oprot.writeStructBegin('getAllCategories_args')
8004
    oprot.writeFieldStop()
8005
    oprot.writeStructEnd()
8006
 
8007
  def validate(self):
8008
    return
8009
 
8010
 
8011
  def __repr__(self):
8012
    L = ['%s=%r' % (key, value)
8013
      for key, value in self.__dict__.iteritems()]
8014
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8015
 
8016
  def __eq__(self, other):
8017
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8018
 
8019
  def __ne__(self, other):
8020
    return not (self == other)
8021
 
8022
class getAllCategories_result:
8023
  """
8024
  Attributes:
8025
   - success
8026
  """
8027
 
8028
  thrift_spec = (
8029
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
8030
  )
8031
 
8032
  def __init__(self, success=None,):
8033
    self.success = success
8034
 
8035
  def read(self, iprot):
8036
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8037
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8038
      return
8039
    iprot.readStructBegin()
8040
    while True:
8041
      (fname, ftype, fid) = iprot.readFieldBegin()
8042
      if ftype == TType.STOP:
8043
        break
8044
      if fid == 0:
8045
        if ftype == TType.LIST:
8046
          self.success = []
8047
          (_etype124, _size121) = iprot.readListBegin()
8048
          for _i125 in xrange(_size121):
8049
            _elem126 = Category()
8050
            _elem126.read(iprot)
8051
            self.success.append(_elem126)
8052
          iprot.readListEnd()
8053
        else:
8054
          iprot.skip(ftype)
8055
      else:
8056
        iprot.skip(ftype)
8057
      iprot.readFieldEnd()
8058
    iprot.readStructEnd()
8059
 
8060
  def write(self, oprot):
8061
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8062
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8063
      return
8064
    oprot.writeStructBegin('getAllCategories_result')
8065
    if self.success is not None:
8066
      oprot.writeFieldBegin('success', TType.LIST, 0)
8067
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8068
      for iter127 in self.success:
8069
        iter127.write(oprot)
8070
      oprot.writeListEnd()
8071
      oprot.writeFieldEnd()
8072
    oprot.writeFieldStop()
8073
    oprot.writeStructEnd()
8074
 
8075
  def validate(self):
8076
    return
8077
 
8078
 
8079
  def __repr__(self):
8080
    L = ['%s=%r' % (key, value)
8081
      for key, value in self.__dict__.iteritems()]
8082
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8083
 
8084
  def __eq__(self, other):
8085
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8086
 
8087
  def __ne__(self, other):
8088
    return not (self == other)
8089
 
8090
class getAllSimilarItems_args:
8091
  """
8092
  Attributes:
8093
   - itemId
8094
  """
8095
 
8096
  thrift_spec = (
8097
    None, # 0
8098
    (1, TType.I64, 'itemId', None, None, ), # 1
8099
  )
8100
 
8101
  def __init__(self, itemId=None,):
8102
    self.itemId = itemId
8103
 
8104
  def read(self, iprot):
8105
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8106
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8107
      return
8108
    iprot.readStructBegin()
8109
    while True:
8110
      (fname, ftype, fid) = iprot.readFieldBegin()
8111
      if ftype == TType.STOP:
8112
        break
8113
      if fid == 1:
8114
        if ftype == TType.I64:
8115
          self.itemId = iprot.readI64();
8116
        else:
8117
          iprot.skip(ftype)
8118
      else:
8119
        iprot.skip(ftype)
8120
      iprot.readFieldEnd()
8121
    iprot.readStructEnd()
8122
 
8123
  def write(self, oprot):
8124
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8125
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8126
      return
8127
    oprot.writeStructBegin('getAllSimilarItems_args')
8128
    if self.itemId is not None:
8129
      oprot.writeFieldBegin('itemId', TType.I64, 1)
8130
      oprot.writeI64(self.itemId)
8131
      oprot.writeFieldEnd()
8132
    oprot.writeFieldStop()
8133
    oprot.writeStructEnd()
8134
 
8135
  def validate(self):
8136
    return
8137
 
8138
 
8139
  def __repr__(self):
8140
    L = ['%s=%r' % (key, value)
8141
      for key, value in self.__dict__.iteritems()]
8142
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8143
 
8144
  def __eq__(self, other):
8145
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8146
 
8147
  def __ne__(self, other):
8148
    return not (self == other)
8149
 
8150
class getAllSimilarItems_result:
8151
  """
8152
  Attributes:
8153
   - success
8154
  """
8155
 
8156
  thrift_spec = (
8157
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
8158
  )
8159
 
8160
  def __init__(self, success=None,):
8161
    self.success = success
8162
 
8163
  def read(self, iprot):
8164
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8165
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8166
      return
8167
    iprot.readStructBegin()
8168
    while True:
8169
      (fname, ftype, fid) = iprot.readFieldBegin()
8170
      if ftype == TType.STOP:
8171
        break
8172
      if fid == 0:
8173
        if ftype == TType.LIST:
8174
          self.success = []
8175
          (_etype131, _size128) = iprot.readListBegin()
8176
          for _i132 in xrange(_size128):
8177
            _elem133 = Item()
8178
            _elem133.read(iprot)
8179
            self.success.append(_elem133)
8180
          iprot.readListEnd()
8181
        else:
8182
          iprot.skip(ftype)
8183
      else:
8184
        iprot.skip(ftype)
8185
      iprot.readFieldEnd()
8186
    iprot.readStructEnd()
8187
 
8188
  def write(self, oprot):
8189
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8190
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8191
      return
8192
    oprot.writeStructBegin('getAllSimilarItems_result')
8193
    if self.success is not None:
8194
      oprot.writeFieldBegin('success', TType.LIST, 0)
8195
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8196
      for iter134 in self.success:
8197
        iter134.write(oprot)
8198
      oprot.writeListEnd()
8199
      oprot.writeFieldEnd()
8200
    oprot.writeFieldStop()
8201
    oprot.writeStructEnd()
8202
 
8203
  def validate(self):
8204
    return
8205
 
8206
 
8207
  def __repr__(self):
8208
    L = ['%s=%r' % (key, value)
8209
      for key, value in self.__dict__.iteritems()]
8210
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8211
 
8212
  def __eq__(self, other):
8213
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8214
 
8215
  def __ne__(self, other):
8216
    return not (self == other)
8217
 
8218
class addSimilarItem_args:
8219
  """
8220
  Attributes:
8221
   - itemId
8222
   - catalogItemId
8223
  """
8224
 
8225
  thrift_spec = (
8226
    None, # 0
8227
    (1, TType.I64, 'itemId', None, None, ), # 1
8228
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
8229
  )
8230
 
8231
  def __init__(self, itemId=None, catalogItemId=None,):
8232
    self.itemId = itemId
8233
    self.catalogItemId = catalogItemId
8234
 
8235
  def read(self, iprot):
8236
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8237
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8238
      return
8239
    iprot.readStructBegin()
8240
    while True:
8241
      (fname, ftype, fid) = iprot.readFieldBegin()
8242
      if ftype == TType.STOP:
8243
        break
8244
      if fid == 1:
8245
        if ftype == TType.I64:
8246
          self.itemId = iprot.readI64();
8247
        else:
8248
          iprot.skip(ftype)
8249
      elif fid == 2:
8250
        if ftype == TType.I64:
8251
          self.catalogItemId = iprot.readI64();
8252
        else:
8253
          iprot.skip(ftype)
8254
      else:
8255
        iprot.skip(ftype)
8256
      iprot.readFieldEnd()
8257
    iprot.readStructEnd()
8258
 
8259
  def write(self, oprot):
8260
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8261
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8262
      return
8263
    oprot.writeStructBegin('addSimilarItem_args')
8264
    if self.itemId is not None:
8265
      oprot.writeFieldBegin('itemId', TType.I64, 1)
8266
      oprot.writeI64(self.itemId)
8267
      oprot.writeFieldEnd()
8268
    if self.catalogItemId is not None:
8269
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
8270
      oprot.writeI64(self.catalogItemId)
8271
      oprot.writeFieldEnd()
8272
    oprot.writeFieldStop()
8273
    oprot.writeStructEnd()
8274
 
8275
  def validate(self):
8276
    return
8277
 
8278
 
8279
  def __repr__(self):
8280
    L = ['%s=%r' % (key, value)
8281
      for key, value in self.__dict__.iteritems()]
8282
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8283
 
8284
  def __eq__(self, other):
8285
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8286
 
8287
  def __ne__(self, other):
8288
    return not (self == other)
8289
 
8290
class addSimilarItem_result:
8291
  """
8292
  Attributes:
8293
   - success
8294
   - cex
8295
  """
8296
 
8297
  thrift_spec = (
8298
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
8299
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
8300
  )
8301
 
8302
  def __init__(self, success=None, cex=None,):
8303
    self.success = success
8304
    self.cex = cex
8305
 
8306
  def read(self, iprot):
8307
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8308
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8309
      return
8310
    iprot.readStructBegin()
8311
    while True:
8312
      (fname, ftype, fid) = iprot.readFieldBegin()
8313
      if ftype == TType.STOP:
8314
        break
8315
      if fid == 0:
8316
        if ftype == TType.STRUCT:
8317
          self.success = Item()
8318
          self.success.read(iprot)
8319
        else:
8320
          iprot.skip(ftype)
8321
      elif fid == 1:
8322
        if ftype == TType.STRUCT:
8323
          self.cex = CatalogServiceException()
8324
          self.cex.read(iprot)
8325
        else:
8326
          iprot.skip(ftype)
8327
      else:
8328
        iprot.skip(ftype)
8329
      iprot.readFieldEnd()
8330
    iprot.readStructEnd()
8331
 
8332
  def write(self, oprot):
8333
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8334
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8335
      return
8336
    oprot.writeStructBegin('addSimilarItem_result')
8337
    if self.success is not None:
8338
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
8339
      self.success.write(oprot)
8340
      oprot.writeFieldEnd()
8341
    if self.cex is not None:
8342
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
8343
      self.cex.write(oprot)
8344
      oprot.writeFieldEnd()
8345
    oprot.writeFieldStop()
8346
    oprot.writeStructEnd()
8347
 
8348
  def validate(self):
8349
    return
8350
 
8351
 
8352
  def __repr__(self):
8353
    L = ['%s=%r' % (key, value)
8354
      for key, value in self.__dict__.iteritems()]
8355
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8356
 
8357
  def __eq__(self, other):
8358
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8359
 
8360
  def __ne__(self, other):
8361
    return not (self == other)
8362
 
6512 kshitij.so 8363
class addTag_args:
8364
  """
8365
  Attributes:
8366
   - displayName
8367
   - itemId
8368
  """
8369
 
8370
  thrift_spec = (
8371
    None, # 0
8372
    (1, TType.STRING, 'displayName', None, None, ), # 1
8373
    (2, TType.I64, 'itemId', None, None, ), # 2
8374
  )
8375
 
8376
  def __init__(self, displayName=None, itemId=None,):
8377
    self.displayName = displayName
8378
    self.itemId = itemId
8379
 
8380
  def read(self, iprot):
8381
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8382
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8383
      return
8384
    iprot.readStructBegin()
8385
    while True:
8386
      (fname, ftype, fid) = iprot.readFieldBegin()
8387
      if ftype == TType.STOP:
8388
        break
8389
      if fid == 1:
8390
        if ftype == TType.STRING:
8391
          self.displayName = iprot.readString();
8392
        else:
8393
          iprot.skip(ftype)
8394
      elif fid == 2:
8395
        if ftype == TType.I64:
8396
          self.itemId = iprot.readI64();
8397
        else:
8398
          iprot.skip(ftype)
8399
      else:
8400
        iprot.skip(ftype)
8401
      iprot.readFieldEnd()
8402
    iprot.readStructEnd()
8403
 
8404
  def write(self, oprot):
8405
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8406
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8407
      return
8408
    oprot.writeStructBegin('addTag_args')
8409
    if self.displayName is not None:
8410
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
8411
      oprot.writeString(self.displayName)
8412
      oprot.writeFieldEnd()
8413
    if self.itemId is not None:
8414
      oprot.writeFieldBegin('itemId', TType.I64, 2)
8415
      oprot.writeI64(self.itemId)
8416
      oprot.writeFieldEnd()
8417
    oprot.writeFieldStop()
8418
    oprot.writeStructEnd()
8419
 
8420
  def validate(self):
8421
    return
8422
 
8423
 
8424
  def __repr__(self):
8425
    L = ['%s=%r' % (key, value)
8426
      for key, value in self.__dict__.iteritems()]
8427
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8428
 
8429
  def __eq__(self, other):
8430
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8431
 
8432
  def __ne__(self, other):
8433
    return not (self == other)
8434
 
8435
class addTag_result:
8436
  """
8437
  Attributes:
8438
   - success
8439
  """
8440
 
8441
  thrift_spec = (
8442
    (0, TType.BOOL, 'success', None, None, ), # 0
8443
  )
8444
 
8445
  def __init__(self, success=None,):
8446
    self.success = success
8447
 
8448
  def read(self, iprot):
8449
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8450
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8451
      return
8452
    iprot.readStructBegin()
8453
    while True:
8454
      (fname, ftype, fid) = iprot.readFieldBegin()
8455
      if ftype == TType.STOP:
8456
        break
8457
      if fid == 0:
8458
        if ftype == TType.BOOL:
8459
          self.success = iprot.readBool();
8460
        else:
8461
          iprot.skip(ftype)
8462
      else:
8463
        iprot.skip(ftype)
8464
      iprot.readFieldEnd()
8465
    iprot.readStructEnd()
8466
 
8467
  def write(self, oprot):
8468
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8469
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8470
      return
8471
    oprot.writeStructBegin('addTag_result')
8472
    if self.success is not None:
8473
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8474
      oprot.writeBool(self.success)
8475
      oprot.writeFieldEnd()
8476
    oprot.writeFieldStop()
8477
    oprot.writeStructEnd()
8478
 
8479
  def validate(self):
8480
    return
8481
 
8482
 
8483
  def __repr__(self):
8484
    L = ['%s=%r' % (key, value)
8485
      for key, value in self.__dict__.iteritems()]
8486
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8487
 
8488
  def __eq__(self, other):
8489
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8490
 
8491
  def __ne__(self, other):
8492
    return not (self == other)
8493
 
8494
class deleteEntityTag_args:
8495
  """
8496
  Attributes:
8497
   - displayName
8498
   - itemId
8499
  """
8500
 
8501
  thrift_spec = (
8502
    None, # 0
8503
    (1, TType.STRING, 'displayName', None, None, ), # 1
8504
    (2, TType.I64, 'itemId', None, None, ), # 2
8505
  )
8506
 
8507
  def __init__(self, displayName=None, itemId=None,):
8508
    self.displayName = displayName
8509
    self.itemId = itemId
8510
 
8511
  def read(self, iprot):
8512
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8513
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8514
      return
8515
    iprot.readStructBegin()
8516
    while True:
8517
      (fname, ftype, fid) = iprot.readFieldBegin()
8518
      if ftype == TType.STOP:
8519
        break
8520
      if fid == 1:
8521
        if ftype == TType.STRING:
8522
          self.displayName = iprot.readString();
8523
        else:
8524
          iprot.skip(ftype)
8525
      elif fid == 2:
8526
        if ftype == TType.I64:
8527
          self.itemId = iprot.readI64();
8528
        else:
8529
          iprot.skip(ftype)
8530
      else:
8531
        iprot.skip(ftype)
8532
      iprot.readFieldEnd()
8533
    iprot.readStructEnd()
8534
 
8535
  def write(self, oprot):
8536
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8537
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8538
      return
8539
    oprot.writeStructBegin('deleteEntityTag_args')
8540
    if self.displayName is not None:
8541
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
8542
      oprot.writeString(self.displayName)
8543
      oprot.writeFieldEnd()
8544
    if self.itemId is not None:
8545
      oprot.writeFieldBegin('itemId', TType.I64, 2)
8546
      oprot.writeI64(self.itemId)
8547
      oprot.writeFieldEnd()
8548
    oprot.writeFieldStop()
8549
    oprot.writeStructEnd()
8550
 
8551
  def validate(self):
8552
    return
8553
 
8554
 
8555
  def __repr__(self):
8556
    L = ['%s=%r' % (key, value)
8557
      for key, value in self.__dict__.iteritems()]
8558
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8559
 
8560
  def __eq__(self, other):
8561
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8562
 
8563
  def __ne__(self, other):
8564
    return not (self == other)
8565
 
8566
class deleteEntityTag_result:
8567
  """
8568
  Attributes:
8569
   - success
8570
  """
8571
 
8572
  thrift_spec = (
8573
    (0, TType.BOOL, 'success', None, None, ), # 0
8574
  )
8575
 
8576
  def __init__(self, success=None,):
8577
    self.success = success
8578
 
8579
  def read(self, iprot):
8580
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8581
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8582
      return
8583
    iprot.readStructBegin()
8584
    while True:
8585
      (fname, ftype, fid) = iprot.readFieldBegin()
8586
      if ftype == TType.STOP:
8587
        break
8588
      if fid == 0:
8589
        if ftype == TType.BOOL:
8590
          self.success = iprot.readBool();
8591
        else:
8592
          iprot.skip(ftype)
8593
      else:
8594
        iprot.skip(ftype)
8595
      iprot.readFieldEnd()
8596
    iprot.readStructEnd()
8597
 
8598
  def write(self, oprot):
8599
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8600
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8601
      return
8602
    oprot.writeStructBegin('deleteEntityTag_result')
8603
    if self.success is not None:
8604
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8605
      oprot.writeBool(self.success)
8606
      oprot.writeFieldEnd()
8607
    oprot.writeFieldStop()
8608
    oprot.writeStructEnd()
8609
 
8610
  def validate(self):
8611
    return
8612
 
8613
 
8614
  def __repr__(self):
8615
    L = ['%s=%r' % (key, value)
8616
      for key, value in self.__dict__.iteritems()]
8617
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8618
 
8619
  def __eq__(self, other):
8620
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8621
 
8622
  def __ne__(self, other):
8623
    return not (self == other)
8624
 
8625
class deleteTag_args:
8626
  """
8627
  Attributes:
8628
   - displayName
8629
  """
8630
 
8631
  thrift_spec = (
8632
    None, # 0
8633
    (1, TType.STRING, 'displayName', None, None, ), # 1
8634
  )
8635
 
8636
  def __init__(self, displayName=None,):
8637
    self.displayName = displayName
8638
 
8639
  def read(self, iprot):
8640
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8641
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8642
      return
8643
    iprot.readStructBegin()
8644
    while True:
8645
      (fname, ftype, fid) = iprot.readFieldBegin()
8646
      if ftype == TType.STOP:
8647
        break
8648
      if fid == 1:
8649
        if ftype == TType.STRING:
8650
          self.displayName = iprot.readString();
8651
        else:
8652
          iprot.skip(ftype)
8653
      else:
8654
        iprot.skip(ftype)
8655
      iprot.readFieldEnd()
8656
    iprot.readStructEnd()
8657
 
8658
  def write(self, oprot):
8659
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8660
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8661
      return
8662
    oprot.writeStructBegin('deleteTag_args')
8663
    if self.displayName is not None:
8664
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
8665
      oprot.writeString(self.displayName)
8666
      oprot.writeFieldEnd()
8667
    oprot.writeFieldStop()
8668
    oprot.writeStructEnd()
8669
 
8670
  def validate(self):
8671
    return
8672
 
8673
 
8674
  def __repr__(self):
8675
    L = ['%s=%r' % (key, value)
8676
      for key, value in self.__dict__.iteritems()]
8677
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8678
 
8679
  def __eq__(self, other):
8680
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8681
 
8682
  def __ne__(self, other):
8683
    return not (self == other)
8684
 
8685
class deleteTag_result:
8686
  """
8687
  Attributes:
8688
   - success
8689
  """
8690
 
8691
  thrift_spec = (
8692
    (0, TType.BOOL, 'success', None, None, ), # 0
8693
  )
8694
 
8695
  def __init__(self, success=None,):
8696
    self.success = success
8697
 
8698
  def read(self, iprot):
8699
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8700
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8701
      return
8702
    iprot.readStructBegin()
8703
    while True:
8704
      (fname, ftype, fid) = iprot.readFieldBegin()
8705
      if ftype == TType.STOP:
8706
        break
8707
      if fid == 0:
8708
        if ftype == TType.BOOL:
8709
          self.success = iprot.readBool();
8710
        else:
8711
          iprot.skip(ftype)
8712
      else:
8713
        iprot.skip(ftype)
8714
      iprot.readFieldEnd()
8715
    iprot.readStructEnd()
8716
 
8717
  def write(self, oprot):
8718
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8719
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8720
      return
8721
    oprot.writeStructBegin('deleteTag_result')
8722
    if self.success is not None:
8723
      oprot.writeFieldBegin('success', TType.BOOL, 0)
8724
      oprot.writeBool(self.success)
8725
      oprot.writeFieldEnd()
8726
    oprot.writeFieldStop()
8727
    oprot.writeStructEnd()
8728
 
8729
  def validate(self):
8730
    return
8731
 
8732
 
8733
  def __repr__(self):
8734
    L = ['%s=%r' % (key, value)
8735
      for key, value in self.__dict__.iteritems()]
8736
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8737
 
8738
  def __eq__(self, other):
8739
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8740
 
8741
  def __ne__(self, other):
8742
    return not (self == other)
8743
 
8744
class getAllTags_args:
8745
 
8746
  thrift_spec = (
8747
  )
8748
 
8749
  def read(self, iprot):
8750
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8751
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8752
      return
8753
    iprot.readStructBegin()
8754
    while True:
8755
      (fname, ftype, fid) = iprot.readFieldBegin()
8756
      if ftype == TType.STOP:
8757
        break
8758
      else:
8759
        iprot.skip(ftype)
8760
      iprot.readFieldEnd()
8761
    iprot.readStructEnd()
8762
 
8763
  def write(self, oprot):
8764
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8765
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8766
      return
8767
    oprot.writeStructBegin('getAllTags_args')
8768
    oprot.writeFieldStop()
8769
    oprot.writeStructEnd()
8770
 
8771
  def validate(self):
8772
    return
8773
 
8774
 
8775
  def __repr__(self):
8776
    L = ['%s=%r' % (key, value)
8777
      for key, value in self.__dict__.iteritems()]
8778
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8779
 
8780
  def __eq__(self, other):
8781
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8782
 
8783
  def __ne__(self, other):
8784
    return not (self == other)
8785
 
8786
class getAllTags_result:
8787
  """
8788
  Attributes:
8789
   - success
8790
  """
8791
 
8792
  thrift_spec = (
8793
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
8794
  )
8795
 
8796
  def __init__(self, success=None,):
8797
    self.success = success
8798
 
8799
  def read(self, iprot):
8800
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8801
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8802
      return
8803
    iprot.readStructBegin()
8804
    while True:
8805
      (fname, ftype, fid) = iprot.readFieldBegin()
8806
      if ftype == TType.STOP:
8807
        break
8808
      if fid == 0:
8809
        if ftype == TType.LIST:
8810
          self.success = []
8811
          (_etype138, _size135) = iprot.readListBegin()
8812
          for _i139 in xrange(_size135):
8813
            _elem140 = iprot.readString();
8814
            self.success.append(_elem140)
8815
          iprot.readListEnd()
8816
        else:
8817
          iprot.skip(ftype)
8818
      else:
8819
        iprot.skip(ftype)
8820
      iprot.readFieldEnd()
8821
    iprot.readStructEnd()
8822
 
8823
  def write(self, oprot):
8824
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8825
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8826
      return
8827
    oprot.writeStructBegin('getAllTags_result')
8828
    if self.success is not None:
8829
      oprot.writeFieldBegin('success', TType.LIST, 0)
8830
      oprot.writeListBegin(TType.STRING, len(self.success))
8831
      for iter141 in self.success:
8832
        oprot.writeString(iter141)
8833
      oprot.writeListEnd()
8834
      oprot.writeFieldEnd()
8835
    oprot.writeFieldStop()
8836
    oprot.writeStructEnd()
8837
 
8838
  def validate(self):
8839
    return
8840
 
8841
 
8842
  def __repr__(self):
8843
    L = ['%s=%r' % (key, value)
8844
      for key, value in self.__dict__.iteritems()]
8845
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8846
 
8847
  def __eq__(self, other):
8848
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8849
 
8850
  def __ne__(self, other):
8851
    return not (self == other)
8852
 
8853
class getAllEntitiesByTagName_args:
8854
  """
8855
  Attributes:
8856
   - displayName
8857
  """
8858
 
8859
  thrift_spec = (
8860
    None, # 0
8861
    (1, TType.STRING, 'displayName', None, None, ), # 1
8862
  )
8863
 
8864
  def __init__(self, displayName=None,):
8865
    self.displayName = displayName
8866
 
8867
  def read(self, iprot):
8868
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8869
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8870
      return
8871
    iprot.readStructBegin()
8872
    while True:
8873
      (fname, ftype, fid) = iprot.readFieldBegin()
8874
      if ftype == TType.STOP:
8875
        break
8876
      if fid == 1:
8877
        if ftype == TType.STRING:
8878
          self.displayName = iprot.readString();
8879
        else:
8880
          iprot.skip(ftype)
8881
      else:
8882
        iprot.skip(ftype)
8883
      iprot.readFieldEnd()
8884
    iprot.readStructEnd()
8885
 
8886
  def write(self, oprot):
8887
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8888
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8889
      return
8890
    oprot.writeStructBegin('getAllEntitiesByTagName_args')
8891
    if self.displayName is not None:
8892
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
8893
      oprot.writeString(self.displayName)
8894
      oprot.writeFieldEnd()
8895
    oprot.writeFieldStop()
8896
    oprot.writeStructEnd()
8897
 
8898
  def validate(self):
8899
    return
8900
 
8901
 
8902
  def __repr__(self):
8903
    L = ['%s=%r' % (key, value)
8904
      for key, value in self.__dict__.iteritems()]
8905
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8906
 
8907
  def __eq__(self, other):
8908
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8909
 
8910
  def __ne__(self, other):
8911
    return not (self == other)
8912
 
8913
class getAllEntitiesByTagName_result:
8914
  """
8915
  Attributes:
8916
   - success
8917
  """
8918
 
8919
  thrift_spec = (
8920
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
8921
  )
8922
 
8923
  def __init__(self, success=None,):
8924
    self.success = success
8925
 
8926
  def read(self, iprot):
8927
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8928
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8929
      return
8930
    iprot.readStructBegin()
8931
    while True:
8932
      (fname, ftype, fid) = iprot.readFieldBegin()
8933
      if ftype == TType.STOP:
8934
        break
8935
      if fid == 0:
8936
        if ftype == TType.LIST:
8937
          self.success = []
8938
          (_etype145, _size142) = iprot.readListBegin()
8939
          for _i146 in xrange(_size142):
8940
            _elem147 = iprot.readI64();
8941
            self.success.append(_elem147)
8942
          iprot.readListEnd()
8943
        else:
8944
          iprot.skip(ftype)
8945
      else:
8946
        iprot.skip(ftype)
8947
      iprot.readFieldEnd()
8948
    iprot.readStructEnd()
8949
 
8950
  def write(self, oprot):
8951
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8952
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8953
      return
8954
    oprot.writeStructBegin('getAllEntitiesByTagName_result')
8955
    if self.success is not None:
8956
      oprot.writeFieldBegin('success', TType.LIST, 0)
8957
      oprot.writeListBegin(TType.I64, len(self.success))
8958
      for iter148 in self.success:
8959
        oprot.writeI64(iter148)
8960
      oprot.writeListEnd()
8961
      oprot.writeFieldEnd()
8962
    oprot.writeFieldStop()
8963
    oprot.writeStructEnd()
8964
 
8965
  def validate(self):
8966
    return
8967
 
8968
 
8969
  def __repr__(self):
8970
    L = ['%s=%r' % (key, value)
8971
      for key, value in self.__dict__.iteritems()]
8972
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8973
 
8974
  def __eq__(self, other):
8975
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8976
 
8977
  def __ne__(self, other):
8978
    return not (self == other)
8979
 
5944 mandeep.dh 8980
class deleteSimilarItem_args:
8981
  """
8982
  Attributes:
8983
   - itemId
8984
   - catalogItemId
8985
  """
8986
 
8987
  thrift_spec = (
8988
    None, # 0
8989
    (1, TType.I64, 'itemId', None, None, ), # 1
8990
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
8991
  )
8992
 
8993
  def __init__(self, itemId=None, catalogItemId=None,):
8994
    self.itemId = itemId
8995
    self.catalogItemId = catalogItemId
8996
 
8997
  def read(self, iprot):
8998
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8999
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9000
      return
9001
    iprot.readStructBegin()
9002
    while True:
9003
      (fname, ftype, fid) = iprot.readFieldBegin()
9004
      if ftype == TType.STOP:
9005
        break
9006
      if fid == 1:
9007
        if ftype == TType.I64:
9008
          self.itemId = iprot.readI64();
9009
        else:
9010
          iprot.skip(ftype)
9011
      elif fid == 2:
9012
        if ftype == TType.I64:
9013
          self.catalogItemId = iprot.readI64();
9014
        else:
9015
          iprot.skip(ftype)
9016
      else:
9017
        iprot.skip(ftype)
9018
      iprot.readFieldEnd()
9019
    iprot.readStructEnd()
9020
 
9021
  def write(self, oprot):
9022
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9023
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9024
      return
9025
    oprot.writeStructBegin('deleteSimilarItem_args')
9026
    if self.itemId is not None:
9027
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9028
      oprot.writeI64(self.itemId)
9029
      oprot.writeFieldEnd()
9030
    if self.catalogItemId is not None:
9031
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
9032
      oprot.writeI64(self.catalogItemId)
9033
      oprot.writeFieldEnd()
9034
    oprot.writeFieldStop()
9035
    oprot.writeStructEnd()
9036
 
9037
  def validate(self):
9038
    return
9039
 
9040
 
9041
  def __repr__(self):
9042
    L = ['%s=%r' % (key, value)
9043
      for key, value in self.__dict__.iteritems()]
9044
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9045
 
9046
  def __eq__(self, other):
9047
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9048
 
9049
  def __ne__(self, other):
9050
    return not (self == other)
9051
 
9052
class deleteSimilarItem_result:
9053
  """
9054
  Attributes:
9055
   - success
9056
   - cex
9057
  """
9058
 
9059
  thrift_spec = (
9060
    (0, TType.BOOL, 'success', None, None, ), # 0
9061
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9062
  )
9063
 
9064
  def __init__(self, success=None, cex=None,):
9065
    self.success = success
9066
    self.cex = cex
9067
 
9068
  def read(self, iprot):
9069
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9070
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9071
      return
9072
    iprot.readStructBegin()
9073
    while True:
9074
      (fname, ftype, fid) = iprot.readFieldBegin()
9075
      if ftype == TType.STOP:
9076
        break
9077
      if fid == 0:
9078
        if ftype == TType.BOOL:
9079
          self.success = iprot.readBool();
9080
        else:
9081
          iprot.skip(ftype)
9082
      elif fid == 1:
9083
        if ftype == TType.STRUCT:
9084
          self.cex = CatalogServiceException()
9085
          self.cex.read(iprot)
9086
        else:
9087
          iprot.skip(ftype)
9088
      else:
9089
        iprot.skip(ftype)
9090
      iprot.readFieldEnd()
9091
    iprot.readStructEnd()
9092
 
9093
  def write(self, oprot):
9094
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9095
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9096
      return
9097
    oprot.writeStructBegin('deleteSimilarItem_result')
9098
    if self.success is not None:
9099
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9100
      oprot.writeBool(self.success)
9101
      oprot.writeFieldEnd()
9102
    if self.cex is not None:
9103
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9104
      self.cex.write(oprot)
9105
      oprot.writeFieldEnd()
9106
    oprot.writeFieldStop()
9107
    oprot.writeStructEnd()
9108
 
9109
  def validate(self):
9110
    return
9111
 
9112
 
9113
  def __repr__(self):
9114
    L = ['%s=%r' % (key, value)
9115
      for key, value in self.__dict__.iteritems()]
9116
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9117
 
9118
  def __eq__(self, other):
9119
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9120
 
9121
  def __ne__(self, other):
9122
    return not (self == other)
9123
 
9124
class checkSimilarItem_args:
9125
  """
9126
  Attributes:
9127
   - brand
9128
   - modelNumber
9129
   - modelName
9130
   - color
9131
  """
9132
 
9133
  thrift_spec = (
9134
    None, # 0
9135
    (1, TType.STRING, 'brand', None, None, ), # 1
9136
    (2, TType.STRING, 'modelNumber', None, None, ), # 2
9137
    (3, TType.STRING, 'modelName', None, None, ), # 3
9138
    (4, TType.STRING, 'color', None, None, ), # 4
9139
  )
9140
 
9141
  def __init__(self, brand=None, modelNumber=None, modelName=None, color=None,):
9142
    self.brand = brand
9143
    self.modelNumber = modelNumber
9144
    self.modelName = modelName
9145
    self.color = color
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 == 1:
9157
        if ftype == TType.STRING:
9158
          self.brand = iprot.readString();
9159
        else:
9160
          iprot.skip(ftype)
9161
      elif fid == 2:
9162
        if ftype == TType.STRING:
9163
          self.modelNumber = iprot.readString();
9164
        else:
9165
          iprot.skip(ftype)
9166
      elif fid == 3:
9167
        if ftype == TType.STRING:
9168
          self.modelName = iprot.readString();
9169
        else:
9170
          iprot.skip(ftype)
9171
      elif fid == 4:
9172
        if ftype == TType.STRING:
9173
          self.color = iprot.readString();
9174
        else:
9175
          iprot.skip(ftype)
9176
      else:
9177
        iprot.skip(ftype)
9178
      iprot.readFieldEnd()
9179
    iprot.readStructEnd()
9180
 
9181
  def write(self, oprot):
9182
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9183
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9184
      return
9185
    oprot.writeStructBegin('checkSimilarItem_args')
9186
    if self.brand is not None:
9187
      oprot.writeFieldBegin('brand', TType.STRING, 1)
9188
      oprot.writeString(self.brand)
9189
      oprot.writeFieldEnd()
9190
    if self.modelNumber is not None:
9191
      oprot.writeFieldBegin('modelNumber', TType.STRING, 2)
9192
      oprot.writeString(self.modelNumber)
9193
      oprot.writeFieldEnd()
9194
    if self.modelName is not None:
9195
      oprot.writeFieldBegin('modelName', TType.STRING, 3)
9196
      oprot.writeString(self.modelName)
9197
      oprot.writeFieldEnd()
9198
    if self.color is not None:
9199
      oprot.writeFieldBegin('color', TType.STRING, 4)
9200
      oprot.writeString(self.color)
9201
      oprot.writeFieldEnd()
9202
    oprot.writeFieldStop()
9203
    oprot.writeStructEnd()
9204
 
9205
  def validate(self):
9206
    return
9207
 
9208
 
9209
  def __repr__(self):
9210
    L = ['%s=%r' % (key, value)
9211
      for key, value in self.__dict__.iteritems()]
9212
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9213
 
9214
  def __eq__(self, other):
9215
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9216
 
9217
  def __ne__(self, other):
9218
    return not (self == other)
9219
 
9220
class checkSimilarItem_result:
9221
  """
9222
  Attributes:
9223
   - success
9224
  """
9225
 
9226
  thrift_spec = (
9227
    (0, TType.I64, 'success', None, None, ), # 0
9228
  )
9229
 
9230
  def __init__(self, success=None,):
9231
    self.success = success
9232
 
9233
  def read(self, iprot):
9234
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9235
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9236
      return
9237
    iprot.readStructBegin()
9238
    while True:
9239
      (fname, ftype, fid) = iprot.readFieldBegin()
9240
      if ftype == TType.STOP:
9241
        break
9242
      if fid == 0:
9243
        if ftype == TType.I64:
9244
          self.success = iprot.readI64();
9245
        else:
9246
          iprot.skip(ftype)
9247
      else:
9248
        iprot.skip(ftype)
9249
      iprot.readFieldEnd()
9250
    iprot.readStructEnd()
9251
 
9252
  def write(self, oprot):
9253
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9254
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9255
      return
9256
    oprot.writeStructBegin('checkSimilarItem_result')
9257
    if self.success is not None:
9258
      oprot.writeFieldBegin('success', TType.I64, 0)
9259
      oprot.writeI64(self.success)
9260
      oprot.writeFieldEnd()
9261
    oprot.writeFieldStop()
9262
    oprot.writeStructEnd()
9263
 
9264
  def validate(self):
9265
    return
9266
 
9267
 
9268
  def __repr__(self):
9269
    L = ['%s=%r' % (key, value)
9270
      for key, value in self.__dict__.iteritems()]
9271
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9272
 
9273
  def __eq__(self, other):
9274
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9275
 
9276
  def __ne__(self, other):
9277
    return not (self == other)
9278
 
9279
class validateRiskyStatus_args:
9280
  """
9281
  Attributes:
9282
   - itemId
9283
  """
9284
 
9285
  thrift_spec = (
9286
    None, # 0
9287
    (1, TType.I64, 'itemId', None, None, ), # 1
9288
  )
9289
 
9290
  def __init__(self, itemId=None,):
9291
    self.itemId = itemId
9292
 
9293
  def read(self, iprot):
9294
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9295
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9296
      return
9297
    iprot.readStructBegin()
9298
    while True:
9299
      (fname, ftype, fid) = iprot.readFieldBegin()
9300
      if ftype == TType.STOP:
9301
        break
9302
      if fid == 1:
9303
        if ftype == TType.I64:
9304
          self.itemId = iprot.readI64();
9305
        else:
9306
          iprot.skip(ftype)
9307
      else:
9308
        iprot.skip(ftype)
9309
      iprot.readFieldEnd()
9310
    iprot.readStructEnd()
9311
 
9312
  def write(self, oprot):
9313
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9314
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9315
      return
9316
    oprot.writeStructBegin('validateRiskyStatus_args')
9317
    if self.itemId is not None:
9318
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9319
      oprot.writeI64(self.itemId)
9320
      oprot.writeFieldEnd()
9321
    oprot.writeFieldStop()
9322
    oprot.writeStructEnd()
9323
 
9324
  def validate(self):
9325
    return
9326
 
9327
 
9328
  def __repr__(self):
9329
    L = ['%s=%r' % (key, value)
9330
      for key, value in self.__dict__.iteritems()]
9331
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9332
 
9333
  def __eq__(self, other):
9334
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9335
 
9336
  def __ne__(self, other):
9337
    return not (self == other)
9338
 
9339
class validateRiskyStatus_result:
9340
 
9341
  thrift_spec = (
9342
  )
9343
 
9344
  def read(self, iprot):
9345
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9346
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9347
      return
9348
    iprot.readStructBegin()
9349
    while True:
9350
      (fname, ftype, fid) = iprot.readFieldBegin()
9351
      if ftype == TType.STOP:
9352
        break
9353
      else:
9354
        iprot.skip(ftype)
9355
      iprot.readFieldEnd()
9356
    iprot.readStructEnd()
9357
 
9358
  def write(self, oprot):
9359
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9360
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9361
      return
9362
    oprot.writeStructBegin('validateRiskyStatus_result')
9363
    oprot.writeFieldStop()
9364
    oprot.writeStructEnd()
9365
 
9366
  def validate(self):
9367
    return
9368
 
9369
 
9370
  def __repr__(self):
9371
    L = ['%s=%r' % (key, value)
9372
      for key, value in self.__dict__.iteritems()]
9373
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9374
 
9375
  def __eq__(self, other):
9376
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9377
 
9378
  def __ne__(self, other):
9379
    return not (self == other)
9380
 
9381
class changeItemRiskyFlag_args:
9382
  """
9383
  Attributes:
9384
   - itemId
9385
   - risky
9386
  """
9387
 
9388
  thrift_spec = (
9389
    None, # 0
9390
    (1, TType.I64, 'itemId', None, None, ), # 1
9391
    (2, TType.BOOL, 'risky', None, None, ), # 2
9392
  )
9393
 
9394
  def __init__(self, itemId=None, risky=None,):
9395
    self.itemId = itemId
9396
    self.risky = risky
9397
 
9398
  def read(self, iprot):
9399
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9400
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9401
      return
9402
    iprot.readStructBegin()
9403
    while True:
9404
      (fname, ftype, fid) = iprot.readFieldBegin()
9405
      if ftype == TType.STOP:
9406
        break
9407
      if fid == 1:
9408
        if ftype == TType.I64:
9409
          self.itemId = iprot.readI64();
9410
        else:
9411
          iprot.skip(ftype)
9412
      elif fid == 2:
9413
        if ftype == TType.BOOL:
9414
          self.risky = iprot.readBool();
9415
        else:
9416
          iprot.skip(ftype)
9417
      else:
9418
        iprot.skip(ftype)
9419
      iprot.readFieldEnd()
9420
    iprot.readStructEnd()
9421
 
9422
  def write(self, oprot):
9423
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9424
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9425
      return
9426
    oprot.writeStructBegin('changeItemRiskyFlag_args')
9427
    if self.itemId is not None:
9428
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9429
      oprot.writeI64(self.itemId)
9430
      oprot.writeFieldEnd()
9431
    if self.risky is not None:
9432
      oprot.writeFieldBegin('risky', TType.BOOL, 2)
9433
      oprot.writeBool(self.risky)
9434
      oprot.writeFieldEnd()
9435
    oprot.writeFieldStop()
9436
    oprot.writeStructEnd()
9437
 
9438
  def validate(self):
9439
    return
9440
 
9441
 
9442
  def __repr__(self):
9443
    L = ['%s=%r' % (key, value)
9444
      for key, value in self.__dict__.iteritems()]
9445
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9446
 
9447
  def __eq__(self, other):
9448
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9449
 
9450
  def __ne__(self, other):
9451
    return not (self == other)
9452
 
9453
class changeItemRiskyFlag_result:
9454
 
9455
  thrift_spec = (
9456
  )
9457
 
9458
  def read(self, iprot):
9459
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9460
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9461
      return
9462
    iprot.readStructBegin()
9463
    while True:
9464
      (fname, ftype, fid) = iprot.readFieldBegin()
9465
      if ftype == TType.STOP:
9466
        break
9467
      else:
9468
        iprot.skip(ftype)
9469
      iprot.readFieldEnd()
9470
    iprot.readStructEnd()
9471
 
9472
  def write(self, oprot):
9473
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9474
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9475
      return
9476
    oprot.writeStructBegin('changeItemRiskyFlag_result')
9477
    oprot.writeFieldStop()
9478
    oprot.writeStructEnd()
9479
 
9480
  def validate(self):
9481
    return
9482
 
9483
 
9484
  def __repr__(self):
9485
    L = ['%s=%r' % (key, value)
9486
      for key, value in self.__dict__.iteritems()]
9487
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9488
 
9489
  def __eq__(self, other):
9490
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9491
 
9492
  def __ne__(self, other):
9493
    return not (self == other)
9494
 
9495
class getItemsByRiskyFlag_args:
9496
 
9497
  thrift_spec = (
9498
  )
9499
 
9500
  def read(self, iprot):
9501
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9502
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9503
      return
9504
    iprot.readStructBegin()
9505
    while True:
9506
      (fname, ftype, fid) = iprot.readFieldBegin()
9507
      if ftype == TType.STOP:
9508
        break
9509
      else:
9510
        iprot.skip(ftype)
9511
      iprot.readFieldEnd()
9512
    iprot.readStructEnd()
9513
 
9514
  def write(self, oprot):
9515
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9516
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9517
      return
9518
    oprot.writeStructBegin('getItemsByRiskyFlag_args')
9519
    oprot.writeFieldStop()
9520
    oprot.writeStructEnd()
9521
 
9522
  def validate(self):
9523
    return
9524
 
9525
 
9526
  def __repr__(self):
9527
    L = ['%s=%r' % (key, value)
9528
      for key, value in self.__dict__.iteritems()]
9529
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9530
 
9531
  def __eq__(self, other):
9532
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9533
 
9534
  def __ne__(self, other):
9535
    return not (self == other)
9536
 
9537
class getItemsByRiskyFlag_result:
9538
  """
9539
  Attributes:
9540
   - success
9541
  """
9542
 
9543
  thrift_spec = (
9544
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
9545
  )
9546
 
9547
  def __init__(self, success=None,):
9548
    self.success = success
9549
 
9550
  def read(self, iprot):
9551
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9552
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9553
      return
9554
    iprot.readStructBegin()
9555
    while True:
9556
      (fname, ftype, fid) = iprot.readFieldBegin()
9557
      if ftype == TType.STOP:
9558
        break
9559
      if fid == 0:
9560
        if ftype == TType.LIST:
9561
          self.success = []
6512 kshitij.so 9562
          (_etype152, _size149) = iprot.readListBegin()
9563
          for _i153 in xrange(_size149):
9564
            _elem154 = Item()
9565
            _elem154.read(iprot)
9566
            self.success.append(_elem154)
5944 mandeep.dh 9567
          iprot.readListEnd()
9568
        else:
9569
          iprot.skip(ftype)
9570
      else:
9571
        iprot.skip(ftype)
9572
      iprot.readFieldEnd()
9573
    iprot.readStructEnd()
9574
 
9575
  def write(self, oprot):
9576
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9577
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9578
      return
9579
    oprot.writeStructBegin('getItemsByRiskyFlag_result')
9580
    if self.success is not None:
9581
      oprot.writeFieldBegin('success', TType.LIST, 0)
9582
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 9583
      for iter155 in self.success:
9584
        iter155.write(oprot)
5944 mandeep.dh 9585
      oprot.writeListEnd()
9586
      oprot.writeFieldEnd()
9587
    oprot.writeFieldStop()
9588
    oprot.writeStructEnd()
9589
 
9590
  def validate(self):
9591
    return
9592
 
9593
 
9594
  def __repr__(self):
9595
    L = ['%s=%r' % (key, value)
9596
      for key, value in self.__dict__.iteritems()]
9597
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9598
 
9599
  def __eq__(self, other):
9600
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9601
 
9602
  def __ne__(self, other):
9603
    return not (self == other)
9604
 
9605
class getItemsForMasterSheet_args:
9606
  """
9607
  Attributes:
9608
   - category
9609
   - brand
9610
  """
9611
 
9612
  thrift_spec = (
9613
    None, # 0
9614
    (1, TType.STRING, 'category', None, None, ), # 1
9615
    (2, TType.STRING, 'brand', None, None, ), # 2
9616
  )
9617
 
9618
  def __init__(self, category=None, brand=None,):
9619
    self.category = category
9620
    self.brand = brand
9621
 
9622
  def read(self, iprot):
9623
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9624
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9625
      return
9626
    iprot.readStructBegin()
9627
    while True:
9628
      (fname, ftype, fid) = iprot.readFieldBegin()
9629
      if ftype == TType.STOP:
9630
        break
9631
      if fid == 1:
9632
        if ftype == TType.STRING:
9633
          self.category = iprot.readString();
9634
        else:
9635
          iprot.skip(ftype)
9636
      elif fid == 2:
9637
        if ftype == TType.STRING:
9638
          self.brand = iprot.readString();
9639
        else:
9640
          iprot.skip(ftype)
9641
      else:
9642
        iprot.skip(ftype)
9643
      iprot.readFieldEnd()
9644
    iprot.readStructEnd()
9645
 
9646
  def write(self, oprot):
9647
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9648
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9649
      return
9650
    oprot.writeStructBegin('getItemsForMasterSheet_args')
9651
    if self.category is not None:
9652
      oprot.writeFieldBegin('category', TType.STRING, 1)
9653
      oprot.writeString(self.category)
9654
      oprot.writeFieldEnd()
9655
    if self.brand is not None:
9656
      oprot.writeFieldBegin('brand', TType.STRING, 2)
9657
      oprot.writeString(self.brand)
9658
      oprot.writeFieldEnd()
9659
    oprot.writeFieldStop()
9660
    oprot.writeStructEnd()
9661
 
9662
  def validate(self):
9663
    return
9664
 
9665
 
9666
  def __repr__(self):
9667
    L = ['%s=%r' % (key, value)
9668
      for key, value in self.__dict__.iteritems()]
9669
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9670
 
9671
  def __eq__(self, other):
9672
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9673
 
9674
  def __ne__(self, other):
9675
    return not (self == other)
9676
 
9677
class getItemsForMasterSheet_result:
9678
  """
9679
  Attributes:
9680
   - success
9681
  """
9682
 
9683
  thrift_spec = (
9684
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
9685
  )
9686
 
9687
  def __init__(self, success=None,):
9688
    self.success = success
9689
 
9690
  def read(self, iprot):
9691
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9692
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9693
      return
9694
    iprot.readStructBegin()
9695
    while True:
9696
      (fname, ftype, fid) = iprot.readFieldBegin()
9697
      if ftype == TType.STOP:
9698
        break
9699
      if fid == 0:
9700
        if ftype == TType.LIST:
9701
          self.success = []
6512 kshitij.so 9702
          (_etype159, _size156) = iprot.readListBegin()
9703
          for _i160 in xrange(_size156):
9704
            _elem161 = Item()
9705
            _elem161.read(iprot)
9706
            self.success.append(_elem161)
5944 mandeep.dh 9707
          iprot.readListEnd()
9708
        else:
9709
          iprot.skip(ftype)
9710
      else:
9711
        iprot.skip(ftype)
9712
      iprot.readFieldEnd()
9713
    iprot.readStructEnd()
9714
 
9715
  def write(self, oprot):
9716
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9717
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9718
      return
9719
    oprot.writeStructBegin('getItemsForMasterSheet_result')
9720
    if self.success is not None:
9721
      oprot.writeFieldBegin('success', TType.LIST, 0)
9722
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 9723
      for iter162 in self.success:
9724
        iter162.write(oprot)
5944 mandeep.dh 9725
      oprot.writeListEnd()
9726
      oprot.writeFieldEnd()
9727
    oprot.writeFieldStop()
9728
    oprot.writeStructEnd()
9729
 
9730
  def validate(self):
9731
    return
9732
 
9733
 
9734
  def __repr__(self):
9735
    L = ['%s=%r' % (key, value)
9736
      for key, value in self.__dict__.iteritems()]
9737
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9738
 
9739
  def __eq__(self, other):
9740
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9741
 
9742
  def __ne__(self, other):
9743
    return not (self == other)
9744
 
9745
class getSimilarItemsCatalogIds_args:
9746
  """
9747
  Attributes:
9748
   - beginIndex
9749
   - totalItems
9750
   - itemId
9751
  """
9752
 
9753
  thrift_spec = (
9754
    None, # 0
9755
    (1, TType.I64, 'beginIndex', None, None, ), # 1
9756
    (2, TType.I64, 'totalItems', None, None, ), # 2
9757
    (3, TType.I64, 'itemId', None, None, ), # 3
9758
  )
9759
 
9760
  def __init__(self, beginIndex=None, totalItems=None, itemId=None,):
9761
    self.beginIndex = beginIndex
9762
    self.totalItems = totalItems
9763
    self.itemId = itemId
9764
 
9765
  def read(self, iprot):
9766
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9767
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9768
      return
9769
    iprot.readStructBegin()
9770
    while True:
9771
      (fname, ftype, fid) = iprot.readFieldBegin()
9772
      if ftype == TType.STOP:
9773
        break
9774
      if fid == 1:
9775
        if ftype == TType.I64:
9776
          self.beginIndex = iprot.readI64();
9777
        else:
9778
          iprot.skip(ftype)
9779
      elif fid == 2:
9780
        if ftype == TType.I64:
9781
          self.totalItems = iprot.readI64();
9782
        else:
9783
          iprot.skip(ftype)
9784
      elif fid == 3:
9785
        if ftype == TType.I64:
9786
          self.itemId = iprot.readI64();
9787
        else:
9788
          iprot.skip(ftype)
9789
      else:
9790
        iprot.skip(ftype)
9791
      iprot.readFieldEnd()
9792
    iprot.readStructEnd()
9793
 
9794
  def write(self, oprot):
9795
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9796
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9797
      return
9798
    oprot.writeStructBegin('getSimilarItemsCatalogIds_args')
9799
    if self.beginIndex is not None:
9800
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
9801
      oprot.writeI64(self.beginIndex)
9802
      oprot.writeFieldEnd()
9803
    if self.totalItems is not None:
9804
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
9805
      oprot.writeI64(self.totalItems)
9806
      oprot.writeFieldEnd()
9807
    if self.itemId is not None:
9808
      oprot.writeFieldBegin('itemId', TType.I64, 3)
9809
      oprot.writeI64(self.itemId)
9810
      oprot.writeFieldEnd()
9811
    oprot.writeFieldStop()
9812
    oprot.writeStructEnd()
9813
 
9814
  def validate(self):
9815
    return
9816
 
9817
 
9818
  def __repr__(self):
9819
    L = ['%s=%r' % (key, value)
9820
      for key, value in self.__dict__.iteritems()]
9821
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9822
 
9823
  def __eq__(self, other):
9824
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9825
 
9826
  def __ne__(self, other):
9827
    return not (self == other)
9828
 
9829
class getSimilarItemsCatalogIds_result:
9830
  """
9831
  Attributes:
9832
   - success
9833
  """
9834
 
9835
  thrift_spec = (
9836
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
9837
  )
9838
 
9839
  def __init__(self, success=None,):
9840
    self.success = success
9841
 
9842
  def read(self, iprot):
9843
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9844
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9845
      return
9846
    iprot.readStructBegin()
9847
    while True:
9848
      (fname, ftype, fid) = iprot.readFieldBegin()
9849
      if ftype == TType.STOP:
9850
        break
9851
      if fid == 0:
9852
        if ftype == TType.LIST:
9853
          self.success = []
6512 kshitij.so 9854
          (_etype166, _size163) = iprot.readListBegin()
9855
          for _i167 in xrange(_size163):
9856
            _elem168 = iprot.readI64();
9857
            self.success.append(_elem168)
5944 mandeep.dh 9858
          iprot.readListEnd()
9859
        else:
9860
          iprot.skip(ftype)
9861
      else:
9862
        iprot.skip(ftype)
9863
      iprot.readFieldEnd()
9864
    iprot.readStructEnd()
9865
 
9866
  def write(self, oprot):
9867
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9868
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9869
      return
9870
    oprot.writeStructBegin('getSimilarItemsCatalogIds_result')
9871
    if self.success is not None:
9872
      oprot.writeFieldBegin('success', TType.LIST, 0)
9873
      oprot.writeListBegin(TType.I64, len(self.success))
6512 kshitij.so 9874
      for iter169 in self.success:
9875
        oprot.writeI64(iter169)
5944 mandeep.dh 9876
      oprot.writeListEnd()
9877
      oprot.writeFieldEnd()
9878
    oprot.writeFieldStop()
9879
    oprot.writeStructEnd()
9880
 
9881
  def validate(self):
9882
    return
9883
 
9884
 
9885
  def __repr__(self):
9886
    L = ['%s=%r' % (key, value)
9887
      for key, value in self.__dict__.iteritems()]
9888
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9889
 
9890
  def __eq__(self, other):
9891
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9892
 
9893
  def __ne__(self, other):
9894
    return not (self == other)
9895
 
9896
class addProductNotification_args:
9897
  """
9898
  Attributes:
9899
   - itemId
9900
   - email
9901
  """
9902
 
9903
  thrift_spec = None
9904
  def __init__(self, itemId=None, email=None,):
9905
    self.itemId = itemId
9906
    self.email = email
9907
 
9908
  def read(self, iprot):
9909
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9910
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9911
      return
9912
    iprot.readStructBegin()
9913
    while True:
9914
      (fname, ftype, fid) = iprot.readFieldBegin()
9915
      if ftype == TType.STOP:
9916
        break
9917
      if fid == -1:
9918
        if ftype == TType.I64:
9919
          self.itemId = iprot.readI64();
9920
        else:
9921
          iprot.skip(ftype)
9922
      elif fid == -2:
9923
        if ftype == TType.STRING:
9924
          self.email = iprot.readString();
9925
        else:
9926
          iprot.skip(ftype)
9927
      else:
9928
        iprot.skip(ftype)
9929
      iprot.readFieldEnd()
9930
    iprot.readStructEnd()
9931
 
9932
  def write(self, oprot):
9933
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9934
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9935
      return
9936
    oprot.writeStructBegin('addProductNotification_args')
9937
    if self.email is not None:
9938
      oprot.writeFieldBegin('email', TType.STRING, -2)
9939
      oprot.writeString(self.email)
9940
      oprot.writeFieldEnd()
9941
    if self.itemId is not None:
9942
      oprot.writeFieldBegin('itemId', TType.I64, -1)
9943
      oprot.writeI64(self.itemId)
9944
      oprot.writeFieldEnd()
9945
    oprot.writeFieldStop()
9946
    oprot.writeStructEnd()
9947
 
9948
  def validate(self):
9949
    return
9950
 
9951
 
9952
  def __repr__(self):
9953
    L = ['%s=%r' % (key, value)
9954
      for key, value in self.__dict__.iteritems()]
9955
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9956
 
9957
  def __eq__(self, other):
9958
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9959
 
9960
  def __ne__(self, other):
9961
    return not (self == other)
9962
 
9963
class addProductNotification_result:
9964
  """
9965
  Attributes:
9966
   - success
9967
  """
9968
 
9969
  thrift_spec = (
9970
    (0, TType.BOOL, 'success', None, None, ), # 0
9971
  )
9972
 
9973
  def __init__(self, success=None,):
9974
    self.success = success
9975
 
9976
  def read(self, iprot):
9977
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9978
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9979
      return
9980
    iprot.readStructBegin()
9981
    while True:
9982
      (fname, ftype, fid) = iprot.readFieldBegin()
9983
      if ftype == TType.STOP:
9984
        break
9985
      if fid == 0:
9986
        if ftype == TType.BOOL:
9987
          self.success = iprot.readBool();
9988
        else:
9989
          iprot.skip(ftype)
9990
      else:
9991
        iprot.skip(ftype)
9992
      iprot.readFieldEnd()
9993
    iprot.readStructEnd()
9994
 
9995
  def write(self, oprot):
9996
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9997
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9998
      return
9999
    oprot.writeStructBegin('addProductNotification_result')
10000
    if self.success is not None:
10001
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10002
      oprot.writeBool(self.success)
10003
      oprot.writeFieldEnd()
10004
    oprot.writeFieldStop()
10005
    oprot.writeStructEnd()
10006
 
10007
  def validate(self):
10008
    return
10009
 
10010
 
10011
  def __repr__(self):
10012
    L = ['%s=%r' % (key, value)
10013
      for key, value in self.__dict__.iteritems()]
10014
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10015
 
10016
  def __eq__(self, other):
10017
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10018
 
10019
  def __ne__(self, other):
10020
    return not (self == other)
10021
 
10022
class sendProductNotifications_args:
10023
 
10024
  thrift_spec = (
10025
  )
10026
 
10027
  def read(self, iprot):
10028
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10029
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10030
      return
10031
    iprot.readStructBegin()
10032
    while True:
10033
      (fname, ftype, fid) = iprot.readFieldBegin()
10034
      if ftype == TType.STOP:
10035
        break
10036
      else:
10037
        iprot.skip(ftype)
10038
      iprot.readFieldEnd()
10039
    iprot.readStructEnd()
10040
 
10041
  def write(self, oprot):
10042
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10043
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10044
      return
10045
    oprot.writeStructBegin('sendProductNotifications_args')
10046
    oprot.writeFieldStop()
10047
    oprot.writeStructEnd()
10048
 
10049
  def validate(self):
10050
    return
10051
 
10052
 
10053
  def __repr__(self):
10054
    L = ['%s=%r' % (key, value)
10055
      for key, value in self.__dict__.iteritems()]
10056
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10057
 
10058
  def __eq__(self, other):
10059
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10060
 
10061
  def __ne__(self, other):
10062
    return not (self == other)
10063
 
10064
class sendProductNotifications_result:
10065
  """
10066
  Attributes:
10067
   - success
10068
  """
10069
 
10070
  thrift_spec = (
10071
    (0, TType.BOOL, 'success', None, None, ), # 0
10072
  )
10073
 
10074
  def __init__(self, success=None,):
10075
    self.success = success
10076
 
10077
  def read(self, iprot):
10078
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10079
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10080
      return
10081
    iprot.readStructBegin()
10082
    while True:
10083
      (fname, ftype, fid) = iprot.readFieldBegin()
10084
      if ftype == TType.STOP:
10085
        break
10086
      if fid == 0:
10087
        if ftype == TType.BOOL:
10088
          self.success = iprot.readBool();
10089
        else:
10090
          iprot.skip(ftype)
10091
      else:
10092
        iprot.skip(ftype)
10093
      iprot.readFieldEnd()
10094
    iprot.readStructEnd()
10095
 
10096
  def write(self, oprot):
10097
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10098
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10099
      return
10100
    oprot.writeStructBegin('sendProductNotifications_result')
10101
    if self.success is not None:
10102
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10103
      oprot.writeBool(self.success)
10104
      oprot.writeFieldEnd()
10105
    oprot.writeFieldStop()
10106
    oprot.writeStructEnd()
10107
 
10108
  def validate(self):
10109
    return
10110
 
10111
 
10112
  def __repr__(self):
10113
    L = ['%s=%r' % (key, value)
10114
      for key, value in self.__dict__.iteritems()]
10115
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10116
 
10117
  def __eq__(self, other):
10118
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10119
 
10120
  def __ne__(self, other):
10121
    return not (self == other)
10122
 
10123
class getAllBrandsByCategory_args:
10124
  """
10125
  Attributes:
10126
   - categoryId
10127
  """
10128
 
10129
  thrift_spec = (
10130
    None, # 0
10131
    (1, TType.I64, 'categoryId', None, None, ), # 1
10132
  )
10133
 
10134
  def __init__(self, categoryId=None,):
10135
    self.categoryId = categoryId
10136
 
10137
  def read(self, iprot):
10138
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10139
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10140
      return
10141
    iprot.readStructBegin()
10142
    while True:
10143
      (fname, ftype, fid) = iprot.readFieldBegin()
10144
      if ftype == TType.STOP:
10145
        break
10146
      if fid == 1:
10147
        if ftype == TType.I64:
10148
          self.categoryId = iprot.readI64();
10149
        else:
10150
          iprot.skip(ftype)
10151
      else:
10152
        iprot.skip(ftype)
10153
      iprot.readFieldEnd()
10154
    iprot.readStructEnd()
10155
 
10156
  def write(self, oprot):
10157
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10158
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10159
      return
10160
    oprot.writeStructBegin('getAllBrandsByCategory_args')
10161
    if self.categoryId is not None:
10162
      oprot.writeFieldBegin('categoryId', TType.I64, 1)
10163
      oprot.writeI64(self.categoryId)
10164
      oprot.writeFieldEnd()
10165
    oprot.writeFieldStop()
10166
    oprot.writeStructEnd()
10167
 
10168
  def validate(self):
10169
    return
10170
 
10171
 
10172
  def __repr__(self):
10173
    L = ['%s=%r' % (key, value)
10174
      for key, value in self.__dict__.iteritems()]
10175
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10176
 
10177
  def __eq__(self, other):
10178
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10179
 
10180
  def __ne__(self, other):
10181
    return not (self == other)
10182
 
10183
class getAllBrandsByCategory_result:
10184
  """
10185
  Attributes:
10186
   - success
10187
  """
10188
 
10189
  thrift_spec = (
10190
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
10191
  )
10192
 
10193
  def __init__(self, success=None,):
10194
    self.success = success
10195
 
10196
  def read(self, iprot):
10197
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10198
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10199
      return
10200
    iprot.readStructBegin()
10201
    while True:
10202
      (fname, ftype, fid) = iprot.readFieldBegin()
10203
      if ftype == TType.STOP:
10204
        break
10205
      if fid == 0:
10206
        if ftype == TType.LIST:
10207
          self.success = []
6512 kshitij.so 10208
          (_etype173, _size170) = iprot.readListBegin()
10209
          for _i174 in xrange(_size170):
10210
            _elem175 = iprot.readString();
10211
            self.success.append(_elem175)
5944 mandeep.dh 10212
          iprot.readListEnd()
10213
        else:
10214
          iprot.skip(ftype)
10215
      else:
10216
        iprot.skip(ftype)
10217
      iprot.readFieldEnd()
10218
    iprot.readStructEnd()
10219
 
10220
  def write(self, oprot):
10221
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10222
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10223
      return
10224
    oprot.writeStructBegin('getAllBrandsByCategory_result')
10225
    if self.success is not None:
10226
      oprot.writeFieldBegin('success', TType.LIST, 0)
10227
      oprot.writeListBegin(TType.STRING, len(self.success))
6512 kshitij.so 10228
      for iter176 in self.success:
10229
        oprot.writeString(iter176)
5944 mandeep.dh 10230
      oprot.writeListEnd()
10231
      oprot.writeFieldEnd()
10232
    oprot.writeFieldStop()
10233
    oprot.writeStructEnd()
10234
 
10235
  def validate(self):
10236
    return
10237
 
10238
 
10239
  def __repr__(self):
10240
    L = ['%s=%r' % (key, value)
10241
      for key, value in self.__dict__.iteritems()]
10242
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10243
 
10244
  def __eq__(self, other):
10245
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10246
 
10247
  def __ne__(self, other):
10248
    return not (self == other)
10249
 
10250
class getAllBrands_args:
10251
 
10252
  thrift_spec = (
10253
  )
10254
 
10255
  def read(self, iprot):
10256
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10257
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10258
      return
10259
    iprot.readStructBegin()
10260
    while True:
10261
      (fname, ftype, fid) = iprot.readFieldBegin()
10262
      if ftype == TType.STOP:
10263
        break
10264
      else:
10265
        iprot.skip(ftype)
10266
      iprot.readFieldEnd()
10267
    iprot.readStructEnd()
10268
 
10269
  def write(self, oprot):
10270
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10271
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10272
      return
10273
    oprot.writeStructBegin('getAllBrands_args')
10274
    oprot.writeFieldStop()
10275
    oprot.writeStructEnd()
10276
 
10277
  def validate(self):
10278
    return
10279
 
10280
 
10281
  def __repr__(self):
10282
    L = ['%s=%r' % (key, value)
10283
      for key, value in self.__dict__.iteritems()]
10284
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10285
 
10286
  def __eq__(self, other):
10287
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10288
 
10289
  def __ne__(self, other):
10290
    return not (self == other)
10291
 
10292
class getAllBrands_result:
10293
  """
10294
  Attributes:
10295
   - success
10296
  """
10297
 
10298
  thrift_spec = (
10299
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
10300
  )
10301
 
10302
  def __init__(self, success=None,):
10303
    self.success = success
10304
 
10305
  def read(self, iprot):
10306
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10307
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10308
      return
10309
    iprot.readStructBegin()
10310
    while True:
10311
      (fname, ftype, fid) = iprot.readFieldBegin()
10312
      if ftype == TType.STOP:
10313
        break
10314
      if fid == 0:
10315
        if ftype == TType.LIST:
10316
          self.success = []
6512 kshitij.so 10317
          (_etype180, _size177) = iprot.readListBegin()
10318
          for _i181 in xrange(_size177):
10319
            _elem182 = iprot.readString();
10320
            self.success.append(_elem182)
5944 mandeep.dh 10321
          iprot.readListEnd()
10322
        else:
10323
          iprot.skip(ftype)
10324
      else:
10325
        iprot.skip(ftype)
10326
      iprot.readFieldEnd()
10327
    iprot.readStructEnd()
10328
 
10329
  def write(self, oprot):
10330
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10331
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10332
      return
10333
    oprot.writeStructBegin('getAllBrands_result')
10334
    if self.success is not None:
10335
      oprot.writeFieldBegin('success', TType.LIST, 0)
10336
      oprot.writeListBegin(TType.STRING, len(self.success))
6512 kshitij.so 10337
      for iter183 in self.success:
10338
        oprot.writeString(iter183)
5944 mandeep.dh 10339
      oprot.writeListEnd()
10340
      oprot.writeFieldEnd()
10341
    oprot.writeFieldStop()
10342
    oprot.writeStructEnd()
10343
 
10344
  def validate(self):
10345
    return
10346
 
10347
 
10348
  def __repr__(self):
10349
    L = ['%s=%r' % (key, value)
10350
      for key, value in self.__dict__.iteritems()]
10351
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10352
 
10353
  def __eq__(self, other):
10354
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10355
 
10356
  def __ne__(self, other):
10357
    return not (self == other)
10358
 
10359
class getAllSources_args:
10360
 
10361
  thrift_spec = (
10362
  )
10363
 
10364
  def read(self, iprot):
10365
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10366
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10367
      return
10368
    iprot.readStructBegin()
10369
    while True:
10370
      (fname, ftype, fid) = iprot.readFieldBegin()
10371
      if ftype == TType.STOP:
10372
        break
10373
      else:
10374
        iprot.skip(ftype)
10375
      iprot.readFieldEnd()
10376
    iprot.readStructEnd()
10377
 
10378
  def write(self, oprot):
10379
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10380
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10381
      return
10382
    oprot.writeStructBegin('getAllSources_args')
10383
    oprot.writeFieldStop()
10384
    oprot.writeStructEnd()
10385
 
10386
  def validate(self):
10387
    return
10388
 
10389
 
10390
  def __repr__(self):
10391
    L = ['%s=%r' % (key, value)
10392
      for key, value in self.__dict__.iteritems()]
10393
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10394
 
10395
  def __eq__(self, other):
10396
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10397
 
10398
  def __ne__(self, other):
10399
    return not (self == other)
10400
 
10401
class getAllSources_result:
10402
  """
10403
  Attributes:
10404
   - success
10405
  """
10406
 
10407
  thrift_spec = (
10408
    (0, TType.LIST, 'success', (TType.STRUCT,(Source, Source.thrift_spec)), None, ), # 0
10409
  )
10410
 
10411
  def __init__(self, success=None,):
10412
    self.success = success
10413
 
10414
  def read(self, iprot):
10415
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10416
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10417
      return
10418
    iprot.readStructBegin()
10419
    while True:
10420
      (fname, ftype, fid) = iprot.readFieldBegin()
10421
      if ftype == TType.STOP:
10422
        break
10423
      if fid == 0:
10424
        if ftype == TType.LIST:
10425
          self.success = []
6512 kshitij.so 10426
          (_etype187, _size184) = iprot.readListBegin()
10427
          for _i188 in xrange(_size184):
10428
            _elem189 = Source()
10429
            _elem189.read(iprot)
10430
            self.success.append(_elem189)
5944 mandeep.dh 10431
          iprot.readListEnd()
10432
        else:
10433
          iprot.skip(ftype)
10434
      else:
10435
        iprot.skip(ftype)
10436
      iprot.readFieldEnd()
10437
    iprot.readStructEnd()
10438
 
10439
  def write(self, oprot):
10440
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10441
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10442
      return
10443
    oprot.writeStructBegin('getAllSources_result')
10444
    if self.success is not None:
10445
      oprot.writeFieldBegin('success', TType.LIST, 0)
10446
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 10447
      for iter190 in self.success:
10448
        iter190.write(oprot)
5944 mandeep.dh 10449
      oprot.writeListEnd()
10450
      oprot.writeFieldEnd()
10451
    oprot.writeFieldStop()
10452
    oprot.writeStructEnd()
10453
 
10454
  def validate(self):
10455
    return
10456
 
10457
 
10458
  def __repr__(self):
10459
    L = ['%s=%r' % (key, value)
10460
      for key, value in self.__dict__.iteritems()]
10461
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10462
 
10463
  def __eq__(self, other):
10464
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10465
 
10466
  def __ne__(self, other):
10467
    return not (self == other)
10468
 
10469
class getItemPricingBySource_args:
10470
  """
10471
  Attributes:
10472
   - itemId
10473
   - sourceId
10474
  """
10475
 
10476
  thrift_spec = (
10477
    None, # 0
10478
    (1, TType.I64, 'itemId', None, None, ), # 1
10479
    (2, TType.I64, 'sourceId', None, None, ), # 2
10480
  )
10481
 
10482
  def __init__(self, itemId=None, sourceId=None,):
10483
    self.itemId = itemId
10484
    self.sourceId = sourceId
10485
 
10486
  def read(self, iprot):
10487
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10488
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10489
      return
10490
    iprot.readStructBegin()
10491
    while True:
10492
      (fname, ftype, fid) = iprot.readFieldBegin()
10493
      if ftype == TType.STOP:
10494
        break
10495
      if fid == 1:
10496
        if ftype == TType.I64:
10497
          self.itemId = iprot.readI64();
10498
        else:
10499
          iprot.skip(ftype)
10500
      elif fid == 2:
10501
        if ftype == TType.I64:
10502
          self.sourceId = iprot.readI64();
10503
        else:
10504
          iprot.skip(ftype)
10505
      else:
10506
        iprot.skip(ftype)
10507
      iprot.readFieldEnd()
10508
    iprot.readStructEnd()
10509
 
10510
  def write(self, oprot):
10511
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10512
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10513
      return
10514
    oprot.writeStructBegin('getItemPricingBySource_args')
10515
    if self.itemId is not None:
10516
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10517
      oprot.writeI64(self.itemId)
10518
      oprot.writeFieldEnd()
10519
    if self.sourceId is not None:
10520
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
10521
      oprot.writeI64(self.sourceId)
10522
      oprot.writeFieldEnd()
10523
    oprot.writeFieldStop()
10524
    oprot.writeStructEnd()
10525
 
10526
  def validate(self):
10527
    return
10528
 
10529
 
10530
  def __repr__(self):
10531
    L = ['%s=%r' % (key, value)
10532
      for key, value in self.__dict__.iteritems()]
10533
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10534
 
10535
  def __eq__(self, other):
10536
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10537
 
10538
  def __ne__(self, other):
10539
    return not (self == other)
10540
 
10541
class getItemPricingBySource_result:
10542
  """
10543
  Attributes:
10544
   - success
10545
   - cex
10546
  """
10547
 
10548
  thrift_spec = (
10549
    (0, TType.STRUCT, 'success', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 0
10550
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10551
  )
10552
 
10553
  def __init__(self, success=None, cex=None,):
10554
    self.success = success
10555
    self.cex = cex
10556
 
10557
  def read(self, iprot):
10558
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10559
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10560
      return
10561
    iprot.readStructBegin()
10562
    while True:
10563
      (fname, ftype, fid) = iprot.readFieldBegin()
10564
      if ftype == TType.STOP:
10565
        break
10566
      if fid == 0:
10567
        if ftype == TType.STRUCT:
10568
          self.success = SourceItemPricing()
10569
          self.success.read(iprot)
10570
        else:
10571
          iprot.skip(ftype)
10572
      elif fid == 1:
10573
        if ftype == TType.STRUCT:
10574
          self.cex = CatalogServiceException()
10575
          self.cex.read(iprot)
10576
        else:
10577
          iprot.skip(ftype)
10578
      else:
10579
        iprot.skip(ftype)
10580
      iprot.readFieldEnd()
10581
    iprot.readStructEnd()
10582
 
10583
  def write(self, oprot):
10584
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10585
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10586
      return
10587
    oprot.writeStructBegin('getItemPricingBySource_result')
10588
    if self.success is not None:
10589
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10590
      self.success.write(oprot)
10591
      oprot.writeFieldEnd()
10592
    if self.cex is not None:
10593
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10594
      self.cex.write(oprot)
10595
      oprot.writeFieldEnd()
10596
    oprot.writeFieldStop()
10597
    oprot.writeStructEnd()
10598
 
10599
  def validate(self):
10600
    return
10601
 
10602
 
10603
  def __repr__(self):
10604
    L = ['%s=%r' % (key, value)
10605
      for key, value in self.__dict__.iteritems()]
10606
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10607
 
10608
  def __eq__(self, other):
10609
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10610
 
10611
  def __ne__(self, other):
10612
    return not (self == other)
10613
 
10614
class addSourceItemPricing_args:
10615
  """
10616
  Attributes:
10617
   - sourceItemPricing
10618
  """
10619
 
10620
  thrift_spec = (
10621
    None, # 0
10622
    (1, TType.STRUCT, 'sourceItemPricing', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 1
10623
  )
10624
 
10625
  def __init__(self, sourceItemPricing=None,):
10626
    self.sourceItemPricing = sourceItemPricing
10627
 
10628
  def read(self, iprot):
10629
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10630
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10631
      return
10632
    iprot.readStructBegin()
10633
    while True:
10634
      (fname, ftype, fid) = iprot.readFieldBegin()
10635
      if ftype == TType.STOP:
10636
        break
10637
      if fid == 1:
10638
        if ftype == TType.STRUCT:
10639
          self.sourceItemPricing = SourceItemPricing()
10640
          self.sourceItemPricing.read(iprot)
10641
        else:
10642
          iprot.skip(ftype)
10643
      else:
10644
        iprot.skip(ftype)
10645
      iprot.readFieldEnd()
10646
    iprot.readStructEnd()
10647
 
10648
  def write(self, oprot):
10649
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10650
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10651
      return
10652
    oprot.writeStructBegin('addSourceItemPricing_args')
10653
    if self.sourceItemPricing is not None:
10654
      oprot.writeFieldBegin('sourceItemPricing', TType.STRUCT, 1)
10655
      self.sourceItemPricing.write(oprot)
10656
      oprot.writeFieldEnd()
10657
    oprot.writeFieldStop()
10658
    oprot.writeStructEnd()
10659
 
10660
  def validate(self):
10661
    return
10662
 
10663
 
10664
  def __repr__(self):
10665
    L = ['%s=%r' % (key, value)
10666
      for key, value in self.__dict__.iteritems()]
10667
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10668
 
10669
  def __eq__(self, other):
10670
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10671
 
10672
  def __ne__(self, other):
10673
    return not (self == other)
10674
 
10675
class addSourceItemPricing_result:
10676
  """
10677
  Attributes:
10678
   - cex
10679
  """
10680
 
10681
  thrift_spec = (
10682
    None, # 0
10683
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10684
  )
10685
 
10686
  def __init__(self, cex=None,):
10687
    self.cex = cex
10688
 
10689
  def read(self, iprot):
10690
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10691
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10692
      return
10693
    iprot.readStructBegin()
10694
    while True:
10695
      (fname, ftype, fid) = iprot.readFieldBegin()
10696
      if ftype == TType.STOP:
10697
        break
10698
      if fid == 1:
10699
        if ftype == TType.STRUCT:
10700
          self.cex = CatalogServiceException()
10701
          self.cex.read(iprot)
10702
        else:
10703
          iprot.skip(ftype)
10704
      else:
10705
        iprot.skip(ftype)
10706
      iprot.readFieldEnd()
10707
    iprot.readStructEnd()
10708
 
10709
  def write(self, oprot):
10710
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10711
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10712
      return
10713
    oprot.writeStructBegin('addSourceItemPricing_result')
10714
    if self.cex is not None:
10715
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10716
      self.cex.write(oprot)
10717
      oprot.writeFieldEnd()
10718
    oprot.writeFieldStop()
10719
    oprot.writeStructEnd()
10720
 
10721
  def validate(self):
10722
    return
10723
 
10724
 
10725
  def __repr__(self):
10726
    L = ['%s=%r' % (key, value)
10727
      for key, value in self.__dict__.iteritems()]
10728
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10729
 
10730
  def __eq__(self, other):
10731
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10732
 
10733
  def __ne__(self, other):
10734
    return not (self == other)
10735
 
10736
class getAllSourcePricing_args:
10737
  """
10738
  Attributes:
10739
   - itemId
10740
  """
10741
 
10742
  thrift_spec = (
10743
    None, # 0
10744
    (1, TType.I64, 'itemId', None, None, ), # 1
10745
  )
10746
 
10747
  def __init__(self, itemId=None,):
10748
    self.itemId = itemId
10749
 
10750
  def read(self, iprot):
10751
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10752
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10753
      return
10754
    iprot.readStructBegin()
10755
    while True:
10756
      (fname, ftype, fid) = iprot.readFieldBegin()
10757
      if ftype == TType.STOP:
10758
        break
10759
      if fid == 1:
10760
        if ftype == TType.I64:
10761
          self.itemId = iprot.readI64();
10762
        else:
10763
          iprot.skip(ftype)
10764
      else:
10765
        iprot.skip(ftype)
10766
      iprot.readFieldEnd()
10767
    iprot.readStructEnd()
10768
 
10769
  def write(self, oprot):
10770
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10771
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10772
      return
10773
    oprot.writeStructBegin('getAllSourcePricing_args')
10774
    if self.itemId is not None:
10775
      oprot.writeFieldBegin('itemId', TType.I64, 1)
10776
      oprot.writeI64(self.itemId)
10777
      oprot.writeFieldEnd()
10778
    oprot.writeFieldStop()
10779
    oprot.writeStructEnd()
10780
 
10781
  def validate(self):
10782
    return
10783
 
10784
 
10785
  def __repr__(self):
10786
    L = ['%s=%r' % (key, value)
10787
      for key, value in self.__dict__.iteritems()]
10788
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10789
 
10790
  def __eq__(self, other):
10791
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10792
 
10793
  def __ne__(self, other):
10794
    return not (self == other)
10795
 
10796
class getAllSourcePricing_result:
10797
  """
10798
  Attributes:
10799
   - success
10800
   - cex
10801
  """
10802
 
10803
  thrift_spec = (
10804
    (0, TType.LIST, 'success', (TType.STRUCT,(SourceItemPricing, SourceItemPricing.thrift_spec)), None, ), # 0
10805
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10806
  )
10807
 
10808
  def __init__(self, success=None, cex=None,):
10809
    self.success = success
10810
    self.cex = cex
10811
 
10812
  def read(self, iprot):
10813
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10814
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10815
      return
10816
    iprot.readStructBegin()
10817
    while True:
10818
      (fname, ftype, fid) = iprot.readFieldBegin()
10819
      if ftype == TType.STOP:
10820
        break
10821
      if fid == 0:
10822
        if ftype == TType.LIST:
10823
          self.success = []
6512 kshitij.so 10824
          (_etype194, _size191) = iprot.readListBegin()
10825
          for _i195 in xrange(_size191):
10826
            _elem196 = SourceItemPricing()
10827
            _elem196.read(iprot)
10828
            self.success.append(_elem196)
5944 mandeep.dh 10829
          iprot.readListEnd()
10830
        else:
10831
          iprot.skip(ftype)
10832
      elif fid == 1:
10833
        if ftype == TType.STRUCT:
10834
          self.cex = CatalogServiceException()
10835
          self.cex.read(iprot)
10836
        else:
10837
          iprot.skip(ftype)
10838
      else:
10839
        iprot.skip(ftype)
10840
      iprot.readFieldEnd()
10841
    iprot.readStructEnd()
10842
 
10843
  def write(self, oprot):
10844
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10845
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10846
      return
10847
    oprot.writeStructBegin('getAllSourcePricing_result')
10848
    if self.success is not None:
10849
      oprot.writeFieldBegin('success', TType.LIST, 0)
10850
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 10851
      for iter197 in self.success:
10852
        iter197.write(oprot)
5944 mandeep.dh 10853
      oprot.writeListEnd()
10854
      oprot.writeFieldEnd()
10855
    if self.cex is not None:
10856
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10857
      self.cex.write(oprot)
10858
      oprot.writeFieldEnd()
10859
    oprot.writeFieldStop()
10860
    oprot.writeStructEnd()
10861
 
10862
  def validate(self):
10863
    return
10864
 
10865
 
10866
  def __repr__(self):
10867
    L = ['%s=%r' % (key, value)
10868
      for key, value in self.__dict__.iteritems()]
10869
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10870
 
10871
  def __eq__(self, other):
10872
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10873
 
10874
  def __ne__(self, other):
10875
    return not (self == other)
10876
 
10877
class getItemForSource_args:
10878
  """
10879
  Attributes:
10880
   - item_id
10881
   - sourceId
10882
  """
10883
 
10884
  thrift_spec = (
10885
    None, # 0
10886
    (1, TType.I64, 'item_id', None, None, ), # 1
10887
    (2, TType.I64, 'sourceId', None, None, ), # 2
10888
  )
10889
 
10890
  def __init__(self, item_id=None, sourceId=None,):
10891
    self.item_id = item_id
10892
    self.sourceId = sourceId
10893
 
10894
  def read(self, iprot):
10895
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10896
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10897
      return
10898
    iprot.readStructBegin()
10899
    while True:
10900
      (fname, ftype, fid) = iprot.readFieldBegin()
10901
      if ftype == TType.STOP:
10902
        break
10903
      if fid == 1:
10904
        if ftype == TType.I64:
10905
          self.item_id = iprot.readI64();
10906
        else:
10907
          iprot.skip(ftype)
10908
      elif fid == 2:
10909
        if ftype == TType.I64:
10910
          self.sourceId = iprot.readI64();
10911
        else:
10912
          iprot.skip(ftype)
10913
      else:
10914
        iprot.skip(ftype)
10915
      iprot.readFieldEnd()
10916
    iprot.readStructEnd()
10917
 
10918
  def write(self, oprot):
10919
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10920
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10921
      return
10922
    oprot.writeStructBegin('getItemForSource_args')
10923
    if self.item_id is not None:
10924
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10925
      oprot.writeI64(self.item_id)
10926
      oprot.writeFieldEnd()
10927
    if self.sourceId is not None:
10928
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
10929
      oprot.writeI64(self.sourceId)
10930
      oprot.writeFieldEnd()
10931
    oprot.writeFieldStop()
10932
    oprot.writeStructEnd()
10933
 
10934
  def validate(self):
10935
    return
10936
 
10937
 
10938
  def __repr__(self):
10939
    L = ['%s=%r' % (key, value)
10940
      for key, value in self.__dict__.iteritems()]
10941
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10942
 
10943
  def __eq__(self, other):
10944
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10945
 
10946
  def __ne__(self, other):
10947
    return not (self == other)
10948
 
10949
class getItemForSource_result:
10950
  """
10951
  Attributes:
10952
   - success
10953
   - cex
10954
  """
10955
 
10956
  thrift_spec = (
10957
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
10958
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10959
  )
10960
 
10961
  def __init__(self, success=None, cex=None,):
10962
    self.success = success
10963
    self.cex = cex
10964
 
10965
  def read(self, iprot):
10966
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10967
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10968
      return
10969
    iprot.readStructBegin()
10970
    while True:
10971
      (fname, ftype, fid) = iprot.readFieldBegin()
10972
      if ftype == TType.STOP:
10973
        break
10974
      if fid == 0:
10975
        if ftype == TType.STRUCT:
10976
          self.success = Item()
10977
          self.success.read(iprot)
10978
        else:
10979
          iprot.skip(ftype)
10980
      elif fid == 1:
10981
        if ftype == TType.STRUCT:
10982
          self.cex = CatalogServiceException()
10983
          self.cex.read(iprot)
10984
        else:
10985
          iprot.skip(ftype)
10986
      else:
10987
        iprot.skip(ftype)
10988
      iprot.readFieldEnd()
10989
    iprot.readStructEnd()
10990
 
10991
  def write(self, oprot):
10992
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10993
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10994
      return
10995
    oprot.writeStructBegin('getItemForSource_result')
10996
    if self.success is not None:
10997
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10998
      self.success.write(oprot)
10999
      oprot.writeFieldEnd()
11000
    if self.cex is not None:
11001
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11002
      self.cex.write(oprot)
11003
      oprot.writeFieldEnd()
11004
    oprot.writeFieldStop()
11005
    oprot.writeStructEnd()
11006
 
11007
  def validate(self):
11008
    return
11009
 
11010
 
11011
  def __repr__(self):
11012
    L = ['%s=%r' % (key, value)
11013
      for key, value in self.__dict__.iteritems()]
11014
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11015
 
11016
  def __eq__(self, other):
11017
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11018
 
11019
  def __ne__(self, other):
11020
    return not (self == other)
11021
 
11022
class searchItemsInRange_args:
11023
  """
11024
  Attributes:
11025
   - searchTerms
11026
   - offset
11027
   - limit
11028
  """
11029
 
11030
  thrift_spec = (
11031
    None, # 0
11032
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
11033
    (2, TType.I64, 'offset', None, None, ), # 2
11034
    (3, TType.I64, 'limit', None, None, ), # 3
11035
  )
11036
 
11037
  def __init__(self, searchTerms=None, offset=None, limit=None,):
11038
    self.searchTerms = searchTerms
11039
    self.offset = offset
11040
    self.limit = limit
11041
 
11042
  def read(self, iprot):
11043
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11044
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11045
      return
11046
    iprot.readStructBegin()
11047
    while True:
11048
      (fname, ftype, fid) = iprot.readFieldBegin()
11049
      if ftype == TType.STOP:
11050
        break
11051
      if fid == 1:
11052
        if ftype == TType.LIST:
11053
          self.searchTerms = []
6512 kshitij.so 11054
          (_etype201, _size198) = iprot.readListBegin()
11055
          for _i202 in xrange(_size198):
11056
            _elem203 = iprot.readString();
11057
            self.searchTerms.append(_elem203)
5944 mandeep.dh 11058
          iprot.readListEnd()
11059
        else:
11060
          iprot.skip(ftype)
11061
      elif fid == 2:
11062
        if ftype == TType.I64:
11063
          self.offset = iprot.readI64();
11064
        else:
11065
          iprot.skip(ftype)
11066
      elif fid == 3:
11067
        if ftype == TType.I64:
11068
          self.limit = iprot.readI64();
11069
        else:
11070
          iprot.skip(ftype)
11071
      else:
11072
        iprot.skip(ftype)
11073
      iprot.readFieldEnd()
11074
    iprot.readStructEnd()
11075
 
11076
  def write(self, oprot):
11077
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11078
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11079
      return
11080
    oprot.writeStructBegin('searchItemsInRange_args')
11081
    if self.searchTerms is not None:
11082
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
11083
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
6512 kshitij.so 11084
      for iter204 in self.searchTerms:
11085
        oprot.writeString(iter204)
5944 mandeep.dh 11086
      oprot.writeListEnd()
11087
      oprot.writeFieldEnd()
11088
    if self.offset is not None:
11089
      oprot.writeFieldBegin('offset', TType.I64, 2)
11090
      oprot.writeI64(self.offset)
11091
      oprot.writeFieldEnd()
11092
    if self.limit is not None:
11093
      oprot.writeFieldBegin('limit', TType.I64, 3)
11094
      oprot.writeI64(self.limit)
11095
      oprot.writeFieldEnd()
11096
    oprot.writeFieldStop()
11097
    oprot.writeStructEnd()
11098
 
11099
  def validate(self):
11100
    return
11101
 
11102
 
11103
  def __repr__(self):
11104
    L = ['%s=%r' % (key, value)
11105
      for key, value in self.__dict__.iteritems()]
11106
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11107
 
11108
  def __eq__(self, other):
11109
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11110
 
11111
  def __ne__(self, other):
11112
    return not (self == other)
11113
 
11114
class searchItemsInRange_result:
11115
  """
11116
  Attributes:
11117
   - success
11118
  """
11119
 
11120
  thrift_spec = (
11121
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11122
  )
11123
 
11124
  def __init__(self, success=None,):
11125
    self.success = success
11126
 
11127
  def read(self, iprot):
11128
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11129
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11130
      return
11131
    iprot.readStructBegin()
11132
    while True:
11133
      (fname, ftype, fid) = iprot.readFieldBegin()
11134
      if ftype == TType.STOP:
11135
        break
11136
      if fid == 0:
11137
        if ftype == TType.LIST:
11138
          self.success = []
6512 kshitij.so 11139
          (_etype208, _size205) = iprot.readListBegin()
11140
          for _i209 in xrange(_size205):
11141
            _elem210 = Item()
11142
            _elem210.read(iprot)
11143
            self.success.append(_elem210)
5944 mandeep.dh 11144
          iprot.readListEnd()
11145
        else:
11146
          iprot.skip(ftype)
11147
      else:
11148
        iprot.skip(ftype)
11149
      iprot.readFieldEnd()
11150
    iprot.readStructEnd()
11151
 
11152
  def write(self, oprot):
11153
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11154
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11155
      return
11156
    oprot.writeStructBegin('searchItemsInRange_result')
11157
    if self.success is not None:
11158
      oprot.writeFieldBegin('success', TType.LIST, 0)
11159
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 11160
      for iter211 in self.success:
11161
        iter211.write(oprot)
5944 mandeep.dh 11162
      oprot.writeListEnd()
11163
      oprot.writeFieldEnd()
11164
    oprot.writeFieldStop()
11165
    oprot.writeStructEnd()
11166
 
11167
  def validate(self):
11168
    return
11169
 
11170
 
11171
  def __repr__(self):
11172
    L = ['%s=%r' % (key, value)
11173
      for key, value in self.__dict__.iteritems()]
11174
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11175
 
11176
  def __eq__(self, other):
11177
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11178
 
11179
  def __ne__(self, other):
11180
    return not (self == other)
11181
 
11182
class getSearchResultCount_args:
11183
  """
11184
  Attributes:
11185
   - searchTerms
11186
  """
11187
 
11188
  thrift_spec = (
11189
    None, # 0
11190
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
11191
  )
11192
 
11193
  def __init__(self, searchTerms=None,):
11194
    self.searchTerms = searchTerms
11195
 
11196
  def read(self, iprot):
11197
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11198
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11199
      return
11200
    iprot.readStructBegin()
11201
    while True:
11202
      (fname, ftype, fid) = iprot.readFieldBegin()
11203
      if ftype == TType.STOP:
11204
        break
11205
      if fid == 1:
11206
        if ftype == TType.LIST:
11207
          self.searchTerms = []
6512 kshitij.so 11208
          (_etype215, _size212) = iprot.readListBegin()
11209
          for _i216 in xrange(_size212):
11210
            _elem217 = iprot.readString();
11211
            self.searchTerms.append(_elem217)
5944 mandeep.dh 11212
          iprot.readListEnd()
11213
        else:
11214
          iprot.skip(ftype)
11215
      else:
11216
        iprot.skip(ftype)
11217
      iprot.readFieldEnd()
11218
    iprot.readStructEnd()
11219
 
11220
  def write(self, oprot):
11221
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11222
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11223
      return
11224
    oprot.writeStructBegin('getSearchResultCount_args')
11225
    if self.searchTerms is not None:
11226
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
11227
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
6512 kshitij.so 11228
      for iter218 in self.searchTerms:
11229
        oprot.writeString(iter218)
5944 mandeep.dh 11230
      oprot.writeListEnd()
11231
      oprot.writeFieldEnd()
11232
    oprot.writeFieldStop()
11233
    oprot.writeStructEnd()
11234
 
11235
  def validate(self):
11236
    return
11237
 
11238
 
11239
  def __repr__(self):
11240
    L = ['%s=%r' % (key, value)
11241
      for key, value in self.__dict__.iteritems()]
11242
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11243
 
11244
  def __eq__(self, other):
11245
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11246
 
11247
  def __ne__(self, other):
11248
    return not (self == other)
11249
 
11250
class getSearchResultCount_result:
11251
  """
11252
  Attributes:
11253
   - success
11254
  """
11255
 
11256
  thrift_spec = (
11257
    (0, TType.I32, 'success', None, None, ), # 0
11258
  )
11259
 
11260
  def __init__(self, success=None,):
11261
    self.success = success
11262
 
11263
  def read(self, iprot):
11264
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11265
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11266
      return
11267
    iprot.readStructBegin()
11268
    while True:
11269
      (fname, ftype, fid) = iprot.readFieldBegin()
11270
      if ftype == TType.STOP:
11271
        break
11272
      if fid == 0:
11273
        if ftype == TType.I32:
11274
          self.success = iprot.readI32();
11275
        else:
11276
          iprot.skip(ftype)
11277
      else:
11278
        iprot.skip(ftype)
11279
      iprot.readFieldEnd()
11280
    iprot.readStructEnd()
11281
 
11282
  def write(self, oprot):
11283
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11284
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11285
      return
11286
    oprot.writeStructBegin('getSearchResultCount_result')
11287
    if self.success is not None:
11288
      oprot.writeFieldBegin('success', TType.I32, 0)
11289
      oprot.writeI32(self.success)
11290
      oprot.writeFieldEnd()
11291
    oprot.writeFieldStop()
11292
    oprot.writeStructEnd()
11293
 
11294
  def validate(self):
11295
    return
11296
 
11297
 
11298
  def __repr__(self):
11299
    L = ['%s=%r' % (key, value)
11300
      for key, value in self.__dict__.iteritems()]
11301
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11302
 
11303
  def __eq__(self, other):
11304
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11305
 
11306
  def __ne__(self, other):
11307
    return not (self == other)
11308
 
11309
class getProductNotifications_args:
11310
  """
11311
  Attributes:
11312
   - startDateTime
11313
  """
11314
 
11315
  thrift_spec = (
11316
    None, # 0
11317
    (1, TType.I64, 'startDateTime', None, None, ), # 1
11318
  )
11319
 
11320
  def __init__(self, startDateTime=None,):
11321
    self.startDateTime = startDateTime
11322
 
11323
  def read(self, iprot):
11324
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11325
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11326
      return
11327
    iprot.readStructBegin()
11328
    while True:
11329
      (fname, ftype, fid) = iprot.readFieldBegin()
11330
      if ftype == TType.STOP:
11331
        break
11332
      if fid == 1:
11333
        if ftype == TType.I64:
11334
          self.startDateTime = iprot.readI64();
11335
        else:
11336
          iprot.skip(ftype)
11337
      else:
11338
        iprot.skip(ftype)
11339
      iprot.readFieldEnd()
11340
    iprot.readStructEnd()
11341
 
11342
  def write(self, oprot):
11343
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11344
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11345
      return
11346
    oprot.writeStructBegin('getProductNotifications_args')
11347
    if self.startDateTime is not None:
11348
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
11349
      oprot.writeI64(self.startDateTime)
11350
      oprot.writeFieldEnd()
11351
    oprot.writeFieldStop()
11352
    oprot.writeStructEnd()
11353
 
11354
  def validate(self):
11355
    return
11356
 
11357
 
11358
  def __repr__(self):
11359
    L = ['%s=%r' % (key, value)
11360
      for key, value in self.__dict__.iteritems()]
11361
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11362
 
11363
  def __eq__(self, other):
11364
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11365
 
11366
  def __ne__(self, other):
11367
    return not (self == other)
11368
 
11369
class getProductNotifications_result:
11370
  """
11371
  Attributes:
11372
   - success
11373
  """
11374
 
11375
  thrift_spec = (
11376
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequest, ProductNotificationRequest.thrift_spec)), None, ), # 0
11377
  )
11378
 
11379
  def __init__(self, success=None,):
11380
    self.success = success
11381
 
11382
  def read(self, iprot):
11383
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11384
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11385
      return
11386
    iprot.readStructBegin()
11387
    while True:
11388
      (fname, ftype, fid) = iprot.readFieldBegin()
11389
      if ftype == TType.STOP:
11390
        break
11391
      if fid == 0:
11392
        if ftype == TType.LIST:
11393
          self.success = []
6512 kshitij.so 11394
          (_etype222, _size219) = iprot.readListBegin()
11395
          for _i223 in xrange(_size219):
11396
            _elem224 = ProductNotificationRequest()
11397
            _elem224.read(iprot)
11398
            self.success.append(_elem224)
5944 mandeep.dh 11399
          iprot.readListEnd()
11400
        else:
11401
          iprot.skip(ftype)
11402
      else:
11403
        iprot.skip(ftype)
11404
      iprot.readFieldEnd()
11405
    iprot.readStructEnd()
11406
 
11407
  def write(self, oprot):
11408
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11409
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11410
      return
11411
    oprot.writeStructBegin('getProductNotifications_result')
11412
    if self.success is not None:
11413
      oprot.writeFieldBegin('success', TType.LIST, 0)
11414
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 11415
      for iter225 in self.success:
11416
        iter225.write(oprot)
5944 mandeep.dh 11417
      oprot.writeListEnd()
11418
      oprot.writeFieldEnd()
11419
    oprot.writeFieldStop()
11420
    oprot.writeStructEnd()
11421
 
11422
  def validate(self):
11423
    return
11424
 
11425
 
11426
  def __repr__(self):
11427
    L = ['%s=%r' % (key, value)
11428
      for key, value in self.__dict__.iteritems()]
11429
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11430
 
11431
  def __eq__(self, other):
11432
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11433
 
11434
  def __ne__(self, other):
11435
    return not (self == other)
11436
 
11437
class getProductNotificationRequestCount_args:
11438
  """
11439
  Attributes:
11440
   - startDateTime
11441
  """
11442
 
11443
  thrift_spec = (
11444
    None, # 0
11445
    (1, TType.I64, 'startDateTime', None, None, ), # 1
11446
  )
11447
 
11448
  def __init__(self, startDateTime=None,):
11449
    self.startDateTime = startDateTime
11450
 
11451
  def read(self, iprot):
11452
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11453
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11454
      return
11455
    iprot.readStructBegin()
11456
    while True:
11457
      (fname, ftype, fid) = iprot.readFieldBegin()
11458
      if ftype == TType.STOP:
11459
        break
11460
      if fid == 1:
11461
        if ftype == TType.I64:
11462
          self.startDateTime = iprot.readI64();
11463
        else:
11464
          iprot.skip(ftype)
11465
      else:
11466
        iprot.skip(ftype)
11467
      iprot.readFieldEnd()
11468
    iprot.readStructEnd()
11469
 
11470
  def write(self, oprot):
11471
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11472
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11473
      return
11474
    oprot.writeStructBegin('getProductNotificationRequestCount_args')
11475
    if self.startDateTime is not None:
11476
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
11477
      oprot.writeI64(self.startDateTime)
11478
      oprot.writeFieldEnd()
11479
    oprot.writeFieldStop()
11480
    oprot.writeStructEnd()
11481
 
11482
  def validate(self):
11483
    return
11484
 
11485
 
11486
  def __repr__(self):
11487
    L = ['%s=%r' % (key, value)
11488
      for key, value in self.__dict__.iteritems()]
11489
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11490
 
11491
  def __eq__(self, other):
11492
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11493
 
11494
  def __ne__(self, other):
11495
    return not (self == other)
11496
 
11497
class getProductNotificationRequestCount_result:
11498
  """
11499
  Attributes:
11500
   - success
11501
  """
11502
 
11503
  thrift_spec = (
11504
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequestCount, ProductNotificationRequestCount.thrift_spec)), None, ), # 0
11505
  )
11506
 
11507
  def __init__(self, success=None,):
11508
    self.success = success
11509
 
11510
  def read(self, iprot):
11511
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11512
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11513
      return
11514
    iprot.readStructBegin()
11515
    while True:
11516
      (fname, ftype, fid) = iprot.readFieldBegin()
11517
      if ftype == TType.STOP:
11518
        break
11519
      if fid == 0:
11520
        if ftype == TType.LIST:
11521
          self.success = []
6512 kshitij.so 11522
          (_etype229, _size226) = iprot.readListBegin()
11523
          for _i230 in xrange(_size226):
11524
            _elem231 = ProductNotificationRequestCount()
11525
            _elem231.read(iprot)
11526
            self.success.append(_elem231)
5944 mandeep.dh 11527
          iprot.readListEnd()
11528
        else:
11529
          iprot.skip(ftype)
11530
      else:
11531
        iprot.skip(ftype)
11532
      iprot.readFieldEnd()
11533
    iprot.readStructEnd()
11534
 
11535
  def write(self, oprot):
11536
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11537
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11538
      return
11539
    oprot.writeStructBegin('getProductNotificationRequestCount_result')
11540
    if self.success is not None:
11541
      oprot.writeFieldBegin('success', TType.LIST, 0)
11542
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 11543
      for iter232 in self.success:
11544
        iter232.write(oprot)
5944 mandeep.dh 11545
      oprot.writeListEnd()
11546
      oprot.writeFieldEnd()
11547
    oprot.writeFieldStop()
11548
    oprot.writeStructEnd()
11549
 
11550
  def validate(self):
11551
    return
11552
 
11553
 
11554
  def __repr__(self):
11555
    L = ['%s=%r' % (key, value)
11556
      for key, value in self.__dict__.iteritems()]
11557
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11558
 
11559
  def __eq__(self, other):
11560
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11561
 
11562
  def __ne__(self, other):
11563
    return not (self == other)
11564
 
11565
class addAuthorizationLog_args:
11566
  """
11567
  Attributes:
11568
   - itemId
11569
   - username
11570
   - reason
11571
  """
11572
 
11573
  thrift_spec = (
11574
    None, # 0
11575
    (1, TType.I64, 'itemId', None, None, ), # 1
11576
    (2, TType.STRING, 'username', None, None, ), # 2
11577
    (3, TType.STRING, 'reason', None, None, ), # 3
11578
  )
11579
 
11580
  def __init__(self, itemId=None, username=None, reason=None,):
11581
    self.itemId = itemId
11582
    self.username = username
11583
    self.reason = reason
11584
 
11585
  def read(self, iprot):
11586
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11587
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11588
      return
11589
    iprot.readStructBegin()
11590
    while True:
11591
      (fname, ftype, fid) = iprot.readFieldBegin()
11592
      if ftype == TType.STOP:
11593
        break
11594
      if fid == 1:
11595
        if ftype == TType.I64:
11596
          self.itemId = iprot.readI64();
11597
        else:
11598
          iprot.skip(ftype)
11599
      elif fid == 2:
11600
        if ftype == TType.STRING:
11601
          self.username = iprot.readString();
11602
        else:
11603
          iprot.skip(ftype)
11604
      elif fid == 3:
11605
        if ftype == TType.STRING:
11606
          self.reason = iprot.readString();
11607
        else:
11608
          iprot.skip(ftype)
11609
      else:
11610
        iprot.skip(ftype)
11611
      iprot.readFieldEnd()
11612
    iprot.readStructEnd()
11613
 
11614
  def write(self, oprot):
11615
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11616
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11617
      return
11618
    oprot.writeStructBegin('addAuthorizationLog_args')
11619
    if self.itemId is not None:
11620
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11621
      oprot.writeI64(self.itemId)
11622
      oprot.writeFieldEnd()
11623
    if self.username is not None:
11624
      oprot.writeFieldBegin('username', TType.STRING, 2)
11625
      oprot.writeString(self.username)
11626
      oprot.writeFieldEnd()
11627
    if self.reason is not None:
11628
      oprot.writeFieldBegin('reason', TType.STRING, 3)
11629
      oprot.writeString(self.reason)
11630
      oprot.writeFieldEnd()
11631
    oprot.writeFieldStop()
11632
    oprot.writeStructEnd()
11633
 
11634
  def validate(self):
11635
    return
11636
 
11637
 
11638
  def __repr__(self):
11639
    L = ['%s=%r' % (key, value)
11640
      for key, value in self.__dict__.iteritems()]
11641
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11642
 
11643
  def __eq__(self, other):
11644
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11645
 
11646
  def __ne__(self, other):
11647
    return not (self == other)
11648
 
11649
class addAuthorizationLog_result:
11650
  """
11651
  Attributes:
11652
   - success
11653
   - cex
11654
  """
11655
 
11656
  thrift_spec = (
11657
    (0, TType.BOOL, 'success', None, None, ), # 0
11658
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11659
  )
11660
 
11661
  def __init__(self, success=None, cex=None,):
11662
    self.success = success
11663
    self.cex = cex
11664
 
11665
  def read(self, iprot):
11666
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11667
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11668
      return
11669
    iprot.readStructBegin()
11670
    while True:
11671
      (fname, ftype, fid) = iprot.readFieldBegin()
11672
      if ftype == TType.STOP:
11673
        break
11674
      if fid == 0:
11675
        if ftype == TType.BOOL:
11676
          self.success = iprot.readBool();
11677
        else:
11678
          iprot.skip(ftype)
11679
      elif fid == 1:
11680
        if ftype == TType.STRUCT:
11681
          self.cex = CatalogServiceException()
11682
          self.cex.read(iprot)
11683
        else:
11684
          iprot.skip(ftype)
11685
      else:
11686
        iprot.skip(ftype)
11687
      iprot.readFieldEnd()
11688
    iprot.readStructEnd()
11689
 
11690
  def write(self, oprot):
11691
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11692
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11693
      return
11694
    oprot.writeStructBegin('addAuthorizationLog_result')
11695
    if self.success is not None:
11696
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11697
      oprot.writeBool(self.success)
11698
      oprot.writeFieldEnd()
11699
    if self.cex is not None:
11700
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11701
      self.cex.write(oprot)
11702
      oprot.writeFieldEnd()
11703
    oprot.writeFieldStop()
11704
    oprot.writeStructEnd()
11705
 
11706
  def validate(self):
11707
    return
11708
 
11709
 
11710
  def __repr__(self):
11711
    L = ['%s=%r' % (key, value)
11712
      for key, value in self.__dict__.iteritems()]
11713
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11714
 
11715
  def __eq__(self, other):
11716
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11717
 
11718
  def __ne__(self, other):
11719
    return not (self == other)
11720
 
11721
class getClearanceSaleCatalogIds_args:
11722
 
11723
  thrift_spec = (
11724
  )
11725
 
11726
  def read(self, iprot):
11727
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11728
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11729
      return
11730
    iprot.readStructBegin()
11731
    while True:
11732
      (fname, ftype, fid) = iprot.readFieldBegin()
11733
      if ftype == TType.STOP:
11734
        break
11735
      else:
11736
        iprot.skip(ftype)
11737
      iprot.readFieldEnd()
11738
    iprot.readStructEnd()
11739
 
11740
  def write(self, oprot):
11741
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11742
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11743
      return
11744
    oprot.writeStructBegin('getClearanceSaleCatalogIds_args')
11745
    oprot.writeFieldStop()
11746
    oprot.writeStructEnd()
11747
 
11748
  def validate(self):
11749
    return
11750
 
11751
 
11752
  def __repr__(self):
11753
    L = ['%s=%r' % (key, value)
11754
      for key, value in self.__dict__.iteritems()]
11755
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11756
 
11757
  def __eq__(self, other):
11758
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11759
 
11760
  def __ne__(self, other):
11761
    return not (self == other)
11762
 
11763
class getClearanceSaleCatalogIds_result:
11764
  """
11765
  Attributes:
11766
   - success
11767
   - cex
11768
  """
11769
 
11770
  thrift_spec = (
11771
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
11772
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11773
  )
11774
 
11775
  def __init__(self, success=None, cex=None,):
11776
    self.success = success
11777
    self.cex = cex
11778
 
11779
  def read(self, iprot):
11780
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11781
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11782
      return
11783
    iprot.readStructBegin()
11784
    while True:
11785
      (fname, ftype, fid) = iprot.readFieldBegin()
11786
      if ftype == TType.STOP:
11787
        break
11788
      if fid == 0:
11789
        if ftype == TType.LIST:
11790
          self.success = []
6512 kshitij.so 11791
          (_etype236, _size233) = iprot.readListBegin()
11792
          for _i237 in xrange(_size233):
11793
            _elem238 = iprot.readI64();
11794
            self.success.append(_elem238)
5944 mandeep.dh 11795
          iprot.readListEnd()
11796
        else:
11797
          iprot.skip(ftype)
11798
      elif fid == 1:
11799
        if ftype == TType.STRUCT:
11800
          self.cex = CatalogServiceException()
11801
          self.cex.read(iprot)
11802
        else:
11803
          iprot.skip(ftype)
11804
      else:
11805
        iprot.skip(ftype)
11806
      iprot.readFieldEnd()
11807
    iprot.readStructEnd()
11808
 
11809
  def write(self, oprot):
11810
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11811
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11812
      return
11813
    oprot.writeStructBegin('getClearanceSaleCatalogIds_result')
11814
    if self.success is not None:
11815
      oprot.writeFieldBegin('success', TType.LIST, 0)
11816
      oprot.writeListBegin(TType.I64, len(self.success))
6512 kshitij.so 11817
      for iter239 in self.success:
11818
        oprot.writeI64(iter239)
5944 mandeep.dh 11819
      oprot.writeListEnd()
11820
      oprot.writeFieldEnd()
11821
    if self.cex is not None:
11822
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11823
      self.cex.write(oprot)
11824
      oprot.writeFieldEnd()
11825
    oprot.writeFieldStop()
11826
    oprot.writeStructEnd()
11827
 
11828
  def validate(self):
11829
    return
11830
 
11831
 
11832
  def __repr__(self):
11833
    L = ['%s=%r' % (key, value)
11834
      for key, value in self.__dict__.iteritems()]
11835
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11836
 
11837
  def __eq__(self, other):
11838
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11839
 
11840
  def __ne__(self, other):
11841
    return not (self == other)
11842
 
11843
class addupdateVoucherForItem_args:
11844
  """
11845
  Attributes:
11846
   - catalog_item_id
11847
   - voucherType
11848
   - voucherAmount
11849
  """
11850
 
11851
  thrift_spec = (
11852
    None, # 0
11853
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
11854
    (2, TType.I64, 'voucherType', None, None, ), # 2
11855
    (3, TType.I64, 'voucherAmount', None, None, ), # 3
11856
  )
11857
 
11858
  def __init__(self, catalog_item_id=None, voucherType=None, voucherAmount=None,):
11859
    self.catalog_item_id = catalog_item_id
11860
    self.voucherType = voucherType
11861
    self.voucherAmount = voucherAmount
11862
 
11863
  def read(self, iprot):
11864
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11865
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11866
      return
11867
    iprot.readStructBegin()
11868
    while True:
11869
      (fname, ftype, fid) = iprot.readFieldBegin()
11870
      if ftype == TType.STOP:
11871
        break
11872
      if fid == 1:
11873
        if ftype == TType.I64:
11874
          self.catalog_item_id = iprot.readI64();
11875
        else:
11876
          iprot.skip(ftype)
11877
      elif fid == 2:
11878
        if ftype == TType.I64:
11879
          self.voucherType = iprot.readI64();
11880
        else:
11881
          iprot.skip(ftype)
11882
      elif fid == 3:
11883
        if ftype == TType.I64:
11884
          self.voucherAmount = iprot.readI64();
11885
        else:
11886
          iprot.skip(ftype)
11887
      else:
11888
        iprot.skip(ftype)
11889
      iprot.readFieldEnd()
11890
    iprot.readStructEnd()
11891
 
11892
  def write(self, oprot):
11893
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11894
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11895
      return
11896
    oprot.writeStructBegin('addupdateVoucherForItem_args')
11897
    if self.catalog_item_id is not None:
11898
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
11899
      oprot.writeI64(self.catalog_item_id)
11900
      oprot.writeFieldEnd()
11901
    if self.voucherType is not None:
11902
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
11903
      oprot.writeI64(self.voucherType)
11904
      oprot.writeFieldEnd()
11905
    if self.voucherAmount is not None:
11906
      oprot.writeFieldBegin('voucherAmount', TType.I64, 3)
11907
      oprot.writeI64(self.voucherAmount)
11908
      oprot.writeFieldEnd()
11909
    oprot.writeFieldStop()
11910
    oprot.writeStructEnd()
11911
 
11912
  def validate(self):
11913
    return
11914
 
11915
 
11916
  def __repr__(self):
11917
    L = ['%s=%r' % (key, value)
11918
      for key, value in self.__dict__.iteritems()]
11919
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11920
 
11921
  def __eq__(self, other):
11922
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11923
 
11924
  def __ne__(self, other):
11925
    return not (self == other)
11926
 
11927
class addupdateVoucherForItem_result:
11928
  """
11929
  Attributes:
11930
   - success
11931
   - cex
11932
  """
11933
 
11934
  thrift_spec = (
11935
    (0, TType.BOOL, 'success', None, None, ), # 0
11936
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11937
  )
11938
 
11939
  def __init__(self, success=None, cex=None,):
11940
    self.success = success
11941
    self.cex = cex
11942
 
11943
  def read(self, iprot):
11944
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11945
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11946
      return
11947
    iprot.readStructBegin()
11948
    while True:
11949
      (fname, ftype, fid) = iprot.readFieldBegin()
11950
      if ftype == TType.STOP:
11951
        break
11952
      if fid == 0:
11953
        if ftype == TType.BOOL:
11954
          self.success = iprot.readBool();
11955
        else:
11956
          iprot.skip(ftype)
11957
      elif fid == 1:
11958
        if ftype == TType.STRUCT:
11959
          self.cex = CatalogServiceException()
11960
          self.cex.read(iprot)
11961
        else:
11962
          iprot.skip(ftype)
11963
      else:
11964
        iprot.skip(ftype)
11965
      iprot.readFieldEnd()
11966
    iprot.readStructEnd()
11967
 
11968
  def write(self, oprot):
11969
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11970
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11971
      return
11972
    oprot.writeStructBegin('addupdateVoucherForItem_result')
11973
    if self.success is not None:
11974
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11975
      oprot.writeBool(self.success)
11976
      oprot.writeFieldEnd()
11977
    if self.cex is not None:
11978
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11979
      self.cex.write(oprot)
11980
      oprot.writeFieldEnd()
11981
    oprot.writeFieldStop()
11982
    oprot.writeStructEnd()
11983
 
11984
  def validate(self):
11985
    return
11986
 
11987
 
11988
  def __repr__(self):
11989
    L = ['%s=%r' % (key, value)
11990
      for key, value in self.__dict__.iteritems()]
11991
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11992
 
11993
  def __eq__(self, other):
11994
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11995
 
11996
  def __ne__(self, other):
11997
    return not (self == other)
11998
 
11999
class deleteVoucherForItem_args:
12000
  """
12001
  Attributes:
12002
   - catalog_item_id
12003
   - voucherType
12004
  """
12005
 
12006
  thrift_spec = (
12007
    None, # 0
12008
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
12009
    (2, TType.I64, 'voucherType', None, None, ), # 2
12010
  )
12011
 
12012
  def __init__(self, catalog_item_id=None, voucherType=None,):
12013
    self.catalog_item_id = catalog_item_id
12014
    self.voucherType = voucherType
12015
 
12016
  def read(self, iprot):
12017
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12018
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12019
      return
12020
    iprot.readStructBegin()
12021
    while True:
12022
      (fname, ftype, fid) = iprot.readFieldBegin()
12023
      if ftype == TType.STOP:
12024
        break
12025
      if fid == 1:
12026
        if ftype == TType.I64:
12027
          self.catalog_item_id = iprot.readI64();
12028
        else:
12029
          iprot.skip(ftype)
12030
      elif fid == 2:
12031
        if ftype == TType.I64:
12032
          self.voucherType = iprot.readI64();
12033
        else:
12034
          iprot.skip(ftype)
12035
      else:
12036
        iprot.skip(ftype)
12037
      iprot.readFieldEnd()
12038
    iprot.readStructEnd()
12039
 
12040
  def write(self, oprot):
12041
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12042
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12043
      return
12044
    oprot.writeStructBegin('deleteVoucherForItem_args')
12045
    if self.catalog_item_id is not None:
12046
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
12047
      oprot.writeI64(self.catalog_item_id)
12048
      oprot.writeFieldEnd()
12049
    if self.voucherType is not None:
12050
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
12051
      oprot.writeI64(self.voucherType)
12052
      oprot.writeFieldEnd()
12053
    oprot.writeFieldStop()
12054
    oprot.writeStructEnd()
12055
 
12056
  def validate(self):
12057
    return
12058
 
12059
 
12060
  def __repr__(self):
12061
    L = ['%s=%r' % (key, value)
12062
      for key, value in self.__dict__.iteritems()]
12063
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12064
 
12065
  def __eq__(self, other):
12066
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12067
 
12068
  def __ne__(self, other):
12069
    return not (self == other)
12070
 
12071
class deleteVoucherForItem_result:
12072
  """
12073
  Attributes:
12074
   - success
12075
   - cex
12076
  """
12077
 
12078
  thrift_spec = (
12079
    (0, TType.BOOL, 'success', None, None, ), # 0
12080
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12081
  )
12082
 
12083
  def __init__(self, success=None, cex=None,):
12084
    self.success = success
12085
    self.cex = cex
12086
 
12087
  def read(self, iprot):
12088
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12089
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12090
      return
12091
    iprot.readStructBegin()
12092
    while True:
12093
      (fname, ftype, fid) = iprot.readFieldBegin()
12094
      if ftype == TType.STOP:
12095
        break
12096
      if fid == 0:
12097
        if ftype == TType.BOOL:
12098
          self.success = iprot.readBool();
12099
        else:
12100
          iprot.skip(ftype)
12101
      elif fid == 1:
12102
        if ftype == TType.STRUCT:
12103
          self.cex = CatalogServiceException()
12104
          self.cex.read(iprot)
12105
        else:
12106
          iprot.skip(ftype)
12107
      else:
12108
        iprot.skip(ftype)
12109
      iprot.readFieldEnd()
12110
    iprot.readStructEnd()
12111
 
12112
  def write(self, oprot):
12113
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12114
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12115
      return
12116
    oprot.writeStructBegin('deleteVoucherForItem_result')
12117
    if self.success is not None:
12118
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12119
      oprot.writeBool(self.success)
12120
      oprot.writeFieldEnd()
12121
    if self.cex is not None:
12122
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12123
      self.cex.write(oprot)
12124
      oprot.writeFieldEnd()
12125
    oprot.writeFieldStop()
12126
    oprot.writeStructEnd()
12127
 
12128
  def validate(self):
12129
    return
12130
 
12131
 
12132
  def __repr__(self):
12133
    L = ['%s=%r' % (key, value)
12134
      for key, value in self.__dict__.iteritems()]
12135
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12136
 
12137
  def __eq__(self, other):
12138
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12139
 
12140
  def __ne__(self, other):
12141
    return not (self == other)
12142
 
12143
class getVoucherAmount_args:
12144
  """
12145
  Attributes:
12146
   - itemId
12147
   - voucherType
12148
  """
12149
 
12150
  thrift_spec = (
12151
    None, # 0
12152
    (1, TType.I64, 'itemId', None, None, ), # 1
12153
    (2, TType.I64, 'voucherType', None, None, ), # 2
12154
  )
12155
 
12156
  def __init__(self, itemId=None, voucherType=None,):
12157
    self.itemId = itemId
12158
    self.voucherType = voucherType
12159
 
12160
  def read(self, iprot):
12161
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12162
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12163
      return
12164
    iprot.readStructBegin()
12165
    while True:
12166
      (fname, ftype, fid) = iprot.readFieldBegin()
12167
      if ftype == TType.STOP:
12168
        break
12169
      if fid == 1:
12170
        if ftype == TType.I64:
12171
          self.itemId = iprot.readI64();
12172
        else:
12173
          iprot.skip(ftype)
12174
      elif fid == 2:
12175
        if ftype == TType.I64:
12176
          self.voucherType = iprot.readI64();
12177
        else:
12178
          iprot.skip(ftype)
12179
      else:
12180
        iprot.skip(ftype)
12181
      iprot.readFieldEnd()
12182
    iprot.readStructEnd()
12183
 
12184
  def write(self, oprot):
12185
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12186
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12187
      return
12188
    oprot.writeStructBegin('getVoucherAmount_args')
12189
    if self.itemId is not None:
12190
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12191
      oprot.writeI64(self.itemId)
12192
      oprot.writeFieldEnd()
12193
    if self.voucherType is not None:
12194
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
12195
      oprot.writeI64(self.voucherType)
12196
      oprot.writeFieldEnd()
12197
    oprot.writeFieldStop()
12198
    oprot.writeStructEnd()
12199
 
12200
  def validate(self):
12201
    return
12202
 
12203
 
12204
  def __repr__(self):
12205
    L = ['%s=%r' % (key, value)
12206
      for key, value in self.__dict__.iteritems()]
12207
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12208
 
12209
  def __eq__(self, other):
12210
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12211
 
12212
  def __ne__(self, other):
12213
    return not (self == other)
12214
 
12215
class getVoucherAmount_result:
12216
  """
12217
  Attributes:
12218
   - success
12219
  """
12220
 
12221
  thrift_spec = (
12222
    (0, TType.I64, 'success', None, None, ), # 0
12223
  )
12224
 
12225
  def __init__(self, success=None,):
12226
    self.success = success
12227
 
12228
  def read(self, iprot):
12229
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12230
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12231
      return
12232
    iprot.readStructBegin()
12233
    while True:
12234
      (fname, ftype, fid) = iprot.readFieldBegin()
12235
      if ftype == TType.STOP:
12236
        break
12237
      if fid == 0:
12238
        if ftype == TType.I64:
12239
          self.success = iprot.readI64();
12240
        else:
12241
          iprot.skip(ftype)
12242
      else:
12243
        iprot.skip(ftype)
12244
      iprot.readFieldEnd()
12245
    iprot.readStructEnd()
12246
 
12247
  def write(self, oprot):
12248
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12249
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12250
      return
12251
    oprot.writeStructBegin('getVoucherAmount_result')
12252
    if self.success is not None:
12253
      oprot.writeFieldBegin('success', TType.I64, 0)
12254
      oprot.writeI64(self.success)
12255
      oprot.writeFieldEnd()
12256
    oprot.writeFieldStop()
12257
    oprot.writeStructEnd()
12258
 
12259
  def validate(self):
12260
    return
12261
 
12262
 
12263
  def __repr__(self):
12264
    L = ['%s=%r' % (key, value)
12265
      for key, value in self.__dict__.iteritems()]
12266
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12267
 
12268
  def __eq__(self, other):
12269
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12270
 
12271
  def __ne__(self, other):
12272
    return not (self == other)
12273
 
12274
class getAllItemVouchers_args:
12275
  """
12276
  Attributes:
12277
   - itemId
12278
  """
12279
 
12280
  thrift_spec = (
12281
    None, # 0
12282
    (1, TType.I64, 'itemId', None, None, ), # 1
12283
  )
12284
 
12285
  def __init__(self, itemId=None,):
12286
    self.itemId = itemId
12287
 
12288
  def read(self, iprot):
12289
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12290
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12291
      return
12292
    iprot.readStructBegin()
12293
    while True:
12294
      (fname, ftype, fid) = iprot.readFieldBegin()
12295
      if ftype == TType.STOP:
12296
        break
12297
      if fid == 1:
12298
        if ftype == TType.I64:
12299
          self.itemId = iprot.readI64();
12300
        else:
12301
          iprot.skip(ftype)
12302
      else:
12303
        iprot.skip(ftype)
12304
      iprot.readFieldEnd()
12305
    iprot.readStructEnd()
12306
 
12307
  def write(self, oprot):
12308
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12309
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12310
      return
12311
    oprot.writeStructBegin('getAllItemVouchers_args')
12312
    if self.itemId is not None:
12313
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12314
      oprot.writeI64(self.itemId)
12315
      oprot.writeFieldEnd()
12316
    oprot.writeFieldStop()
12317
    oprot.writeStructEnd()
12318
 
12319
  def validate(self):
12320
    return
12321
 
12322
 
12323
  def __repr__(self):
12324
    L = ['%s=%r' % (key, value)
12325
      for key, value in self.__dict__.iteritems()]
12326
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12327
 
12328
  def __eq__(self, other):
12329
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12330
 
12331
  def __ne__(self, other):
12332
    return not (self == other)
12333
 
12334
class getAllItemVouchers_result:
12335
  """
12336
  Attributes:
12337
   - success
12338
  """
12339
 
12340
  thrift_spec = (
12341
    (0, TType.LIST, 'success', (TType.STRUCT,(VoucherItemMapping, VoucherItemMapping.thrift_spec)), None, ), # 0
12342
  )
12343
 
12344
  def __init__(self, success=None,):
12345
    self.success = success
12346
 
12347
  def read(self, iprot):
12348
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12349
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12350
      return
12351
    iprot.readStructBegin()
12352
    while True:
12353
      (fname, ftype, fid) = iprot.readFieldBegin()
12354
      if ftype == TType.STOP:
12355
        break
12356
      if fid == 0:
12357
        if ftype == TType.LIST:
12358
          self.success = []
6512 kshitij.so 12359
          (_etype243, _size240) = iprot.readListBegin()
12360
          for _i244 in xrange(_size240):
12361
            _elem245 = VoucherItemMapping()
12362
            _elem245.read(iprot)
12363
            self.success.append(_elem245)
5944 mandeep.dh 12364
          iprot.readListEnd()
12365
        else:
12366
          iprot.skip(ftype)
12367
      else:
12368
        iprot.skip(ftype)
12369
      iprot.readFieldEnd()
12370
    iprot.readStructEnd()
12371
 
12372
  def write(self, oprot):
12373
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12374
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12375
      return
12376
    oprot.writeStructBegin('getAllItemVouchers_result')
12377
    if self.success is not None:
12378
      oprot.writeFieldBegin('success', TType.LIST, 0)
12379
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6512 kshitij.so 12380
      for iter246 in self.success:
12381
        iter246.write(oprot)
5944 mandeep.dh 12382
      oprot.writeListEnd()
12383
      oprot.writeFieldEnd()
12384
    oprot.writeFieldStop()
12385
    oprot.writeStructEnd()
12386
 
12387
  def validate(self):
12388
    return
12389
 
12390
 
12391
  def __repr__(self):
12392
    L = ['%s=%r' % (key, value)
12393
      for key, value in self.__dict__.iteritems()]
12394
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12395
 
12396
  def __eq__(self, other):
12397
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12398
 
12399
  def __ne__(self, other):
12400
    return not (self == other)
12401
 
12402
class isValidCatalogItemId_args:
12403
  """
12404
  Attributes:
12405
   - catalog_item_id
12406
  """
12407
 
12408
  thrift_spec = (
12409
    None, # 0
12410
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
12411
  )
12412
 
12413
  def __init__(self, catalog_item_id=None,):
12414
    self.catalog_item_id = catalog_item_id
12415
 
12416
  def read(self, iprot):
12417
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12418
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12419
      return
12420
    iprot.readStructBegin()
12421
    while True:
12422
      (fname, ftype, fid) = iprot.readFieldBegin()
12423
      if ftype == TType.STOP:
12424
        break
12425
      if fid == 1:
12426
        if ftype == TType.I64:
12427
          self.catalog_item_id = iprot.readI64();
12428
        else:
12429
          iprot.skip(ftype)
12430
      else:
12431
        iprot.skip(ftype)
12432
      iprot.readFieldEnd()
12433
    iprot.readStructEnd()
12434
 
12435
  def write(self, oprot):
12436
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12437
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12438
      return
12439
    oprot.writeStructBegin('isValidCatalogItemId_args')
12440
    if self.catalog_item_id is not None:
12441
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
12442
      oprot.writeI64(self.catalog_item_id)
12443
      oprot.writeFieldEnd()
12444
    oprot.writeFieldStop()
12445
    oprot.writeStructEnd()
12446
 
12447
  def validate(self):
12448
    return
12449
 
12450
 
12451
  def __repr__(self):
12452
    L = ['%s=%r' % (key, value)
12453
      for key, value in self.__dict__.iteritems()]
12454
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12455
 
12456
  def __eq__(self, other):
12457
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12458
 
12459
  def __ne__(self, other):
12460
    return not (self == other)
12461
 
12462
class isValidCatalogItemId_result:
12463
  """
12464
  Attributes:
12465
   - success
12466
  """
12467
 
12468
  thrift_spec = (
12469
    (0, TType.BOOL, 'success', None, None, ), # 0
12470
  )
12471
 
12472
  def __init__(self, success=None,):
12473
    self.success = success
12474
 
12475
  def read(self, iprot):
12476
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12477
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12478
      return
12479
    iprot.readStructBegin()
12480
    while True:
12481
      (fname, ftype, fid) = iprot.readFieldBegin()
12482
      if ftype == TType.STOP:
12483
        break
12484
      if fid == 0:
12485
        if ftype == TType.BOOL:
12486
          self.success = iprot.readBool();
12487
        else:
12488
          iprot.skip(ftype)
12489
      else:
12490
        iprot.skip(ftype)
12491
      iprot.readFieldEnd()
12492
    iprot.readStructEnd()
12493
 
12494
  def write(self, oprot):
12495
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12496
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12497
      return
12498
    oprot.writeStructBegin('isValidCatalogItemId_result')
12499
    if self.success is not None:
12500
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12501
      oprot.writeBool(self.success)
12502
      oprot.writeFieldEnd()
12503
    oprot.writeFieldStop()
12504
    oprot.writeStructEnd()
12505
 
12506
  def validate(self):
12507
    return
12508
 
12509
 
12510
  def __repr__(self):
12511
    L = ['%s=%r' % (key, value)
12512
      for key, value in self.__dict__.iteritems()]
12513
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12514
 
12515
  def __eq__(self, other):
12516
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12517
 
12518
  def __ne__(self, other):
12519
    return not (self == other)
6039 amit.gupta 12520
 
12521
class getVatPercentageForItem_args:
12522
  """
12523
  Attributes:
12524
   - itemId
12525
   - price
12526
  """
12527
 
12528
  thrift_spec = (
12529
    None, # 0
12530
    (1, TType.I64, 'itemId', None, None, ), # 1
12531
    (2, TType.DOUBLE, 'price', None, None, ), # 2
12532
  )
12533
 
12534
  def __init__(self, itemId=None, price=None,):
12535
    self.itemId = itemId
12536
    self.price = price
12537
 
12538
  def read(self, iprot):
12539
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12540
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12541
      return
12542
    iprot.readStructBegin()
12543
    while True:
12544
      (fname, ftype, fid) = iprot.readFieldBegin()
12545
      if ftype == TType.STOP:
12546
        break
12547
      if fid == 1:
12548
        if ftype == TType.I64:
12549
          self.itemId = iprot.readI64();
12550
        else:
12551
          iprot.skip(ftype)
12552
      elif fid == 2:
12553
        if ftype == TType.DOUBLE:
12554
          self.price = iprot.readDouble();
12555
        else:
12556
          iprot.skip(ftype)
12557
      else:
12558
        iprot.skip(ftype)
12559
      iprot.readFieldEnd()
12560
    iprot.readStructEnd()
12561
 
12562
  def write(self, oprot):
12563
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12564
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12565
      return
12566
    oprot.writeStructBegin('getVatPercentageForItem_args')
12567
    if self.itemId is not None:
12568
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12569
      oprot.writeI64(self.itemId)
12570
      oprot.writeFieldEnd()
12571
    if self.price is not None:
12572
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
12573
      oprot.writeDouble(self.price)
12574
      oprot.writeFieldEnd()
12575
    oprot.writeFieldStop()
12576
    oprot.writeStructEnd()
12577
 
12578
  def validate(self):
12579
    return
12580
 
12581
 
12582
  def __repr__(self):
12583
    L = ['%s=%r' % (key, value)
12584
      for key, value in self.__dict__.iteritems()]
12585
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12586
 
12587
  def __eq__(self, other):
12588
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12589
 
12590
  def __ne__(self, other):
12591
    return not (self == other)
12592
 
12593
class getVatPercentageForItem_result:
12594
  """
12595
  Attributes:
12596
   - success
12597
  """
12598
 
12599
  thrift_spec = (
12600
    (0, TType.DOUBLE, 'success', None, None, ), # 0
12601
  )
12602
 
12603
  def __init__(self, success=None,):
12604
    self.success = success
12605
 
12606
  def read(self, iprot):
12607
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12608
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12609
      return
12610
    iprot.readStructBegin()
12611
    while True:
12612
      (fname, ftype, fid) = iprot.readFieldBegin()
12613
      if ftype == TType.STOP:
12614
        break
12615
      if fid == 0:
12616
        if ftype == TType.DOUBLE:
12617
          self.success = iprot.readDouble();
12618
        else:
12619
          iprot.skip(ftype)
12620
      else:
12621
        iprot.skip(ftype)
12622
      iprot.readFieldEnd()
12623
    iprot.readStructEnd()
12624
 
12625
  def write(self, oprot):
12626
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12627
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12628
      return
12629
    oprot.writeStructBegin('getVatPercentageForItem_result')
12630
    if self.success is not None:
12631
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
12632
      oprot.writeDouble(self.success)
12633
      oprot.writeFieldEnd()
12634
    oprot.writeFieldStop()
12635
    oprot.writeStructEnd()
12636
 
12637
  def validate(self):
12638
    return
12639
 
12640
 
12641
  def __repr__(self):
12642
    L = ['%s=%r' % (key, value)
12643
      for key, value in self.__dict__.iteritems()]
12644
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12645
 
12646
  def __eq__(self, other):
12647
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12648
 
12649
  def __ne__(self, other):
12650
    return not (self == other)
12651
 
12652
class getVatAmountForItem_args:
12653
  """
12654
  Attributes:
12655
   - itemId
12656
   - price
12657
  """
12658
 
12659
  thrift_spec = (
12660
    None, # 0
12661
    (1, TType.I64, 'itemId', None, None, ), # 1
12662
    (2, TType.DOUBLE, 'price', None, None, ), # 2
12663
  )
12664
 
12665
  def __init__(self, itemId=None, price=None,):
12666
    self.itemId = itemId
12667
    self.price = price
12668
 
12669
  def read(self, iprot):
12670
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12671
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12672
      return
12673
    iprot.readStructBegin()
12674
    while True:
12675
      (fname, ftype, fid) = iprot.readFieldBegin()
12676
      if ftype == TType.STOP:
12677
        break
12678
      if fid == 1:
12679
        if ftype == TType.I64:
12680
          self.itemId = iprot.readI64();
12681
        else:
12682
          iprot.skip(ftype)
12683
      elif fid == 2:
12684
        if ftype == TType.DOUBLE:
12685
          self.price = iprot.readDouble();
12686
        else:
12687
          iprot.skip(ftype)
12688
      else:
12689
        iprot.skip(ftype)
12690
      iprot.readFieldEnd()
12691
    iprot.readStructEnd()
12692
 
12693
  def write(self, oprot):
12694
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12695
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12696
      return
12697
    oprot.writeStructBegin('getVatAmountForItem_args')
12698
    if self.itemId is not None:
12699
      oprot.writeFieldBegin('itemId', TType.I64, 1)
12700
      oprot.writeI64(self.itemId)
12701
      oprot.writeFieldEnd()
12702
    if self.price is not None:
12703
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
12704
      oprot.writeDouble(self.price)
12705
      oprot.writeFieldEnd()
12706
    oprot.writeFieldStop()
12707
    oprot.writeStructEnd()
12708
 
12709
  def validate(self):
12710
    return
12711
 
12712
 
12713
  def __repr__(self):
12714
    L = ['%s=%r' % (key, value)
12715
      for key, value in self.__dict__.iteritems()]
12716
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12717
 
12718
  def __eq__(self, other):
12719
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12720
 
12721
  def __ne__(self, other):
12722
    return not (self == other)
12723
 
12724
class getVatAmountForItem_result:
12725
  """
12726
  Attributes:
12727
   - success
12728
  """
12729
 
12730
  thrift_spec = (
12731
    (0, TType.DOUBLE, 'success', None, None, ), # 0
12732
  )
12733
 
12734
  def __init__(self, success=None,):
12735
    self.success = success
12736
 
12737
  def read(self, iprot):
12738
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12739
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12740
      return
12741
    iprot.readStructBegin()
12742
    while True:
12743
      (fname, ftype, fid) = iprot.readFieldBegin()
12744
      if ftype == TType.STOP:
12745
        break
12746
      if fid == 0:
12747
        if ftype == TType.DOUBLE:
12748
          self.success = iprot.readDouble();
12749
        else:
12750
          iprot.skip(ftype)
12751
      else:
12752
        iprot.skip(ftype)
12753
      iprot.readFieldEnd()
12754
    iprot.readStructEnd()
12755
 
12756
  def write(self, oprot):
12757
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12758
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12759
      return
12760
    oprot.writeStructBegin('getVatAmountForItem_result')
12761
    if self.success is not None:
12762
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
12763
      oprot.writeDouble(self.success)
12764
      oprot.writeFieldEnd()
12765
    oprot.writeFieldStop()
12766
    oprot.writeStructEnd()
12767
 
12768
  def validate(self):
12769
    return
12770
 
12771
 
12772
  def __repr__(self):
12773
    L = ['%s=%r' % (key, value)
12774
      for key, value in self.__dict__.iteritems()]
12775
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12776
 
12777
  def __eq__(self, other):
12778
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12779
 
12780
  def __ne__(self, other):
12781
    return not (self == other)