Skip to content

Commit a493463

Browse files
committed
renaming of param
1 parent 1f61fc0 commit a493463

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

src/main/java/com/openelements/cardless/CardlessClient.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@
77
import com.openelements.cardless.data.RequisitionsPage;
88
import com.openelements.cardless.data.Transactions;
99
import com.openelements.cardless.internal.CardlessClientImpl;
10-
import java.io.IOException;
1110
import java.util.List;
1211
import org.jspecify.annotations.NonNull;
1312

1413
public interface CardlessClient {
1514

16-
static CardlessClient of(@NonNull final String secretId, @NonNull final String secretKey)
15+
static CardlessClient create(@NonNull final String secretId, @NonNull final String secretKey)
1716
throws CardlessException {
1817
return new CardlessClientImpl(secretId, secretKey);
1918
}

src/main/java/com/openelements/cardless/data/Requisition.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
import java.util.List;
44

5-
public record Requisition(String id, String created, String redirect, String status, String institution_id,
5+
public record Requisition(String id, String created, String redirect, String status, String institutionId,
66
String agreement, String reference, List<String> accounts, String link) {
77
}

src/test/java/com/openelements/cardless/test/CardlessClientTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ void test1() throws Exception {
1616
Dotenv dotenv = Dotenv.load();
1717
String secretId = dotenv.get("CARDLESS_SECRET_ID");
1818
String secretKey = dotenv.get("CARDLESS_SECRET_KEY");
19-
CardlessClient client = new CardlessClient(secretId, secretKey);
19+
CardlessClient client = CardlessClient.create(secretId, secretKey);
2020

2121
//when
2222
List<Institution> institutions = client.getInstitutions("de");
@@ -38,7 +38,7 @@ void test1_5() throws Exception {
3838
Dotenv dotenv = Dotenv.load();
3939
String secretId = dotenv.get("CARDLESS_SECRET_ID");
4040
String secretKey = dotenv.get("CARDLESS_SECRET_KEY");
41-
CardlessClient client = new CardlessClient(secretId, secretKey);
41+
CardlessClient client = CardlessClient.create(secretId, secretKey);
4242

4343
final Requisition requisition = client.createRequisition("SANDBOXFINANCE_SFIN0000");
4444

@@ -51,7 +51,7 @@ void test2() throws Exception {
5151
Dotenv dotenv = Dotenv.load();
5252
String secretId = dotenv.get("CARDLESS_SECRET_ID");
5353
String secretKey = dotenv.get("CARDLESS_SECRET_KEY");
54-
CardlessClient client = new CardlessClient(secretId, secretKey);
54+
CardlessClient client = CardlessClient.create(secretId, secretKey);
5555

5656
//when
5757
RequisitionsPage page = client.getRequisitions(10, 0);
@@ -75,7 +75,7 @@ void test3() throws Exception {
7575
Dotenv dotenv = Dotenv.load();
7676
String secretId = dotenv.get("CARDLESS_SECRET_ID");
7777
String secretKey = dotenv.get("CARDLESS_SECRET_KEY");
78-
CardlessClient client = new CardlessClient(secretId, secretKey);
78+
CardlessClient client = CardlessClient.create(secretId, secretKey);
7979

8080
//when
8181
RequisitionsPage page = client.getRequisitions(10, 0);

0 commit comments

Comments
 (0)