M8-T13: add district heating pricing profile
This commit is contained in:
@@ -160,11 +160,14 @@ def create_contract(
|
||||
name:
|
||||
Human-readable label for the contract.
|
||||
kind:
|
||||
Pricing strategy identifier (``"manual"`` or ``"tibber"``).
|
||||
Pricing strategy identifier (``"manual"``, ``"tibber"``, or
|
||||
``"district_heating"``).
|
||||
currency:
|
||||
ISO 4217 currency code (default ``"EUR"``).
|
||||
values:
|
||||
Pricing values dict conforming to the named profile's structure.
|
||||
Pricing values dict conforming to the named profile's structure. The
|
||||
district-heating profile normalises its Decimal-safe values to strings
|
||||
before the JSON snapshot is stored.
|
||||
Validated via ``validate_values(kind, values)`` before any writes.
|
||||
effective_from:
|
||||
UTC datetime at which the first pricing version takes effect.
|
||||
|
||||
Reference in New Issue
Block a user