ocpp/v2_1/datatype/ev_absolute_price_schedule
OCPP 2.1 EvAbsolutePriceSchedule data type (schema EVAbsolutePriceScheduleType).
to_json/decoder map to/from its OCPP-J JSON object; new (when
present) builds a value from the required fields only.
Types
(2.1) Price schedule of EV energy offer.
| Field | Type | Req | Description |
|---|---|---|---|
currency | String | ✓ | Currency code according to ISO 4217. (max 3 chars) |
custom_data | CustomData | — | |
ev_absolute_price_schedule_entries | List(EvAbsolutePriceScheduleEntry) | ✓ | |
price_algorithm | String | ✓ | ISO 15118-20 URN of price algorithm: Power, PeakPower, StackedEnergy. (max 2000 chars) |
time_anchor | DateTime | ✓ | Starting point in time of the EVEnergyOffer. |
Schema: EVAbsolutePriceScheduleType
pub type EvAbsolutePriceSchedule {
EvAbsolutePriceSchedule(
currency: String,
custom_data: option.Option(custom_data.CustomData),
ev_absolute_price_schedule_entries: List(
ev_absolute_price_schedule_entry.EvAbsolutePriceScheduleEntry,
),
price_algorithm: String,
time_anchor: timestamp.Timestamp,
)
}
Constructors
-
EvAbsolutePriceSchedule( currency: String, custom_data: option.Option(custom_data.CustomData), ev_absolute_price_schedule_entries: List( ev_absolute_price_schedule_entry.EvAbsolutePriceScheduleEntry, ), price_algorithm: String, time_anchor: timestamp.Timestamp, )
Values
pub fn decoder() -> decode.Decoder(EvAbsolutePriceSchedule)
Decode a EvAbsolutePriceSchedule from its OCPP-J JSON object, enforcing schema constraints.
pub fn new(
currency currency: String,
ev_absolute_price_schedule_entries ev_absolute_price_schedule_entries: List(
ev_absolute_price_schedule_entry.EvAbsolutePriceScheduleEntry,
),
price_algorithm price_algorithm: String,
time_anchor time_anchor: timestamp.Timestamp,
) -> EvAbsolutePriceSchedule
Construct a EvAbsolutePriceSchedule from its required fields, with every optional field set to None.
pub fn to_json(value: EvAbsolutePriceSchedule) -> json.Json
Encode a EvAbsolutePriceSchedule to its OCPP-J JSON object.