diff --git a/CHANGELOG.md b/CHANGELOG.md index b6ec2b6..4b5952b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,26 +23,26 @@ Fixes bug with deleted parties being communicated as having a "planned" status ( Fixes bug with handling request body when forwarding custom OCPI module requests. -## 1.1.0-rc1 +## 1.1.0-rc1 ### Jun 30, 2020 Adds the ability for requests to be forwarded to "Ocn Services" with matching permissions. The Ocn ServiceInterface, using the new Permissions contract in the OCN Registry, allows data to be shared and accessed using a permission system. -## 1.1.0-rc0 +## 1.1.0-rc0 ### Apr 28, 2020 Includes initial hubclientinfo OCPI module implementation. - Optional "Still-Alive" check requests connected parties versions endpoint at regular intervals. - Optional "Planned Party" search scans registry for newly planned parties at regular intervals. -- New configuration properties under `ocn.node`: `stillAliveEnabled`, `stillAliveRate`, +- New configuration properties under `ocn.node`: `stillAliveEnabled`, `stillAliveRate`, `plannedPartySearchEnabled`, `plannedPartySearchRate`. - + ## 1.0.0 ### Mar 03, 2020 Initial release of the Open Charging Network Node. - All OCPI modules included, except for hubclientinfo. - Custom OCPI module, *OcnRules*, for setting counter-party whitelist rules. -- Administrator API for generating TOKEN_A for planned parties. \ No newline at end of file +- Administrator API for generating TOKEN_A for planned parties. diff --git a/README.md b/README.md index 835869b..c9a40d6 100644 --- a/README.md +++ b/README.md @@ -1,72 +1,72 @@ # Open Charging Network Node -The Open Charging Network (OCN) node with Open Charge Point Interface (OCPI) v2.2 API. +The Open Charging Network (OCN) node with Open Charge Point Interface (OCPI) v2.2 API. -This is a community project, aimed at incorporating and building on the open OCPI standard. As with OCPI, contributions -are welcome in the form of comments, pull requests and raised issues. Visit our -[issue tracker](https://bitbucket.org/shareandcharge/ocn-node/issues) for an overview of current and past issues. -Questions may also be asked on [Stack Overflow](https://stackoverflow.com/questions/tagged/shareandcharge), or in the -[Slack community](https://app.slack.com/client/T0BNK39NX/CRP0VKEMD). +This is a community project, aimed at incorporating and building on the open OCPI standard. As with OCPI, contributions +are welcome in the form of comments, pull requests and raised issues. Visit our +[issue tracker](https://bitbucket.org/shareandcharge/ocn-node/issues) for an overview of current and past issues. +Questions may also be asked on [Stack Overflow](https://stackoverflow.com/questions/tagged/shareandcharge), or in the +[Slack community](https://app.slack.com/client/T0BNK39NX/CRP0VKEMD). -Before contributing to the source code, please take the time to read over the -[Developer Certificate of Origin](https://developercertificate.org/). For more information, see our +Before contributing to the source code, please take the time to read over the +[Developer Certificate of Origin](https://developercertificate.org/). For more information, see our [contributing guidelines](https://shareandcharge.atlassian.net/wiki/spaces/OCN/pages/360611849/Contributing+to+the+Open+Charging+Network). ## The Open Charging Network The OCN is a decentralized eRoaming hub. To participate in the OCN, a node must be used to broker OCPI requests -(e.g. start/stop charging requests, POI data retrieval) between parties. A node can be set up and run by anyone, however -to connect to a node, two steps are needed: +(e.g. start/stop charging requests, POI data retrieval) between parties. A node can be set up and run by anyone, however +to connect to a node, two steps are needed: -1. A registration token (so-called Token A in OCPI terminology) must be generated for the prospective platform by the +1. A registration token (so-called Token A in OCPI terminology) must be generated for the prospective platform by the node administrator. -2. The platform must register themselves in the [OCN Registry](https://bitbucket.org/shareandcharge/ocn-registry), +2. The platform must register themselves in the [OCN Registry](https://bitbucket.org/shareandcharge/ocn-registry), stating that they are using that particular node. -Once a registration token is obtained and the platform is listed in the registry, the OCPI credentials handshake with -the OCN Node can be initiated, providing access to all OCPI modules and interfaces used for peer-to-peer -communication. When a counter-party is found (either offline or via the registry), requests are sent to +Once a registration token is obtained and the platform is listed in the registry, the OCPI credentials handshake with +the OCN Node can be initiated, providing access to all OCPI modules and interfaces used for peer-to-peer +communication. When a counter-party is found (either offline or via the registry), requests are sent to them via the sender's OCN Node. For more information about the OCN, check out the [wiki](https://shareandcharge.atlassian.net/wiki/spaces/OCN/pages/409731085/Getting+started). ## HTTP API Documentation -The [HTTP API Documentation](https://shareandcharge.bitbucket.io) for the OCN Node describes endpoints which can be used +The [HTTP API Documentation](https://shareandcharge.bitbucket.io) for the OCN Node describes endpoints which can be used by administrators and users (OCPI parties). Outside of the full OCPI v2.2 API, OCN Nodes provide additional features, such as the custom OCPI module, _OcnRules_, as well as ways for admins to restrict use and users to query the OCN Registry. ## Dependencies -The OCN Node is built with Kotlin, targeting the JVM. See the sections on running and building a node for +The OCN Node is built with Kotlin, targeting the JVM. See the sections on running and building a node for further details. The choice of operating system is up to the administrator. By and large, the OCN Node has been developed and run on -Unix-like operating systems, particularly Ubuntu and Fedora. There is currently no guarantee that it will work on other -operating systems. +Unix-like operating systems, particularly Ubuntu and Fedora. There is currently no guarantee that it will work on other +operating systems. ## Tutorial: Running your own Local Open Charging Network -Before running a node and connecting it to a local, test or prod environment, it is recommended to first become -acquainted with how the network operates. -A [tutorial](https://bitbucket.org/shareandcharge/ocn-demo) has been provided to guide administrators and users +Before running a node and connecting it to a local, test or prod environment, it is recommended to first become +acquainted with how the network operates. +A [tutorial](https://bitbucket.org/shareandcharge/ocn-demo) has been provided to guide administrators and users of an OCN Node alike through various use case examples. ## Running a Node -First of all, ensure a [Java Runtime Environment](https://openjdk.java.net/install/) (at least version 8) is installed. +First of all, ensure a [Java Runtime Environment](https://openjdk.java.net/install/) (at least version 8) is installed. For example, via the Ubuntu package manager: ``` sudo apt install openjdk-8-jre ``` -Pre-built OCN Node packages can be found on the repository's +Pre-built OCN Node packages can be found on the repository's [downloads page](https://bitbucket.org/shareandcharge/ocn-node/downloads/). For the rest of this section it will be assumed that this was the method chosen by the user. For information about building the node, see the subsequent section that follows. -Once downloaded, extract the contents of the archive and change directory: +Once downloaded, extract the contents of the archive and change directory: ``` tar zxvf ocn-node-1.1.2.tar.gz cd ocn-node-1.1-2 @@ -79,9 +79,9 @@ java -jar ocn-node-1.1.2.jar ### Configuration -By default the OCN Node will use the `dev` profile's runtime properties. These are specified in -`application.dev.properties`. This can be used to get a node up and running and connected to the -OCN public test environment right away. +By default the OCN Node will use the `dev` profile's runtime properties. These are specified in +`application.dev.properties`. This can be used to get a node up and running and connected to the +OCN public test environment right away. However, sooner or later it is likely that configuration options must be changed to match the environment. For example, to configure our local development environment correctly, we might wish to create a new profile @@ -93,7 +93,7 @@ To do so, we can make a copy of the `dev` profile, naming it however we so desir cp application.dev.properties application.custom-local-env.properties ``` -We can then edit our `custom-local-env` properties file to point to the local blockchain node. +We can then edit our `custom-local-env` properties file to point to the local blockchain node. If we wish to setup the node for a production environment, an example `prod` profile has been provided too: @@ -101,7 +101,7 @@ If we wish to setup the node for a production environment, an example `prod` pro cp application.prod.properties application.custom-prod-env.properties ``` -For details on all available configuration values, please visit our comprehensive +For details on all available configuration values, please visit our comprehensive [OCN Node Configuration documentation](./CONFIGURATION.md). @@ -115,13 +115,13 @@ and follow the instructions in the README, or install the NPM package: npm i -g @shareandcharge/ocn-registry ``` -Once installed, add your OCN Node url using the private key as set in the node's configuration (note that the wallet +Once installed, add your OCN Node url using the private key as set in the node's configuration (note that the wallet key must be funded and the correct network chosen using the `-n` flag: ``` ocn-registry set-node https://ocn.server.net -n prod -s 0x1c3e5453c0f9aa74a8eb0216310b2b013f017813a648fce364bf41dbc0b37647 ``` -Alternatively, to register a node on the public test environment, use `-n volta`. +Alternatively, to register a node on the public test environment, use `-n volta`. If successful the node is now available for prospective platforms to link themselves to in the OCN Registry. @@ -159,7 +159,7 @@ User=ubuntu WorkingDirectory=/home/ubuntu/ocn-node-1.1.2 ExecStart=/usr/bin/java -jar -Dspring.config.location=application.custom-prod-env.properties ocn-node-1.1.0.jar ``` - + Then, copy the service file to the `/etc/systemd/system` directory: ``` sudo cp ocn-node.service /etc/systemd/system @@ -179,8 +179,8 @@ journalctl -fu ocn-node -n 1000 ## Development -To be able to build the project, the [Java Development Kit](https://openjdk.java.net/install/) is required. -Make sure at least version 8 is installed and you have the JDK, not only the JRE. +To be able to build the project, the [Java Development Kit](https://openjdk.java.net/install/) is required. +Make sure at least version 8 is installed and you have the JDK, not only the JRE. Gradle tasks are configured in `build.gradle.kts` using the Kotlin DSL. The project can be built with: ``` @@ -195,7 +195,7 @@ Gradle tasks are configured in `build.gradle.kts` using the Kotlin DSL. The proj ### Run integration tests -Integration tests depend on `ganache-cli`, a local development blockchain, which is installed using NPM. In one terminal +Integration tests depend on `ganache-cli`, a local development blockchain, which is installed using NPM. In one terminal window, run the following task, which will attempt to install ganache if not already present and then run it: ``` ./gradlew ganache @@ -226,5 +226,5 @@ Make sure the project has been built already, then run: ### Generating new API documentation -Documentation is generated automatically on build. The asciidoc template can be found in -`src/docs/asciidoc/index.adoc` and the output in `build/asciidoc/html5/index.html`. \ No newline at end of file +Documentation is generated automatically on build. The asciidoc template can be found in +`src/docs/asciidoc/index.adoc` and the output in `build/asciidoc/html5/index.html`. diff --git a/build.gradle.kts b/build.gradle.kts index 6ae2a64..93fe38f 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -146,4 +146,4 @@ tasks.register("archive") { "CHANGELOG.md") } -} \ No newline at end of file +} diff --git a/examples/openapi-spec.json b/examples/openapi-spec.json index 8c0e5e5..ccc3399 100644 --- a/examples/openapi-spec.json +++ b/examples/openapi-spec.json @@ -1 +1 @@ -{"openapi":"3.0.1","info":{"title":"OpenAPI definition","version":"v0"},"servers":[{"url":"http://localhost:8080","description":"Generated server url"}],"paths":{"/admin/connection-status/{countryCode}/{partyID}":{"get":{"tags":["admin-controller"],"operationId":"getConnectionStatus","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/admin/generate-registration-token":{"post":{"tags":["admin-controller"],"operationId":"generateRegistrationToken","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BasicRole"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/health":{"get":{"tags":["health-controller"],"operationId":"getHealth","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/ocn/message":{"post":{"tags":["message-controller"],"operationId":"postMessage","parameters":[{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseObject"}}}}}}},"/ocn/registry/node-info":{"get":{"tags":["registry-controller"],"operationId":"getMyNodeInfo","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}}}},"/ocn/registry/node/{countryCode}/{partyID}":{"get":{"tags":["registry-controller"],"operationId":"getNodeOf","parameters":[{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/ocpi/2.2":{"get":{"tags":["versions-controller"],"operationId":"getVersionsDetail","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseVersionDetail"}}}}}}},"/ocpi/versions":{"get":{"tags":["versions-controller"],"operationId":"getVersions","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseListVersion"}}}}}}},"/ocpi/sender/2.2/cdrs":{"get":{"tags":["cdrs-controller"],"operationId":"getCdrsFromDataOwner","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"date_from","in":"query","required":false,"schema":{"type":"string"}},{"name":"date_to","in":"query","required":false,"schema":{"type":"string"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseCDRList"}}}}}}},"/ocpi/sender/2.2/cdrs/page/{uid}":{"get":{"tags":["cdrs-controller"],"operationId":"getCdrPageFromDataOwner","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"uid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseCDRList"}}}}}}},"/ocpi/receiver/2.2/cdrs/{cdrID}":{"get":{"tags":["cdrs-controller"],"operationId":"getClientOwnedCdr","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"cdrID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseCDR"}}}}}}},"/ocpi/receiver/2.2/cdrs":{"post":{"tags":["cdrs-controller"],"operationId":"postClientOwnedCdr","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CDR"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}}},"/ocpi/2.2/sender/chargingprofiles/result/{uid}":{"post":{"tags":["charging-profiles-controller"],"operationId":"postGenericChargingProfileResult","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"uid","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericChargingProfileResult"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}}},"/ocpi/2.2/sender/chargingprofiles/{sessionId}":{"put":{"tags":["charging-profiles-controller"],"operationId":"putSenderChargingProfile","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"sessionId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActiveChargingProfile"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}}},"/ocpi/2.2/receiver/chargingprofiles/{sessionId}":{"get":{"tags":["charging-profiles-controller"],"operationId":"getReceiverChargingProfile","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"sessionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"duration","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"response_url","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseChargingProfileResponse"}}}}}},"put":{"tags":["charging-profiles-controller"],"operationId":"putReceiverChargingProfile","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"sessionId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetChargingProfile"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseChargingProfileResponse"}}}}}},"delete":{"tags":["charging-profiles-controller"],"operationId":"deleteReceiverChargingProfile","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"sessionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"response_url","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseChargingProfileResponse"}}}}}}},"/ocpi/sender/2.2/commands/{command}/{uid}":{"post":{"tags":["commands-controller"],"operationId":"postAsyncResponse","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"command","in":"path","required":true,"schema":{"type":"string","enum":["CANCEL_RESERVATION","RESERVE_NOW","START_SESSION","STOP_SESSION","UNLOCK_CONNECTOR"]}},{"name":"uid","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommandResult"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}}},"/ocpi/receiver/2.2/commands/CANCEL_RESERVATION":{"post":{"tags":["commands-controller"],"operationId":"postCancelReservation","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelReservation"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseCommandResponse"}}}}}}},"/ocpi/receiver/2.2/commands/RESERVE_NOW":{"post":{"tags":["commands-controller"],"operationId":"postReserveNow","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReserveNow"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseCommandResponse"}}}}}}},"/ocpi/receiver/2.2/commands/START_SESSION":{"post":{"tags":["commands-controller"],"operationId":"postStartSession","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartSession"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseCommandResponse"}}}}}}},"/ocpi/receiver/2.2/commands/STOP_SESSION":{"post":{"tags":["commands-controller"],"operationId":"postStopSession","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StopSession"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseCommandResponse"}}}}}}},"/ocpi/receiver/2.2/commands/UNLOCK_CONNECTOR":{"post":{"tags":["commands-controller"],"operationId":"postUnlockConnector","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnlockConnector"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseCommandResponse"}}}}}}},"/ocpi/2.2/credentials":{"get":{"tags":["credentials-controller"],"operationId":"getCredentials","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseCredentials"}}}}}},"put":{"tags":["credentials-controller"],"operationId":"putCredentials","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Credentials"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseCredentials"}}}}}},"post":{"tags":["credentials-controller"],"operationId":"postCredentials","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Credentials"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseCredentials"}}}}}},"delete":{"tags":["credentials-controller"],"operationId":"deleteCredentials","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponse"}}}}}}},"/ocpi/sender/2.2/locations":{"get":{"tags":["locations-controller"],"operationId":"getLocationListFromDataOwner","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"date_from","in":"query","required":false,"schema":{"type":"string"}},{"name":"date_to","in":"query","required":false,"schema":{"type":"string"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseLocationList"}}}}}}},"/ocpi/sender/2.2/locations/page/{uid}":{"get":{"tags":["locations-controller"],"operationId":"getLocationPageFromDataOwner","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"uid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseLocationList"}}}}}}},"/ocpi/sender/2.2/locations/{locationID}":{"get":{"tags":["locations-controller"],"operationId":"getLocationObjectFromDataOwner","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"locationID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseLocation"}}}}}}},"/ocpi/sender/2.2/locations/{locationID}/{evseUID}":{"get":{"tags":["locations-controller"],"operationId":"getEvseObjectFromDataOwner","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"locationID","in":"path","required":true,"schema":{"type":"string"}},{"name":"evseUID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseEvse"}}}}}}},"/ocpi/sender/2.2/locations/{locationID}/{evseUID}/{connectorID}":{"get":{"tags":["locations-controller"],"operationId":"getConnectorObjectFromDataOwner","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"locationID","in":"path","required":true,"schema":{"type":"string"}},{"name":"evseUID","in":"path","required":true,"schema":{"type":"string"}},{"name":"connectorID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseConnector"}}}}}}},"/ocpi/receiver/2.2/locations/{countryCode}/{partyID}/{locationID}":{"get":{"tags":["locations-controller"],"operationId":"getClientOwnedLocation","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}},{"name":"locationID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseLocation"}}}}}},"put":{"tags":["locations-controller"],"operationId":"putClientOwnedLocation","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}},{"name":"locationID","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Location"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}},"patch":{"tags":["locations-controller"],"operationId":"patchClientOwnedLocation","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}},{"name":"locationID","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}}},"/ocpi/receiver/2.2/locations/{countryCode}/{partyID}/{locationID}/{evseUID}":{"get":{"tags":["locations-controller"],"operationId":"getClientOwnedEvse","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}},{"name":"locationID","in":"path","required":true,"schema":{"type":"string"}},{"name":"evseUID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseEvse"}}}}}},"put":{"tags":["locations-controller"],"operationId":"putClientOwnedEvse","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}},{"name":"locationID","in":"path","required":true,"schema":{"type":"string"}},{"name":"evseUID","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Evse"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}},"patch":{"tags":["locations-controller"],"operationId":"patchClientOwnedEvse","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}},{"name":"locationID","in":"path","required":true,"schema":{"type":"string"}},{"name":"evseUID","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}}},"/ocpi/receiver/2.2/locations/{countryCode}/{partyID}/{locationID}/{evseUID}/{connectorID}":{"get":{"tags":["locations-controller"],"operationId":"getClientOwnedConnector","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}},{"name":"locationID","in":"path","required":true,"schema":{"type":"string"}},{"name":"evseUID","in":"path","required":true,"schema":{"type":"string"}},{"name":"connectorID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseConnector"}}}}}},"put":{"tags":["locations-controller"],"operationId":"putClientOwnedConnector","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}},{"name":"locationID","in":"path","required":true,"schema":{"type":"string"}},{"name":"evseUID","in":"path","required":true,"schema":{"type":"string"}},{"name":"connectorID","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Connector"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}},"patch":{"tags":["locations-controller"],"operationId":"patchClientOwnedConnector","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}},{"name":"locationID","in":"path","required":true,"schema":{"type":"string"}},{"name":"evseUID","in":"path","required":true,"schema":{"type":"string"}},{"name":"connectorID","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}}},"/ocpi/receiver/2.2/ocnrules/whitelist":{"put":{"tags":["ocn-rules-controller"],"operationId":"updateWhitelist","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OcnRulesListParty"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}},"post":{"tags":["ocn-rules-controller"],"operationId":"appendToWhitelist","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OcnRulesListParty"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}}},"/ocpi/receiver/2.2/ocnrules/blacklist":{"put":{"tags":["ocn-rules-controller"],"operationId":"updateBlacklist","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OcnRulesListParty"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}},"post":{"tags":["ocn-rules-controller"],"operationId":"appendToBlacklist","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OcnRulesListParty"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}}},"/ocpi/receiver/2.2/ocnrules/signatures":{"put":{"tags":["ocn-rules-controller"],"operationId":"updateSignatures","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}}},"/ocpi/receiver/2.2/ocnrules/block-all":{"put":{"tags":["ocn-rules-controller"],"operationId":"blockAll","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}}},"/ocpi/receiver/2.2/ocnrules/whitelist/{countryCode}/{partyID}":{"delete":{"tags":["ocn-rules-controller"],"operationId":"deleteFromWhitelist","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}}},"/ocpi/receiver/2.2/ocnrules/blacklist/{countryCode}/{partyID}":{"delete":{"tags":["ocn-rules-controller"],"operationId":"deleteFromBlacklist","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}}},"/ocpi/receiver/2.2/ocnrules":{"get":{"tags":["ocn-rules-controller"],"operationId":"getRules","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseOcnRules"}}}}}}},"/ocpi/sender/2.2/sessions":{"get":{"tags":["sessions-controller"],"operationId":"getSessionsFromDataOwner","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"date_from","in":"query","required":false,"schema":{"type":"string"}},{"name":"date_to","in":"query","required":false,"schema":{"type":"string"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseSessionList"}}}}}}},"/ocpi/sender/2.2/sessions/page/{uid}":{"get":{"tags":["sessions-controller"],"operationId":"getSessionsPageFromDataOwner","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"uid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseSessionList"}}}}}}},"/ocpi/sender/2.2/sessions/{sessionID}/charging_preferences":{"put":{"tags":["sessions-controller"],"operationId":"putChargingPreferences","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"sessionID","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChargingPreferences"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseChargingPreferencesResponse"}}}}}}},"/ocpi/receiver/2.2/sessions/{countryCode}/{partyID}/{sessionID}":{"get":{"tags":["sessions-controller"],"operationId":"getClientOwnedSession","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}},{"name":"sessionID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseSession"}}}}}},"put":{"tags":["sessions-controller"],"operationId":"putClientOwnedSession","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}},{"name":"sessionID","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}},"patch":{"tags":["sessions-controller"],"operationId":"patchClientOwnedSession","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}},{"name":"sessionID","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}}},"/ocpi/receiver/2.2/tariffs/{countryCode}/{partyID}/{tariffID}":{"get":{"tags":["tariffs-controller"],"operationId":"getClientOwnedTariff","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}},{"name":"tariffID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseTariff"}}}}}},"put":{"tags":["tariffs-controller"],"operationId":"putClientOwnedTariff","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}},{"name":"tariffID","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tariff"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}},"delete":{"tags":["tariffs-controller"],"operationId":"deleteClientOwnedTariff","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}},{"name":"tariffID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}}},"/ocpi/sender/2.2/tariffs":{"get":{"tags":["tariffs-controller"],"operationId":"getTariffsFromDataOwner","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"date_from","in":"query","required":false,"schema":{"type":"string"}},{"name":"date_to","in":"query","required":false,"schema":{"type":"string"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseTariffList"}}}}}}},"/ocpi/sender/2.2/tariffs/page/{uid}":{"get":{"tags":["tariffs-controller"],"operationId":"getTariffsPageFromDataOwner","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"uid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseTariffList"}}}}}}},"/ocpi/sender/2.2/tokens":{"get":{"tags":["tokens-controller"],"operationId":"getTokensFromDataOwner","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"date_from","in":"query","required":false,"schema":{"type":"string"}},{"name":"date_to","in":"query","required":false,"schema":{"type":"string"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseTokenList"}}}}}}},"/ocpi/sender/2.2/tokens/page/{uid}":{"get":{"tags":["tokens-controller"],"operationId":"getTokensPageFromDataOwner","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"uid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseTokenList"}}}}}}},"/ocpi/sender/2.2/tokens/{tokenUID}/authorize":{"post":{"tags":["tokens-controller"],"operationId":"postRealTimeTokenAuthorization","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"tokenUID","in":"path","required":true,"schema":{"type":"string"}},{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["AD_HOC_USER","APP_USER","OTHER","RFID"],"default":"RFID"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationReferences"}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseAuthorizationInfo"}}}}}}},"/ocpi/receiver/2.2/tokens/{countryCode}/{partyID}/{tokenUID}":{"get":{"tags":["tokens-controller"],"operationId":"getClientOwnedToken","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}},{"name":"tokenUID","in":"path","required":true,"schema":{"type":"string"}},{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["AD_HOC_USER","APP_USER","OTHER","RFID"],"default":"RFID"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseToken"}}}}}},"put":{"tags":["tokens-controller"],"operationId":"putClientOwnedToken","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}},{"name":"tokenUID","in":"path","required":true,"schema":{"type":"string"}},{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["AD_HOC_USER","APP_USER","OTHER","RFID"],"default":"RFID"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Token"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}},"patch":{"tags":["tokens-controller"],"operationId":"patchClientOwnedToken","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}},{"name":"tokenUID","in":"path","required":true,"schema":{"type":"string"}},{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["AD_HOC_USER","APP_USER","OTHER","RFID"],"default":"RFID"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}}}},"components":{"schemas":{"BasicRole":{"required":["country_code","party_id"],"type":"object","properties":{"party_id":{"type":"string"},"country_code":{"type":"string"}}},"OcpiResponseObject":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"type":"object"},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"Endpoint":{"required":["identifier","role","url"],"type":"object","properties":{"identifier":{"type":"string"},"role":{"type":"string","enum":["SENDER","RECEIVER"]},"url":{"type":"string"}}},"OcpiResponseVersionDetail":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"$ref":"#/components/schemas/VersionDetail"},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"VersionDetail":{"required":["endpoints","version"],"type":"object","properties":{"version":{"type":"string"},"endpoints":{"type":"array","items":{"$ref":"#/components/schemas/Endpoint"}}}},"OcpiResponseListVersion":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Version"}},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"Version":{"required":["url","version"],"type":"object","properties":{"version":{"type":"string"},"url":{"type":"string"}}},"CDR":{"required":["auth_method","cdr_location","cdr_token","charging_periods","country_code","currency","end_date_time","id","last_updated","party_id","start_date_time","total_cost","total_energy","total_time"],"type":"object","properties":{"country_code":{"type":"string"},"party_id":{"type":"string"},"id":{"type":"string"},"start_date_time":{"type":"string"},"end_date_time":{"type":"string"},"session_id":{"type":"string"},"cdr_token":{"$ref":"#/components/schemas/CdrToken"},"auth_method":{"type":"string","enum":["AUTH_REQUEST","COMMAND","WHITELIST"]},"authorization_reference":{"type":"string"},"cdr_location":{"$ref":"#/components/schemas/CdrLocation"},"meter_id":{"type":"string"},"currency":{"type":"string"},"tariffs":{"type":"array","items":{"$ref":"#/components/schemas/Tariff"}},"charging_periods":{"type":"array","items":{"$ref":"#/components/schemas/ChargingPeriod"}},"signed_data":{"$ref":"#/components/schemas/SignedData"},"total_cost":{"$ref":"#/components/schemas/Price"},"total_fixed_cost":{"$ref":"#/components/schemas/Price"},"total_energy":{"type":"number","format":"float"},"total_energy_cost":{"$ref":"#/components/schemas/Price"},"total_time":{"type":"number","format":"float"},"total_time_cost":{"$ref":"#/components/schemas/Price"},"total_parking_time":{"type":"number","format":"float"},"total_parking_cost":{"$ref":"#/components/schemas/Price"},"total_reservation_cost":{"$ref":"#/components/schemas/Price"},"remark":{"type":"string"},"invoice_reference_id":{"type":"string"},"credit":{"type":"boolean"},"credit_reference_id":{"type":"string"},"last_updated":{"type":"string"}}},"CdrDimension":{"required":["type","volume"],"type":"object","properties":{"type":{"type":"string","enum":["CURRENT","ENERGY","ENERGY_EXPORT","ENERGY_IMPORT","MAX_CURRENT","MIN_CURRENT","MAX_POWER","MIN_POWER","PARKING_TIME","POWER","RESERVATION_TIME","STATE_OF_CHARGE","TIME"]},"volume":{"type":"number","format":"float"}}},"CdrLocation":{"required":["address","city","connector_format","connector_id","connector_power_type","connector_standard","coordinates","country","evse_id","evse_uid","id","postal_code"],"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"address":{"type":"string"},"city":{"type":"string"},"postal_code":{"type":"string"},"country":{"type":"string"},"coordinates":{"$ref":"#/components/schemas/GeoLocation"},"evse_uid":{"type":"string"},"evse_id":{"type":"string"},"connector_id":{"type":"string"},"connector_standard":{"type":"string","enum":["CHADEMO","DOMESTIC_A","DOMESTIC_B","DOMESTIC_C","DOMESTIC_D","DOMESTIC_E","DOMESTIC_F","DOMESTIC_G","DOMESTIC_H","DOMESTIC_I","DOMESTIC_J","DOMESTIC_K","DOMESTIC_L","IEC_60309_2_single_16","IEC_60309_2_three_16","IEC_60309_2_three_32","IEC_60309_2_three_64","IEC_62196_T1","IEC_62196_T1_COMBO","IEC_62196_T2","IEC_62196_T2_COMBO","IEC_62196_T3A","IEC_62196_T3C","PANTOGRAPH_BOTTOM_UP","PANTOGRAPH_TOP_DOWN","TESLA_R","TESLA_S"]},"connector_format":{"type":"string","enum":["SOCKET","CABLE"]},"connector_power_type":{"type":"string","enum":["AC_1_PHASE","AC_3_PHASE","DC"]}}},"CdrToken":{"required":["contract_id","type","uid"],"type":"object","properties":{"uid":{"type":"string"},"type":{"type":"string","enum":["AD_HOC_USER","APP_USER","OTHER","RFID"]},"contract_id":{"type":"string"}}},"ChargingPeriod":{"required":["dimensions","start_date_time"],"type":"object","properties":{"start_date_time":{"type":"string"},"dimensions":{"type":"array","items":{"$ref":"#/components/schemas/CdrDimension"}},"tariff_id":{"type":"string"}}},"DisplayText":{"required":["language","text"],"type":"object","properties":{"language":{"type":"string"},"text":{"type":"string"}}},"EnergyMix":{"required":["is_green_energy"],"type":"object","properties":{"is_green_energy":{"type":"boolean"},"energy_sources":{"type":"array","items":{"$ref":"#/components/schemas/EnergySource"}},"environ_impact":{"type":"array","items":{"$ref":"#/components/schemas/EnvironmentalImpact"}},"supplier_name":{"type":"string"},"energy_product_name":{"type":"string"}}},"EnergySource":{"required":["percentage","source"],"type":"object","properties":{"source":{"type":"string","enum":["NUCLEAR","GENERAL_FOSSIL","COAL","GAS","GENERAL_GREEN","SOLAR","WIND","WATER"]},"percentage":{"type":"number","format":"float"}}},"EnvironmentalImpact":{"required":["amount","category"],"type":"object","properties":{"category":{"type":"string","enum":["NUCLEAR_WASTE","CARBON_DIOXIDE"]},"amount":{"type":"number","format":"float"}}},"GeoLocation":{"required":["latitude","longitude"],"type":"object","properties":{"latitude":{"type":"string"},"longitude":{"type":"string"}}},"OcpiResponseCDRList":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/CDR"}},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"Price":{"required":["excl_vat","incl_vat"],"type":"object","properties":{"excl_vat":{"type":"number","format":"float"},"incl_vat":{"type":"number","format":"float"}}},"PriceComponent":{"required":["price","step_size","type"],"type":"object","properties":{"type":{"type":"string","enum":["ENERGY","FLAT","PARKING_TIME","TIME"]},"price":{"type":"number","format":"float"},"vat":{"type":"number","format":"float"},"step_size":{"type":"integer","format":"int32"}}},"SignedData":{"required":["encoding_method","signed_values","url"],"type":"object","properties":{"encoding_method":{"type":"string"},"encoding_method_version":{"type":"integer","format":"int32"},"public_key":{"type":"string"},"signed_values":{"type":"array","items":{"$ref":"#/components/schemas/SignedValue"}},"url":{"type":"string"}}},"SignedValue":{"required":["nature","plain_data","signed_data"],"type":"object","properties":{"nature":{"type":"string"},"plain_data":{"type":"string"},"signed_data":{"type":"string"}}},"Tariff":{"required":["country_code","currency","elements","id","last_updated","party_id"],"type":"object","properties":{"country_code":{"type":"string"},"party_id":{"type":"string"},"id":{"type":"string"},"currency":{"type":"string"},"type":{"type":"string","enum":["AD_HOC_PAYMENT","PROFILE_CHEAP","PROFILE_FAST","PROFILE_GREEN","REGULAR"]},"tariff_alt_text":{"type":"array","items":{"$ref":"#/components/schemas/DisplayText"}},"tariff_alt_url":{"type":"string"},"min_price":{"$ref":"#/components/schemas/Price"},"max_price":{"$ref":"#/components/schemas/Price"},"elements":{"type":"array","items":{"$ref":"#/components/schemas/TariffElement"}},"start_date_time":{"type":"string"},"end_date_time":{"type":"string"},"energy_mix":{"$ref":"#/components/schemas/EnergyMix"},"last_updated":{"type":"string"}}},"TariffElement":{"required":["price_components"],"type":"object","properties":{"price_components":{"type":"array","items":{"$ref":"#/components/schemas/PriceComponent"}},"restrictions":{"$ref":"#/components/schemas/TariffRestrictions"}}},"TariffRestrictions":{"type":"object","properties":{"start_time":{"type":"string"},"end_time":{"type":"string"},"start_date":{"type":"string"},"end_date":{"type":"string"},"min_kwh":{"type":"number","format":"float"},"max_kwh":{"type":"number","format":"float"},"min_current":{"type":"number","format":"float"},"max_current":{"type":"number","format":"float"},"min_power":{"type":"number","format":"float"},"max_power":{"type":"number","format":"float"},"min_duration":{"type":"integer","format":"int32"},"max_duration":{"type":"integer","format":"int32"},"day_of_week":{"type":"array","items":{"type":"string","enum":["MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY","SUNDAY"]}},"reservation":{"type":"string","enum":["RESERVATION","RESERVATION_EXPIRES"]}}},"OcpiResponseCDR":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"$ref":"#/components/schemas/CDR"},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"OcpiResponseUnit":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"$ref":"#/components/schemas/Unit"},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"Unit":{"type":"object"},"ActiveChargingProfile":{"required":["charging_profile","start_date_time"],"type":"object","properties":{"start_date_time":{"type":"string"},"charging_profile":{"$ref":"#/components/schemas/ChargingProfile"}}},"ChargingProfile":{"required":["charging_rate_unit"],"type":"object","properties":{"start_date_time":{"type":"string"},"duration":{"type":"integer","format":"int32"},"charging_rate_unit":{"type":"string","enum":["W","A"]},"min_charging_rate":{"type":"number","format":"float"},"charging_profile_period":{"type":"array","items":{"$ref":"#/components/schemas/ChargingProfilePeriod"}}}},"ChargingProfilePeriod":{"required":["limit","start_period"],"type":"object","properties":{"start_period":{"type":"integer","format":"int32"},"limit":{"type":"number","format":"float"}}},"GenericChargingProfileResult":{"required":["result"],"type":"object","properties":{"result":{"type":"string","enum":["ACCEPTED","REJECTED","UNKNOWN"]},"profile":{"$ref":"#/components/schemas/ActiveChargingProfile"}}},"ChargingProfileResponse":{"required":["result","timeout"],"type":"object","properties":{"result":{"type":"string","enum":["ACCEPTED","NOT_SUPPORTED","REJECTED","TOO_OFTEN","UNKNOWN_SESSION"]},"timeout":{"type":"integer","format":"int32"}}},"OcpiResponseChargingProfileResponse":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"$ref":"#/components/schemas/ChargingProfileResponse"},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"SetChargingProfile":{"required":["charging_profile","response_url"],"type":"object","properties":{"charging_profile":{"$ref":"#/components/schemas/ChargingProfile"},"response_url":{"type":"string"}}},"CommandResult":{"required":["result"],"type":"object","properties":{"result":{"type":"string","enum":["ACCEPTED","CANCELED_RESERVATION","EVSE_OCCUPIED","EVSE_INOPERATIVE","FAILED","NOT_SUPPORTED","REJECTED","TIMEOUT","UNKNOWN_RESERVATION"]},"message":{"$ref":"#/components/schemas/DisplayText"}}},"CancelReservation":{"required":["reservation_id","response_url"],"type":"object","properties":{"response_url":{"type":"string"},"reservation_id":{"type":"string"}}},"CommandResponse":{"required":["result","timeout"],"type":"object","properties":{"result":{"type":"string","enum":["NOT_SUPPORTED","REJECTED","ACCEPTED","UNKNOWN_SESSION"]},"timeout":{"type":"integer","format":"int32"},"message":{"$ref":"#/components/schemas/DisplayText"}}},"OcpiResponseCommandResponse":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"$ref":"#/components/schemas/CommandResponse"},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"EnergyContract":{"required":["supplier_name"],"type":"object","properties":{"supplier_name":{"type":"string"},"contract_id":{"type":"string"}}},"ReserveNow":{"required":["expiry_date","location_id","reservation_id","response_url","token"],"type":"object","properties":{"response_url":{"type":"string"},"token":{"$ref":"#/components/schemas/Token"},"expiry_date":{"type":"string"},"reservation_id":{"type":"string"},"location_id":{"type":"string"},"evse_uid":{"type":"string"},"authorization_reference":{"type":"string"}}},"Token":{"required":["contract_id","country_code","issuer","last_updated","party_id","type","uid","valid","whitelist"],"type":"object","properties":{"country_code":{"type":"string"},"party_id":{"type":"string"},"uid":{"type":"string"},"type":{"type":"string","enum":["AD_HOC_USER","APP_USER","OTHER","RFID"]},"contract_id":{"type":"string"},"visual_number":{"type":"string"},"issuer":{"type":"string"},"group_id":{"type":"string"},"valid":{"type":"boolean"},"whitelist":{"type":"string","enum":["ALWAYS","ALLOWED","ALLOWED_OFFLINE","NEVER"]},"language":{"type":"string"},"default_profile_type":{"type":"string","enum":["CHEAP","FAST","GREEN","REGULAR"]},"energy_contract":{"$ref":"#/components/schemas/EnergyContract"},"last_updated":{"type":"string"}}},"StartSession":{"required":["location_id","response_url","token"],"type":"object","properties":{"response_url":{"type":"string"},"token":{"$ref":"#/components/schemas/Token"},"location_id":{"type":"string"},"evse_uid":{"type":"string"},"authorization_reference":{"type":"string"}}},"StopSession":{"required":["response_url","session_id"],"type":"object","properties":{"response_url":{"type":"string"},"session_id":{"type":"string"}}},"UnlockConnector":{"required":["connector_id","evse_uid","location_id","response_url"],"type":"object","properties":{"response_url":{"type":"string"},"location_id":{"type":"string"},"evse_uid":{"type":"string"},"connector_id":{"type":"string"}}},"BusinessDetails":{"required":["name"],"type":"object","properties":{"name":{"type":"string"},"website":{"type":"string"},"logo":{"$ref":"#/components/schemas/Image"}}},"Credentials":{"required":["roles","token","url"],"type":"object","properties":{"token":{"type":"string"},"url":{"type":"string"},"roles":{"type":"array","items":{"$ref":"#/components/schemas/CredentialsRole"}}}},"CredentialsRole":{"required":["business_details","country_code","party_id","role"],"type":"object","properties":{"role":{"type":"string","enum":["CPO","EMSP","HUB","NAP","NSP","OTHER","SCSP"]},"business_details":{"$ref":"#/components/schemas/BusinessDetails"},"party_id":{"type":"string"},"country_code":{"type":"string"}}},"Image":{"required":["category","type","url"],"type":"object","properties":{"url":{"type":"string"},"thumbnail":{"type":"string"},"category":{"type":"string","enum":["CHARGER","ENTRANCE","LOCATION","NETWORK","OPERATOR","OTHER","OWNER"]},"type":{"type":"string"},"width":{"type":"integer","format":"int32"},"height":{"type":"integer","format":"int32"}}},"OcpiResponseCredentials":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"$ref":"#/components/schemas/Credentials"},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"OcpiResponse":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"type":"object"},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"AdditionalGeoLocation":{"required":["latitude","longitude"],"type":"object","properties":{"latitude":{"type":"string"},"longitude":{"type":"string"},"name":{"$ref":"#/components/schemas/DisplayText"}}},"Connector":{"required":["format","id","last_updated","max_amperage","max_voltage","power_type","standard"],"type":"object","properties":{"id":{"type":"string"},"standard":{"type":"string","enum":["CHADEMO","DOMESTIC_A","DOMESTIC_B","DOMESTIC_C","DOMESTIC_D","DOMESTIC_E","DOMESTIC_F","DOMESTIC_G","DOMESTIC_H","DOMESTIC_I","DOMESTIC_J","DOMESTIC_K","DOMESTIC_L","IEC_60309_2_single_16","IEC_60309_2_three_16","IEC_60309_2_three_32","IEC_60309_2_three_64","IEC_62196_T1","IEC_62196_T1_COMBO","IEC_62196_T2","IEC_62196_T2_COMBO","IEC_62196_T3A","IEC_62196_T3C","PANTOGRAPH_BOTTOM_UP","PANTOGRAPH_TOP_DOWN","TESLA_R","TESLA_S"]},"format":{"type":"string","enum":["SOCKET","CABLE"]},"power_type":{"type":"string","enum":["AC_1_PHASE","AC_3_PHASE","DC"]},"max_voltage":{"type":"integer","format":"int32"},"max_amperage":{"type":"integer","format":"int32"},"max_electric_power":{"type":"integer","format":"int32"},"tariff_ids":{"type":"array","items":{"type":"string"}},"terms_and_conditions":{"type":"string"},"last_updated":{"type":"string"}}},"Evse":{"required":["connectors","last_updated","status","uid"],"type":"object","properties":{"uid":{"type":"string"},"evse_id":{"type":"string"},"status":{"type":"string","enum":["AVAILABLE","BLOCKED","CHARGING","INOPERATIVE","OUTOFORDER","PLANNED","REMOVED","RESERVED","UNKNOWN"]},"status_schedule":{"type":"array","items":{"$ref":"#/components/schemas/StatusSchedule"}},"capabilities":{"type":"array","items":{"type":"string","enum":["CHARGING_PROFILE_CAPABLE","CHARGING_PREFERENCES_CAPABLE","CHIP_CARD_SUPPORT","CONTACTLESS_CARD_SUPPORT","CREDIT_CARD_PAYABLE","DEBIT_CARD_PAYABLE","PED_TERMINAL","REMOTE_START_STOP_CAPABLE","RESERVABLE","RFID_READER","TOKEN_GROUP_CAPABLE","UNLOCK_CAPABLE"]}},"connectors":{"type":"array","items":{"$ref":"#/components/schemas/Connector"}},"floor_level":{"type":"string"},"coordinates":{"$ref":"#/components/schemas/GeoLocation"},"physical_reference":{"type":"string"},"directions":{"type":"array","items":{"$ref":"#/components/schemas/DisplayText"}},"parking_restrictions":{"type":"array","items":{"type":"string","enum":["EV_ONLY","PLUGGED","DISABLED","CUSTOMERS","MOTORCYCLES"]}},"images":{"type":"array","items":{"$ref":"#/components/schemas/Image"}},"last_updated":{"type":"string"}}},"ExceptionalPeriod":{"required":["period_begin","period_end"],"type":"object","properties":{"period_begin":{"type":"string"},"period_end":{"type":"string"}}},"Hours":{"required":["twentyfourseven"],"type":"object","properties":{"twentyfourseven":{"type":"boolean"},"regular_hours":{"$ref":"#/components/schemas/RegularHours"},"exceptional_openings":{"$ref":"#/components/schemas/ExceptionalPeriod"},"exceptional_closings":{"$ref":"#/components/schemas/ExceptionalPeriod"}}},"Location":{"required":["address","city","coordinates","country","country_code","id","last_updated","party_id","publish"],"type":"object","properties":{"country_code":{"type":"string"},"party_id":{"type":"string"},"id":{"type":"string"},"publish":{"type":"boolean"},"publish_allowed_to":{"type":"array","items":{"$ref":"#/components/schemas/PublishTokenType"}},"name":{"type":"string"},"address":{"type":"string"},"city":{"type":"string"},"postal_code":{"type":"string"},"state":{"type":"string"},"country":{"type":"string"},"coordinates":{"$ref":"#/components/schemas/GeoLocation"},"related_locations":{"type":"array","items":{"$ref":"#/components/schemas/AdditionalGeoLocation"}},"parking_type":{"type":"string","enum":["ALONG_MOTORWAY","PARKING_GARAGE","PARKING_LOT","ON_DRIVEWAY","ON_STREET","UNDERGROUND_GARAGE"]},"evses":{"type":"array","items":{"$ref":"#/components/schemas/Evse"}},"directions":{"type":"array","items":{"$ref":"#/components/schemas/DisplayText"}},"operator":{"$ref":"#/components/schemas/BusinessDetails"},"suboperator":{"$ref":"#/components/schemas/BusinessDetails"},"owner":{"$ref":"#/components/schemas/BusinessDetails"},"facilities":{"type":"array","items":{"type":"string","enum":["HOTEL","RESTAURANT","CAFE","MALL","SUPERMARKET","SPORT","RECREATION_AREA","NATURE","MUSEUM","BIKE_SHARING","BUS_STOP","TAXI_STAND","TRAM_STOP","METRO_STATION","TRAIN_STATION","AIRPORT","PARKING_LOT","CARPOOL_PARKING","FUEL_STATION","WIFI"]}},"time_zone":{"type":"string"},"opening_times":{"$ref":"#/components/schemas/Hours"},"charging_when_closed":{"type":"string"},"images":{"type":"array","items":{"$ref":"#/components/schemas/Image"}},"energy_mix":{"$ref":"#/components/schemas/EnergyMix"},"last_updated":{"type":"string"}}},"OcpiResponseLocationList":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Location"}},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"PublishTokenType":{"type":"object","properties":{"uid":{"type":"string"},"type":{"type":"string","enum":["AD_HOC_USER","APP_USER","OTHER","RFID"]},"visual_number":{"type":"string"},"issuer":{"type":"string"},"group_id ":{"type":"string"}}},"RegularHours":{"required":["period_begin","period_end","weekday"],"type":"object","properties":{"weekday":{"type":"integer","format":"int32"},"period_begin":{"type":"string"},"period_end":{"type":"string"}}},"StatusSchedule":{"required":["period_begin","status"],"type":"object","properties":{"period_begin":{"type":"string"},"period_end":{"type":"string"},"status":{"type":"string","enum":["AVAILABLE","BLOCKED","CHARGING","INOPERATIVE","OUTOFORDER","PLANNED","REMOVED","RESERVED","UNKNOWN"]}}},"OcpiResponseLocation":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"$ref":"#/components/schemas/Location"},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"OcpiResponseEvse":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"$ref":"#/components/schemas/Evse"},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"OcpiResponseConnector":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"$ref":"#/components/schemas/Connector"},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"OcnRulesListParty":{"required":["country_code","modules","party_id"],"type":"object","properties":{"party_id":{"type":"string"},"country_code":{"type":"string"},"modules":{"type":"array","items":{"type":"string"}}}},"OcnRules":{"required":["blacklist","signatures","whitelist"],"type":"object","properties":{"signatures":{"type":"boolean"},"whitelist":{"$ref":"#/components/schemas/OcnRulesList"},"blacklist":{"$ref":"#/components/schemas/OcnRulesList"}}},"OcnRulesList":{"required":["active","list"],"type":"object","properties":{"active":{"type":"boolean"},"list":{"type":"array","items":{"$ref":"#/components/schemas/OcnRulesListParty"}}}},"OcpiResponseOcnRules":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"$ref":"#/components/schemas/OcnRules"},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"OcpiResponseSessionList":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Session"}},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"Session":{"required":["auth_method","cdr_token","connector_id","country_code","currency","evse_uid","id","kwh","last_updated","location_id","party_id","start_date_time","status"],"type":"object","properties":{"country_code":{"type":"string"},"party_id":{"type":"string"},"id":{"type":"string"},"start_date_time":{"type":"string"},"end_date_time":{"type":"string"},"kwh":{"type":"number","format":"float"},"cdr_token":{"$ref":"#/components/schemas/CdrToken"},"auth_method":{"type":"string","enum":["AUTH_REQUEST","COMMAND","WHITELIST"]},"authorization_reference":{"type":"string"},"location_id":{"type":"string"},"evse_uid":{"type":"string"},"connector_id":{"type":"string"},"meter_id":{"type":"string"},"currency":{"type":"string"},"charging_periods":{"type":"array","items":{"$ref":"#/components/schemas/ChargingPeriod"}},"total_cost":{"$ref":"#/components/schemas/Price"},"status":{"type":"string","enum":["ACTIVE","COMPLETED","INVALID","PENDING","RESERVATION"]},"last_updated":{"type":"string"}}},"ChargingPreferences":{"required":["profile_type"],"type":"object","properties":{"profile_type":{"type":"string","enum":["CHEAP","FAST","GREEN","REGULAR"]},"departure_time":{"type":"string"},"energy_need":{"type":"number","format":"float"},"discharge_allowed":{"type":"boolean"}}},"OcpiResponseChargingPreferencesResponse":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"type":"string","enum":["ACCEPTED","DEPARTURE_REQUIRED","ENERGY_NEED_REQUIRED","NOT_POSSIBLE","PROFILE_TYPE_NOT_SUPPORTED"]},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"OcpiResponseSession":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"$ref":"#/components/schemas/Session"},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"OcpiResponseTariffList":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Tariff"}},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"OcpiResponseTariff":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"$ref":"#/components/schemas/Tariff"},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"OcpiResponseTokenList":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Token"}},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"LocationReferences":{"required":["location_id"],"type":"object","properties":{"location_id":{"type":"string"},"evse_uids":{"type":"array","items":{"type":"string"}},"connector_ids":{"type":"array","items":{"type":"string"}}}},"AuthorizationInfo":{"required":["allowed","token"],"type":"object","properties":{"allowed":{"type":"string","enum":["ALLOWED","BLOCKED","EXPIRED","NO_CREDIT","NOT_ALLOWED"]},"token":{"$ref":"#/components/schemas/Token"},"location":{"$ref":"#/components/schemas/LocationReferences"},"authorization_reference":{"type":"string"},"info":{"$ref":"#/components/schemas/DisplayText"}}},"OcpiResponseAuthorizationInfo":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"$ref":"#/components/schemas/AuthorizationInfo"},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"OcpiResponseToken":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"$ref":"#/components/schemas/Token"},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}}}}} \ No newline at end of file +{"openapi":"3.0.1","info":{"title":"OpenAPI definition","version":"v0"},"servers":[{"url":"http://localhost:8080","description":"Generated server url"}],"paths":{"/admin/connection-status/{countryCode}/{partyID}":{"get":{"tags":["admin-controller"],"operationId":"getConnectionStatus","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/admin/generate-registration-token":{"post":{"tags":["admin-controller"],"operationId":"generateRegistrationToken","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BasicRole"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/health":{"get":{"tags":["health-controller"],"operationId":"getHealth","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/ocn/message":{"post":{"tags":["message-controller"],"operationId":"postMessage","parameters":[{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseObject"}}}}}}},"/ocn/registry/node-info":{"get":{"tags":["registry-controller"],"operationId":"getMyNodeInfo","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}}}}}},"/ocn/registry/node/{countryCode}/{partyID}":{"get":{"tags":["registry-controller"],"operationId":"getNodeOf","parameters":[{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/ocpi/2.2":{"get":{"tags":["versions-controller"],"operationId":"getVersionsDetail","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseVersionDetail"}}}}}}},"/ocpi/versions":{"get":{"tags":["versions-controller"],"operationId":"getVersions","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseListVersion"}}}}}}},"/ocpi/sender/2.2/cdrs":{"get":{"tags":["cdrs-controller"],"operationId":"getCdrsFromDataOwner","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"date_from","in":"query","required":false,"schema":{"type":"string"}},{"name":"date_to","in":"query","required":false,"schema":{"type":"string"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseCDRList"}}}}}}},"/ocpi/sender/2.2/cdrs/page/{uid}":{"get":{"tags":["cdrs-controller"],"operationId":"getCdrPageFromDataOwner","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"uid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseCDRList"}}}}}}},"/ocpi/receiver/2.2/cdrs/{cdrID}":{"get":{"tags":["cdrs-controller"],"operationId":"getClientOwnedCdr","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"cdrID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseCDR"}}}}}}},"/ocpi/receiver/2.2/cdrs":{"post":{"tags":["cdrs-controller"],"operationId":"postClientOwnedCdr","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CDR"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}}},"/ocpi/2.2/sender/chargingprofiles/result/{uid}":{"post":{"tags":["charging-profiles-controller"],"operationId":"postGenericChargingProfileResult","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"uid","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenericChargingProfileResult"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}}},"/ocpi/2.2/sender/chargingprofiles/{sessionId}":{"put":{"tags":["charging-profiles-controller"],"operationId":"putSenderChargingProfile","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"sessionId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActiveChargingProfile"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}}},"/ocpi/2.2/receiver/chargingprofiles/{sessionId}":{"get":{"tags":["charging-profiles-controller"],"operationId":"getReceiverChargingProfile","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"sessionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"duration","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"response_url","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseChargingProfileResponse"}}}}}},"put":{"tags":["charging-profiles-controller"],"operationId":"putReceiverChargingProfile","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"sessionId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetChargingProfile"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseChargingProfileResponse"}}}}}},"delete":{"tags":["charging-profiles-controller"],"operationId":"deleteReceiverChargingProfile","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"sessionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"response_url","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseChargingProfileResponse"}}}}}}},"/ocpi/sender/2.2/commands/{command}/{uid}":{"post":{"tags":["commands-controller"],"operationId":"postAsyncResponse","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"command","in":"path","required":true,"schema":{"type":"string","enum":["CANCEL_RESERVATION","RESERVE_NOW","START_SESSION","STOP_SESSION","UNLOCK_CONNECTOR"]}},{"name":"uid","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommandResult"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}}},"/ocpi/receiver/2.2/commands/CANCEL_RESERVATION":{"post":{"tags":["commands-controller"],"operationId":"postCancelReservation","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelReservation"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseCommandResponse"}}}}}}},"/ocpi/receiver/2.2/commands/RESERVE_NOW":{"post":{"tags":["commands-controller"],"operationId":"postReserveNow","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReserveNow"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseCommandResponse"}}}}}}},"/ocpi/receiver/2.2/commands/START_SESSION":{"post":{"tags":["commands-controller"],"operationId":"postStartSession","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartSession"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseCommandResponse"}}}}}}},"/ocpi/receiver/2.2/commands/STOP_SESSION":{"post":{"tags":["commands-controller"],"operationId":"postStopSession","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StopSession"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseCommandResponse"}}}}}}},"/ocpi/receiver/2.2/commands/UNLOCK_CONNECTOR":{"post":{"tags":["commands-controller"],"operationId":"postUnlockConnector","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnlockConnector"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseCommandResponse"}}}}}}},"/ocpi/2.2/credentials":{"get":{"tags":["credentials-controller"],"operationId":"getCredentials","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseCredentials"}}}}}},"put":{"tags":["credentials-controller"],"operationId":"putCredentials","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Credentials"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseCredentials"}}}}}},"post":{"tags":["credentials-controller"],"operationId":"postCredentials","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Credentials"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseCredentials"}}}}}},"delete":{"tags":["credentials-controller"],"operationId":"deleteCredentials","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponse"}}}}}}},"/ocpi/sender/2.2/locations":{"get":{"tags":["locations-controller"],"operationId":"getLocationListFromDataOwner","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"date_from","in":"query","required":false,"schema":{"type":"string"}},{"name":"date_to","in":"query","required":false,"schema":{"type":"string"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseLocationList"}}}}}}},"/ocpi/sender/2.2/locations/page/{uid}":{"get":{"tags":["locations-controller"],"operationId":"getLocationPageFromDataOwner","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"uid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseLocationList"}}}}}}},"/ocpi/sender/2.2/locations/{locationID}":{"get":{"tags":["locations-controller"],"operationId":"getLocationObjectFromDataOwner","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"locationID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseLocation"}}}}}}},"/ocpi/sender/2.2/locations/{locationID}/{evseUID}":{"get":{"tags":["locations-controller"],"operationId":"getEvseObjectFromDataOwner","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"locationID","in":"path","required":true,"schema":{"type":"string"}},{"name":"evseUID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseEvse"}}}}}}},"/ocpi/sender/2.2/locations/{locationID}/{evseUID}/{connectorID}":{"get":{"tags":["locations-controller"],"operationId":"getConnectorObjectFromDataOwner","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"locationID","in":"path","required":true,"schema":{"type":"string"}},{"name":"evseUID","in":"path","required":true,"schema":{"type":"string"}},{"name":"connectorID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseConnector"}}}}}}},"/ocpi/receiver/2.2/locations/{countryCode}/{partyID}/{locationID}":{"get":{"tags":["locations-controller"],"operationId":"getClientOwnedLocation","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}},{"name":"locationID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseLocation"}}}}}},"put":{"tags":["locations-controller"],"operationId":"putClientOwnedLocation","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}},{"name":"locationID","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Location"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}},"patch":{"tags":["locations-controller"],"operationId":"patchClientOwnedLocation","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}},{"name":"locationID","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}}},"/ocpi/receiver/2.2/locations/{countryCode}/{partyID}/{locationID}/{evseUID}":{"get":{"tags":["locations-controller"],"operationId":"getClientOwnedEvse","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}},{"name":"locationID","in":"path","required":true,"schema":{"type":"string"}},{"name":"evseUID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseEvse"}}}}}},"put":{"tags":["locations-controller"],"operationId":"putClientOwnedEvse","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}},{"name":"locationID","in":"path","required":true,"schema":{"type":"string"}},{"name":"evseUID","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Evse"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}},"patch":{"tags":["locations-controller"],"operationId":"patchClientOwnedEvse","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}},{"name":"locationID","in":"path","required":true,"schema":{"type":"string"}},{"name":"evseUID","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}}},"/ocpi/receiver/2.2/locations/{countryCode}/{partyID}/{locationID}/{evseUID}/{connectorID}":{"get":{"tags":["locations-controller"],"operationId":"getClientOwnedConnector","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}},{"name":"locationID","in":"path","required":true,"schema":{"type":"string"}},{"name":"evseUID","in":"path","required":true,"schema":{"type":"string"}},{"name":"connectorID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseConnector"}}}}}},"put":{"tags":["locations-controller"],"operationId":"putClientOwnedConnector","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}},{"name":"locationID","in":"path","required":true,"schema":{"type":"string"}},{"name":"evseUID","in":"path","required":true,"schema":{"type":"string"}},{"name":"connectorID","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Connector"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}},"patch":{"tags":["locations-controller"],"operationId":"patchClientOwnedConnector","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}},{"name":"locationID","in":"path","required":true,"schema":{"type":"string"}},{"name":"evseUID","in":"path","required":true,"schema":{"type":"string"}},{"name":"connectorID","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}}},"/ocpi/receiver/2.2/ocnrules/whitelist":{"put":{"tags":["ocn-rules-controller"],"operationId":"updateWhitelist","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OcnRulesListParty"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}},"post":{"tags":["ocn-rules-controller"],"operationId":"appendToWhitelist","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OcnRulesListParty"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}}},"/ocpi/receiver/2.2/ocnrules/blacklist":{"put":{"tags":["ocn-rules-controller"],"operationId":"updateBlacklist","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OcnRulesListParty"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}},"post":{"tags":["ocn-rules-controller"],"operationId":"appendToBlacklist","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OcnRulesListParty"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}}},"/ocpi/receiver/2.2/ocnrules/signatures":{"put":{"tags":["ocn-rules-controller"],"operationId":"updateSignatures","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}}},"/ocpi/receiver/2.2/ocnrules/block-all":{"put":{"tags":["ocn-rules-controller"],"operationId":"blockAll","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}}},"/ocpi/receiver/2.2/ocnrules/whitelist/{countryCode}/{partyID}":{"delete":{"tags":["ocn-rules-controller"],"operationId":"deleteFromWhitelist","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}}},"/ocpi/receiver/2.2/ocnrules/blacklist/{countryCode}/{partyID}":{"delete":{"tags":["ocn-rules-controller"],"operationId":"deleteFromBlacklist","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}}},"/ocpi/receiver/2.2/ocnrules":{"get":{"tags":["ocn-rules-controller"],"operationId":"getRules","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseOcnRules"}}}}}}},"/ocpi/sender/2.2/sessions":{"get":{"tags":["sessions-controller"],"operationId":"getSessionsFromDataOwner","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"date_from","in":"query","required":false,"schema":{"type":"string"}},{"name":"date_to","in":"query","required":false,"schema":{"type":"string"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseSessionList"}}}}}}},"/ocpi/sender/2.2/sessions/page/{uid}":{"get":{"tags":["sessions-controller"],"operationId":"getSessionsPageFromDataOwner","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"uid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseSessionList"}}}}}}},"/ocpi/sender/2.2/sessions/{sessionID}/charging_preferences":{"put":{"tags":["sessions-controller"],"operationId":"putChargingPreferences","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"sessionID","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChargingPreferences"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseChargingPreferencesResponse"}}}}}}},"/ocpi/receiver/2.2/sessions/{countryCode}/{partyID}/{sessionID}":{"get":{"tags":["sessions-controller"],"operationId":"getClientOwnedSession","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}},{"name":"sessionID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseSession"}}}}}},"put":{"tags":["sessions-controller"],"operationId":"putClientOwnedSession","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}},{"name":"sessionID","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}},"patch":{"tags":["sessions-controller"],"operationId":"patchClientOwnedSession","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}},{"name":"sessionID","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}}},"/ocpi/receiver/2.2/tariffs/{countryCode}/{partyID}/{tariffID}":{"get":{"tags":["tariffs-controller"],"operationId":"getClientOwnedTariff","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}},{"name":"tariffID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseTariff"}}}}}},"put":{"tags":["tariffs-controller"],"operationId":"putClientOwnedTariff","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}},{"name":"tariffID","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tariff"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}},"delete":{"tags":["tariffs-controller"],"operationId":"deleteClientOwnedTariff","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}},{"name":"tariffID","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}}},"/ocpi/sender/2.2/tariffs":{"get":{"tags":["tariffs-controller"],"operationId":"getTariffsFromDataOwner","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"date_from","in":"query","required":false,"schema":{"type":"string"}},{"name":"date_to","in":"query","required":false,"schema":{"type":"string"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseTariffList"}}}}}}},"/ocpi/sender/2.2/tariffs/page/{uid}":{"get":{"tags":["tariffs-controller"],"operationId":"getTariffsPageFromDataOwner","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"uid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseTariffList"}}}}}}},"/ocpi/sender/2.2/tokens":{"get":{"tags":["tokens-controller"],"operationId":"getTokensFromDataOwner","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"date_from","in":"query","required":false,"schema":{"type":"string"}},{"name":"date_to","in":"query","required":false,"schema":{"type":"string"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseTokenList"}}}}}}},"/ocpi/sender/2.2/tokens/page/{uid}":{"get":{"tags":["tokens-controller"],"operationId":"getTokensPageFromDataOwner","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"uid","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseTokenList"}}}}}}},"/ocpi/sender/2.2/tokens/{tokenUID}/authorize":{"post":{"tags":["tokens-controller"],"operationId":"postRealTimeTokenAuthorization","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"tokenUID","in":"path","required":true,"schema":{"type":"string"}},{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["AD_HOC_USER","APP_USER","OTHER","RFID"],"default":"RFID"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LocationReferences"}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseAuthorizationInfo"}}}}}}},"/ocpi/receiver/2.2/tokens/{countryCode}/{partyID}/{tokenUID}":{"get":{"tags":["tokens-controller"],"operationId":"getClientOwnedToken","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}},{"name":"tokenUID","in":"path","required":true,"schema":{"type":"string"}},{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["AD_HOC_USER","APP_USER","OTHER","RFID"],"default":"RFID"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseToken"}}}}}},"put":{"tags":["tokens-controller"],"operationId":"putClientOwnedToken","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}},{"name":"tokenUID","in":"path","required":true,"schema":{"type":"string"}},{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["AD_HOC_USER","APP_USER","OTHER","RFID"],"default":"RFID"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Token"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}},"patch":{"tags":["tokens-controller"],"operationId":"patchClientOwnedToken","parameters":[{"name":"authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCN-Signature","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Request-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"X-Correlation-ID","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-from-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-country-code","in":"header","required":true,"schema":{"type":"string"}},{"name":"OCPI-to-party-id","in":"header","required":true,"schema":{"type":"string"}},{"name":"countryCode","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyID","in":"path","required":true,"schema":{"type":"string"}},{"name":"tokenUID","in":"path","required":true,"schema":{"type":"string"}},{"name":"type","in":"query","required":false,"schema":{"type":"string","enum":["AD_HOC_USER","APP_USER","OTHER","RFID"],"default":"RFID"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/OcpiResponseUnit"}}}}}}}},"components":{"schemas":{"BasicRole":{"required":["country_code","party_id"],"type":"object","properties":{"party_id":{"type":"string"},"country_code":{"type":"string"}}},"OcpiResponseObject":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"type":"object"},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"Endpoint":{"required":["identifier","role","url"],"type":"object","properties":{"identifier":{"type":"string"},"role":{"type":"string","enum":["SENDER","RECEIVER"]},"url":{"type":"string"}}},"OcpiResponseVersionDetail":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"$ref":"#/components/schemas/VersionDetail"},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"VersionDetail":{"required":["endpoints","version"],"type":"object","properties":{"version":{"type":"string"},"endpoints":{"type":"array","items":{"$ref":"#/components/schemas/Endpoint"}}}},"OcpiResponseListVersion":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Version"}},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"Version":{"required":["url","version"],"type":"object","properties":{"version":{"type":"string"},"url":{"type":"string"}}},"CDR":{"required":["auth_method","cdr_location","cdr_token","charging_periods","country_code","currency","end_date_time","id","last_updated","party_id","start_date_time","total_cost","total_energy","total_time"],"type":"object","properties":{"country_code":{"type":"string"},"party_id":{"type":"string"},"id":{"type":"string"},"start_date_time":{"type":"string"},"end_date_time":{"type":"string"},"session_id":{"type":"string"},"cdr_token":{"$ref":"#/components/schemas/CdrToken"},"auth_method":{"type":"string","enum":["AUTH_REQUEST","COMMAND","WHITELIST"]},"authorization_reference":{"type":"string"},"cdr_location":{"$ref":"#/components/schemas/CdrLocation"},"meter_id":{"type":"string"},"currency":{"type":"string"},"tariffs":{"type":"array","items":{"$ref":"#/components/schemas/Tariff"}},"charging_periods":{"type":"array","items":{"$ref":"#/components/schemas/ChargingPeriod"}},"signed_data":{"$ref":"#/components/schemas/SignedData"},"total_cost":{"$ref":"#/components/schemas/Price"},"total_fixed_cost":{"$ref":"#/components/schemas/Price"},"total_energy":{"type":"number","format":"float"},"total_energy_cost":{"$ref":"#/components/schemas/Price"},"total_time":{"type":"number","format":"float"},"total_time_cost":{"$ref":"#/components/schemas/Price"},"total_parking_time":{"type":"number","format":"float"},"total_parking_cost":{"$ref":"#/components/schemas/Price"},"total_reservation_cost":{"$ref":"#/components/schemas/Price"},"remark":{"type":"string"},"invoice_reference_id":{"type":"string"},"credit":{"type":"boolean"},"credit_reference_id":{"type":"string"},"last_updated":{"type":"string"}}},"CdrDimension":{"required":["type","volume"],"type":"object","properties":{"type":{"type":"string","enum":["CURRENT","ENERGY","ENERGY_EXPORT","ENERGY_IMPORT","MAX_CURRENT","MIN_CURRENT","MAX_POWER","MIN_POWER","PARKING_TIME","POWER","RESERVATION_TIME","STATE_OF_CHARGE","TIME"]},"volume":{"type":"number","format":"float"}}},"CdrLocation":{"required":["address","city","connector_format","connector_id","connector_power_type","connector_standard","coordinates","country","evse_id","evse_uid","id","postal_code"],"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"address":{"type":"string"},"city":{"type":"string"},"postal_code":{"type":"string"},"country":{"type":"string"},"coordinates":{"$ref":"#/components/schemas/GeoLocation"},"evse_uid":{"type":"string"},"evse_id":{"type":"string"},"connector_id":{"type":"string"},"connector_standard":{"type":"string","enum":["CHADEMO","DOMESTIC_A","DOMESTIC_B","DOMESTIC_C","DOMESTIC_D","DOMESTIC_E","DOMESTIC_F","DOMESTIC_G","DOMESTIC_H","DOMESTIC_I","DOMESTIC_J","DOMESTIC_K","DOMESTIC_L","IEC_60309_2_single_16","IEC_60309_2_three_16","IEC_60309_2_three_32","IEC_60309_2_three_64","IEC_62196_T1","IEC_62196_T1_COMBO","IEC_62196_T2","IEC_62196_T2_COMBO","IEC_62196_T3A","IEC_62196_T3C","PANTOGRAPH_BOTTOM_UP","PANTOGRAPH_TOP_DOWN","TESLA_R","TESLA_S"]},"connector_format":{"type":"string","enum":["SOCKET","CABLE"]},"connector_power_type":{"type":"string","enum":["AC_1_PHASE","AC_3_PHASE","DC"]}}},"CdrToken":{"required":["contract_id","type","uid"],"type":"object","properties":{"uid":{"type":"string"},"type":{"type":"string","enum":["AD_HOC_USER","APP_USER","OTHER","RFID"]},"contract_id":{"type":"string"}}},"ChargingPeriod":{"required":["dimensions","start_date_time"],"type":"object","properties":{"start_date_time":{"type":"string"},"dimensions":{"type":"array","items":{"$ref":"#/components/schemas/CdrDimension"}},"tariff_id":{"type":"string"}}},"DisplayText":{"required":["language","text"],"type":"object","properties":{"language":{"type":"string"},"text":{"type":"string"}}},"EnergyMix":{"required":["is_green_energy"],"type":"object","properties":{"is_green_energy":{"type":"boolean"},"energy_sources":{"type":"array","items":{"$ref":"#/components/schemas/EnergySource"}},"environ_impact":{"type":"array","items":{"$ref":"#/components/schemas/EnvironmentalImpact"}},"supplier_name":{"type":"string"},"energy_product_name":{"type":"string"}}},"EnergySource":{"required":["percentage","source"],"type":"object","properties":{"source":{"type":"string","enum":["NUCLEAR","GENERAL_FOSSIL","COAL","GAS","GENERAL_GREEN","SOLAR","WIND","WATER"]},"percentage":{"type":"number","format":"float"}}},"EnvironmentalImpact":{"required":["amount","category"],"type":"object","properties":{"category":{"type":"string","enum":["NUCLEAR_WASTE","CARBON_DIOXIDE"]},"amount":{"type":"number","format":"float"}}},"GeoLocation":{"required":["latitude","longitude"],"type":"object","properties":{"latitude":{"type":"string"},"longitude":{"type":"string"}}},"OcpiResponseCDRList":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/CDR"}},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"Price":{"required":["excl_vat","incl_vat"],"type":"object","properties":{"excl_vat":{"type":"number","format":"float"},"incl_vat":{"type":"number","format":"float"}}},"PriceComponent":{"required":["price","step_size","type"],"type":"object","properties":{"type":{"type":"string","enum":["ENERGY","FLAT","PARKING_TIME","TIME"]},"price":{"type":"number","format":"float"},"vat":{"type":"number","format":"float"},"step_size":{"type":"integer","format":"int32"}}},"SignedData":{"required":["encoding_method","signed_values","url"],"type":"object","properties":{"encoding_method":{"type":"string"},"encoding_method_version":{"type":"integer","format":"int32"},"public_key":{"type":"string"},"signed_values":{"type":"array","items":{"$ref":"#/components/schemas/SignedValue"}},"url":{"type":"string"}}},"SignedValue":{"required":["nature","plain_data","signed_data"],"type":"object","properties":{"nature":{"type":"string"},"plain_data":{"type":"string"},"signed_data":{"type":"string"}}},"Tariff":{"required":["country_code","currency","elements","id","last_updated","party_id"],"type":"object","properties":{"country_code":{"type":"string"},"party_id":{"type":"string"},"id":{"type":"string"},"currency":{"type":"string"},"type":{"type":"string","enum":["AD_HOC_PAYMENT","PROFILE_CHEAP","PROFILE_FAST","PROFILE_GREEN","REGULAR"]},"tariff_alt_text":{"type":"array","items":{"$ref":"#/components/schemas/DisplayText"}},"tariff_alt_url":{"type":"string"},"min_price":{"$ref":"#/components/schemas/Price"},"max_price":{"$ref":"#/components/schemas/Price"},"elements":{"type":"array","items":{"$ref":"#/components/schemas/TariffElement"}},"start_date_time":{"type":"string"},"end_date_time":{"type":"string"},"energy_mix":{"$ref":"#/components/schemas/EnergyMix"},"last_updated":{"type":"string"}}},"TariffElement":{"required":["price_components"],"type":"object","properties":{"price_components":{"type":"array","items":{"$ref":"#/components/schemas/PriceComponent"}},"restrictions":{"$ref":"#/components/schemas/TariffRestrictions"}}},"TariffRestrictions":{"type":"object","properties":{"start_time":{"type":"string"},"end_time":{"type":"string"},"start_date":{"type":"string"},"end_date":{"type":"string"},"min_kwh":{"type":"number","format":"float"},"max_kwh":{"type":"number","format":"float"},"min_current":{"type":"number","format":"float"},"max_current":{"type":"number","format":"float"},"min_power":{"type":"number","format":"float"},"max_power":{"type":"number","format":"float"},"min_duration":{"type":"integer","format":"int32"},"max_duration":{"type":"integer","format":"int32"},"day_of_week":{"type":"array","items":{"type":"string","enum":["MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY","SUNDAY"]}},"reservation":{"type":"string","enum":["RESERVATION","RESERVATION_EXPIRES"]}}},"OcpiResponseCDR":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"$ref":"#/components/schemas/CDR"},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"OcpiResponseUnit":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"$ref":"#/components/schemas/Unit"},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"Unit":{"type":"object"},"ActiveChargingProfile":{"required":["charging_profile","start_date_time"],"type":"object","properties":{"start_date_time":{"type":"string"},"charging_profile":{"$ref":"#/components/schemas/ChargingProfile"}}},"ChargingProfile":{"required":["charging_rate_unit"],"type":"object","properties":{"start_date_time":{"type":"string"},"duration":{"type":"integer","format":"int32"},"charging_rate_unit":{"type":"string","enum":["W","A"]},"min_charging_rate":{"type":"number","format":"float"},"charging_profile_period":{"type":"array","items":{"$ref":"#/components/schemas/ChargingProfilePeriod"}}}},"ChargingProfilePeriod":{"required":["limit","start_period"],"type":"object","properties":{"start_period":{"type":"integer","format":"int32"},"limit":{"type":"number","format":"float"}}},"GenericChargingProfileResult":{"required":["result"],"type":"object","properties":{"result":{"type":"string","enum":["ACCEPTED","REJECTED","UNKNOWN"]},"profile":{"$ref":"#/components/schemas/ActiveChargingProfile"}}},"ChargingProfileResponse":{"required":["result","timeout"],"type":"object","properties":{"result":{"type":"string","enum":["ACCEPTED","NOT_SUPPORTED","REJECTED","TOO_OFTEN","UNKNOWN_SESSION"]},"timeout":{"type":"integer","format":"int32"}}},"OcpiResponseChargingProfileResponse":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"$ref":"#/components/schemas/ChargingProfileResponse"},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"SetChargingProfile":{"required":["charging_profile","response_url"],"type":"object","properties":{"charging_profile":{"$ref":"#/components/schemas/ChargingProfile"},"response_url":{"type":"string"}}},"CommandResult":{"required":["result"],"type":"object","properties":{"result":{"type":"string","enum":["ACCEPTED","CANCELED_RESERVATION","EVSE_OCCUPIED","EVSE_INOPERATIVE","FAILED","NOT_SUPPORTED","REJECTED","TIMEOUT","UNKNOWN_RESERVATION"]},"message":{"$ref":"#/components/schemas/DisplayText"}}},"CancelReservation":{"required":["reservation_id","response_url"],"type":"object","properties":{"response_url":{"type":"string"},"reservation_id":{"type":"string"}}},"CommandResponse":{"required":["result","timeout"],"type":"object","properties":{"result":{"type":"string","enum":["NOT_SUPPORTED","REJECTED","ACCEPTED","UNKNOWN_SESSION"]},"timeout":{"type":"integer","format":"int32"},"message":{"$ref":"#/components/schemas/DisplayText"}}},"OcpiResponseCommandResponse":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"$ref":"#/components/schemas/CommandResponse"},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"EnergyContract":{"required":["supplier_name"],"type":"object","properties":{"supplier_name":{"type":"string"},"contract_id":{"type":"string"}}},"ReserveNow":{"required":["expiry_date","location_id","reservation_id","response_url","token"],"type":"object","properties":{"response_url":{"type":"string"},"token":{"$ref":"#/components/schemas/Token"},"expiry_date":{"type":"string"},"reservation_id":{"type":"string"},"location_id":{"type":"string"},"evse_uid":{"type":"string"},"authorization_reference":{"type":"string"}}},"Token":{"required":["contract_id","country_code","issuer","last_updated","party_id","type","uid","valid","whitelist"],"type":"object","properties":{"country_code":{"type":"string"},"party_id":{"type":"string"},"uid":{"type":"string"},"type":{"type":"string","enum":["AD_HOC_USER","APP_USER","OTHER","RFID"]},"contract_id":{"type":"string"},"visual_number":{"type":"string"},"issuer":{"type":"string"},"group_id":{"type":"string"},"valid":{"type":"boolean"},"whitelist":{"type":"string","enum":["ALWAYS","ALLOWED","ALLOWED_OFFLINE","NEVER"]},"language":{"type":"string"},"default_profile_type":{"type":"string","enum":["CHEAP","FAST","GREEN","REGULAR"]},"energy_contract":{"$ref":"#/components/schemas/EnergyContract"},"last_updated":{"type":"string"}}},"StartSession":{"required":["location_id","response_url","token"],"type":"object","properties":{"response_url":{"type":"string"},"token":{"$ref":"#/components/schemas/Token"},"location_id":{"type":"string"},"evse_uid":{"type":"string"},"authorization_reference":{"type":"string"}}},"StopSession":{"required":["response_url","session_id"],"type":"object","properties":{"response_url":{"type":"string"},"session_id":{"type":"string"}}},"UnlockConnector":{"required":["connector_id","evse_uid","location_id","response_url"],"type":"object","properties":{"response_url":{"type":"string"},"location_id":{"type":"string"},"evse_uid":{"type":"string"},"connector_id":{"type":"string"}}},"BusinessDetails":{"required":["name"],"type":"object","properties":{"name":{"type":"string"},"website":{"type":"string"},"logo":{"$ref":"#/components/schemas/Image"}}},"Credentials":{"required":["roles","token","url"],"type":"object","properties":{"token":{"type":"string"},"url":{"type":"string"},"roles":{"type":"array","items":{"$ref":"#/components/schemas/CredentialsRole"}}}},"CredentialsRole":{"required":["business_details","country_code","party_id","role"],"type":"object","properties":{"role":{"type":"string","enum":["CPO","EMSP","HUB","NAP","NSP","OTHER","SCSP"]},"business_details":{"$ref":"#/components/schemas/BusinessDetails"},"party_id":{"type":"string"},"country_code":{"type":"string"}}},"Image":{"required":["category","type","url"],"type":"object","properties":{"url":{"type":"string"},"thumbnail":{"type":"string"},"category":{"type":"string","enum":["CHARGER","ENTRANCE","LOCATION","NETWORK","OPERATOR","OTHER","OWNER"]},"type":{"type":"string"},"width":{"type":"integer","format":"int32"},"height":{"type":"integer","format":"int32"}}},"OcpiResponseCredentials":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"$ref":"#/components/schemas/Credentials"},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"OcpiResponse":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"type":"object"},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"AdditionalGeoLocation":{"required":["latitude","longitude"],"type":"object","properties":{"latitude":{"type":"string"},"longitude":{"type":"string"},"name":{"$ref":"#/components/schemas/DisplayText"}}},"Connector":{"required":["format","id","last_updated","max_amperage","max_voltage","power_type","standard"],"type":"object","properties":{"id":{"type":"string"},"standard":{"type":"string","enum":["CHADEMO","DOMESTIC_A","DOMESTIC_B","DOMESTIC_C","DOMESTIC_D","DOMESTIC_E","DOMESTIC_F","DOMESTIC_G","DOMESTIC_H","DOMESTIC_I","DOMESTIC_J","DOMESTIC_K","DOMESTIC_L","IEC_60309_2_single_16","IEC_60309_2_three_16","IEC_60309_2_three_32","IEC_60309_2_three_64","IEC_62196_T1","IEC_62196_T1_COMBO","IEC_62196_T2","IEC_62196_T2_COMBO","IEC_62196_T3A","IEC_62196_T3C","PANTOGRAPH_BOTTOM_UP","PANTOGRAPH_TOP_DOWN","TESLA_R","TESLA_S"]},"format":{"type":"string","enum":["SOCKET","CABLE"]},"power_type":{"type":"string","enum":["AC_1_PHASE","AC_3_PHASE","DC"]},"max_voltage":{"type":"integer","format":"int32"},"max_amperage":{"type":"integer","format":"int32"},"max_electric_power":{"type":"integer","format":"int32"},"tariff_ids":{"type":"array","items":{"type":"string"}},"terms_and_conditions":{"type":"string"},"last_updated":{"type":"string"}}},"Evse":{"required":["connectors","last_updated","status","uid"],"type":"object","properties":{"uid":{"type":"string"},"evse_id":{"type":"string"},"status":{"type":"string","enum":["AVAILABLE","BLOCKED","CHARGING","INOPERATIVE","OUTOFORDER","PLANNED","REMOVED","RESERVED","UNKNOWN"]},"status_schedule":{"type":"array","items":{"$ref":"#/components/schemas/StatusSchedule"}},"capabilities":{"type":"array","items":{"type":"string","enum":["CHARGING_PROFILE_CAPABLE","CHARGING_PREFERENCES_CAPABLE","CHIP_CARD_SUPPORT","CONTACTLESS_CARD_SUPPORT","CREDIT_CARD_PAYABLE","DEBIT_CARD_PAYABLE","PED_TERMINAL","REMOTE_START_STOP_CAPABLE","RESERVABLE","RFID_READER","TOKEN_GROUP_CAPABLE","UNLOCK_CAPABLE"]}},"connectors":{"type":"array","items":{"$ref":"#/components/schemas/Connector"}},"floor_level":{"type":"string"},"coordinates":{"$ref":"#/components/schemas/GeoLocation"},"physical_reference":{"type":"string"},"directions":{"type":"array","items":{"$ref":"#/components/schemas/DisplayText"}},"parking_restrictions":{"type":"array","items":{"type":"string","enum":["EV_ONLY","PLUGGED","DISABLED","CUSTOMERS","MOTORCYCLES"]}},"images":{"type":"array","items":{"$ref":"#/components/schemas/Image"}},"last_updated":{"type":"string"}}},"ExceptionalPeriod":{"required":["period_begin","period_end"],"type":"object","properties":{"period_begin":{"type":"string"},"period_end":{"type":"string"}}},"Hours":{"required":["twentyfourseven"],"type":"object","properties":{"twentyfourseven":{"type":"boolean"},"regular_hours":{"type":"array","items":{"$ref":"#/components/schemas/RegularHours"}},"exceptional_openings":{"type":"array","items":{"$ref":"#/components/schemas/ExceptionalPeriod"}},"exceptional_closings":{"type":"array","items":{"$ref":"#/components/schemas/ExceptionalPeriod"}}}},"Location":{"required":["address","city","coordinates","country","country_code","id","last_updated","party_id","publish"],"type":"object","properties":{"country_code":{"type":"string"},"party_id":{"type":"string"},"id":{"type":"string"},"publish":{"type":"boolean"},"publish_allowed_to":{"type":"array","items":{"$ref":"#/components/schemas/PublishTokenType"}},"name":{"type":"string"},"address":{"type":"string"},"city":{"type":"string"},"postal_code":{"type":"string"},"state":{"type":"string"},"country":{"type":"string"},"coordinates":{"$ref":"#/components/schemas/GeoLocation"},"related_locations":{"type":"array","items":{"$ref":"#/components/schemas/AdditionalGeoLocation"}},"parking_type":{"type":"string","enum":["ALONG_MOTORWAY","PARKING_GARAGE","PARKING_LOT","ON_DRIVEWAY","ON_STREET","UNDERGROUND_GARAGE"]},"evses":{"type":"array","items":{"$ref":"#/components/schemas/Evse"}},"directions":{"type":"array","items":{"$ref":"#/components/schemas/DisplayText"}},"operator":{"$ref":"#/components/schemas/BusinessDetails"},"suboperator":{"$ref":"#/components/schemas/BusinessDetails"},"owner":{"$ref":"#/components/schemas/BusinessDetails"},"facilities":{"type":"array","items":{"type":"string","enum":["HOTEL","RESTAURANT","CAFE","MALL","SUPERMARKET","SPORT","RECREATION_AREA","NATURE","MUSEUM","BIKE_SHARING","BUS_STOP","TAXI_STAND","TRAM_STOP","METRO_STATION","TRAIN_STATION","AIRPORT","PARKING_LOT","CARPOOL_PARKING","FUEL_STATION","WIFI"]}},"time_zone":{"type":"string"},"opening_times":{"$ref":"#/components/schemas/Hours"},"charging_when_closed":{"type":"string"},"images":{"type":"array","items":{"$ref":"#/components/schemas/Image"}},"energy_mix":{"$ref":"#/components/schemas/EnergyMix"},"last_updated":{"type":"string"}}},"OcpiResponseLocationList":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Location"}},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"PublishTokenType":{"type":"object","properties":{"uid":{"type":"string"},"type":{"type":"string","enum":["AD_HOC_USER","APP_USER","OTHER","RFID"]},"visual_number":{"type":"string"},"issuer":{"type":"string"},"group_id ":{"type":"string"}}},"RegularHours":{"required":["period_begin","period_end","weekday"],"type":"object","properties":{"weekday":{"type":"integer","format":"int32"},"period_begin":{"type":"string"},"period_end":{"type":"string"}}},"StatusSchedule":{"required":["period_begin","status"],"type":"object","properties":{"period_begin":{"type":"string"},"period_end":{"type":"string"},"status":{"type":"string","enum":["AVAILABLE","BLOCKED","CHARGING","INOPERATIVE","OUTOFORDER","PLANNED","REMOVED","RESERVED","UNKNOWN"]}}},"OcpiResponseLocation":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"$ref":"#/components/schemas/Location"},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"OcpiResponseEvse":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"$ref":"#/components/schemas/Evse"},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"OcpiResponseConnector":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"$ref":"#/components/schemas/Connector"},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"OcnRulesListParty":{"required":["country_code","modules","party_id"],"type":"object","properties":{"party_id":{"type":"string"},"country_code":{"type":"string"},"modules":{"type":"array","items":{"type":"string"}}}},"OcnRules":{"required":["blacklist","signatures","whitelist"],"type":"object","properties":{"signatures":{"type":"boolean"},"whitelist":{"$ref":"#/components/schemas/OcnRulesList"},"blacklist":{"$ref":"#/components/schemas/OcnRulesList"}}},"OcnRulesList":{"required":["active","list"],"type":"object","properties":{"active":{"type":"boolean"},"list":{"type":"array","items":{"$ref":"#/components/schemas/OcnRulesListParty"}}}},"OcpiResponseOcnRules":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"$ref":"#/components/schemas/OcnRules"},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"OcpiResponseSessionList":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Session"}},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"Session":{"required":["auth_method","cdr_token","connector_id","country_code","currency","evse_uid","id","kwh","last_updated","location_id","party_id","start_date_time","status"],"type":"object","properties":{"country_code":{"type":"string"},"party_id":{"type":"string"},"id":{"type":"string"},"start_date_time":{"type":"string"},"end_date_time":{"type":"string"},"kwh":{"type":"number","format":"float"},"cdr_token":{"$ref":"#/components/schemas/CdrToken"},"auth_method":{"type":"string","enum":["AUTH_REQUEST","COMMAND","WHITELIST"]},"authorization_reference":{"type":"string"},"location_id":{"type":"string"},"evse_uid":{"type":"string"},"connector_id":{"type":"string"},"meter_id":{"type":"string"},"currency":{"type":"string"},"charging_periods":{"type":"array","items":{"$ref":"#/components/schemas/ChargingPeriod"}},"total_cost":{"$ref":"#/components/schemas/Price"},"status":{"type":"string","enum":["ACTIVE","COMPLETED","INVALID","PENDING","RESERVATION"]},"last_updated":{"type":"string"}}},"ChargingPreferences":{"required":["profile_type"],"type":"object","properties":{"profile_type":{"type":"string","enum":["CHEAP","FAST","GREEN","REGULAR"]},"departure_time":{"type":"string"},"energy_need":{"type":"number","format":"float"},"discharge_allowed":{"type":"boolean"}}},"OcpiResponseChargingPreferencesResponse":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"type":"string","enum":["ACCEPTED","DEPARTURE_REQUIRED","ENERGY_NEED_REQUIRED","NOT_POSSIBLE","PROFILE_TYPE_NOT_SUPPORTED"]},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"OcpiResponseSession":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"$ref":"#/components/schemas/Session"},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"OcpiResponseTariffList":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Tariff"}},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"OcpiResponseTariff":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"$ref":"#/components/schemas/Tariff"},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"OcpiResponseTokenList":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Token"}},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"LocationReferences":{"required":["location_id"],"type":"object","properties":{"location_id":{"type":"string"},"evse_uids":{"type":"array","items":{"type":"string"}},"connector_ids":{"type":"array","items":{"type":"string"}}}},"AuthorizationInfo":{"required":["allowed","token"],"type":"object","properties":{"allowed":{"type":"string","enum":["ALLOWED","BLOCKED","EXPIRED","NO_CREDIT","NOT_ALLOWED"]},"token":{"$ref":"#/components/schemas/Token"},"location":{"$ref":"#/components/schemas/LocationReferences"},"authorization_reference":{"type":"string"},"info":{"$ref":"#/components/schemas/DisplayText"}}},"OcpiResponseAuthorizationInfo":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"$ref":"#/components/schemas/AuthorizationInfo"},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}},"OcpiResponseToken":{"required":["status_code","timestamp"],"type":"object","properties":{"status_code":{"type":"integer","format":"int32"},"status_message":{"type":"string"},"data":{"$ref":"#/components/schemas/Token"},"timestamp":{"type":"string"},"ocn_signature":{"type":"string"}}}}}} \ No newline at end of file diff --git a/infra/ocn-node.service b/infra/ocn-node.service index 69edf00..69d112f 100644 --- a/infra/ocn-node.service +++ b/infra/ocn-node.service @@ -10,4 +10,4 @@ ExecStart=/usr/bin/java -jar -Dspring.config.location=application.dev.properties Restart=on-failure [Install] -WantedBy=multi-user.target \ No newline at end of file +WantedBy=multi-user.target diff --git a/src/main/kotlin/snc/openchargingnetwork/node/config/Verification.kt b/src/main/kotlin/snc/openchargingnetwork/node/config/Verification.kt index c151673..3e85664 100644 --- a/src/main/kotlin/snc/openchargingnetwork/node/config/Verification.kt +++ b/src/main/kotlin/snc/openchargingnetwork/node/config/Verification.kt @@ -33,7 +33,6 @@ class Verification(private val properties: NodeProperties) { companion object { private val logger = LoggerFactory.getLogger(Verification::class.java) } - @EventListener(ApplicationReadyEvent::class) fun testRegistry() { if (properties.privateKey == null) { @@ -82,4 +81,4 @@ class Verification(private val properties: NodeProperties) { } } -} \ No newline at end of file +} diff --git a/src/main/kotlin/snc/openchargingnetwork/node/models/ocpi/Locations.kt b/src/main/kotlin/snc/openchargingnetwork/node/models/ocpi/Locations.kt index 2926494..a580943 100644 --- a/src/main/kotlin/snc/openchargingnetwork/node/models/ocpi/Locations.kt +++ b/src/main/kotlin/snc/openchargingnetwork/node/models/ocpi/Locations.kt @@ -84,9 +84,9 @@ data class AdditionalGeoLocation(@JsonProperty("latitude") val latitude: String, @JsonInclude(JsonInclude.Include.NON_NULL) data class Hours(@JsonProperty("twentyfourseven") val twentyfourseven: Boolean, - @JsonProperty("regular_hours") val regularHours: RegularHours? = null, - @JsonProperty("exceptional_openings") val exceptionalOpenings: ExceptionalPeriod? = null, - @JsonProperty("exceptional_closings") val exceptionalClosings: ExceptionalPeriod? = null) + @JsonProperty("regular_hours") val regularHours: List? = null, + @JsonProperty("exceptional_openings") val exceptionalOpenings: List? = null, + @JsonProperty("exceptional_closings") val exceptionalClosings: List? = null) data class RegularHours(@JsonProperty("weekday") val weekday: Int, @JsonProperty("period_begin") val periodBegin: String, @@ -253,4 +253,4 @@ enum class ParkingType { ON_DRIVEWAY, ON_STREET, UNDERGROUND_GARAGE -} \ No newline at end of file +}