# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [0.15.1](https://git.spotpilot.io/spotpilot/grid-tariffs/compare/grid-tariffs-v0.15.0...grid-tariffs-v0.15.1) - 2025-12-15

### Fixed

- GridOperator had an incorrect JSON Schema
- *(Ellevio)* Wrong end hour

## [0.15.0](https://git.spotpilot.io/spotpilot/grid-tariffs/compare/grid-tariffs-v0.14.0...grid-tariffs-v0.15.0) - 2025-12-11

### Fixed

- [**breaking**] update se tax and tax reduction

## [0.14.0](https://git.spotpilot.io/spotpilot/grid-tariffs/compare/grid-tariffs-v0.13.1...grid-tariffs-v0.14.0) - 2025-12-11

### Fixed

- [**breaking**] new methods for getting pricelist at a certain date

## [0.13.1](https://git.spotpilot.io/spotpilot/grid-tariffs/compare/grid-tariffs-v0.13.0...grid-tariffs-v0.13.1) - 2025-11-27

### Added

- Add proper support for Ellevio style power divide

## [0.13.0](https://git.spotpilot.io/spotpilot/grid-tariffs/compare/grid-tariffs-v0.12.1...grid-tariffs-v0.13.0) - 2025-11-21

### Other

- *(peaks)* [**breaking**] Use more sensible struct names + partial power average covers methods

## [0.12.1](https://git.spotpilot.io/spotpilot/grid-tariffs/compare/grid-tariffs-v0.12.0...grid-tariffs-v0.12.1) - 2025-11-17

### Added

- Make builder APIs public

## [0.12.0](https://git.spotpilot.io/spotpilot/grid-tariffs/compare/grid-tariffs-v0.11.0...grid-tariffs-v0.12.0) - 2025-11-17

### Added

- [**breaking**] remove country argument from get_by_vat_id and implement serialize/deserialize from VAT id

## [0.11.0](https://git.spotpilot.io/spotpilot/grid-tariffs/compare/grid-tariffs-v0.10.0...grid-tariffs-v0.11.0) - 2025-11-12

### Fixed

- Handle different timezones for include/exclude matching
- [**breaking**] Remove unused vars

### Other

- Replace unnecessary pub(super) with pub(crate)
- Move fuse, hours and months related items into own modules

## [0.10.0](https://git.spotpilot.io/spotpilot/grid-tariffs/compare/grid-tariffs-v0.9.0...grid-tariffs-v0.10.0) - 2025-11-07

### Added

- [**breaking**] Add proper parsing error type

## [0.9.0](https://git.spotpilot.io/spotpilot/grid-tariffs/compare/grid-tariffs-v0.8.1...grid-tariffs-v0.9.0) - 2025-11-07

### Added

- [**breaking**] Replace Municipality with more general Local Administrative Unit

## [0.8.1](https://git.spotpilot.io/spotpilot/grid-tariffs/compare/grid-tariffs-v0.8.0...grid-tariffs-v0.8.1) - 2025-11-05

### Added

- Deserialize for County

## [0.8.0](https://git.spotpilot.io/spotpilot/grid-tariffs/compare/grid-tariffs-v0.7.1...grid-tariffs-v0.8.0) - 2025-11-05

### Added

- [**breaking**] Support municipality reduced energy tax

## [0.7.1](https://git.spotpilot.io/spotpilot/grid-tariffs/compare/grid-tariffs-v0.7.0...grid-tariffs-v0.7.1) - 2025-11-03

### Added

- New methods to get costs/revenues per kWh
- CostPeriod method to return all matching periods

### Fixed

- *(SE Ellevio)* Simplifies power tariffs
- remove unused code

## [0.7.0](https://git.spotpilot.io/spotpilot/grid-tariffs/compare/grid-tariffs-v0.6.0...grid-tariffs-v0.7.0) - 2025-11-02

### Added

- *(SE Göteborg)* Support new price model
- Peak periods
- Simplifications of calculation methods
- made LoadType public
- CostPeriod.power_multiplier method

### Fixed

- Upgrade dependencies and update deny.toml

### Other

- Fixes after move to forgejo
- Forgejo

## [0.6.0](https://github.com/spotpilot/grid-tariffs/compare/grid-tariffs-v0.5.0...grid-tariffs-v0.6.0) - 2025-10-23

### Added

- cost period datetime matching
- Swedish holidays
- Get grid operator by vat id
- *(SE Falu)* Power tariff pricelist
- *(SE Ljungby)* Add basic info ([#156](https://github.com/spotpilot/grid-tariffs/pull/156))
- *(SE Degerfors)* Monthly fee + fix hours
- *(SE Skurup)* Add basic info ([#141](https://github.com/spotpilot/grid-tariffs/pull/141))
- *(SE Sturefors)* Add basic info ([#140](https://github.com/spotpilot/grid-tariffs/pull/140))
- *(SE Pitea)* Add basic info ([#137](https://github.com/spotpilot/grid-tariffs/pull/137))
- *(SE Vimmerby)* Add basic info ([#136](https://github.com/spotpilot/grid-tariffs/pull/136))
- *(SE Umea)* Add basic info ([#135](https://github.com/spotpilot/grid-tariffs/pull/135))
- *(SE Mellersta skane)* Add basic info ([#132](https://github.com/spotpilot/grid-tariffs/pull/132))
- *(SE Luleå)* Add basic info ([#130](https://github.com/spotpilot/grid-tariffs/pull/130))
- *(SE Karlshamn)* Add basic info ([#129](https://github.com/spotpilot/grid-tariffs/pull/129))
- *(SE Hjo)* Add basic info ([#126](https://github.com/spotpilot/grid-tariffs/pull/126))
- *(SE Hjartums)* Add basic info ([#125](https://github.com/spotpilot/grid-tariffs/pull/125))
- *(SE Uddevalla)* Add basic info ([#121](https://github.com/spotpilot/grid-tariffs/pull/121))
- *(SE Tranas)* Add basic info ([#120](https://github.com/spotpilot/grid-tariffs/pull/120))
- *(SE Tiraholm)* Add basic info ([#119](https://github.com/spotpilot/grid-tariffs/pull/119))
- *(SE Sundsvall)* Add basic info ([#118](https://github.com/spotpilot/grid-tariffs/pull/118))
- *(SE Solvesborg)* Add basic info ([#117](https://github.com/spotpilot/grid-tariffs/pull/117))
- *(SE Soderhamn)* Add basic info ([#116](https://github.com/spotpilot/grid-tariffs/pull/116))
- *(SE Skyllberg)* Add basic info ([#115](https://github.com/spotpilot/grid-tariffs/pull/115))
- *(SE Skelleftea)* Add basic info ([#114](https://github.com/spotpilot/grid-tariffs/pull/114))
- *(SE Skara)* Add basic info ([#113](https://github.com/spotpilot/grid-tariffs/pull/113))
- *(SE SandhultSandared)* Add basic info ([#109](https://github.com/spotpilot/grid-tariffs/pull/109))
- *(SE Ronneby)* Add basic info ([#108](https://github.com/spotpilot/grid-tariffs/pull/108))
- *(SE Ovik)* Add basic info ([#107](https://github.com/spotpilot/grid-tariffs/pull/107))
- *(SE Hedemora)* Add basic info ([#106](https://github.com/spotpilot/grid-tariffs/pull/106))
- *(SE Harnosand)* Add basic info ([#105](https://github.com/spotpilot/grid-tariffs/pull/105))
- *(SE ostra Gotland)* Add basic info ([#104](https://github.com/spotpilot/grid-tariffs/pull/104))
- *(SE ostra kinds)* Add basic info ([#103](https://github.com/spotpilot/grid-tariffs/pull/103))
- *(SE Olofstrom)* Add basic info ([#102](https://github.com/spotpilot/grid-tariffs/pull/102))
- *(SE Nossebroortens)* Add basic info ([#101](https://github.com/spotpilot/grid-tariffs/pull/101))
- *(SE Norrtalje)* Add basic info ([#100](https://github.com/spotpilot/grid-tariffs/pull/100))
- *(SE Savsjo)* Add basic info ([#99](https://github.com/spotpilot/grid-tariffs/pull/99))
- *(SE Vetlanda)* Add basic info ([#98](https://github.com/spotpilot/grid-tariffs/pull/98))
- *(SE Nassjo)* Add basic info ([#97](https://github.com/spotpilot/grid-tariffs/pull/97))
- *(SE Nackans)* Add basic info ([#96](https://github.com/spotpilot/grid-tariffs/pull/96))
- *(SE Molndal)* Add basic info ([#95](https://github.com/spotpilot/grid-tariffs/pull/95))
- *(SE Lidkoping)* Add basic info ([#94](https://github.com/spotpilot/grid-tariffs/pull/94))
- *(SE Ljusdal)* Add basic info ([#93](https://github.com/spotpilot/grid-tariffs/pull/93))
- *(SE Leva)* Add basic info ([#92](https://github.com/spotpilot/grid-tariffs/pull/92))
- *(SE Lerum)* Add basic info ([#91](https://github.com/spotpilot/grid-tariffs/pull/91))
- *(SE Landskrona)* Add basic info ([#90](https://github.com/spotpilot/grid-tariffs/pull/90))
- *(SE Kvanumbygdens)* Add basic info ([#89](https://github.com/spotpilot/grid-tariffs/pull/89))
- *(SE Kungalv)* Add basic info ([#88](https://github.com/spotpilot/grid-tariffs/pull/88))
- *(SE Karlsborg)* Add basic info ([#73](https://github.com/spotpilot/grid-tariffs/pull/73))
- *(SE Harryds)* Add basic info ([#72](https://github.com/spotpilot/grid-tariffs/pull/72))
- *(SE Harjeans)* Add basic info ([#71](https://github.com/spotpilot/grid-tariffs/pull/71))
- *(SE Halmstad)* Add basic info ([#70](https://github.com/spotpilot/grid-tariffs/pull/70))
- *(SE Hallstaviks)* Add basic info ([#69](https://github.com/spotpilot/grid-tariffs/pull/69))
- *(SE Habo)* Add basic info ([#68](https://github.com/spotpilot/grid-tariffs/pull/68))
- *(SE Eksjo)* Add basic info ([#67](https://github.com/spotpilot/grid-tariffs/pull/67))
- *(SE Degefors)* Add basic info ([#66](https://github.com/spotpilot/grid-tariffs/pull/66))
- *(SE Dala)* Add basic info ([#65](https://github.com/spotpilot/grid-tariffs/pull/65))
- *(SE Osterlen )* Add basic info ([#146](https://github.com/spotpilot/grid-tariffs/pull/146))
- *(SE Skanska)* Add basic info ([#142](https://github.com/spotpilot/grid-tariffs/pull/142))
- *(SE Oskarshamn)* Add basic info ([#134](https://github.com/spotpilot/grid-tariffs/pull/134))
- *(SE Nybro)* Add basic info ([#133](https://github.com/spotpilot/grid-tariffs/pull/133))
- *(SE Kalmar)* Add basic info ([#128](https://github.com/spotpilot/grid-tariffs/pull/128))

### Fixed

- [**breaking**] replace TariffCalculationMethod::PeakHour with TariffCalculationMethod::AverageHours(1)
- [**breaking**] Explicit country for holidays
- Method to add feed-in revenue info with default content locator
- Use link builder pattern everywhere
- Use spot_price_variable method
- *(SE Sevab)* Wrong link

### Other

- More grid operator fees ([#157](https://github.com/spotpilot/grid-tariffs/pull/157))
- Fix clippy warnings

## [0.5.0](https://github.com/spotpilot/grid-tariffs/compare/grid-tariffs-v0.4.2...grid-tariffs-v0.5.0) - 2025-10-02

### Fixed

- Feed-in revenue info wasn't being added...
- Don't allow None-values for TransferFeeSimplified
- [**breaking**] Feed-in revenue simplified info + format change
- Rename module to feed_in_revenue

## [0.4.2](https://github.com/spotpilot/grid-tariffs/compare/grid-tariffs-v0.4.1...grid-tariffs-v0.4.2) - 2025-10-01

### Fixed

- rename_all, not rename

## [0.4.1](https://github.com/spotpilot/grid-tariffs/compare/grid-tariffs-v0.4.0...grid-tariffs-v0.4.1) - 2025-10-01

### Fixed

- Didn't support passing in English as language

## [0.4.0](https://github.com/spotpilot/grid-tariffs/compare/grid-tariffs-v0.3.0...grid-tariffs-v0.4.0) - 2025-10-01

### Added

- Add info translations for simplified structs
- *(SE Hoganas)* Add basic info ([#127](https://github.com/spotpilot/grid-tariffs/pull/127))

### Fixed

- [**breaking**] Don't use tagged serde enums - problem to use with openapi-generator

### Other

- Update package name in CI as well

## [0.3.0](https://github.com/spotpilot/grid-tariffs/compare/grid-tariffs-v0.2.0...grid-tariffs-v0.3.0) - 2025-09-16

### Added

- [**breaking**] PowerTariffSimplified + some breaking serde / jsonschema changes

### Fixed

- Add JSON Schema printing

### Other

- Re-organize a bit

## [0.2.0](https://github.com/spotpilot/grid-tariffs/compare/grid-tariffs-v0.1.0...grid-tariffs-v0.2.0) - 2025-09-15

### Fixed

- [**breaking**] Use symmetric FromStr and Display values

### Other

- release-plz
