Skip to content

Commit c3df9eb

Browse files
github-actions[bot]speakeasybotPeter Simpson
authored
## Csharp SDK Changes: (#352)
* `Codat.lending.Companies.List()`: `response.results[].DataConnections[].IntegrationKey` **Changed** * `Codat.lending.Companies.Create()`: `response.dataConnections[].IntegrationKey` **Changed** * `Codat.lending.Companies.Replace()`: `response.dataConnections[].IntegrationKey` **Changed** * `Codat.lending.Companies.Update()`: `response.dataConnections[].IntegrationKey` **Changed** * `Codat.lending.Companies.Get()`: `response.dataConnections[].IntegrationKey` **Changed** * `Codat.lending.Connections.List()`: `response.results[].IntegrationKey` **Changed** * `Codat.lending.Connections.Create()`: `response.integrationKey` **Changed** * `Codat.lending.Connections.Get()`: `response.integrationKey` **Changed** * `Codat.lending.Connections.Unlink()`: `response.integrationKey` **Changed** Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: Peter Simpson <p.simpson@codat.io>
1 parent 192359f commit c3df9eb

368 files changed

Lines changed: 16945 additions & 2006 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/workflow.lock

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ sources:
99
- 3.0.0
1010
lending-source:
1111
sourceNamespace: lending-source
12-
sourceRevisionDigest: sha256:7149d024c5bf2bf2ebf21d7a0dd81541b8737274458d8a3535c66bae43ec52f4
13-
sourceBlobDigest: sha256:f44b8b8db2e4c91dc3b443995ba4912363c5ae28b0b762c386273adef38bd4ed
12+
sourceRevisionDigest: sha256:0a00d892955d2cc912bd47adf1de8b2a84bd3485a3359565572f79ef5e7b2c5b
13+
sourceBlobDigest: sha256:152325157f20a95fe6446fc06c82dd9669c1d0f3083208ff5086f78f823c8b78
1414
tags:
1515
- latest
16-
- speakeasy-sdk-regen-1770204374
1716
- 3.0.0
1817
platform-source:
1918
sourceNamespace: platform-source
@@ -70,10 +69,10 @@ targets:
7069
lending-library:
7170
source: lending-source
7271
sourceNamespace: lending-source
73-
sourceRevisionDigest: sha256:7149d024c5bf2bf2ebf21d7a0dd81541b8737274458d8a3535c66bae43ec52f4
74-
sourceBlobDigest: sha256:f44b8b8db2e4c91dc3b443995ba4912363c5ae28b0b762c386273adef38bd4ed
72+
sourceRevisionDigest: sha256:0a00d892955d2cc912bd47adf1de8b2a84bd3485a3359565572f79ef5e7b2c5b
73+
sourceBlobDigest: sha256:152325157f20a95fe6446fc06c82dd9669c1d0f3083208ff5086f78f823c8b78
7574
codeSamplesNamespace: lending-source-csharp-code-samples
76-
codeSamplesRevisionDigest: sha256:3e4978bd8e0f762acc2df2152f45fb793431920135d23f2cb5d641853facc25f
75+
codeSamplesRevisionDigest: sha256:85be91f3addbe61def24ccacc12cee07f117aa9273d8dac77eaebc64dc287ba8
7776
platform-library:
7877
source: platform-source
7978
sourceNamespace: platform-source

lending/.gitignore

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

lending/.speakeasy/gen.lock

Lines changed: 752 additions & 743 deletions
Large diffs are not rendered by default.

lending/.speakeasy/gen.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ generation:
1414
securityFeb2025: false
1515
sharedErrorComponentsApr2025: false
1616
sharedNestedComponentsJan2026: false
17+
nameOverrideFeb2026: false
1718
auth:
1819
oAuth2ClientCredentialsEnabled: false
1920
oAuth2PasswordEnabled: false
@@ -28,7 +29,7 @@ generation:
2829
generateNewTests: false
2930
skipResponseBodyAssertions: false
3031
csharp:
31-
version: 10.0.1
32+
version: 10.0.2
3233
additionalDependencies: []
3334
author: Codat
3435
baseErrorName: CodatLendingException
@@ -38,6 +39,7 @@ csharp:
3839
disableNamespacePascalCasingApr2024: true
3940
dotnetVersion: net8.0
4041
enableCancellationToken: false
42+
enableFormatting: false
4143
enableSourceLink: false
4244
flattenGlobalSecurity: true
4345
flatteningOrder: ""
@@ -59,6 +61,7 @@ csharp:
5961
outputModelSuffix: output
6062
packageName: Codat.Lending
6163
packageTags: ""
64+
respectTitlesForPrimitiveUnionMembers: false
6265
responseFormat: envelope
6366
sourceDirectory: ""
6467
useNodatime: true

lending/Codat/Lending/AccountBalances.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ public async Task<ListBankingAccountBalancesResponse> ListAsync(
9292
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
9393
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);
9494

95+
if (!httpRequest.Headers.Contains("Accept"))
96+
{
97+
httpRequest.Headers.Add("Accept", "application/json");
98+
}
99+
95100
if (SDKConfiguration.SecuritySource != null)
96101
{
97102
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
@@ -151,9 +156,9 @@ public async Task<ListBankingAccountBalancesResponse> ListAsync(
151156
}
152157
}
153158
}
154-
catch (Exception error)
159+
catch (Exception _hookError)
155160
{
156-
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error);
161+
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, _hookError);
157162
if (_httpResponse != null)
158163
{
159164
httpResponse = _httpResponse;

lending/Codat/Lending/AccountTransactions.cs

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ public async Task<ListAccountingAccountTransactionsResponse> ListAsync(
115115
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
116116
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);
117117

118+
if (!httpRequest.Headers.Contains("Accept"))
119+
{
120+
httpRequest.Headers.Add("Accept", "application/json");
121+
}
122+
118123
if (SDKConfiguration.SecuritySource != null)
119124
{
120125
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
@@ -174,9 +179,9 @@ public async Task<ListAccountingAccountTransactionsResponse> ListAsync(
174179
}
175180
}
176181
}
177-
catch (Exception error)
182+
catch (Exception _hookError)
178183
{
179-
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error);
184+
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, _hookError);
180185
if (_httpResponse != null)
181186
{
182187
httpResponse = _httpResponse;
@@ -302,6 +307,11 @@ public async Task<GetAccountingAccountTransactionResponse> GetAsync(
302307
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
303308
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);
304309

310+
if (!httpRequest.Headers.Contains("Accept"))
311+
{
312+
httpRequest.Headers.Add("Accept", "application/json");
313+
}
314+
305315
if (SDKConfiguration.SecuritySource != null)
306316
{
307317
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
@@ -361,9 +371,9 @@ public async Task<GetAccountingAccountTransactionResponse> GetAsync(
361371
}
362372
}
363373
}
364-
catch (Exception error)
374+
catch (Exception _hookError)
365375
{
366-
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error);
376+
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, _hookError);
367377
if (_httpResponse != null)
368378
{
369379
httpResponse = _httpResponse;

lending/Codat/Lending/AccountingBankData.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ public async Task<ListAccountingBankAccountTransactionsResponse> ListTransactio
106106
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
107107
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);
108108

109+
if (!httpRequest.Headers.Contains("Accept"))
110+
{
111+
httpRequest.Headers.Add("Accept", "application/json");
112+
}
113+
109114
if (SDKConfiguration.SecuritySource != null)
110115
{
111116
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
@@ -165,9 +170,9 @@ public async Task<ListAccountingBankAccountTransactionsResponse> ListTransactio
165170
}
166171
}
167172
}
168-
catch (Exception error)
173+
catch (Exception _hookError)
169174
{
170-
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error);
175+
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, _hookError);
171176
if (_httpResponse != null)
172177
{
173178
httpResponse = _httpResponse;

lending/Codat/Lending/Accounts.cs

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ public async Task<ListAccountingAccountsResponse> ListAsync(
115115
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
116116
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);
117117

118+
if (!httpRequest.Headers.Contains("Accept"))
119+
{
120+
httpRequest.Headers.Add("Accept", "application/json");
121+
}
122+
118123
if (SDKConfiguration.SecuritySource != null)
119124
{
120125
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
@@ -174,9 +179,9 @@ public async Task<ListAccountingAccountsResponse> ListAsync(
174179
}
175180
}
176181
}
177-
catch (Exception error)
182+
catch (Exception _hookError)
178183
{
179-
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error);
184+
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, _hookError);
180185
if (_httpResponse != null)
181186
{
182187
httpResponse = _httpResponse;
@@ -302,6 +307,11 @@ public async Task<GetAccountingAccountResponse> GetAsync(
302307
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
303308
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);
304309

310+
if (!httpRequest.Headers.Contains("Accept"))
311+
{
312+
httpRequest.Headers.Add("Accept", "application/json");
313+
}
314+
305315
if (SDKConfiguration.SecuritySource != null)
306316
{
307317
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
@@ -361,9 +371,9 @@ public async Task<GetAccountingAccountResponse> GetAsync(
361371
}
362372
}
363373
}
364-
catch (Exception error)
374+
catch (Exception _hookError)
365375
{
366-
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error);
376+
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, _hookError);
367377
if (_httpResponse != null)
368378
{
369379
httpResponse = _httpResponse;

lending/Codat/Lending/BalanceSheet.cs

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ public async Task<GetCategorizedBalanceSheetStatementResponse> GetCategorizedAc
107107
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
108108
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);
109109

110+
if (!httpRequest.Headers.Contains("Accept"))
111+
{
112+
httpRequest.Headers.Add("Accept", "application/json");
113+
}
114+
110115
if (SDKConfiguration.SecuritySource != null)
111116
{
112117
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
@@ -166,9 +171,9 @@ public async Task<GetCategorizedBalanceSheetStatementResponse> GetCategorizedAc
166171
}
167172
}
168173
}
169-
catch (Exception error)
174+
catch (Exception _hookError)
170175
{
171-
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error);
176+
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, _hookError);
172177
if (_httpResponse != null)
173178
{
174179
httpResponse = _httpResponse;
@@ -290,6 +295,11 @@ public async Task<GetAccountingBalanceSheetResponse> GetAsync(
290295
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
291296
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);
292297

298+
if (!httpRequest.Headers.Contains("Accept"))
299+
{
300+
httpRequest.Headers.Add("Accept", "application/json");
301+
}
302+
293303
if (SDKConfiguration.SecuritySource != null)
294304
{
295305
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
@@ -349,9 +359,9 @@ public async Task<GetAccountingBalanceSheetResponse> GetAsync(
349359
}
350360
}
351361
}
352-
catch (Exception error)
362+
catch (Exception _hookError)
353363
{
354-
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error);
364+
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, _hookError);
355365
if (_httpResponse != null)
356366
{
357367
httpResponse = _httpResponse;

lending/Codat/Lending/BankAccounts.cs

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@ public async Task<GetCreateUpdateBankAccountsModelResponse> GetCreateUpdateMode
121121
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
122122
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);
123123

124+
if (!httpRequest.Headers.Contains("Accept"))
125+
{
126+
httpRequest.Headers.Add("Accept", "application/json");
127+
}
128+
124129
if (SDKConfiguration.SecuritySource != null)
125130
{
126131
httpRequest = new SecurityMetadata(SDKConfiguration.SecuritySource).Apply(httpRequest);
@@ -180,9 +185,9 @@ public async Task<GetCreateUpdateBankAccountsModelResponse> GetCreateUpdateMode
180185
}
181186
}
182187
}
183-
catch (Exception error)
188+
catch (Exception _hookError)
184189
{
185-
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error);
190+
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, _hookError);
186191
if (_httpResponse != null)
187192
{
188193
httpResponse = _httpResponse;
@@ -310,6 +315,11 @@ public async Task<CreateBankAccountResponse> CreateAsync(
310315
var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString);
311316
httpRequest.Headers.Add("user-agent", SDKConfiguration.UserAgent);
312317

318+
if (!httpRequest.Headers.Contains("Accept"))
319+
{
320+
httpRequest.Headers.Add("Accept", "application/json");
321+
}
322+
313323
var serializedBody = RequestBodySerializer.Serialize(request, "AccountingBankAccount", "json", true, true);
314324
if (serializedBody != null)
315325
{
@@ -375,9 +385,9 @@ public async Task<CreateBankAccountResponse> CreateAsync(
375385
}
376386
}
377387
}
378-
catch (Exception error)
388+
catch (Exception _hookError)
379389
{
380-
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error);
390+
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, _hookError);
381391
if (_httpResponse != null)
382392
{
383393
httpResponse = _httpResponse;

0 commit comments

Comments
 (0)