ocpp 0.24.1
A C++ implementation of the Open Charge Point Protocol
ocpp_enums.hpp
1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2020 - 2024 Pionix GmbH and Contributors to EVerest
3// This code is generated using the generator in 'src/code_generator/common`, please do not edit manually
4
5#ifndef OCPP_V16_OCPP_ENUMS_HPP
6#define OCPP_V16_OCPP_ENUMS_HPP
7
8#include <iosfwd>
9#include <string>
10
11namespace ocpp {
12namespace v16 {
13
14// from: AuthorizeResponse
15enum class AuthorizationStatus {
16 Accepted,
17 Blocked,
18 Expired,
19 Invalid,
20 ConcurrentTx,
21};
22
23namespace conversions {
26std::string authorization_status_to_string(AuthorizationStatus e);
27
30AuthorizationStatus string_to_authorization_status(const std::string& s);
31} // namespace conversions
32
35std::ostream& operator<<(std::ostream& os, const AuthorizationStatus& authorization_status);
36
37// from: BootNotificationResponse
38enum class RegistrationStatus {
39 Accepted,
40 Pending,
41 Rejected,
42};
43
44namespace conversions {
47std::string registration_status_to_string(RegistrationStatus e);
48
51RegistrationStatus string_to_registration_status(const std::string& s);
52} // namespace conversions
53
56std::ostream& operator<<(std::ostream& os, const RegistrationStatus& registration_status);
57
58// from: CancelReservationResponse
59enum class CancelReservationStatus {
60 Accepted,
61 Rejected,
62};
63
64namespace conversions {
67std::string cancel_reservation_status_to_string(CancelReservationStatus e);
68
71CancelReservationStatus string_to_cancel_reservation_status(const std::string& s);
72} // namespace conversions
73
76std::ostream& operator<<(std::ostream& os, const CancelReservationStatus& cancel_reservation_status);
77
78// from: CertificateSignedResponse
79enum class CertificateSignedStatusEnumType {
80 Accepted,
81 Rejected,
82};
83
84namespace conversions {
87std::string certificate_signed_status_enum_type_to_string(CertificateSignedStatusEnumType e);
88
91CertificateSignedStatusEnumType string_to_certificate_signed_status_enum_type(const std::string& s);
92} // namespace conversions
93
97std::ostream& operator<<(std::ostream& os, const CertificateSignedStatusEnumType& certificate_signed_status_enum_type);
98
99// from: ChangeAvailabilityRequest
100enum class AvailabilityType {
101 Inoperative,
102 Operative,
103};
104
105namespace conversions {
108std::string availability_type_to_string(AvailabilityType e);
109
112AvailabilityType string_to_availability_type(const std::string& s);
113} // namespace conversions
114
117std::ostream& operator<<(std::ostream& os, const AvailabilityType& availability_type);
118
119// from: ChangeAvailabilityResponse
120enum class AvailabilityStatus {
121 Accepted,
122 Rejected,
123 Scheduled,
124};
125
126namespace conversions {
129std::string availability_status_to_string(AvailabilityStatus e);
130
133AvailabilityStatus string_to_availability_status(const std::string& s);
134} // namespace conversions
135
138std::ostream& operator<<(std::ostream& os, const AvailabilityStatus& availability_status);
139
140// from: ChangeConfigurationResponse
141enum class ConfigurationStatus {
142 Accepted,
143 Rejected,
144 RebootRequired,
145 NotSupported,
146};
147
148namespace conversions {
151std::string configuration_status_to_string(ConfigurationStatus e);
152
155ConfigurationStatus string_to_configuration_status(const std::string& s);
156} // namespace conversions
157
160std::ostream& operator<<(std::ostream& os, const ConfigurationStatus& configuration_status);
161
162// from: ClearCacheResponse
163enum class ClearCacheStatus {
164 Accepted,
165 Rejected,
166};
167
168namespace conversions {
171std::string clear_cache_status_to_string(ClearCacheStatus e);
172
175ClearCacheStatus string_to_clear_cache_status(const std::string& s);
176} // namespace conversions
177
180std::ostream& operator<<(std::ostream& os, const ClearCacheStatus& clear_cache_status);
181
182// from: ClearChargingProfileRequest
183enum class ChargingProfilePurposeType {
184 ChargePointMaxProfile,
185 TxDefaultProfile,
186 TxProfile,
187};
188
189namespace conversions {
192std::string charging_profile_purpose_type_to_string(ChargingProfilePurposeType e);
193
196ChargingProfilePurposeType string_to_charging_profile_purpose_type(const std::string& s);
197} // namespace conversions
198
201std::ostream& operator<<(std::ostream& os, const ChargingProfilePurposeType& charging_profile_purpose_type);
202
203// from: ClearChargingProfileResponse
204enum class ClearChargingProfileStatus {
205 Accepted,
206 Unknown,
207};
208
209namespace conversions {
212std::string clear_charging_profile_status_to_string(ClearChargingProfileStatus e);
213
216ClearChargingProfileStatus string_to_clear_charging_profile_status(const std::string& s);
217} // namespace conversions
218
221std::ostream& operator<<(std::ostream& os, const ClearChargingProfileStatus& clear_charging_profile_status);
222
223// from: DataTransferResponse
224enum class DataTransferStatus {
225 Accepted,
226 Rejected,
227 UnknownMessageId,
228 UnknownVendorId,
229};
230
231namespace conversions {
234std::string data_transfer_status_to_string(DataTransferStatus e);
235
238DataTransferStatus string_to_data_transfer_status(const std::string& s);
239} // namespace conversions
240
243std::ostream& operator<<(std::ostream& os, const DataTransferStatus& data_transfer_status);
244
245// from: DeleteCertificateRequest
246enum class HashAlgorithmEnumType {
247 SHA256,
248 SHA384,
249 SHA512,
250};
251
252namespace conversions {
255std::string hash_algorithm_enum_type_to_string(HashAlgorithmEnumType e);
256
259HashAlgorithmEnumType string_to_hash_algorithm_enum_type(const std::string& s);
260} // namespace conversions
261
264std::ostream& operator<<(std::ostream& os, const HashAlgorithmEnumType& hash_algorithm_enum_type);
265
266// from: DeleteCertificateResponse
267enum class DeleteCertificateStatusEnumType {
268 Accepted,
269 Failed,
270 NotFound,
271};
272
273namespace conversions {
276std::string delete_certificate_status_enum_type_to_string(DeleteCertificateStatusEnumType e);
277
280DeleteCertificateStatusEnumType string_to_delete_certificate_status_enum_type(const std::string& s);
281} // namespace conversions
282
286std::ostream& operator<<(std::ostream& os, const DeleteCertificateStatusEnumType& delete_certificate_status_enum_type);
287
288// from: DiagnosticsStatusNotificationRequest
289enum class DiagnosticsStatus {
290 Idle,
291 Uploaded,
292 UploadFailed,
293 Uploading,
294};
295
296namespace conversions {
299std::string diagnostics_status_to_string(DiagnosticsStatus e);
300
303DiagnosticsStatus string_to_diagnostics_status(const std::string& s);
304} // namespace conversions
305
308std::ostream& operator<<(std::ostream& os, const DiagnosticsStatus& diagnostics_status);
309
310// from: ExtendedTriggerMessageRequest
311enum class MessageTriggerEnumType {
312 BootNotification,
313 LogStatusNotification,
314 FirmwareStatusNotification,
315 Heartbeat,
316 MeterValues,
317 SignChargePointCertificate,
318 StatusNotification,
319};
320
321namespace conversions {
324std::string message_trigger_enum_type_to_string(MessageTriggerEnumType e);
325
328MessageTriggerEnumType string_to_message_trigger_enum_type(const std::string& s);
329} // namespace conversions
330
333std::ostream& operator<<(std::ostream& os, const MessageTriggerEnumType& message_trigger_enum_type);
334
335// from: ExtendedTriggerMessageResponse
336enum class TriggerMessageStatusEnumType {
337 Accepted,
338 Rejected,
339 NotImplemented,
340};
341
342namespace conversions {
345std::string trigger_message_status_enum_type_to_string(TriggerMessageStatusEnumType e);
346
349TriggerMessageStatusEnumType string_to_trigger_message_status_enum_type(const std::string& s);
350} // namespace conversions
351
355std::ostream& operator<<(std::ostream& os, const TriggerMessageStatusEnumType& trigger_message_status_enum_type);
356
357// from: FirmwareStatusNotificationRequest
358enum class FirmwareStatus {
359 Downloaded,
360 DownloadFailed,
361 Downloading,
362 Idle,
363 InstallationFailed,
364 Installing,
365 Installed,
366};
367
368namespace conversions {
371std::string firmware_status_to_string(FirmwareStatus e);
372
375FirmwareStatus string_to_firmware_status(const std::string& s);
376} // namespace conversions
377
380std::ostream& operator<<(std::ostream& os, const FirmwareStatus& firmware_status);
381
382// from: GetCompositeScheduleRequest
383enum class ChargingRateUnit {
384 A,
385 W,
386};
387
388namespace conversions {
391std::string charging_rate_unit_to_string(ChargingRateUnit e);
392
395ChargingRateUnit string_to_charging_rate_unit(const std::string& s);
396} // namespace conversions
397
400std::ostream& operator<<(std::ostream& os, const ChargingRateUnit& charging_rate_unit);
401
402// from: GetCompositeScheduleResponse
403enum class GetCompositeScheduleStatus {
404 Accepted,
405 Rejected,
406};
407
408namespace conversions {
411std::string get_composite_schedule_status_to_string(GetCompositeScheduleStatus e);
412
415GetCompositeScheduleStatus string_to_get_composite_schedule_status(const std::string& s);
416} // namespace conversions
417
420std::ostream& operator<<(std::ostream& os, const GetCompositeScheduleStatus& get_composite_schedule_status);
421
422// from: GetInstalledCertificateIdsRequest
423enum class CertificateUseEnumType {
424 CentralSystemRootCertificate,
425 ManufacturerRootCertificate,
426};
427
428namespace conversions {
431std::string certificate_use_enum_type_to_string(CertificateUseEnumType e);
432
435CertificateUseEnumType string_to_certificate_use_enum_type(const std::string& s);
436} // namespace conversions
437
440std::ostream& operator<<(std::ostream& os, const CertificateUseEnumType& certificate_use_enum_type);
441
442// from: GetInstalledCertificateIdsResponse
443enum class GetInstalledCertificateStatusEnumType {
444 Accepted,
445 NotFound,
446};
447
448namespace conversions {
451std::string get_installed_certificate_status_enum_type_to_string(GetInstalledCertificateStatusEnumType e);
452
455GetInstalledCertificateStatusEnumType string_to_get_installed_certificate_status_enum_type(const std::string& s);
456} // namespace conversions
457
461std::ostream& operator<<(std::ostream& os,
462 const GetInstalledCertificateStatusEnumType& get_installed_certificate_status_enum_type);
463
464// from: GetLogRequest
465enum class LogEnumType {
466 DiagnosticsLog,
467 SecurityLog,
468};
469
470namespace conversions {
473std::string log_enum_type_to_string(LogEnumType e);
474
477LogEnumType string_to_log_enum_type(const std::string& s);
478} // namespace conversions
479
482std::ostream& operator<<(std::ostream& os, const LogEnumType& log_enum_type);
483
484// from: GetLogResponse
485enum class LogStatusEnumType {
486 Accepted,
487 Rejected,
488 AcceptedCanceled,
489};
490
491namespace conversions {
494std::string log_status_enum_type_to_string(LogStatusEnumType e);
495
498LogStatusEnumType string_to_log_status_enum_type(const std::string& s);
499} // namespace conversions
500
503std::ostream& operator<<(std::ostream& os, const LogStatusEnumType& log_status_enum_type);
504
505// from: InstallCertificateResponse
506enum class InstallCertificateStatusEnumType {
507 Accepted,
508 Failed,
509 Rejected,
510};
511
512namespace conversions {
515std::string install_certificate_status_enum_type_to_string(InstallCertificateStatusEnumType e);
516
519InstallCertificateStatusEnumType string_to_install_certificate_status_enum_type(const std::string& s);
520} // namespace conversions
521
525std::ostream& operator<<(std::ostream& os,
526 const InstallCertificateStatusEnumType& install_certificate_status_enum_type);
527
528// from: LogStatusNotificationRequest
529enum class UploadLogStatusEnumType {
530 BadMessage,
531 Idle,
532 NotSupportedOperation,
533 PermissionDenied,
534 Uploaded,
535 UploadFailure,
536 Uploading,
537};
538
539namespace conversions {
542std::string upload_log_status_enum_type_to_string(UploadLogStatusEnumType e);
543
546UploadLogStatusEnumType string_to_upload_log_status_enum_type(const std::string& s);
547} // namespace conversions
548
551std::ostream& operator<<(std::ostream& os, const UploadLogStatusEnumType& upload_log_status_enum_type);
552
553// from: MeterValuesRequest
554enum class ReadingContext {
555 Interruption_Begin,
556 Interruption_End,
557 Sample_Clock,
558 Sample_Periodic,
559 Transaction_Begin,
560 Transaction_End,
561 Trigger,
562 Other,
563};
564
565namespace conversions {
568std::string reading_context_to_string(ReadingContext e);
569
572ReadingContext string_to_reading_context(const std::string& s);
573} // namespace conversions
574
577std::ostream& operator<<(std::ostream& os, const ReadingContext& reading_context);
578
579// from: MeterValuesRequest
580enum class ValueFormat {
581 Raw,
582 SignedData,
583};
584
585namespace conversions {
588std::string value_format_to_string(ValueFormat e);
589
592ValueFormat string_to_value_format(const std::string& s);
593} // namespace conversions
594
597std::ostream& operator<<(std::ostream& os, const ValueFormat& value_format);
598
599// from: MeterValuesRequest
600enum class Measurand {
601 Energy_Active_Export_Register,
602 Energy_Active_Import_Register,
603 Energy_Reactive_Export_Register,
604 Energy_Reactive_Import_Register,
605 Energy_Active_Export_Interval,
606 Energy_Active_Import_Interval,
607 Energy_Reactive_Export_Interval,
608 Energy_Reactive_Import_Interval,
609 Power_Active_Export,
610 Power_Active_Import,
611 Power_Offered,
612 Power_Reactive_Export,
613 Power_Reactive_Import,
614 Power_Factor,
615 Current_Import,
616 Current_Export,
617 Current_Offered,
618 Voltage,
619 Frequency,
620 Temperature,
621 SoC,
622 RPM,
623};
624
625namespace conversions {
628std::string measurand_to_string(Measurand e);
629
632Measurand string_to_measurand(const std::string& s);
633} // namespace conversions
634
637std::ostream& operator<<(std::ostream& os, const Measurand& measurand);
638
639// from: MeterValuesRequest
640enum class Phase {
641 L1,
642 L2,
643 L3,
644 N,
645 L1_N,
646 L2_N,
647 L3_N,
648 L1_L2,
649 L2_L3,
650 L3_L1,
651};
652
653namespace conversions {
656std::string phase_to_string(Phase e);
657
660Phase string_to_phase(const std::string& s);
661} // namespace conversions
662
665std::ostream& operator<<(std::ostream& os, const Phase& phase);
666
667// from: MeterValuesRequest
668enum class Location {
669 Cable,
670 EV,
671 Inlet,
672 Outlet,
673 Body,
674};
675
676namespace conversions {
679std::string location_to_string(Location e);
680
683Location string_to_location(const std::string& s);
684} // namespace conversions
685
688std::ostream& operator<<(std::ostream& os, const Location& location);
689
690// from: MeterValuesRequest
691enum class UnitOfMeasure {
692 Wh,
693 kWh,
694 varh,
695 kvarh,
696 W,
697 kW,
698 VA,
699 kVA,
700 var,
701 kvar,
702 A,
703 V,
704 K,
705 Celcius,
706 Celsius,
707 Fahrenheit,
708 Percent,
709};
710
711namespace conversions {
714std::string unit_of_measure_to_string(UnitOfMeasure e);
715
718UnitOfMeasure string_to_unit_of_measure(const std::string& s);
719} // namespace conversions
720
723std::ostream& operator<<(std::ostream& os, const UnitOfMeasure& unit_of_measure);
724
725// from: RemoteStartTransactionRequest
726enum class ChargingProfileKindType {
727 Absolute,
728 Recurring,
729 Relative,
730};
731
732namespace conversions {
735std::string charging_profile_kind_type_to_string(ChargingProfileKindType e);
736
739ChargingProfileKindType string_to_charging_profile_kind_type(const std::string& s);
740} // namespace conversions
741
744std::ostream& operator<<(std::ostream& os, const ChargingProfileKindType& charging_profile_kind_type);
745
746// from: RemoteStartTransactionRequest
747enum class RecurrencyKindType {
748 Daily,
749 Weekly,
750};
751
752namespace conversions {
755std::string recurrency_kind_type_to_string(RecurrencyKindType e);
756
759RecurrencyKindType string_to_recurrency_kind_type(const std::string& s);
760} // namespace conversions
761
764std::ostream& operator<<(std::ostream& os, const RecurrencyKindType& recurrency_kind_type);
765
766// from: RemoteStartTransactionResponse
767enum class RemoteStartStopStatus {
768 Accepted,
769 Rejected,
770};
771
772namespace conversions {
775std::string remote_start_stop_status_to_string(RemoteStartStopStatus e);
776
779RemoteStartStopStatus string_to_remote_start_stop_status(const std::string& s);
780} // namespace conversions
781
784std::ostream& operator<<(std::ostream& os, const RemoteStartStopStatus& remote_start_stop_status);
785
786// from: ReserveNowResponse
787enum class ReservationStatus {
788 Accepted,
789 Faulted,
790 Occupied,
791 Rejected,
792 Unavailable,
793};
794
795namespace conversions {
798std::string reservation_status_to_string(ReservationStatus e);
799
802ReservationStatus string_to_reservation_status(const std::string& s);
803} // namespace conversions
804
807std::ostream& operator<<(std::ostream& os, const ReservationStatus& reservation_status);
808
809// from: ResetRequest
810enum class ResetType {
811 Hard,
812 Soft,
813};
814
815namespace conversions {
818std::string reset_type_to_string(ResetType e);
819
822ResetType string_to_reset_type(const std::string& s);
823} // namespace conversions
824
827std::ostream& operator<<(std::ostream& os, const ResetType& reset_type);
828
829// from: ResetResponse
830enum class ResetStatus {
831 Accepted,
832 Rejected,
833};
834
835namespace conversions {
838std::string reset_status_to_string(ResetStatus e);
839
842ResetStatus string_to_reset_status(const std::string& s);
843} // namespace conversions
844
847std::ostream& operator<<(std::ostream& os, const ResetStatus& reset_status);
848
849// from: SendLocalListRequest
850enum class UpdateType {
851 Differential,
852 Full,
853};
854
855namespace conversions {
858std::string update_type_to_string(UpdateType e);
859
862UpdateType string_to_update_type(const std::string& s);
863} // namespace conversions
864
867std::ostream& operator<<(std::ostream& os, const UpdateType& update_type);
868
869// from: SendLocalListResponse
870enum class UpdateStatus {
871 Accepted,
872 Failed,
873 NotSupported,
874 VersionMismatch,
875};
876
877namespace conversions {
880std::string update_status_to_string(UpdateStatus e);
881
884UpdateStatus string_to_update_status(const std::string& s);
885} // namespace conversions
886
889std::ostream& operator<<(std::ostream& os, const UpdateStatus& update_status);
890
891// from: SetChargingProfileResponse
892enum class ChargingProfileStatus {
893 Accepted,
894 Rejected,
895 NotSupported,
896};
897
898namespace conversions {
901std::string charging_profile_status_to_string(ChargingProfileStatus e);
902
905ChargingProfileStatus string_to_charging_profile_status(const std::string& s);
906} // namespace conversions
907
910std::ostream& operator<<(std::ostream& os, const ChargingProfileStatus& charging_profile_status);
911
912// from: SignCertificateResponse
913enum class GenericStatusEnumType {
914 Accepted,
915 Rejected,
916};
917
918namespace conversions {
921std::string generic_status_enum_type_to_string(GenericStatusEnumType e);
922
925GenericStatusEnumType string_to_generic_status_enum_type(const std::string& s);
926} // namespace conversions
927
930std::ostream& operator<<(std::ostream& os, const GenericStatusEnumType& generic_status_enum_type);
931
932// from: SignedFirmwareStatusNotificationRequest
933enum class FirmwareStatusEnumType {
934 Downloaded,
935 DownloadFailed,
936 Downloading,
937 DownloadScheduled,
938 DownloadPaused,
939 Idle,
940 InstallationFailed,
941 Installing,
942 Installed,
943 InstallRebooting,
944 InstallScheduled,
945 InstallVerificationFailed,
946 InvalidSignature,
947 SignatureVerified,
948};
949
950namespace conversions {
953std::string firmware_status_enum_type_to_string(FirmwareStatusEnumType e);
954
957FirmwareStatusEnumType string_to_firmware_status_enum_type(const std::string& s);
958} // namespace conversions
959
962std::ostream& operator<<(std::ostream& os, const FirmwareStatusEnumType& firmware_status_enum_type);
963
964// from: SignedUpdateFirmwareResponse
965enum class UpdateFirmwareStatusEnumType {
966 Accepted,
967 Rejected,
968 AcceptedCanceled,
969 InvalidCertificate,
970 RevokedCertificate,
971};
972
973namespace conversions {
976std::string update_firmware_status_enum_type_to_string(UpdateFirmwareStatusEnumType e);
977
980UpdateFirmwareStatusEnumType string_to_update_firmware_status_enum_type(const std::string& s);
981} // namespace conversions
982
986std::ostream& operator<<(std::ostream& os, const UpdateFirmwareStatusEnumType& update_firmware_status_enum_type);
987
988// from: StatusNotificationRequest
989enum class ChargePointErrorCode {
990 ConnectorLockFailure,
991 EVCommunicationError,
992 GroundFailure,
993 HighTemperature,
994 InternalError,
995 LocalListConflict,
996 NoError,
997 OtherError,
998 OverCurrentFailure,
999 PowerMeterFailure,
1000 PowerSwitchFailure,
1001 ReaderFailure,
1002 ResetFailure,
1003 UnderVoltage,
1004 OverVoltage,
1005 WeakSignal,
1006};
1007
1008namespace conversions {
1011std::string charge_point_error_code_to_string(ChargePointErrorCode e);
1012
1015ChargePointErrorCode string_to_charge_point_error_code(const std::string& s);
1016} // namespace conversions
1017
1020std::ostream& operator<<(std::ostream& os, const ChargePointErrorCode& charge_point_error_code);
1021
1022// from: StatusNotificationRequest
1023enum class ChargePointStatus {
1024 Available,
1025 Preparing,
1026 Charging,
1027 SuspendedEVSE,
1028 SuspendedEV,
1029 Finishing,
1030 Reserved,
1031 Unavailable,
1032 Faulted,
1033};
1034
1035namespace conversions {
1038std::string charge_point_status_to_string(ChargePointStatus e);
1039
1042ChargePointStatus string_to_charge_point_status(const std::string& s);
1043} // namespace conversions
1044
1047std::ostream& operator<<(std::ostream& os, const ChargePointStatus& charge_point_status);
1048
1049// from: StopTransactionRequest
1050enum class Reason {
1051 EmergencyStop,
1052 EVDisconnected,
1053 HardReset,
1054 Local,
1055 Other,
1056 PowerLoss,
1057 Reboot,
1058 Remote,
1059 SoftReset,
1060 UnlockCommand,
1061 DeAuthorized,
1062};
1063
1064namespace conversions {
1067std::string reason_to_string(Reason e);
1068
1071Reason string_to_reason(const std::string& s);
1072} // namespace conversions
1073
1076std::ostream& operator<<(std::ostream& os, const Reason& reason);
1077
1078// from: TriggerMessageRequest
1079enum class MessageTrigger {
1080 BootNotification,
1081 DiagnosticsStatusNotification,
1082 FirmwareStatusNotification,
1083 Heartbeat,
1084 MeterValues,
1085 StatusNotification,
1086};
1087
1088namespace conversions {
1091std::string message_trigger_to_string(MessageTrigger e);
1092
1095MessageTrigger string_to_message_trigger(const std::string& s);
1096} // namespace conversions
1097
1100std::ostream& operator<<(std::ostream& os, const MessageTrigger& message_trigger);
1101
1102// from: TriggerMessageResponse
1103enum class TriggerMessageStatus {
1104 Accepted,
1105 Rejected,
1106 NotImplemented,
1107};
1108
1109namespace conversions {
1112std::string trigger_message_status_to_string(TriggerMessageStatus e);
1113
1116TriggerMessageStatus string_to_trigger_message_status(const std::string& s);
1117} // namespace conversions
1118
1121std::ostream& operator<<(std::ostream& os, const TriggerMessageStatus& trigger_message_status);
1122
1123// from: UnlockConnectorResponse
1124enum class UnlockStatus {
1125 Unlocked,
1126 UnlockFailed,
1127 NotSupported,
1128};
1129
1130namespace conversions {
1133std::string unlock_status_to_string(UnlockStatus e);
1134
1137UnlockStatus string_to_unlock_status(const std::string& s);
1138} // namespace conversions
1139
1142std::ostream& operator<<(std::ostream& os, const UnlockStatus& unlock_status);
1143
1144} // namespace v16
1145} // namespace ocpp
1146
1147#endif // OCPP_V16_OCPP_ENUMS_HPP