ocpp/v2_0_1/message/customer_information
OCPP 2.0.1 CustomerInformation action.
Request/Response payload types with their OCPP-J codecs
(request_to_json/request_decoder, response_to_json/
response_decoder). Transport-agnostic; the action-string mapping
lives in ocpp/v2_0_1/dispatch.
Types
| Field | Type | Req | Description |
|---|---|---|---|
clear | Bool | ✓ | Flag indicating whether the Charging Station should clear all information about the customer referred to. |
custom_data | CustomData | — | |
customer_certificate | CertificateHashData | — | |
customer_identifier | String | — | A (e.g. vendor specific) identifier of the customer this request refers to. This field contains a custom identifier other than IdToken and Certificate. One of the possible identifiers (customerIdentifier, customerIdToken or customerCertificate) should be in the request message. (max 64 chars) |
id_token | IdTokenType | — | |
report | Bool | ✓ | Flag indicating whether the Charging Station should return NotifyCustomerInformationRequest messages containing information about the customer referred to. |
request_id | Int | ✓ | The Id of the request. |
Schema: CustomerInformationRequest
pub type Request {
Request(
clear: Bool,
custom_data: option.Option(custom_data.CustomData),
customer_certificate: option.Option(
certificate_hash_data.CertificateHashData,
),
customer_identifier: option.Option(String),
id_token: option.Option(id_token_type.IdTokenType),
report: Bool,
request_id: Int,
)
}
Constructors
-
Request( clear: Bool, custom_data: option.Option(custom_data.CustomData), customer_certificate: option.Option( certificate_hash_data.CertificateHashData, ), customer_identifier: option.Option(String), id_token: option.Option(id_token_type.IdTokenType), report: Bool, request_id: Int, )
| Field | Type | Req | Description |
|---|---|---|---|
custom_data | CustomData | — | |
status | CustomerInformationStatus | ✓ | |
status_info | StatusInfo | — |
Schema: CustomerInformationResponse
pub type Response {
Response(
custom_data: option.Option(custom_data.CustomData),
status: customer_information_status.CustomerInformationStatus,
status_info: option.Option(status_info.StatusInfo),
)
}
Constructors
-
Response( custom_data: option.Option(custom_data.CustomData), status: customer_information_status.CustomerInformationStatus, status_info: option.Option(status_info.StatusInfo), )
Values
pub fn new_request(
clear clear: Bool,
report report: Bool,
request_id request_id: Int,
) -> Request
Construct a Request from its required fields, with every optional field set to None.
pub fn new_response(
status status: customer_information_status.CustomerInformationStatus,
) -> Response
Construct a Response from its required fields, with every optional field set to None.
pub fn request_decoder() -> decode.Decoder(Request)
Decode a Request from its OCPP-J JSON object, enforcing schema constraints.
pub fn response_decoder() -> decode.Decoder(Response)
Decode a Response from its OCPP-J JSON object, enforcing schema constraints.