Skip to content

Commit c271230

Browse files
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.531.0 (#335)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
1 parent ce2ceb3 commit c271230

File tree

118 files changed

+1782
-1482
lines changed

Some content is hidden

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

118 files changed

+1782
-1482
lines changed

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
speakeasyVersion: 1.462.2
1+
speakeasyVersion: 1.531.0
22
sources:
33
bank-feeds-source:
44
sourceNamespace: bank-feeds-source
5-
sourceRevisionDigest: sha256:14248114d3d367f96a99063013b4920d5e24d30d62bf60fd810201ee546801a9
6-
sourceBlobDigest: sha256:d8080d68edd35d878fad42ac6b343ac5c287f2cab63280c281a2adad5ddd117a
5+
sourceRevisionDigest: sha256:afc3eae6a2d0482f22d7e03cb8494a74e72df3009216543196d7d144de555c22
6+
sourceBlobDigest: sha256:bce35cd1d6fa52e063602e3791667cd0fb386695d2c116d2f5ddcfde44c05cfe
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1734365180
9+
- speakeasy-sdk-regen-1744193316
1010
- 3.0.0
1111
lending-source:
1212
sourceNamespace: lending-source
@@ -66,10 +66,10 @@ targets:
6666
bank-feeds-library:
6767
source: bank-feeds-source
6868
sourceNamespace: bank-feeds-source
69-
sourceRevisionDigest: sha256:14248114d3d367f96a99063013b4920d5e24d30d62bf60fd810201ee546801a9
70-
sourceBlobDigest: sha256:d8080d68edd35d878fad42ac6b343ac5c287f2cab63280c281a2adad5ddd117a
69+
sourceRevisionDigest: sha256:afc3eae6a2d0482f22d7e03cb8494a74e72df3009216543196d7d144de555c22
70+
sourceBlobDigest: sha256:bce35cd1d6fa52e063602e3791667cd0fb386695d2c116d2f5ddcfde44c05cfe
7171
codeSamplesNamespace: bank-feeds-source-csharp-code-samples
72-
codeSamplesRevisionDigest: sha256:fcef607d6ed9c9815c369eb29fb3bea5ea31f154737870773640d3957bd62758
72+
codeSamplesRevisionDigest: sha256:88ef194b7a359db39c61057a205563db52ceada1fb8d461ec14262e0c7f49ab3
7373
lending-library:
7474
source: lending-source
7575
sourceNamespace: lending-source

bank-feeds/.speakeasy/gen.lock

Lines changed: 254 additions & 161 deletions
Large diffs are not rendered by default.

bank-feeds/.speakeasy/gen.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ generation:
77
useClassNamesForArrayFields: true
88
fixes:
99
nameResolutionDec2023: true
10+
nameResolutionFeb2025: false
1011
parameterOrderingFeb2024: true
1112
requestResponseComponentNamesFeb2024: true
13+
securityFeb2025: false
1214
auth:
1315
oAuth2ClientCredentialsEnabled: false
1416
oAuth2PasswordEnabled: false
1517
csharp:
16-
version: 7.0.0
18+
version: 7.1.0
1719
additionalDependencies: []
1820
author: Codat
1921
clientServerStatusCodesAsErrors: true

bank-feeds/Codat/BankFeeds/AccountMapping.cs

Lines changed: 40 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ namespace Codat.BankFeeds
1313
using Codat.BankFeeds.Models.Errors;
1414
using Codat.BankFeeds.Models.Operations;
1515
using Codat.BankFeeds.Models.Shared;
16-
using Codat.BankFeeds.Utils.Retries;
1716
using Codat.BankFeeds.Utils;
17+
using Codat.BankFeeds.Utils.Retries;
1818
using Newtonsoft.Json;
19+
using System;
1920
using System.Collections.Generic;
20-
using System.Net.Http.Headers;
2121
using System.Net.Http;
22+
using System.Net.Http.Headers;
2223
using System.Threading.Tasks;
23-
using System;
2424

2525
/// <summary>
2626
/// Extra functionality for building an account management UI.
@@ -89,10 +89,10 @@ public class AccountMapping: IAccountMapping
8989
{
9090
public SDKConfig SDKConfiguration { get; private set; }
9191
private const string _language = "csharp";
92-
private const string _sdkVersion = "7.0.0";
93-
private const string _sdkGenVersion = "2.479.3";
92+
private const string _sdkVersion = "7.1.0";
93+
private const string _sdkGenVersion = "2.568.2";
9494
private const string _openapiDocVersion = "3.0.0";
95-
private const string _userAgent = "speakeasy-sdk/csharp 7.0.0 2.479.3 3.0.0 Codat.BankFeeds";
95+
private const string _userAgent = "speakeasy-sdk/csharp 7.1.0 2.568.2 3.0.0 Codat.BankFeeds";
9696
private string _serverUrl = "";
9797
private ISpeakeasyHttpClient _client;
9898
private Func<Codat.BankFeeds.Models.Shared.Security>? _securitySource;
@@ -118,7 +118,7 @@ public async Task<GetBankAccountMappingResponse> GetAsync(GetBankAccountMappingR
118118
httpRequest = new SecurityMetadata(_securitySource).Apply(httpRequest);
119119
}
120120

121-
var hookCtx = new HookContext("get-bank-account-mapping", null, _securitySource);
121+
var hookCtx = new HookContext(baseUrl, "get-bank-account-mapping", new List<string> { }, _securitySource);
122122

123123
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
124124
if (retryConfig == null)
@@ -206,7 +206,17 @@ public async Task<GetBankAccountMappingResponse> GetAsync(GetBankAccountMappingR
206206

207207
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
208208
}
209-
else if(new List<int>{401, 402, 403, 404, 429, 500, 503}.Contains(responseStatusCode))
209+
else if(new List<int>{401, 402, 403, 404, 429}.Contains(responseStatusCode))
210+
{
211+
if(Utilities.IsContentTypeMatch("application/json", contentType))
212+
{
213+
var obj = ResponseBodyDeserializer.Deserialize<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
214+
throw obj!;
215+
}
216+
217+
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
218+
}
219+
else if(new List<int>{500, 503}.Contains(responseStatusCode))
210220
{
211221
if(Utilities.IsContentTypeMatch("application/json", contentType))
212222
{
@@ -216,7 +226,11 @@ public async Task<GetBankAccountMappingResponse> GetAsync(GetBankAccountMappingR
216226

217227
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
218228
}
219-
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
229+
else if(responseStatusCode >= 400 && responseStatusCode < 500)
230+
{
231+
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
232+
}
233+
else if(responseStatusCode >= 500 && responseStatusCode < 600)
220234
{
221235
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
222236
}
@@ -243,7 +257,7 @@ public async Task<CreateBankAccountMappingResponse> CreateAsync(CreateBankAccoun
243257
httpRequest = new SecurityMetadata(_securitySource).Apply(httpRequest);
244258
}
245259

246-
var hookCtx = new HookContext("create-bank-account-mapping", null, _securitySource);
260+
var hookCtx = new HookContext(baseUrl, "create-bank-account-mapping", new List<string> { }, _securitySource);
247261

248262
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
249263
if (retryConfig == null)
@@ -331,7 +345,7 @@ public async Task<CreateBankAccountMappingResponse> CreateAsync(CreateBankAccoun
331345

332346
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
333347
}
334-
else if(new List<int>{400, 401, 402, 403, 404, 429, 500, 503}.Contains(responseStatusCode))
348+
else if(new List<int>{400, 401, 402, 403, 404, 429}.Contains(responseStatusCode))
335349
{
336350
if(Utilities.IsContentTypeMatch("application/json", contentType))
337351
{
@@ -341,7 +355,21 @@ public async Task<CreateBankAccountMappingResponse> CreateAsync(CreateBankAccoun
341355

342356
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
343357
}
344-
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
358+
else if(new List<int>{500, 503}.Contains(responseStatusCode))
359+
{
360+
if(Utilities.IsContentTypeMatch("application/json", contentType))
361+
{
362+
var obj = ResponseBodyDeserializer.Deserialize<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
363+
throw obj!;
364+
}
365+
366+
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
367+
}
368+
else if(responseStatusCode >= 400 && responseStatusCode < 500)
369+
{
370+
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
371+
}
372+
else if(responseStatusCode >= 500 && responseStatusCode < 600)
345373
{
346374
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
347375
}

bank-feeds/Codat/BankFeeds/BankAccounts.cs

Lines changed: 57 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ namespace Codat.BankFeeds
1313
using Codat.BankFeeds.Models.Errors;
1414
using Codat.BankFeeds.Models.Operations;
1515
using Codat.BankFeeds.Models.Shared;
16-
using Codat.BankFeeds.Utils.Retries;
1716
using Codat.BankFeeds.Utils;
17+
using Codat.BankFeeds.Utils.Retries;
1818
using Newtonsoft.Json;
19+
using System;
1920
using System.Collections.Generic;
20-
using System.Net.Http.Headers;
2121
using System.Net.Http;
22+
using System.Net.Http.Headers;
2223
using System.Threading.Tasks;
23-
using System;
2424

2525
/// <summary>
2626
/// Access bank accounts in an SMBs accounting software.
@@ -81,10 +81,10 @@ public class BankAccounts: IBankAccounts
8181
{
8282
public SDKConfig SDKConfiguration { get; private set; }
8383
private const string _language = "csharp";
84-
private const string _sdkVersion = "7.0.0";
85-
private const string _sdkGenVersion = "2.479.3";
84+
private const string _sdkVersion = "7.1.0";
85+
private const string _sdkGenVersion = "2.568.2";
8686
private const string _openapiDocVersion = "3.0.0";
87-
private const string _userAgent = "speakeasy-sdk/csharp 7.0.0 2.479.3 3.0.0 Codat.BankFeeds";
87+
private const string _userAgent = "speakeasy-sdk/csharp 7.1.0 2.568.2 3.0.0 Codat.BankFeeds";
8888
private string _serverUrl = "";
8989
private ISpeakeasyHttpClient _client;
9090
private Func<Codat.BankFeeds.Models.Shared.Security>? _securitySource;
@@ -110,7 +110,7 @@ public async Task<ListBankAccountsResponse> ListAsync(ListBankAccountsRequest re
110110
httpRequest = new SecurityMetadata(_securitySource).Apply(httpRequest);
111111
}
112112

113-
var hookCtx = new HookContext("list-bank-accounts", null, _securitySource);
113+
var hookCtx = new HookContext(baseUrl, "list-bank-accounts", new List<string> { }, _securitySource);
114114

115115
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
116116
if (retryConfig == null)
@@ -198,7 +198,7 @@ public async Task<ListBankAccountsResponse> ListAsync(ListBankAccountsRequest re
198198

199199
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
200200
}
201-
else if(new List<int>{400, 401, 402, 403, 404, 409, 429, 500, 503}.Contains(responseStatusCode))
201+
else if(new List<int>{400, 401, 402, 403, 404, 409, 429}.Contains(responseStatusCode))
202202
{
203203
if(Utilities.IsContentTypeMatch("application/json", contentType))
204204
{
@@ -208,7 +208,21 @@ public async Task<ListBankAccountsResponse> ListAsync(ListBankAccountsRequest re
208208

209209
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
210210
}
211-
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
211+
else if(new List<int>{500, 503}.Contains(responseStatusCode))
212+
{
213+
if(Utilities.IsContentTypeMatch("application/json", contentType))
214+
{
215+
var obj = ResponseBodyDeserializer.Deserialize<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
216+
throw obj!;
217+
}
218+
219+
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
220+
}
221+
else if(responseStatusCode >= 400 && responseStatusCode < 500)
222+
{
223+
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
224+
}
225+
else if(responseStatusCode >= 500 && responseStatusCode < 600)
212226
{
213227
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
214228
}
@@ -229,7 +243,7 @@ public async Task<GetCreateBankAccountsModelResponse> GetCreateModelAsync(GetCre
229243
httpRequest = new SecurityMetadata(_securitySource).Apply(httpRequest);
230244
}
231245

232-
var hookCtx = new HookContext("get-create-bankAccounts-model", null, _securitySource);
246+
var hookCtx = new HookContext(baseUrl, "get-create-bankAccounts-model", new List<string> { }, _securitySource);
233247

234248
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
235249
if (retryConfig == null)
@@ -317,7 +331,17 @@ public async Task<GetCreateBankAccountsModelResponse> GetCreateModelAsync(GetCre
317331

318332
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
319333
}
320-
else if(new List<int>{401, 402, 403, 404, 429, 500, 503}.Contains(responseStatusCode))
334+
else if(new List<int>{401, 402, 403, 404, 429}.Contains(responseStatusCode))
335+
{
336+
if(Utilities.IsContentTypeMatch("application/json", contentType))
337+
{
338+
var obj = ResponseBodyDeserializer.Deserialize<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
339+
throw obj!;
340+
}
341+
342+
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
343+
}
344+
else if(new List<int>{500, 503}.Contains(responseStatusCode))
321345
{
322346
if(Utilities.IsContentTypeMatch("application/json", contentType))
323347
{
@@ -327,7 +351,11 @@ public async Task<GetCreateBankAccountsModelResponse> GetCreateModelAsync(GetCre
327351

328352
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
329353
}
330-
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
354+
else if(responseStatusCode >= 400 && responseStatusCode < 500)
355+
{
356+
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
357+
}
358+
else if(responseStatusCode >= 500 && responseStatusCode < 600)
331359
{
332360
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
333361
}
@@ -354,7 +382,7 @@ public async Task<CreateBankAccountResponse> CreateAsync(CreateBankAccountReques
354382
httpRequest = new SecurityMetadata(_securitySource).Apply(httpRequest);
355383
}
356384

357-
var hookCtx = new HookContext("create-bank-account", null, _securitySource);
385+
var hookCtx = new HookContext(baseUrl, "create-bank-account", new List<string> { }, _securitySource);
358386

359387
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
360388
if (retryConfig == null)
@@ -442,7 +470,7 @@ public async Task<CreateBankAccountResponse> CreateAsync(CreateBankAccountReques
442470

443471
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
444472
}
445-
else if(new List<int>{400, 401, 402, 403, 404, 429, 500, 503}.Contains(responseStatusCode))
473+
else if(new List<int>{400, 401, 402, 403, 404, 429}.Contains(responseStatusCode))
446474
{
447475
if(Utilities.IsContentTypeMatch("application/json", contentType))
448476
{
@@ -452,7 +480,21 @@ public async Task<CreateBankAccountResponse> CreateAsync(CreateBankAccountReques
452480

453481
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
454482
}
455-
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
483+
else if(new List<int>{500, 503}.Contains(responseStatusCode))
484+
{
485+
if(Utilities.IsContentTypeMatch("application/json", contentType))
486+
{
487+
var obj = ResponseBodyDeserializer.Deserialize<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
488+
throw obj!;
489+
}
490+
491+
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
492+
}
493+
else if(responseStatusCode >= 400 && responseStatusCode < 500)
494+
{
495+
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
496+
}
497+
else if(responseStatusCode >= 500 && responseStatusCode < 600)
456498
{
457499
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
458500
}

bank-feeds/Codat/BankFeeds/Codat.BankFeeds.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
<PropertyGroup>
44
<IsPackable>true</IsPackable>
55
<PackageId>Codat.BankFeeds</PackageId>
6-
<Version>7.0.0</Version>
6+
<Version>7.1.0</Version>
77
<TargetFramework>net8.0</TargetFramework>
88
<Authors>Codat</Authors>
9-
<Copyright>Copyright (c) Codat 2024</Copyright>
9+
<Copyright>Copyright (c) Codat 2025</Copyright>
1010
<RepositoryUrl>https://github.com/codatio/client-sdk-csharp.git</RepositoryUrl>
1111
<RepositoryType>git</RepositoryType>
12-
<Description>Bank Feeds API: Bank Feeds API enables your SMB users to set up bank feeds from accounts in your application to supported accounting software.<br/>
12+
<Description>Bank Feeds: Bank Feeds solution enables your SMB users to set up bank feeds from accounts in your application to supported accounting software.<br/>
1313
<br/>
1414
A bank feed is a connection between a source bank account in your application and a target bank account in a supported accounting software.<br/>
1515
<br/>
16-
<a href="https://docs.codat.io/bank-feeds-api/overview">Explore product</a> | <a href="https://github.com/codatio/oas">See OpenAPI spec</a><br/>
16+
<a href="https://docs.codat.io/bank-feeds-api/overview">Explore solution</a> | <a href="https://github.com/codatio/oas">See OpenAPI spec</a><br/>
1717
<br/>
1818
---<br/>
1919
&lt;!-- Start Codat Tags Table --&gt;<br/>

0 commit comments

Comments
 (0)