Skip to content

Commit

Permalink
Added new open finance endpoints, list charges and modify subscriptio…
Browse files Browse the repository at this point in the history
…n data
  • Loading branch information
jessica-gava-efi committed Sep 10, 2024
1 parent 27f680a commit b35c52e
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
target/
.settings
.vscode/**
3 changes: 0 additions & 3 deletions .vscode/settings.json

This file was deleted.

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 1.2.1

- Added new endpoints for Pix API through Open Finance (Scheduled payments and Recurent payments)
- Added a new endpoint to list charges
- Added a new endpoint for modify subscription data

# 1.1.1

- Added routes to the config.json file
Expand Down
4 changes: 2 additions & 2 deletions README-en.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ For more informations about [parameters](http://dev.sejaefi.com.br) and [values]
**Via gradle:**

```gradle
implementation 'br.com.efipay.efisdk:sdk-java-apis-efi:1.1.1'
implementation 'br.com.efipay.efisdk:sdk-java-apis-efi:1.2.1'
```

**Via maven:**
Expand All @@ -31,7 +31,7 @@ implementation 'br.com.efipay.efisdk:sdk-java-apis-efi:1.1.1'
<dependency>
    <groupId>br.com.efipay.efisdk</groupId>
<artifactId>sdk-java-apis-efi</artifactId>
<version>1.1.1</version>
<version>1.2.1</version>
</dependency>
```

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Para mais informações sobre [parâmetros](http://sejaefi.com.br/api) e [valore
**Via gradle:**

```gradle
implementation 'br.com.efipay.efisdk:sdk-java-apis-efi:1.1.1'
implementation 'br.com.efipay.efisdk:sdk-java-apis-efi:1.2.1'
```

**Via maven:**
Expand All @@ -32,7 +32,7 @@ implementation 'br.com.efipay.efisdk:sdk-java-apis-efi:1.1.1'
<dependency>
<groupId>br.com.efipay.efisdk</groupId>
<artifactId>sdk-java-apis-efi</artifactId>
<version>1.1.1</version>
<version>1.2.1</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.efipay.efisdk</groupId>
<artifactId>sdk-java-apis-efi</artifactId>
<version>1.1.1</version>
<version>1.2.1</version>

<name>SDK JAVA APIS EFI</name>
<description>Java SDK for integrating with Efí API</description>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/br/com/efi/efisdk/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
*/
public class Config {
private final static String version = "1.1.1";
private final static String version = "1.2.1";
private JSONObject conf = new JSONObject();
private JSONObject endpoints = new JSONObject();
private JSONObject urls = new JSONObject();
Expand Down
40 changes: 38 additions & 2 deletions src/main/resources/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@
"route": "/v1/charge/:id/cancel",
"method": "put"
},
"listCharges": {
"route": "/v1/charges",
"method": "get"
},
"createCarnet": {
"route": "/v1/carnet",
"method": "post"
Expand Down Expand Up @@ -110,6 +114,10 @@
"route": "/v1/subscription/:id/metadata",
"method": "put"
},
"updateSubscription": {
"route": "/v1/subscription/:id",
"method": "put"
},
"createSubscriptionHistory": {
"route": "/v1/subscription/:id/history",
"method": "post"
Expand Down Expand Up @@ -447,8 +455,36 @@
"route": "/v1/pagamentos/pix/:identificadorPagamento/devolver",
"method": "post"
},
"ofCancelSchedulePix": {
"route": "/v1/pagamentos/pix/:identificadorPagamento/cancelar",
"ofStartSchedulePixPayment": {
"route": "/v1/pagamentos-agendados/pix",
"method": "post"
},
"ofListSchedulePixPayment": {
"route": "/v1/pagamentos-agendados/pix",
"method": "get"
},
"ofDevolutionSchedulePix": {
"route": "/v1/pagamentos-agendados/pix/:identificadorPagamento/devolver",
"method": "post"
},
"ofCancelSchedulePix" : {
"route" : "/v1/pagamentos-agendados/pix/:identificadorPagamento/cancelar",
"method": "patch"
},
"ofStartRecurrencyPixPayment": {
"route": "/v1/pagamentos-recorrentes/pix",
"method": "post"
},
"ofListRecurrencyPixPayment": {
"route": "/v1/pagamentos-recorrentes/pix",
"method": "get"
},
"ofDevolutionRecurrencyPix": {
"route": "/v1/pagamentos-recorrentes/pix/:endToEndId/devolver",
"method": "post"
},
"ofCancelRecurrencyPix" : {
"route" : "/v1/pagamentos-recorrentes/pix/:identificadorPagamento/cancelar",
"method": "patch"
}
}
Expand Down

0 comments on commit b35c52e

Please sign in to comment.