File size: 3,280 Bytes
922f211
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
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] = []