Issue 86: Restructure APIs and Implement RemoteStopTransaction #345
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
Implement RemoteStopTransaction endpoint and ensure Citrine to support apis of 2 OCPP versions.
Changes
AbstractModuleApi
:SystemConfig
endpoints only for data apis./ocpp/1.6/evdriver/remoteStopTransaction
api.ts
inEVDriver
module into 3 api files for ocpp 2.0.1 message, ocpp 1.6 message and data endpoints respectivelyTests
Case 1: Call OCPP 1.6 endpoint
Case 2: Call OCPP 2.0.1 endpoint
Case 3: The endpoint ocpp version doesn't match the connection protocol version
Charge connects to Citrine with protocol 2.0.1 but send a 1.6 call
![Screenshot 2025-02-04 at 5 39 39 PM](https://private-user-images.githubusercontent.com/21100540/409764243-29dc2ac6-3157-4698-9f83-e22511ea6bb0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyOTI0MDMsIm5iZiI6MTczOTI5MjEwMywicGF0aCI6Ii8yMTEwMDU0MC80MDk3NjQyNDMtMjlkYzJhYzYtMzE1Ny00Njk4LTlmODMtZTIyNTExZWE2YmIwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDE2NDE0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWViMjFmYjRhNWI1MTY2N2RkZmQ0YTg4ZGI1MzUxMTA4YzRiMDdhNjRiNDBmZGYzMTA2YmU0NjkyNWQ4ZTk2MWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.s_WEeaYNbQfiYUVOLLe9CaF8to0K6kL4y8UogrIgx-A)