Skip to content

Commit 8dad2f7

Browse files
github-actions[bot]speakeasybotpj-simpson
authored
## Csharp SDK Changes: (#348)
* `Codat.bankFeeds.SourceAccounts.GenerateOtp()`: **Added** Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: Peter Simpson <40800258+pj-simpson@users.noreply.github.com>
1 parent b1ce32e commit 8dad2f7

82 files changed

Lines changed: 9185 additions & 4086 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.speakeasy/logs/changes/changes.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
<body><h2 id="csharp-sdk-changes">Csharp SDK Changes:</h2>
9999

100100
<ul>
101-
<li><code>Codat.syncPayables.Suppliers.Update()</code>: <strong>Added</strong></li>
101+
<li><code>Codat.bankFeeds.SourceAccounts.GenerateOtp()</code>: <strong>Added</strong></li>
102102
</ul>
103103
</body>
104104
</html>

.speakeasy/logs/changes/changes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
## Csharp SDK Changes:
2-
* `Codat.syncPayables.Suppliers.Update()`: **Added**
2+
* `Codat.bankFeeds.SourceAccounts.GenerateOtp()`: **Added**

.speakeasy/logs/changes/new.openapi.yaml

Lines changed: 3558 additions & 1982 deletions
Large diffs are not rendered by default.

.speakeasy/logs/changes/old.openapi.yaml

Lines changed: 3465 additions & 1742 deletions
Large diffs are not rendered by default.

.speakeasy/workflow.lock

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
speakeasyVersion: 1.759.1
1+
speakeasyVersion: 1.761.1
22
sources:
33
bank-feeds-source:
44
sourceNamespace: bank-feeds-source
5-
sourceRevisionDigest: sha256:f7e363f09d5f09a6ef30f229fc24cd1da3bed7b8aaa5ed54dbcecf5ecf940aac
6-
sourceBlobDigest: sha256:bec22303db7eda4f0434582b2c3646b374f23dd8f317aedb5fe4a63426516ad7
5+
sourceRevisionDigest: sha256:db973c9d8c06047299854a7aa58c29bee90109d9230c0d3014c5f37c9116b7ea
6+
sourceBlobDigest: sha256:ea9603cd302e3ac9fb6b395903cff7fe65012374fe509a445472baf9daca0e35
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1769161196
109
- 3.0.0
1110
lending-source:
1211
sourceNamespace: lending-source
@@ -64,10 +63,10 @@ targets:
6463
bank-feeds-library:
6564
source: bank-feeds-source
6665
sourceNamespace: bank-feeds-source
67-
sourceRevisionDigest: sha256:f7e363f09d5f09a6ef30f229fc24cd1da3bed7b8aaa5ed54dbcecf5ecf940aac
68-
sourceBlobDigest: sha256:bec22303db7eda4f0434582b2c3646b374f23dd8f317aedb5fe4a63426516ad7
66+
sourceRevisionDigest: sha256:db973c9d8c06047299854a7aa58c29bee90109d9230c0d3014c5f37c9116b7ea
67+
sourceBlobDigest: sha256:ea9603cd302e3ac9fb6b395903cff7fe65012374fe509a445472baf9daca0e35
6968
codeSamplesNamespace: bank-feeds-source-csharp-code-samples
70-
codeSamplesRevisionDigest: sha256:4ed437078d58acd0a3ea995a9be7ab509ce87fa5cdf821541c552d917bfb96a6
69+
codeSamplesRevisionDigest: sha256:9792e482c6efe6d3c71b38d3ea2aadd30a024f15f34c8a461e69405bffa56b16
7170
lending-library:
7271
source: lending-source
7372
sourceNamespace: lending-source

bank-feeds/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.speakeasy/reports
12
.env
23
.env.local
34
.DS_Store

bank-feeds/.speakeasy/gen.lock

Lines changed: 197 additions & 160 deletions
Large diffs are not rendered by default.

bank-feeds/.speakeasy/gen.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,22 @@ generation:
1414
securityFeb2025: false
1515
sharedErrorComponentsApr2025: false
1616
sharedNestedComponentsJan2026: false
17+
nameOverrideFeb2026: false
1718
auth:
1819
oAuth2ClientCredentialsEnabled: false
1920
oAuth2PasswordEnabled: false
2021
hoistGlobalSecurity: true
2122
schemas:
2223
allOfMergeStrategy: shallowMerge
2324
requestBodyFieldName: ""
25+
versioningStrategy: automatic
2426
persistentEdits: {}
2527
tests:
2628
generateTests: true
2729
generateNewTests: false
2830
skipResponseBodyAssertions: false
2931
csharp:
30-
version: 8.0.0
32+
version: 8.0.1
3133
additionalDependencies: []
3234
author: Codat
3335
baseErrorName: CodatBankFeedsException
@@ -37,6 +39,7 @@ csharp:
3739
disableNamespacePascalCasingApr2024: true
3840
dotnetVersion: net8.0
3941
enableCancellationToken: false
42+
enableFormatting: false
4043
enableSourceLink: false
4144
flattenGlobalSecurity: false
4245
flatteningOrder: ""
@@ -58,6 +61,7 @@ csharp:
5861
outputModelSuffix: output
5962
packageName: Codat.BankFeeds
6063
packageTags: ""
64+
respectTitlesForPrimitiveUnionMembers: false
6165
responseFormat: envelope
6266
sourceDirectory: ""
6367
useNodatime: true

bank-feeds/Codat/BankFeeds/AccountMapping.cs

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,11 @@ public async Task<GetBankAccountMappingResponse> GetAsync(
150150
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
151151
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);
152152

153+
if (!httpRequest.Headers.Contains("Accept"))
154+
{
155+
httpRequest.Headers.Add("Accept", "application/json");
156+
}
157+
153158
if (SDKConfiguration.SecuritySource != null)
154159
{
155160
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
@@ -209,9 +214,9 @@ public async Task<GetBankAccountMappingResponse> GetAsync(
209214
}
210215
}
211216
}
212-
catch (Exception error)
217+
catch (Exception _hookError)
213218
{
214-
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error);
219+
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, _hookError);
215220
if (_httpResponse != null)
216221
{
217222
httpResponse = _httpResponse;
@@ -362,6 +367,11 @@ public async Task<CreateBankAccountMappingResponse> CreateAsync(
362367
var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString);
363368
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);
364369

370+
if (!httpRequest.Headers.Contains("Accept"))
371+
{
372+
httpRequest.Headers.Add("Accept", "application/json");
373+
}
374+
365375
var serializedBody = RequestBodySerializer.Serialize(request, "BankFeedAccountMapping", "json", false, true);
366376
if (serializedBody != null)
367377
{
@@ -427,9 +437,9 @@ public async Task<CreateBankAccountMappingResponse> CreateAsync(
427437
}
428438
}
429439
}
430-
catch (Exception error)
440+
catch (Exception _hookError)
431441
{
432-
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error);
442+
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, _hookError);
433443
if (_httpResponse != null)
434444
{
435445
httpResponse = _httpResponse;

bank-feeds/Codat/BankFeeds/BankAccounts.cs

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,11 @@ public async Task<ListBankAccountsResponse> ListAsync(
148148
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
149149
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);
150150

151+
if (!httpRequest.Headers.Contains("Accept"))
152+
{
153+
httpRequest.Headers.Add("Accept", "application/json");
154+
}
155+
151156
if (SDKConfiguration.SecuritySource != null)
152157
{
153158
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
@@ -207,9 +212,9 @@ public async Task<ListBankAccountsResponse> ListAsync(
207212
}
208213
}
209214
}
210-
catch (Exception error)
215+
catch (Exception _hookError)
211216
{
212-
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error);
217+
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, _hookError);
213218
if (_httpResponse != null)
214219
{
215220
httpResponse = _httpResponse;
@@ -337,6 +342,11 @@ public async Task<GetCreateBankAccountsModelResponse> GetCreateModelAsync(
337342
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
338343
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);
339344

345+
if (!httpRequest.Headers.Contains("Accept"))
346+
{
347+
httpRequest.Headers.Add("Accept", "application/json");
348+
}
349+
340350
if (SDKConfiguration.SecuritySource != null)
341351
{
342352
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
@@ -396,9 +406,9 @@ public async Task<GetCreateBankAccountsModelResponse> GetCreateModelAsync(
396406
}
397407
}
398408
}
399-
catch (Exception error)
409+
catch (Exception _hookError)
400410
{
401-
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error);
411+
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, _hookError);
402412
if (_httpResponse != null)
403413
{
404414
httpResponse = _httpResponse;
@@ -526,6 +536,11 @@ public async Task<CreateBankAccountResponse> CreateAsync(
526536
var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString);
527537
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);
528538

539+
if (!httpRequest.Headers.Contains("Accept"))
540+
{
541+
httpRequest.Headers.Add("Accept", "application/json");
542+
}
543+
529544
var serializedBody = RequestBodySerializer.Serialize(request, "BankAccountPrototype", "json", false, true);
530545
if (serializedBody != null)
531546
{
@@ -591,9 +606,9 @@ public async Task<CreateBankAccountResponse> CreateAsync(
591606
}
592607
}
593608
}
594-
catch (Exception error)
609+
catch (Exception _hookError)
595610
{
596-
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error);
611+
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, _hookError);
597612
if (_httpResponse != null)
598613
{
599614
httpResponse = _httpResponse;

0 commit comments

Comments
 (0)