""" Options: Date: 2024-12-23 11:40:27 Version: 8.0 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://consumer-api.brovs.com #GlobalNamespace: ConsumerApi #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: GetRewardsStatusRequest.* #ExcludeTypes: #DefaultImports: datetime,decimal,marshmallow.fields:*,servicestack:*,typing:*,dataclasses:dataclass/field,dataclasses_json:dataclass_json/LetterCase/Undefined/config,enum:Enum/IntEnum #DataClass: #DataClassJson: """ import datetime import decimal from marshmallow.fields import * from servicestack import * from typing import * from dataclasses import dataclass, field from dataclasses_json import dataclass_json, LetterCase, Undefined, config from enum import Enum, IntEnum # module ConsumerApi @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class RewardInfo: points: int = 0 count: int = 0 points_granted_on_success: int = 0 @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class ActiveLottery: id: int = 0 first_day: datetime.datetime = datetime.datetime(1, 1, 1) last_day: datetime.datetime = datetime.datetime(1, 1, 1) content_before_sharing: Optional[str] = None content_after_sharing: Optional[str] = None country_code: Optional[str] = None your_number_of_tickets_in_this_lottery: int = 0 @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class GetRewardsStatusResponse: points_in_total: int = 0 points_expiring_at_end_of_this_year: int = 0 refer_friend: Optional[RewardInfo] = None share_place: Optional[RewardInfo] = None share_ad_message: Optional[RewardInfo] = None refer_business: Optional[RewardInfo] = None points_awarded_for_signup: int = 0 active_lottery: Optional[ActiveLottery] = None # @Route("/user/rewards", "GET") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class GetRewardsStatusRequest(IReturn[GetRewardsStatusResponse], IGet): pass