Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .speakeasy/logs/changes/changes.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
<body><h2 id="csharp-sdk-changes">Csharp SDK Changes:</h2>

<ul>
<li><code>Codat.syncPayables.Suppliers.Update()</code>: <strong>Added</strong></li>
<li><code>Codat.bankFeeds.SourceAccounts.GenerateOtp()</code>: <strong>Added</strong></li>
</ul>
</body>
</html>
2 changes: 1 addition & 1 deletion .speakeasy/logs/changes/changes.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
## Csharp SDK Changes:
* `Codat.syncPayables.Suppliers.Update()`: **Added**
* `Codat.bankFeeds.SourceAccounts.GenerateOtp()`: **Added**
5,540 changes: 3,558 additions & 1,982 deletions .speakeasy/logs/changes/new.openapi.yaml

Large diffs are not rendered by default.

5,207 changes: 3,465 additions & 1,742 deletions .speakeasy/logs/changes/old.openapi.yaml

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
speakeasyVersion: 1.759.1
speakeasyVersion: 1.761.1
sources:
bank-feeds-source:
sourceNamespace: bank-feeds-source
sourceRevisionDigest: sha256:f7e363f09d5f09a6ef30f229fc24cd1da3bed7b8aaa5ed54dbcecf5ecf940aac
sourceBlobDigest: sha256:bec22303db7eda4f0434582b2c3646b374f23dd8f317aedb5fe4a63426516ad7
sourceRevisionDigest: sha256:db973c9d8c06047299854a7aa58c29bee90109d9230c0d3014c5f37c9116b7ea
sourceBlobDigest: sha256:ea9603cd302e3ac9fb6b395903cff7fe65012374fe509a445472baf9daca0e35
tags:
- latest
- speakeasy-sdk-regen-1769161196
- 3.0.0
lending-source:
sourceNamespace: lending-source
Expand Down Expand Up @@ -64,10 +63,10 @@ targets:
bank-feeds-library:
source: bank-feeds-source
sourceNamespace: bank-feeds-source
sourceRevisionDigest: sha256:f7e363f09d5f09a6ef30f229fc24cd1da3bed7b8aaa5ed54dbcecf5ecf940aac
sourceBlobDigest: sha256:bec22303db7eda4f0434582b2c3646b374f23dd8f317aedb5fe4a63426516ad7
sourceRevisionDigest: sha256:db973c9d8c06047299854a7aa58c29bee90109d9230c0d3014c5f37c9116b7ea
sourceBlobDigest: sha256:ea9603cd302e3ac9fb6b395903cff7fe65012374fe509a445472baf9daca0e35
codeSamplesNamespace: bank-feeds-source-csharp-code-samples
codeSamplesRevisionDigest: sha256:4ed437078d58acd0a3ea995a9be7ab509ce87fa5cdf821541c552d917bfb96a6
codeSamplesRevisionDigest: sha256:9792e482c6efe6d3c71b38d3ea2aadd30a024f15f34c8a461e69405bffa56b16
lending-library:
source: lending-source
sourceNamespace: lending-source
Expand Down
1 change: 1 addition & 0 deletions bank-feeds/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.speakeasy/reports
.env
.env.local
.DS_Store
Expand Down
357 changes: 197 additions & 160 deletions bank-feeds/.speakeasy/gen.lock

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion bank-feeds/.speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,22 @@ generation:
securityFeb2025: false
sharedErrorComponentsApr2025: false
sharedNestedComponentsJan2026: false
nameOverrideFeb2026: false
auth:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
hoistGlobalSecurity: true
schemas:
allOfMergeStrategy: shallowMerge
requestBodyFieldName: ""
versioningStrategy: automatic
persistentEdits: {}
tests:
generateTests: true
generateNewTests: false
skipResponseBodyAssertions: false
csharp:
version: 8.0.0
version: 8.0.1
additionalDependencies: []
author: Codat
baseErrorName: CodatBankFeedsException
Expand All @@ -37,6 +39,7 @@ csharp:
disableNamespacePascalCasingApr2024: true
dotnetVersion: net8.0
enableCancellationToken: false
enableFormatting: false
enableSourceLink: false
flattenGlobalSecurity: false
flatteningOrder: ""
Expand All @@ -58,6 +61,7 @@ csharp:
outputModelSuffix: output
packageName: Codat.BankFeeds
packageTags: ""
respectTitlesForPrimitiveUnionMembers: false
responseFormat: envelope
sourceDirectory: ""
useNodatime: true
18 changes: 14 additions & 4 deletions bank-feeds/Codat/BankFeeds/AccountMapping.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@ public async Task<GetBankAccountMappingResponse> GetAsync(
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);

if (!httpRequest.Headers.Contains("Accept"))
{
httpRequest.Headers.Add("Accept", "application/json");
}

if (SDKConfiguration.SecuritySource != null)
{
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
Expand Down Expand Up @@ -209,9 +214,9 @@ public async Task<GetBankAccountMappingResponse> GetAsync(
}
}
}
catch (Exception error)
catch (Exception _hookError)
{
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error);
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, _hookError);
if (_httpResponse != null)
{
httpResponse = _httpResponse;
Expand Down Expand Up @@ -362,6 +367,11 @@ public async Task<CreateBankAccountMappingResponse> CreateAsync(
var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString);
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);

if (!httpRequest.Headers.Contains("Accept"))
{
httpRequest.Headers.Add("Accept", "application/json");
}

var serializedBody = RequestBodySerializer.Serialize(request, "BankFeedAccountMapping", "json", false, true);
if (serializedBody != null)
{
Expand Down Expand Up @@ -427,9 +437,9 @@ public async Task<CreateBankAccountMappingResponse> CreateAsync(
}
}
}
catch (Exception error)
catch (Exception _hookError)
{
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error);
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, _hookError);
if (_httpResponse != null)
{
httpResponse = _httpResponse;
Expand Down
27 changes: 21 additions & 6 deletions bank-feeds/Codat/BankFeeds/BankAccounts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,11 @@ public async Task<ListBankAccountsResponse> ListAsync(
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);

if (!httpRequest.Headers.Contains("Accept"))
{
httpRequest.Headers.Add("Accept", "application/json");
}

if (SDKConfiguration.SecuritySource != null)
{
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
Expand Down Expand Up @@ -207,9 +212,9 @@ public async Task<ListBankAccountsResponse> ListAsync(
}
}
}
catch (Exception error)
catch (Exception _hookError)
{
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error);
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, _hookError);
if (_httpResponse != null)
{
httpResponse = _httpResponse;
Expand Down Expand Up @@ -337,6 +342,11 @@ public async Task<GetCreateBankAccountsModelResponse> GetCreateModelAsync(
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);

if (!httpRequest.Headers.Contains("Accept"))
{
httpRequest.Headers.Add("Accept", "application/json");
}

if (SDKConfiguration.SecuritySource != null)
{
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
Expand Down Expand Up @@ -396,9 +406,9 @@ public async Task<GetCreateBankAccountsModelResponse> GetCreateModelAsync(
}
}
}
catch (Exception error)
catch (Exception _hookError)
{
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error);
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, _hookError);
if (_httpResponse != null)
{
httpResponse = _httpResponse;
Expand Down Expand Up @@ -526,6 +536,11 @@ public async Task<CreateBankAccountResponse> CreateAsync(
var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString);
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);

if (!httpRequest.Headers.Contains("Accept"))
{
httpRequest.Headers.Add("Accept", "application/json");
}

var serializedBody = RequestBodySerializer.Serialize(request, "BankAccountPrototype", "json", false, true);
if (serializedBody != null)
{
Expand Down Expand Up @@ -591,9 +606,9 @@ public async Task<CreateBankAccountResponse> CreateAsync(
}
}
}
catch (Exception error)
catch (Exception _hookError)
{
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error);
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, _hookError);
if (_httpResponse != null)
{
httpResponse = _httpResponse;
Expand Down
2 changes: 1 addition & 1 deletion bank-feeds/Codat/BankFeeds/Codat.BankFeeds.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<IsPackable>true</IsPackable>
<PackageId>Codat.BankFeeds</PackageId>
<Version>8.0.0</Version>
<Version>8.0.1</Version>
<TargetFramework>net8.0</TargetFramework>
<Authors>Codat</Authors>
<Copyright>Copyright (c) Codat 2026</Copyright>
Expand Down
63 changes: 49 additions & 14 deletions bank-feeds/Codat/BankFeeds/Companies.cs
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,11 @@ public async Task<CreateCompanyResponse> CreateAsync(
var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString);
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);

if (!httpRequest.Headers.Contains("Accept"))
{
httpRequest.Headers.Add("Accept", "application/json");
}

var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json", false, true);
if (serializedBody != null)
{
Expand Down Expand Up @@ -293,9 +298,9 @@ public async Task<CreateCompanyResponse> CreateAsync(
}
}
}
catch (Exception error)
catch (Exception _hookError)
{
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error);
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, _hookError);
if (_httpResponse != null)
{
httpResponse = _httpResponse;
Expand Down Expand Up @@ -430,6 +435,11 @@ public async Task<ListCompaniesResponse> ListAsync(
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);

if (!httpRequest.Headers.Contains("Accept"))
{
httpRequest.Headers.Add("Accept", "application/json");
}

if (SDKConfiguration.SecuritySource != null)
{
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
Expand Down Expand Up @@ -489,9 +499,9 @@ public async Task<ListCompaniesResponse> ListAsync(
}
}
}
catch (Exception error)
catch (Exception _hookError)
{
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error);
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, _hookError);
if (_httpResponse != null)
{
httpResponse = _httpResponse;
Expand Down Expand Up @@ -613,6 +623,11 @@ public async Task<GetCompanyResponse> GetAsync(GetCompanyRequest request, Retry
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);

if (!httpRequest.Headers.Contains("Accept"))
{
httpRequest.Headers.Add("Accept", "application/json");
}

if (SDKConfiguration.SecuritySource != null)
{
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
Expand Down Expand Up @@ -672,9 +687,9 @@ public async Task<GetCompanyResponse> GetAsync(GetCompanyRequest request, Retry
}
}
}
catch (Exception error)
catch (Exception _hookError)
{
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error);
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, _hookError);
if (_httpResponse != null)
{
httpResponse = _httpResponse;
Expand Down Expand Up @@ -799,6 +814,11 @@ public async Task<DeleteCompanyResponse> DeleteAsync(
var httpRequest = new HttpRequestMessage(HttpMethod.Delete, urlString);
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);

if (!httpRequest.Headers.Contains("Accept"))
{
httpRequest.Headers.Add("Accept", "application/json");
}

if (SDKConfiguration.SecuritySource != null)
{
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
Expand Down Expand Up @@ -858,9 +878,9 @@ public async Task<DeleteCompanyResponse> DeleteAsync(
}
}
}
catch (Exception error)
catch (Exception _hookError)
{
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error);
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, _hookError);
if (_httpResponse != null)
{
httpResponse = _httpResponse;
Expand Down Expand Up @@ -967,6 +987,11 @@ public async Task<ReplaceCompanyResponse> ReplaceAsync(
var httpRequest = new HttpRequestMessage(HttpMethod.Put, urlString);
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);

if (!httpRequest.Headers.Contains("Accept"))
{
httpRequest.Headers.Add("Accept", "application/json");
}

var serializedBody = RequestBodySerializer.Serialize(request, "CompanyRequestBody", "json", false, true);
if (serializedBody != null)
{
Expand Down Expand Up @@ -1032,9 +1057,9 @@ public async Task<ReplaceCompanyResponse> ReplaceAsync(
}
}
}
catch (Exception error)
catch (Exception _hookError)
{
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error);
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, _hookError);
if (_httpResponse != null)
{
httpResponse = _httpResponse;
Expand Down Expand Up @@ -1160,6 +1185,11 @@ public async Task<UpdateCompanyResponse> UpdateAsync(
var httpRequest = new HttpRequestMessage(HttpMethod.Patch, urlString);
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);

if (!httpRequest.Headers.Contains("Accept"))
{
httpRequest.Headers.Add("Accept", "application/json");
}

var serializedBody = RequestBodySerializer.Serialize(request, "CompanyUpdateRequest", "json", false, true);
if (serializedBody != null)
{
Expand Down Expand Up @@ -1225,9 +1255,9 @@ public async Task<UpdateCompanyResponse> UpdateAsync(
}
}
}
catch (Exception error)
catch (Exception _hookError)
{
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error);
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, _hookError);
if (_httpResponse != null)
{
httpResponse = _httpResponse;
Expand Down Expand Up @@ -1351,6 +1381,11 @@ public async Task<GetCompanyAccessTokenResponse> GetAccessTokenAsync(
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);

if (!httpRequest.Headers.Contains("Accept"))
{
httpRequest.Headers.Add("Accept", "application/json");
}

if (SDKConfiguration.SecuritySource != null)
{
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
Expand Down Expand Up @@ -1410,9 +1445,9 @@ public async Task<GetCompanyAccessTokenResponse> GetAccessTokenAsync(
}
}
}
catch (Exception error)
catch (Exception _hookError)
{
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error);
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, _hookError);
if (_httpResponse != null)
{
httpResponse = _httpResponse;
Expand Down
Loading