diff --git a/app/config.py b/app/config.py index 2d26e478..5b307e62 100644 --- a/app/config.py +++ b/app/config.py @@ -301,6 +301,19 @@ class Settings(BaseSettings): def rubles_to_stars(self, rubles: float) -> int: return max(1, int(rubles / self.get_stars_rate())) + + def get_referral_settings(self) -> Dict: + return { + "minimum_topup_kopeks": self.REFERRAL_MINIMUM_TOPUP_KOPEKS, + "first_topup_bonus_kopeks": self.REFERRAL_FIRST_TOPUP_BONUS_KOPEKS, + "inviter_bonus_kopeks": self.REFERRAL_INVITER_BONUS_KOPEKS, + "commission_percent": self.REFERRAL_COMMISSION_PERCENT, + "notifications_enabled": self.REFERRAL_NOTIFICATIONS_ENABLED, + "referred_user_reward": self.REFERRED_USER_REWARD + } + + def is_referral_notifications_enabled(self) -> bool: + return self.REFERRAL_NOTIFICATIONS_ENABLED def get_traffic_packages(self) -> List[Dict]: import logging