from pydantic import BaseModel from typing import List, Optional class EligibilitySchema(BaseModel): customer_type: Optional[str] = None is_victorian: bool = False is_new_customer: bool = False is_moving_customer: bool = False is_existing_customer: bool = False distributor: Optional[str] = None requires_solar: bool = False requires_net_metered_solar: bool = False requires_ev: bool = False requires_smart_meter: bool = False requires_interval_meter: bool = False tariff_types: List[str] = [] consumption_tier: Optional[str] = None loyalty_program: Optional[str] = None requires_abn: bool = False requires_seniors_card: bool = False requires_concession_card: bool = False channel: Optional[str] = None comparator_name: Optional[str] = None requires_direct_debit: bool = False requires_ebilling: bool = False has_feed_in_tariff: bool = False is_generally_available: bool = False class FeeSchema(BaseModel): fee_type: Optional[str] = None amount_type: Optional[str] = None value: Optional[float] = None value_display: Optional[str] = None tax_inclusive: bool = True payment_method: Optional[str] = None is_waived: bool = False waived_for: Optional[str] = None trigger_context: Optional[str] = None is_variable: bool = False is_pass_through: bool = False class IncentiveSchema(BaseModel): incentive_type: Optional[str] = None raw_category: Optional[str] = None display_name: Optional[str] = None amount_aud: Optional[float] = None points_value: Optional[float] = None percent_value: Optional[float] = None recurring_amount_aud: Optional[float] = None tax_inclusive: bool = True value_display: Optional[str] = None loyalty_program: Optional[str] = None reward_card_network: Optional[str] = None is_recurring: bool = False customer_scope: List[str] = [] channel_required: Optional[str] = None membership_required: Optional[str] = None trigger: Optional[str] = None timing_days: Optional[int] = None timing_months: Optional[int] = None min_stay_days: Optional[int] = None limit_per_account: Optional[str] = None is_transferable: bool = False class DiscountSchema(BaseModel): discount_type: Optional[str] = None raw_category: Optional[str] = None display_name: Optional[str] = None method: Optional[str] = None rate: Optional[float] = None amount_aud: Optional[float] = None applies_to: Optional[str] = None discount_condition: List[str] = [] requires_direct_debit: bool = False requires_ebilling: bool = False requires_pay_on_time: bool = False requires_online_signup: bool = False excludes_greenpower: bool = False excludes_demand_charges: bool = False excludes_fees: bool = False is_estimated: bool = False is_ongoing: bool = False duration_months: Optional[int] = None min_supply_months: Optional[int] = None time_window: Optional[str] = None installment_schedule: Optional[str] = None class EnergyTargetSchema(BaseModel): eligibility: EligibilitySchema fees: List[FeeSchema] = [] incentives: List[IncentiveSchema] = [] discounts: List[DiscountSchema] = []