@@ -38,14 +38,17 @@ The Lending API is built on top of the latest accounting, commerce, and banking
3838
3939<!-- Start Table of Contents [toc] -->
4040## Table of Contents
41+ <!-- $toc-max-depth=2 -->
42+ * [ Endpoints] ( #endpoints )
43+ * [ SDK Installation] ( #sdk-installation )
44+ * [ Example Usage] ( #example-usage )
45+ * [ SDK Example Usage] ( #sdk-example-usage )
46+ * [ Available Resources and Operations] ( #available-resources-and-operations )
47+ * [ Retries] ( #retries )
48+ * [ Error Handling] ( #error-handling )
49+ * [ Server Selection] ( #server-selection )
50+ * [ Authentication] ( #authentication )
4151
42- * [ SDK Installation] ( #sdk-installation )
43- * [ SDK Example Usage] ( #sdk-example-usage )
44- * [ Available Resources and Operations] ( #available-resources-and-operations )
45- * [ Retries] ( #retries )
46- * [ Error Handling] ( #error-handling )
47- * [ Server Selection] ( #server-selection )
48- * [ Authentication] ( #authentication )
4952<!-- End Table of Contents [toc] -->
5053
5154<!-- Start SDK Installation [installation] -->
@@ -59,15 +62,15 @@ The samples below show how a published SDK artifact is used:
5962
6063Gradle:
6164``` groovy
62- implementation 'io.codat:lending:3.0 .0'
65+ implementation 'io.codat:lending:3.1 .0'
6366```
6467
6568Maven:
6669``` xml
6770<dependency >
6871 <groupId >io.codat</groupId >
6972 <artifactId >lending</artifactId >
70- <version >3.0 .0</version >
73+ <version >3.1 .0</version >
7174</dependency >
7275```
7376
@@ -96,34 +99,37 @@ gradlew.bat publishToMavenLocal -Pskip.signing
9699package hello.world ;
97100
98101import io.codat.lending.CodatLending ;
99- import io.codat.lending.models.errors.ErrorMessage ;
100- import io.codat.lending.models.operations.CreateCompanyResponse ;
101- import io.codat.lending.models.shared.CompanyRequestBody ;
102- import io.codat.lending.models.shared.Security ;
102+ import io.codat.lending.models.shared.AccountCategoriesUpdatedWebhook ;
103+ import io.codat.lending.models.shared.AccountCategoriesUpdatedWebhookData ;
104+ import io.codat.lending.models.webhooks.AccountCategoriesUpdatedResponse ;
103105import java.lang.Exception ;
104106
105107public class Application {
106108
107- public static void main (String [] args ) throws ErrorMessage , Exception {
109+ public static void main (String [] args ) throws Exception {
108110
109111 CodatLending sdk = CodatLending . builder()
110- .security(Security . builder()
111- .authHeader(" Basic BASE_64_ENCODED(API_KEY)" )
112- .build())
113112 .build();
114113
115- CompanyRequestBody req = CompanyRequestBody . builder()
116- .name(" Bank of Dave" )
117- .description(" Requested early access to the new financing scheme." )
114+ AccountCategoriesUpdatedWebhook req = AccountCategoriesUpdatedWebhook . builder()
115+ .alertId(" a9367074-b5c3-42c4-9be4-be129f43577e" )
116+ .clientId(" bae71d36-ff47-420a-b4a6-f8c9ddf41140" )
117+ .clientName(" Bank of Dave" )
118+ .companyId(" 8a210b68-6988-11ed-a1eb-0242ac120002" )
119+ .data(AccountCategoriesUpdatedWebhookData . builder()
120+ .modifiedDate(" 2022-10-23" )
121+ .build())
122+ .dataConnectionId(" 2e9d2c44-f675-40ba-8049-353bfcb5e171" )
123+ .message(" Account categories updated for company f1c35bdc-1546-41b9-baf4-3f31135af968." )
124+ .ruleId(" 70af3071-65d9-4ec3-b3cb-5283e8d55dac" )
125+ .ruleType(" Account Categories Updated" )
118126 .build();
119127
120- CreateCompanyResponse res = sdk. companies() . create ()
128+ AccountCategoriesUpdatedResponse res = sdk. accountCategoriesUpdated ()
121129 .request(req)
122130 .call();
123131
124- if (res. company(). isPresent()) {
125- // handle response
126- }
132+ // handle response
127133 }
128134}
129135```
@@ -359,6 +365,7 @@ public class Application {
359365
360366* [ create] ( docs/sdks/sourceaccounts/README.md#create ) - Create source account
361367* [ createMapping] ( docs/sdks/sourceaccounts/README.md#createmapping ) - Create bank feed account mapping
368+ * [ listMappings] ( docs/sdks/sourceaccounts/README.md#listmappings ) - List bank feed account mappings
362369
363370#### [ loanWriteback().suppliers()] ( docs/sdks/codatlendingsuppliers/README.md )
364371
@@ -512,7 +519,7 @@ public class Application {
512519 .build();
513520
514521 CompanyRequestBody req = CompanyRequestBody . builder()
515- .name(" Bank of Dave " )
522+ .name(" Technicalium " )
516523 .description(" Requested early access to the new financing scheme." )
517524 .build();
518525
@@ -572,7 +579,7 @@ public class Application {
572579 .build();
573580
574581 CompanyRequestBody req = CompanyRequestBody . builder()
575- .name(" Bank of Dave " )
582+ .name(" Technicalium " )
576583 .description(" Requested early access to the new financing scheme." )
577584 .build();
578585
@@ -623,7 +630,7 @@ public class Application {
623630 .build();
624631
625632 CompanyRequestBody req = CompanyRequestBody . builder()
626- .name(" Bank of Dave " )
633+ .name(" Technicalium " )
627634 .description(" Requested early access to the new financing scheme." )
628635 .build();
629636
@@ -667,7 +674,7 @@ public class Application {
667674 .build();
668675
669676 CompanyRequestBody req = CompanyRequestBody . builder()
670- .name(" Bank of Dave " )
677+ .name(" Technicalium " )
671678 .description(" Requested early access to the new financing scheme." )
672679 .build();
673680
@@ -716,7 +723,7 @@ public class Application {
716723 .build();
717724
718725 CompanyRequestBody req = CompanyRequestBody . builder()
719- .name(" Bank of Dave " )
726+ .name(" Technicalium " )
720727 .description(" Requested early access to the new financing scheme." )
721728 .build();
722729
0 commit comments