mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-29 18:13:47 +00:00
fix(subscription): display promo group discounts in device/traffic purchase and tariff switch
- Add discount fields to TrafficPackage and TariffSwitchPreview types - Show strikethrough original price and discount badge for device purchase - Show discount badge and original price for traffic packages - Show discount info and free label for tariff switch with 100% discount
This commit is contained in:
@@ -122,6 +122,10 @@ export interface TariffSwitchPreview {
|
||||
missing_amount_kopeks: number;
|
||||
missing_amount_label: string;
|
||||
is_upgrade: boolean;
|
||||
// Discount fields (from promo group)
|
||||
base_upgrade_cost_kopeks?: number;
|
||||
discount_percent?: number;
|
||||
discount_kopeks?: number;
|
||||
}
|
||||
|
||||
export interface RenewalOption {
|
||||
@@ -137,6 +141,10 @@ export interface TrafficPackage {
|
||||
price_kopeks: number;
|
||||
price_rubles: number;
|
||||
is_unlimited: boolean;
|
||||
// Discount fields (from promo group)
|
||||
base_price_kopeks?: number;
|
||||
discount_percent?: number;
|
||||
discount_kopeks?: number;
|
||||
}
|
||||
|
||||
export interface TrialInfo {
|
||||
|
||||
Reference in New Issue
Block a user