@@ -195,6 +195,11 @@ class ChargePointInterface {
195
195
on_charging_state_changed (const uint32_t evse_id, const ChargingStateEnum charging_state,
196
196
const TriggerReasonEnum trigger_reason = TriggerReasonEnum::ChargingStateChanged) = 0 ;
197
197
198
+ // / \brief Gets the transaction id for a certain \p evse_id if there is an active transaction
199
+ // / \param evse_id The evse to get the transaction for
200
+ // / \return The transaction id if a transaction is active, otherwise nullopt
201
+ virtual std::optional<std::string> get_evse_transaction_id (int32_t evse_id) = 0;
202
+
198
203
// / \brief Event handler that can be called to trigger a NotifyEvent.req with the given \p events
199
204
// / \param events
200
205
virtual void on_event (const std::vector<EventData>& events) = 0;
@@ -402,14 +407,6 @@ class ChargePoint : public ChargePointInterface, private ocpp::ChargingStationBa
402
407
403
408
void message_callback (const std::string& message);
404
409
405
- // /
406
- // / \brief Check if the connector exists on the given evse id.
407
- // / \param evse_id The evse id to check for.
408
- // / \param connector_type The connector type.
409
- // / \return False if evse id does not exist or evse does not have the given connector type.
410
- // /
411
- bool does_connector_exist (const uint32_t evse_id, std::optional<CiString<20 >> connector_type);
412
-
413
410
// / \brief Get the value optional offline flag
414
411
// / \return true if the charge point is offline. std::nullopt if it is online;
415
412
bool is_offline ();
@@ -561,6 +558,8 @@ class ChargePoint : public ChargePointInterface, private ocpp::ChargingStationBa
561
558
const uint32_t evse_id, const ChargingStateEnum charging_state,
562
559
const TriggerReasonEnum trigger_reason = TriggerReasonEnum::ChargingStateChanged) override ;
563
560
561
+ std::optional<std::string> get_evse_transaction_id (int32_t evse_id) override ;
562
+
564
563
AuthorizeResponse validate_token (const IdToken id_token, const std::optional<CiString<10000 >>& certificate,
565
564
const std::optional<std::vector<OCSPRequestData>>& ocsp_request_data) override ;
566
565
0 commit comments