@@ -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