Skip to content
This repository was archived by the owner on Nov 15, 2025. It is now read-only.

Commit 87fd28d

Browse files
author
Maxim Fedorov
committed
Prepare to release 1.3.10
1 parent 27135d4 commit 87fd28d

1 file changed

Lines changed: 9 additions & 27 deletions

File tree

README.md

Lines changed: 9 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,11 @@
11
# OCHP client [![Build Status](https://secure.travis-ci.org/thenewmotion/ochp-client.png)](http://travis-ci.org/thenewmotion/ochp-client)
22

3-
Client for [OCHP](http://ochp.eu) written in Scala, for Scala 2.11+
3+
Client for [OCHP](http://ochp.eu) written in Scala, for Scala 2.11/2.12
44

55
## Includes
66

77
* Open Clearing House Protocol v1.3 generated client and bean classes with help of [cxf](http://cxf.apache.org)
88

9-
* API trait to communicate with the clearing house:
10-
```scala
11-
trait OchpApi {
12-
def recvAllTokens(): List[ChargeToken]
13-
def sendAllTokens(tokens: List[ChargeToken]): Result[ChargeToken]
14-
def recvNewTokens(lastUpdate: DateTime): List[ChargeToken]
15-
def sendNewTokens(tokens: List[ChargeToken]): Result[ChargeToken]
16-
17-
def sendAllChargePoints(chargePoints: List[ChargePoint]): Result[ChargePoint]
18-
def recvAllChargePoints():List[ChargePoint]
19-
def sendNewChargePoints(chargePoints: List[ChargePoint]): Result[ChargePoint]
20-
def recvNewChargePoints(lastUpdate: DateTime):List[ChargePoint]
21-
22-
def sendCdrs(cdrs: List[CDR]): Result[CDR]
23-
def recvCdrs(): List[CDR]
24-
def confCdrs(approvedCdrs: List[CDR], declinedCdrs: List[CDR])
25-
}
26-
27-
```
28-
299
* Service trait that can be instantiated like here:
3010
```scala
3111
val service = new OchpService {
@@ -43,7 +23,9 @@ Client for [OCHP](http://ochp.eu) written in Scala, for Scala 2.11+
4323

4424
Integration tests can be run as follows:
4525

46-
```sbt it:test```
26+
```
27+
sbt it:test
28+
```
4729
4830
In order for these tests to work, valid credentials need to be provided (see `src/it/resources/reference.conf` for reference).
4931
@@ -54,7 +36,7 @@ In order for these tests to work, valid credentials need to be provided (see `sr
5436
1. Add this repository to your pom.xml:
5537
```xml
5638
<repository>
57-
<id>thenewmotion</id>
39+
<id>NewMotion</id>
5840
<name>The New Motion Repository</name>
5941
<url>http://nexus.thenewmotion.com/content/groups/public"</url>
6042
</repository>
@@ -63,9 +45,9 @@ In order for these tests to work, valid credentials need to be provided (see `sr
6345
2. Add dependency to your pom.xml:
6446
```xml
6547
<dependency>
66-
<groupId>com.thenewmotion</groupId>
67-
<artifactId>ochp-client_2.11</artifactId>
68-
<version>1.3.8</version>
48+
<groupId>com.newmotion</groupId>
49+
<artifactId>ochp-client_2.11(or 2.12)</artifactId>
50+
<version>1.3.10</version>
6951
</dependency>
7052
```
7153
@@ -78,7 +60,7 @@ In order for these tests to work, valid credentials need to be provided (see `sr
7860
7961
2. Add the following dependency:
8062
```scala
81-
"com.thenewmotion" %% "ochp-client" % "1.3.8"
63+
"com.newmotion" %% "ochp-client" % "1.3.10"
8264
```
8365
8466
### A note about versioning

0 commit comments

Comments
 (0)