Tariffs: add units (#5718)

This commit is contained in:
andig 2023-01-08 15:10:33 +01:00
parent 355fcea14f
commit b4f2da5ef5
9 changed files with 96 additions and 24 deletions

View file

@ -199,6 +199,7 @@ type Rates []Rate
// Tariff is a tariff capable of retrieving tariff rates
type Tariff interface {
Unit() string
Rates() (Rates, error)
}