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.

FieldTypeReqDescription
currencyStringCurrency code according to ISO 4217. (max 3 chars)
custom_dataCustomData
ev_absolute_price_schedule_entriesList(EvAbsolutePriceScheduleEntry)
price_algorithmStringISO 15118-20 URN of price algorithm: Power, PeakPower, StackedEnergy. (max 2000 chars)
time_anchorDateTimeStarting 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

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.

Search Document