ocpp/v2_1/datatype/price_level_schedule

OCPP 2.1 PriceLevelSchedule data type (schema PriceLevelScheduleType).

to_json/decoder map to/from its OCPP-J JSON object; new (when present) builds a value from the required fields only.

Types

The PriceLevelScheduleType is modeled after the same type that is defined in ISO 15118-20, such that if it is supplied by an EMSP as a signed EXI message, the conversion from EXI to JSON (in OCPP) and back to EXI (for ISO 15118-20) does not change the digest and therefore does not invalidate the signature.

FieldTypeReqDescription
custom_dataCustomData
number_of_price_levelsIntDefines the overall number of distinct price level elements used across all PriceLevelSchedules. (≥ 0)
price_level_schedule_entriesList(PriceLevelScheduleEntry)
price_schedule_descriptionStringDescription of the price schedule. (max 32 chars)
price_schedule_idIntUnique ID of this price schedule. (≥ 0)
time_anchorDateTimeStarting point of this price schedule.

Schema: PriceLevelScheduleType

pub type PriceLevelSchedule {
  PriceLevelSchedule(
    custom_data: option.Option(custom_data.CustomData),
    number_of_price_levels: Int,
    price_level_schedule_entries: List(
      price_level_schedule_entry.PriceLevelScheduleEntry,
    ),
    price_schedule_description: option.Option(String),
    price_schedule_id: Int,
    time_anchor: timestamp.Timestamp,
  )
}

Constructors

Values

pub fn decoder() -> decode.Decoder(PriceLevelSchedule)

Decode a PriceLevelSchedule from its OCPP-J JSON object, enforcing schema constraints.

pub fn new(
  number_of_price_levels number_of_price_levels: Int,
  price_level_schedule_entries price_level_schedule_entries: List(
    price_level_schedule_entry.PriceLevelScheduleEntry,
  ),
  price_schedule_id price_schedule_id: Int,
  time_anchor time_anchor: timestamp.Timestamp,
) -> PriceLevelSchedule

Construct a PriceLevelSchedule from its required fields, with every optional field set to None.

pub fn to_json(value: PriceLevelSchedule) -> json.Json

Encode a PriceLevelSchedule to its OCPP-J JSON object.

Search Document