use crate::registry::prelude::*;

static FEE_LINK: &str = "https://www.falkenberg-energi.se/elnat/elnatspriser/sakringsabonnemang/";
static FEED_IN_LINK: &str =
    "https://www.falkenberg-energi.se/elnat/elnatspriser/egen-elproduktion/";

pub static FALKENBERG_ENERGI_ELNAT_AB: GridOperator = GridOperator::builder()
    .name("Falkenberg Energi Elnät AB")
    .vat_number("SE556461483101")
    .country(SE)
    .links(
        Links::builder()
            .fee_info(FEE_LINK, ".entry-content")
            .feed_in_revenue_info_default(FEED_IN_LINK)
            .build(),
    )
    .price_lists(&[PriceList::builder()
        .from_date(2025, 1, 1)
        .monthly_fee(Cost::fuses(&[
            (16, Money::new(5100, 0).divide_by(12)),
            (20, Money::new(7800, 0).divide_by(12)),
            (25, Money::new(9825, 0).divide_by(12)),
            (35, Money::new(14475, 0).divide_by(12)),
            (50, Money::new(19950, 0).divide_by(12)),
            (63, Money::new(24900, 0).divide_by(12)),
        ]))
        .monthly_production_fee(Cost::None)
        .feed_in_revenue(FeedInRevenue::spot_price_variable(4.53, 0.05, false))
        .transfer_fee(TransferFee::spot_price_variable(9.16, 0.0511, false))
        .power_tariff(PowerTariff::NotImplemented)
        .build()])
    .build();
