Documentation
¶
Index ¶
- type AdditionalInfoType
- type AuthorizationData
- type AuthorizationStatusEnumType
- type AuthorizationStatusEnumType_1
- type CustomDataType
- type IdTokenEnumType
- type IdTokenEnumType_1
- type IdTokenInfoType
- type IdTokenType
- type MessageContentType
- type MessageFormatEnumType
- type MessageFormatEnumType_1
- type SendLocalListRequestJson
- type UpdateEnumType
- type UpdateEnumType_1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdditionalInfoType ¶
type AdditionalInfoType struct { // This field specifies the additional IdToken. // AdditionalIdToken string `json:"additionalIdToken" yaml:"additionalIdToken"` // CustomData corresponds to the JSON schema field "customData". CustomData *CustomDataType `json:"customData,omitempty" yaml:"customData,omitempty"` // This defines the type of the additionalIdToken. This is a custom type, so the // implementation needs to be agreed upon by all involved parties. // Type string `json:"type" yaml:"type"` }
Contains a case insensitive identifier to use for the authorization and the type of authorization to support multiple forms of identifiers.
func (*AdditionalInfoType) UnmarshalJSON ¶
func (j *AdditionalInfoType) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type AuthorizationData ¶
type AuthorizationData struct { // CustomData corresponds to the JSON schema field "customData". CustomData *CustomDataType `json:"customData,omitempty" yaml:"customData,omitempty"` // IdToken corresponds to the JSON schema field "idToken". IdToken IdTokenType `json:"idToken" yaml:"idToken"` // IdTokenInfo corresponds to the JSON schema field "idTokenInfo". IdTokenInfo *IdTokenInfoType `json:"idTokenInfo,omitempty" yaml:"idTokenInfo,omitempty"` }
Contains the identifier to use for authorization.
func (*AuthorizationData) UnmarshalJSON ¶
func (j *AuthorizationData) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type AuthorizationStatusEnumType ¶
type AuthorizationStatusEnumType string
const AuthorizationStatusEnumTypeAccepted AuthorizationStatusEnumType = "Accepted"
const AuthorizationStatusEnumTypeBlocked AuthorizationStatusEnumType = "Blocked"
const AuthorizationStatusEnumTypeConcurrentTx AuthorizationStatusEnumType = "ConcurrentTx"
const AuthorizationStatusEnumTypeExpired AuthorizationStatusEnumType = "Expired"
const AuthorizationStatusEnumTypeInvalid AuthorizationStatusEnumType = "Invalid"
const AuthorizationStatusEnumTypeNoCredit AuthorizationStatusEnumType = "NoCredit"
const AuthorizationStatusEnumTypeNotAllowedTypeEVSE AuthorizationStatusEnumType = "NotAllowedTypeEVSE"
const AuthorizationStatusEnumTypeNotAtThisLocation AuthorizationStatusEnumType = "NotAtThisLocation"
const AuthorizationStatusEnumTypeNotAtThisTime AuthorizationStatusEnumType = "NotAtThisTime"
const AuthorizationStatusEnumTypeUnknown AuthorizationStatusEnumType = "Unknown"
func (*AuthorizationStatusEnumType) UnmarshalJSON ¶
func (j *AuthorizationStatusEnumType) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type AuthorizationStatusEnumType_1 ¶
type AuthorizationStatusEnumType_1 string
const AuthorizationStatusEnumType_1_Accepted AuthorizationStatusEnumType_1 = "Accepted"
const AuthorizationStatusEnumType_1_Blocked AuthorizationStatusEnumType_1 = "Blocked"
const AuthorizationStatusEnumType_1_ConcurrentTx AuthorizationStatusEnumType_1 = "ConcurrentTx"
const AuthorizationStatusEnumType_1_Expired AuthorizationStatusEnumType_1 = "Expired"
const AuthorizationStatusEnumType_1_Invalid AuthorizationStatusEnumType_1 = "Invalid"
const AuthorizationStatusEnumType_1_NoCredit AuthorizationStatusEnumType_1 = "NoCredit"
const AuthorizationStatusEnumType_1_NotAllowedTypeEVSE AuthorizationStatusEnumType_1 = "NotAllowedTypeEVSE"
const AuthorizationStatusEnumType_1_NotAtThisLocation AuthorizationStatusEnumType_1 = "NotAtThisLocation"
const AuthorizationStatusEnumType_1_NotAtThisTime AuthorizationStatusEnumType_1 = "NotAtThisTime"
const AuthorizationStatusEnumType_1_Unknown AuthorizationStatusEnumType_1 = "Unknown"
func (*AuthorizationStatusEnumType_1) UnmarshalJSON ¶
func (j *AuthorizationStatusEnumType_1) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type CustomDataType ¶
type CustomDataType struct { // VendorId corresponds to the JSON schema field "vendorId". VendorId string `json:"vendorId" yaml:"vendorId"` }
This class does not get 'AdditionalProperties = false' in the schema generation, so it can be extended with arbitrary JSON properties to allow adding custom data.
func (*CustomDataType) UnmarshalJSON ¶
func (j *CustomDataType) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type IdTokenEnumType ¶
type IdTokenEnumType string
const IdTokenEnumTypeCentral IdTokenEnumType = "Central"
const IdTokenEnumTypeEMAID IdTokenEnumType = "eMAID"
const IdTokenEnumTypeISO14443 IdTokenEnumType = "ISO14443"
const IdTokenEnumTypeISO15693 IdTokenEnumType = "ISO15693"
const IdTokenEnumTypeKeyCode IdTokenEnumType = "KeyCode"
const IdTokenEnumTypeLocal IdTokenEnumType = "Local"
const IdTokenEnumTypeMacAddress IdTokenEnumType = "MacAddress"
const IdTokenEnumTypeNoAuthorization IdTokenEnumType = "NoAuthorization"
func (*IdTokenEnumType) UnmarshalJSON ¶
func (j *IdTokenEnumType) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type IdTokenEnumType_1 ¶
type IdTokenEnumType_1 string
const IdTokenEnumType_1_Central IdTokenEnumType_1 = "Central"
const IdTokenEnumType_1_EMAID IdTokenEnumType_1 = "eMAID"
const IdTokenEnumType_1_ISO14443 IdTokenEnumType_1 = "ISO14443"
const IdTokenEnumType_1_ISO15693 IdTokenEnumType_1 = "ISO15693"
const IdTokenEnumType_1_KeyCode IdTokenEnumType_1 = "KeyCode"
const IdTokenEnumType_1_Local IdTokenEnumType_1 = "Local"
const IdTokenEnumType_1_MacAddress IdTokenEnumType_1 = "MacAddress"
const IdTokenEnumType_1_NoAuthorization IdTokenEnumType_1 = "NoAuthorization"
func (*IdTokenEnumType_1) UnmarshalJSON ¶
func (j *IdTokenEnumType_1) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type IdTokenInfoType ¶
type IdTokenInfoType struct { // ID_ Token. Expiry. Date_ Time // urn:x-oca:ocpp:uid:1:569373 // Date and Time after which the token must be considered invalid. // CacheExpiryDateTime *string `json:"cacheExpiryDateTime,omitempty" yaml:"cacheExpiryDateTime,omitempty"` // Priority from a business point of view. Default priority is 0, The range is // from -9 to 9. Higher values indicate a higher priority. The chargingPriority in // <<transactioneventresponse,TransactionEventResponse>> overrules // this one. // ChargingPriority *int `json:"chargingPriority,omitempty" yaml:"chargingPriority,omitempty"` // CustomData corresponds to the JSON schema field "customData". CustomData *CustomDataType `json:"customData,omitempty" yaml:"customData,omitempty"` // Only used when the IdToken is only valid for one or more specific EVSEs, not // for the entire Charging Station. // // EvseId []int `json:"evseId,omitempty" yaml:"evseId,omitempty"` // GroupIdToken corresponds to the JSON schema field "groupIdToken". GroupIdToken *IdTokenType `json:"groupIdToken,omitempty" yaml:"groupIdToken,omitempty"` // ID_ Token. Language1. Language_ Code // urn:x-oca:ocpp:uid:1:569374 // Preferred user interface language of identifier user. Contains a language code // as defined in <<ref-RFC5646,[RFC5646]>>. // // Language1 *string `json:"language1,omitempty" yaml:"language1,omitempty"` // ID_ Token. Language2. Language_ Code // urn:x-oca:ocpp:uid:1:569375 // Second preferred user interface language of identifier user. Don’t use when // language1 is omitted, has to be different from language1. Contains a language // code as defined in <<ref-RFC5646,[RFC5646]>>. // Language2 *string `json:"language2,omitempty" yaml:"language2,omitempty"` // PersonalMessage corresponds to the JSON schema field "personalMessage". PersonalMessage *MessageContentType `json:"personalMessage,omitempty" yaml:"personalMessage,omitempty"` // Status corresponds to the JSON schema field "status". Status AuthorizationStatusEnumType `json:"status" yaml:"status"` }
ID_ Token urn:x-oca:ocpp:uid:2:233247 Contains status information about an identifier. It is advised to not stop charging for a token that expires during charging, as ExpiryDate is only used for caching purposes. If ExpiryDate is not given, the status has no end date.
func (*IdTokenInfoType) UnmarshalJSON ¶
func (j *IdTokenInfoType) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type IdTokenType ¶
type IdTokenType struct { // AdditionalInfo corresponds to the JSON schema field "additionalInfo". AdditionalInfo []AdditionalInfoType `json:"additionalInfo,omitempty" yaml:"additionalInfo,omitempty"` // CustomData corresponds to the JSON schema field "customData". CustomData *CustomDataType `json:"customData,omitempty" yaml:"customData,omitempty"` // IdToken is case insensitive. Might hold the hidden id of an RFID tag, but can // for example also contain a UUID. // IdToken string `json:"idToken" yaml:"idToken"` // Type corresponds to the JSON schema field "type". Type IdTokenEnumType `json:"type" yaml:"type"` }
Contains a case insensitive identifier to use for the authorization and the type of authorization to support multiple forms of identifiers.
func (*IdTokenType) UnmarshalJSON ¶
func (j *IdTokenType) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MessageContentType ¶
type MessageContentType struct { // Message_ Content. Content. Message // urn:x-enexis:ecdm:uid:1:570852 // Message contents. // // Content string `json:"content" yaml:"content"` // CustomData corresponds to the JSON schema field "customData". CustomData *CustomDataType `json:"customData,omitempty" yaml:"customData,omitempty"` // Format corresponds to the JSON schema field "format". Format MessageFormatEnumType `json:"format" yaml:"format"` // Message_ Content. Language. Language_ Code // urn:x-enexis:ecdm:uid:1:570849 // Message language identifier. Contains a language code as defined in // <<ref-RFC5646,[RFC5646]>>. // Language *string `json:"language,omitempty" yaml:"language,omitempty"` }
Message_ Content urn:x-enexis:ecdm:uid:2:234490 Contains message details, for a message to be displayed on a Charging Station.
func (*MessageContentType) UnmarshalJSON ¶
func (j *MessageContentType) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MessageFormatEnumType ¶
type MessageFormatEnumType string
const MessageFormatEnumTypeASCII MessageFormatEnumType = "ASCII"
const MessageFormatEnumTypeHTML MessageFormatEnumType = "HTML"
const MessageFormatEnumTypeURI MessageFormatEnumType = "URI"
const MessageFormatEnumTypeUTF8 MessageFormatEnumType = "UTF8"
func (*MessageFormatEnumType) UnmarshalJSON ¶
func (j *MessageFormatEnumType) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MessageFormatEnumType_1 ¶
type MessageFormatEnumType_1 string
const MessageFormatEnumType_1_ASCII MessageFormatEnumType_1 = "ASCII"
const MessageFormatEnumType_1_HTML MessageFormatEnumType_1 = "HTML"
const MessageFormatEnumType_1_URI MessageFormatEnumType_1 = "URI"
const MessageFormatEnumType_1_UTF8 MessageFormatEnumType_1 = "UTF8"
func (*MessageFormatEnumType_1) UnmarshalJSON ¶
func (j *MessageFormatEnumType_1) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type SendLocalListRequestJson ¶
type SendLocalListRequestJson struct { // CustomData corresponds to the JSON schema field "customData". CustomData *CustomDataType `json:"customData,omitempty" yaml:"customData,omitempty"` // LocalAuthorizationList corresponds to the JSON schema field // "localAuthorizationList". LocalAuthorizationList []AuthorizationData `json:"localAuthorizationList,omitempty" yaml:"localAuthorizationList,omitempty"` // UpdateType corresponds to the JSON schema field "updateType". UpdateType UpdateEnumType_1 `json:"updateType" yaml:"updateType"` // In case of a full update this is the version number of the full list. In case // of a differential update it is the version number of the list after the update // has been applied. // VersionNumber int `json:"versionNumber" yaml:"versionNumber"` }
func (*SendLocalListRequestJson) UnmarshalJSON ¶
func (j *SendLocalListRequestJson) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type UpdateEnumType ¶
type UpdateEnumType string
const UpdateEnumTypeDifferential UpdateEnumType = "Differential"
const UpdateEnumTypeFull UpdateEnumType = "Full"
func (*UpdateEnumType) UnmarshalJSON ¶
func (j *UpdateEnumType) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type UpdateEnumType_1 ¶
type UpdateEnumType_1 string
const UpdateEnumType_1_Differential UpdateEnumType_1 = "Differential"
const UpdateEnumType_1_Full UpdateEnumType_1 = "Full"
func (*UpdateEnumType_1) UnmarshalJSON ¶
func (j *UpdateEnumType_1) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.