Skip to content

Commit 89d6b4c

Browse files
Added new endpoints for MED, webhooks endpoints from the Bill Payment API and to refund of a payment made via credit card
1 parent 94cc7b4 commit 89d6b4c

File tree

7 files changed

+46
-13
lines changed

7 files changed

+46
-13
lines changed

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"java.configuration.updateBuildConfiguration": "interactive"
3+
}

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 1.0.6
2+
3+
- Added a new endpoint to refund of a payment made via credit card
4+
- Added new endpoints for MED
5+
- Added webhooks endpoints from the Bill Payment API
6+
17
# 1.0.5
28

39
- Added new endpoints for batch cobV

README-en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ implementation 'br.com.efipay.efisdk:sdk-java-apis-efi:1.0.5'
3131
<dependency>
3232
    <groupId>br.com.efipay.efisdk</groupId>
3333
<artifactId>sdk-java-apis-efi</artifactId>
34-
<version>1.0.5</version>
34+
<version>1.0.6</version>
3535
</dependency>
3636
```
3737

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ implementation 'br.com.efipay.efisdk:sdk-java-apis-efi:1.0.5'
3232
<dependency>
3333
<groupId>br.com.efipay.efisdk</groupId>
3434
<artifactId>sdk-java-apis-efi</artifactId>
35-
<version>1.0.5</version>
35+
<version>1.0.6</version>
3636
</dependency>
3737
```
3838

pom.xml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>br.com.efipay.efisdk</groupId>
55
<artifactId>sdk-java-apis-efi</artifactId>
6-
<version>1.0.5</version>
6+
<version>1.0.6</version>
77

88
<name>SDK JAVA APIS EFI</name>
99
<description>Java SDK for integrating with Efí API</description>
@@ -96,7 +96,7 @@
9696

9797
<groupId>org.apache.maven.plugins</groupId>
9898
<artifactId>maven-release-plugin</artifactId>
99-
<version>2.5</version>
99+
<version>3.1.0</version>
100100
<configuration>
101101
<useReleaseProfile>false</useReleaseProfile>
102102
<releaseProfiles>release</releaseProfiles>
@@ -105,12 +105,11 @@
105105
</plugin>
106106
</plugins>
107107
</pluginManagement>
108-
109108
<plugins>
110109
<plugin>
111110
<groupId>org.sonatype.plugins</groupId>
112111
<artifactId>nexus-staging-maven-plugin</artifactId>
113-
<version>1.6.13</version>
112+
<version>1.7.0</version>
114113
<extensions>true</extensions>
115114
<configuration>
116115
<serverId>ossrh</serverId>
@@ -121,7 +120,7 @@
121120

122121
<plugin>
123122
<artifactId>maven-compiler-plugin</artifactId>
124-
<version>3.8.1</version>
123+
<version>3.13.0</version>
125124
<configuration>
126125
<source>1.8</source>
127126
<target>1.8</target>
@@ -134,7 +133,7 @@
134133
<plugin>
135134
<groupId>org.eluder.coveralls</groupId>
136135
<artifactId>coveralls-maven-plugin</artifactId>
137-
<version>4.2.0</version>
136+
<version>4.3.0</version>
138137
</plugin>
139138

140139
<plugin>
@@ -153,7 +152,7 @@
153152
<plugin>
154153
<groupId>org.apache.maven.plugins</groupId>
155154
<artifactId>maven-surefire-plugin</artifactId>
156-
<version>2.22.0</version>
155+
<version>3.3.0</version>
157156
<configuration>
158157
<testFailureIgnore>true</testFailureIgnore>
159158
</configuration>
@@ -189,7 +188,7 @@
189188
<plugin>
190189
<groupId>org.apache.maven.plugins</groupId>
191190
<artifactId>maven-source-plugin</artifactId>
192-
<version>2.2.1</version>
191+
<version>3.3.1</version>
193192
<executions>
194193
<execution>
195194
<id>attach-sources</id>
@@ -202,7 +201,7 @@
202201
<plugin>
203202
<groupId>org.apache.maven.plugins</groupId>
204203
<artifactId>maven-javadoc-plugin</artifactId>
205-
<version>3.3.0</version>
204+
<version>3.7.0</version>
206205
<configuration combine.self="override">
207206
<source>8</source>
208207
<detectJavaApiLink>false</detectJavaApiLink>
@@ -219,7 +218,7 @@
219218
<plugin>
220219
<groupId>org.apache.maven.plugins</groupId>
221220
<artifactId>maven-gpg-plugin</artifactId>
222-
<version>3.0.1</version>
221+
<version>3.2.4</version>
223222
<executions>
224223
<execution>
225224
<id>sign-artifacts</id>

src/main/java/br/com/efi/efisdk/Config.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*/
1313
public class Config {
14-
private final static String version = "1.0.5";
14+
private final static String version = "1.0.6";
1515
private JSONObject conf = new JSONObject();
1616
private JSONObject endpoints = new JSONObject();
1717
private JSONObject urls = new JSONObject();

src/main/resources/config.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,10 @@
189189
"cardPaymentRetry": {
190190
"route": "/v1/charge/:id/retry",
191191
"method": "post"
192+
},
193+
"refundCard": {
194+
"route": "/v1/charge/card/:id/refund",
195+
"method": "post"
192196
}
193197
}
194198
},
@@ -389,7 +393,16 @@
389393
"pixListDueChargeBatch": {
390394
"route": "/v2/lotecobv",
391395
"method": "get"
396+
},
397+
"medList": {
398+
"route": "/v2/gn/infracoes",
399+
"method": "get"
400+
},
401+
"medDefense": {
402+
"route": "/v2/gn/infracoes/:idInfracao/defesa",
403+
"method": "post"
392404
}
405+
393406
}
394407
},
395408
"OPEN-FINANCE": {
@@ -457,6 +470,18 @@
457470
"payListPayments": {
458471
"route": "/v1/resumo",
459472
"method": "get"
473+
},
474+
"payConfigWebhook": {
475+
"route": "/v1/webhook",
476+
"method": "put"
477+
},
478+
"payDeleteWebhook": {
479+
"route": "/v1/webhook",
480+
"method": "delete"
481+
},
482+
"payListWebhook": {
483+
"route": "/v1/webhook",
484+
"method": "get"
460485
}
461486
}
462487
},

0 commit comments

Comments
 (0)