Skip to content

Commit

Permalink
v0.2.5: Add new endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiagogresende committed Jan 4, 2019
1 parent 6cef291 commit 2827c0f
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 0.2.5

- Added: new endpoint (settle charge)
- Added: new endpoint (settle carnet parcel)

# 0.2.4

- Added: new endpoint (create charge balance sheet)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ java 7.0 and 8.0
**Via gradle:**

```gradle
compile 'br.com.gerencianet.gnsdk:gn-api-sdk-java:0.2.4'
compile 'br.com.gerencianet.gnsdk:gn-api-sdk-java:0.2.5'
```

**Via maven:**
Expand All @@ -31,7 +31,7 @@ compile 'br.com.gerencianet.gnsdk:gn-api-sdk-java:0.2.4'
<dependency>
    <groupId>br.com.gerencianet.gnsdk</groupId>
    <artifactId>gn-api-sdk-java</artifactId>
    <version>0.2.4</version>
    <version>0.2.5</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>br.com.gerencianet.gnsdk</groupId>
<artifactId>gn-api-sdk-java</artifactId>
<version>0.2.4</version>
<version>0.2.5</version>

<name>GN API SDK JAVA</name>
<description>Java SDK for integrating with Gerencianet API</description>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/br/com/gerencianet/gnsdk/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
*/
public class Config {
private final static String version = "0.2.4";
private final static String version = "0.2.5";
private JSONObject conf = new JSONObject();
private JSONObject endpoints = new JSONObject();
private JSONObject urls = new JSONObject();
Expand Down
10 changes: 9 additions & 1 deletion src/main/resources/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,14 @@
"createChargeBalanceSheet": {
"route": "/v1/charge/:id/balance-sheet",
"method": "post"
}
},
"settleCharge": {
"route": "/v1/charge/:id/settle",
"method": "PUT"
},
"settleCarnetParcel": {
"route": "/v1/carnet/:id/parcel/:parcel/settle",
"method": "PUT"
}
}
}

0 comments on commit 2827c0f

Please sign in to comment.