From b24a27fc551511e8e1389d325afd5ce6f2380b7b Mon Sep 17 00:00:00 2001 From: Polina <112084241+pzaichkina@users.noreply.github.com> Date: Fri, 27 Feb 2026 12:08:41 +0000 Subject: [PATCH 1/3] Remove Java --- .../optimize/connection-management.md | 21 ---- docs/bank-feeds/create-account.md | 23 ---- .../guides/loan-writeback/introduction.md | 2 +- .../loan-writeback/record-general-loan.md | 117 ------------------ docs/using-the-api/managing-companies.md | 84 ------------- docs/using-the-api/push.md | 45 ------- docs/using-the-api/upload-attachments.md | 22 ---- .../using-the-api/webhooks/create-consumer.md | 48 ------- src/components/ClientLibraries/index.tsx | 15 --- 9 files changed, 1 insertion(+), 376 deletions(-) diff --git a/docs/auth-flow/optimize/connection-management.md b/docs/auth-flow/optimize/connection-management.md index 1462b28338..9ad82a408b 100644 --- a/docs/auth-flow/optimize/connection-management.md +++ b/docs/auth-flow/optimize/connection-management.md @@ -118,27 +118,6 @@ if accessTokenReq.StatusCode == 200 { } ``` - - - - -```java -GetConnectionManagementAccessTokenRequest accessTokenReq = GetConnectionManagementAccessTokenRequest.builder() - .companyId(companyId) - .build(); - -GetConnectionManagementAccessTokenResponse accessTokenRes = platformClient.connectionManagement().getAccessToken() - .request(accessTokenReq) - .call(); - -if (accessTokenRes.connectionManagementAccessToken().isPresent()) { - accessToken = companyResponse.connectionManagementAccessToken().get().accessToken; - System.out.println(accessToken); -} -``` - - - Pass the token to the Connections component so that we can get the company-specific information and display it in the UI. We summarized this process on the diagram: diff --git a/docs/bank-feeds/create-account.md b/docs/bank-feeds/create-account.md index e4f35283d9..fdd4fd2b51 100644 --- a/docs/bank-feeds/create-account.md +++ b/docs/bank-feeds/create-account.md @@ -417,29 +417,6 @@ sourceAccountResponse, err := bankFeedsClient.SourceAccounts.Create(ctx, operati - - -```java -CreateSourceAccountRequest req = CreateSourceAccountRequest.builder() - .requestBody(CreateSourceAccountRequestBody.of(SourceAccountV2.builder() - .id("ac-001") - .accountName("Checking Account") - .accountType(AccountType.LOAN) - .accountNumber("01120912") - .currency("USD") - .balance(new BigDecimal("4002")) - .build())) - .companyId(companyId) - .connectionId(connectionId) - .build(); - -CreateSourceAccountResponse res = bankFeedsClient.sourceAccounts().create() - .request(req) - .call(); -``` - - - Once the source account is successfully created, guide your customer through the **mapping process** to associate it with a corresponding target account in their accounting software. The account will stay in a `pending` status until that happens, and it must change to `linked` before you can successfully transmit any bank transactions. diff --git a/docs/lending/guides/loan-writeback/introduction.md b/docs/lending/guides/loan-writeback/introduction.md index 065018c202..60a23a04a3 100644 --- a/docs/lending/guides/loan-writeback/introduction.md +++ b/docs/lending/guides/loan-writeback/introduction.md @@ -22,7 +22,7 @@ This solution covers the loan writeback procedure for both general lending, such Deploy your loan writeback solution quicker by using our Lending SDK to integrate directly with our API. The loan writeback namespace includes all the methods you need to develop your loan writeback solution. -Check out our SDKs for [TypeScript](https://github.com/codatio/client-sdk-typescript/tree/main/lending#loanwriteback), [Python](https://github.com/codatio/client-sdk-python/tree/main/lending#loan_writeback), [C#](https://github.com/codatio/client-sdk-csharp/tree/main/lending#loanwriteback), [Go](https://github.com/codatio/client-sdk-go/tree/main/lending#loanwriteback), and [Java](https://github.com/codatio/client-sdk-java/tree/main/lending#loanwriteback). +Check out our SDKs for [TypeScript](https://github.com/codatio/client-sdk-typescript/tree/main/lending#loanwriteback), [Python](https://github.com/codatio/client-sdk-python/tree/main/lending#loan_writeback), [C#](https://github.com/codatio/client-sdk-csharp/tree/main/lending#loanwriteback), and [Go](https://github.com/codatio/client-sdk-go/tree/main/lending#loanwriteback). ::: diff --git a/docs/lending/guides/loan-writeback/record-general-loan.md b/docs/lending/guides/loan-writeback/record-general-loan.md index 04c1ac486e..559e4a4acd 100644 --- a/docs/lending/guides/loan-writeback/record-general-loan.md +++ b/docs/lending/guides/loan-writeback/record-general-loan.md @@ -183,40 +183,6 @@ transfersCreateResponse, err := codatLending.LoanWriteback.Transfers.Create(ctx, - - -```java -CreateTransferRequest req = CreateTransferRequest.builder() - .companyId(companyId) - .connectionId(connectionId) - .accountingTransfer(AccountingTransfer.builder() - .date(repaymentDate) - .from(TransferAccount.builder() - .accountRef(AccountRef.builder() - .id(borrowersBankAccount.id) - .build() - ) - .amount(totalRepaymentAmount) - .currency(borrowersBankAccount.currency) - .build()) - .to(TransferAccount.builder() - .accountRef(AccountRef.builder() - .id(lendersBankAccountId) - .build() - ) - .amount(totalRepaymentAmount) - .currency(borrowersBankAccount.currency) - .build()) - .build()) - .build(); - -CreateTransferResponse res = codatLending.loanWriteback().transfers().create() - .request(req) - .call(); -``` - - - ```http @@ -437,62 +403,6 @@ res, err := codatLending.LoanWriteback.DirectCosts.Create(ctx, operations.Create - - -```java -CreateDirectCostRequest req = CreateDirectCostRequest.builder() - .companyId(companyId) - .connectionId(connectionId) - .directCostPrototype(DirectCostPrototype.builder() - contactRef(ContactRef.builder() - .dataType("suppliers") - .id(supplier.Id) - .build() - ) - .currency(borrowersBankAccount.currency) - .issueDate(repaymentDate) - .lineItems(List.of( - DirectCostLineItem.builder() - .accountRef(AccountRef.builder() - .id(expenseAccount.Id) - .build() - ) - .description("Fees and/or interest") - .quantity(new BigDecimal("1")) - - .taxAmount(new BigDecimal("0")) - .unitAmount(new BigDecimal(interestAndFeesAmount)) - .build() - ) - ) - .paymentAllocations(List.of( - AccountingPaymentAllocation.builder() - .allocation(Allocation.builder() - .totalAmount(new BigDecimal(interestAndFeesAmount)) - .build() - ) - .payment(PaymentAllocationPayment.builder() - .accountRef(AccountRef.builder() - .id(expenseAccount.Id) - .build() - ) - .build() - ) - .build() - ) - ) - .taxAmount(new BigDecimal("0")) - .totalAmount(new BigDecimal(interestAndFeesAmount)) - .build()) - .build(); - -CreateDirectCostResponse res = codatLending.loanWriteback().directCosts().create() - .request(req) - .call(); -``` - - - ```http @@ -641,33 +551,6 @@ bankTransactionsCreateRequest, err := codatLending.LoanWriteback.BankTransaction - - -```java -CreateBankTransactionsRequest req = CreateBankTransactionsRequest.builder() - .companyId(companyId) - .connectionId(connectionId) - .accountId(lendersBankAccountId) - .accountingCreateBankTransactions(AccountingCreateBankTransactions.builder() - .accountId(lendersBankAccountId) - .transactions(List.of( - CreateBankAccountTransaction.builder() - .id(transactionID) // Unique identifier for this bank transaction - .amount(new BigDecimal(totalRepaymentAmount)) - .date(repaymentDate) - .description(description) // Include a reference to the direct cost, the loan and you, the lender - .build())) - .build()) - .build(); - -CreateBankTransactionsResponse res = codatLending.loanWriteback().bankTransactions().create() - .request(req) - .call(); - -``` - - - ```http diff --git a/docs/using-the-api/managing-companies.md b/docs/using-the-api/managing-companies.md index caf7b212b3..15780a5c53 100644 --- a/docs/using-the-api/managing-companies.md +++ b/docs/using-the-api/managing-companies.md @@ -97,25 +97,6 @@ if companyCreatedRes.Company != nil { - - -```go -CompanyRequestBody req = CompanyRequestBody.builder() - .name("Toft stores") - .description("Need a loan for refurb.") - .build(); - -CreateCompanyResponse companyCreatedRes = platformClient.companies().create() - .request(req) - .call(); - -if (companyCreatedRes.company().isPresent()) { - // handle response -} -``` - - - :::caution Retain the company ID @@ -228,30 +209,6 @@ if companyCreatedRes.Company != nil { - - -```java -CompanyRequestBody req = CompanyRequestBody.builder() - .name("Toft stores") - .tags( - java.util.Map.ofEntries( - entry("uid", "cust_1MtJUT2eZvKYlo2CNaw2HvEv"), - entry("region", "uk") - ) - ) - .build(); - -CreateCompanyResponse companyCreatedRes = platformClient.companies().create() - .request(req) - .call(); - -if (companyCreatedRes.company().isPresent()) { - // handle response -} -``` - - - @@ -352,33 +309,6 @@ if companyUpdatedRes.Company != nil { - - -```java -UpdateCompanyRequest req = UpdateCompanyRequest.builder() - .companyId("8a210b68-6988-11ed-a1eb-0242ac120002") - .companyRequestBody(CompanyRequestBody.builder() - .name("Bank of Dave") - .tags( - java.util.Map.ofEntries( - entry("uid", "cust_1MtJUT2eZvKYlo2CNaw2HvEv"), - entry("region", "uk") - ) - ).build() - ) - .build(); - -UpdateCompanyResponse companyUpdatedRes = platformClient.companies().update() - .request(req) - .call(); - -if (companyUpdatedRes.company().isPresent()) { - // handle response -} -``` - - - @@ -444,20 +374,6 @@ res, err := platformClient.Companies.List(ctx, operations.ListCompaniesRequest{ - - -```java -ListCompaniesRequest req = ListCompaniesRequest.builder() - .tags(String.format("uid=%d", customerId)) - .build(); - -ListCompaniesResponse res = platformClient.companies().list() - .request(req) - .call(); -``` - - - ### Authorize access to company data diff --git a/docs/using-the-api/push.md b/docs/using-the-api/push.md index 34be79ca93..c6224289fd 100644 --- a/docs/using-the-api/push.md +++ b/docs/using-the-api/push.md @@ -345,51 +345,6 @@ accountCreateResponse, err := expensesClient.Accounts.Create(ctx, operations.Cre - - - - -```java -CreateAccountRequest accountCreateRequest = CreateAccountRequest.builder() - .companyId(companyId) - .connectionId(connectionId) - .accountPrototype(AccountPrototype.builder() - .nominalCode("4200123456") - .name("Codat Assets Account") - .fullyQualifiedCategory("Asset.Current") - .build()) - .build(); - -CreateAccountResponse accountCreateResponse = expensesClient.accounts().create() - .request(accountCreateRequest) - .call(); -``` - - - - - -```java -CreateAccountRequest accountCreateRequest = CreateAccountRequest.builder() - .companyId(companyId) - .connectionId(connectionId) - .accountPrototype(AccountPrototype.builder() - .nominalCode("350045006500") // Nominal code intentionally consists of too many characters - .name("Excessive Length Account") - .fullyQualifiedCategory("Asset.Current") - .build()) - .build(); - -CreateAccountResponse accountCreateResponse = expensesClient.accounts().create() - .request(accountCreateRequest) - .call(); -``` - - - - - - This results in a corresponding response from the endpoint, which includes the following details: diff --git a/docs/using-the-api/upload-attachments.md b/docs/using-the-api/upload-attachments.md index 80c12b2d86..2dba535435 100644 --- a/docs/using-the-api/upload-attachments.md +++ b/docs/using-the-api/upload-attachments.md @@ -119,28 +119,6 @@ uploadAttachmentResponse, err := sdk.Bills.UploadAttachment(ctx, operations.Uplo - - -```java -UploadBillAttachmentRequest uploadAttachmentRequest = UploadBillAttachmentRequest.builder() - .companyId(companyId) - .connectionId(connectionId) - .billId(billId) - .attachmentUpload(AttachmentUpload.builder() - .file(CodatFile.builder() - .content(fileContent.getBytes()) - .fileName(fileName) - .build()) - .build()) - .build(); - -UploadBillAttachmentResponse uploadAttachmentResponse = sdk.bills().uploadAttachment() - .request(uploadAttachmentRequest) - .call(); -``` - - - ### Consume the write webhook diff --git a/docs/using-the-api/webhooks/create-consumer.md b/docs/using-the-api/webhooks/create-consumer.md index 864ec286ae..605bd28fbd 100644 --- a/docs/using-the-api/webhooks/create-consumer.md +++ b/docs/using-the-api/webhooks/create-consumer.md @@ -186,30 +186,6 @@ go get github.com/svix/svix-webhooks/go - - -#### Gradle - -Add this dependency to your project's build file: - -```sh -implementation "com.svix:svix:0.x.y" -``` - -#### Maven - -Add this dependency to your project's POM: - -```xml - - com.svix - svix - 0.x.y - -``` - - - ```sh @@ -385,30 +361,6 @@ err := wh.Verify(payload, headers) - - -```java -import com.svix.Webhook; - -String secret = "whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw"; - -// These were all sent from the server -HashMap> headerMap = new HashMap>(); -headerMap.put("webhook-id", Arrays.asList("msg_p5jXN8AQM9LWM0D4loKWxJek")); -headerMap.put("webhook-timestamp", Arrays.asList("1614265330")); -headerMap.put("webhook-signature", Arrays.asList("v1,g0hM9SsE+OTPJTGt/tmIKtSyZlE3uFJELVlNIOLJ1OE=")); -HttpHeaders headers = HttpHeaders.of(headerMap, BiPredicate) - -String payload = "{\"test\": 2432232314}"; - -Webhook webhook = new Webhook(secret); - -webhook.verify(payload, headers) -// throws WebhookVerificationError exception on failure. -``` - - - ```rust diff --git a/src/components/ClientLibraries/index.tsx b/src/components/ClientLibraries/index.tsx index 139e91aace..660277e592 100644 --- a/src/components/ClientLibraries/index.tsx +++ b/src/components/ClientLibraries/index.tsx @@ -35,13 +35,6 @@ const languages = [ packageLocation: "https://pkg.go.dev/github.com/codatio/client-sdk-go/", alt: "Go version", }, - { - name: "java", - namePretty: "Java", - icon: "/img/libraries/java.svg", - packageLocation: "https://central.sonatype.com/artifact/io.codat/", - alt: "Java version", - }, ]; const capitalizeFirstCharacter = (name: string) => @@ -74,8 +67,6 @@ const getPackageName = (productName, language) => { return getCSharpPackageName(productName); case "go": return productName; - case "java": - return productName; default: throw new Error( "Unable to determine package name of " + productName + "in " + language, @@ -90,12 +81,6 @@ const getShieldUrl = (productName, language) => { "https://pkg.go.dev/badge/github.com/codatio/client-sdk-go/" + productName ); - case "java": - return ( - "https://img.shields.io/maven-central/v/io.codat/" + - productName + - "?label=maven-central%20(java)" - ); default: return ( "https://img.shields.io/" + From d5a7ae6f9012a61491cdadf1931f68ae15722d58 Mon Sep 17 00:00:00 2001 From: Polina <112084241+pzaichkina@users.noreply.github.com> Date: Fri, 27 Feb 2026 12:09:16 +0000 Subject: [PATCH 2/3] remove first steps --- sidebars.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sidebars.js b/sidebars.js index 96d7c77b74..e3877e6cd7 100644 --- a/sidebars.js +++ b/sidebars.js @@ -41,7 +41,7 @@ module.exports = { id: "get-started/overview", }, items: [ - "get-started/first-steps", + //"get-started/first-steps", //"get-started/first-ten-minutes", "get-started/libraries", "get-started/developer-resources", From 5a2925fe0d71cbd0d7178db8c01dc76115b44758 Mon Sep 17 00:00:00 2001 From: Polina <112084241+pzaichkina@users.noreply.github.com> Date: Fri, 27 Feb 2026 12:15:30 +0000 Subject: [PATCH 3/3] Fix deployment error --- docs/auth-flow/optimize/connection-management.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/auth-flow/optimize/connection-management.md b/docs/auth-flow/optimize/connection-management.md index 9ad82a408b..33cc63b645 100644 --- a/docs/auth-flow/optimize/connection-management.md +++ b/docs/auth-flow/optimize/connection-management.md @@ -118,6 +118,8 @@ if accessTokenReq.StatusCode == 200 { } ``` + + Pass the token to the Connections component so that we can get the company-specific information and display it in the UI. We summarized this process on the diagram: