Skip to content

Commit 9e66fe5

Browse files
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.431.0 (#321)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
1 parent c8775d5 commit 9e66fe5

Some content is hidden

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

56 files changed

+632
-748
lines changed

.speakeasy/workflow.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
speakeasyVersion: 1.423.5
1+
speakeasyVersion: 1.431.0
22
sources:
33
bank-feeds-source:
44
sourceNamespace: bank-feeds-source
5-
sourceRevisionDigest: sha256:ccef85376bbc987ea49cd61be000ea911639ec530399e528922e09062c02fa5f
6-
sourceBlobDigest: sha256:24d837ec7ccccb55559e6de16951a64c09874b48e5ca92b7af36ea0b95b0eac2
5+
sourceRevisionDigest: sha256:1fbb46311fcd3eeb71e9a09c37090870dc7aecb71ebfde03b840c77b53bcc313
6+
sourceBlobDigest: sha256:a490b555d6f186cd37f72a06e06ba49293a0f371d145db2d9913d5081ecfc5a2
77
tags:
88
- latest
99
- main
@@ -60,8 +60,8 @@ targets:
6060
bank-feeds-library:
6161
source: bank-feeds-source
6262
sourceNamespace: bank-feeds-source
63-
sourceRevisionDigest: sha256:ccef85376bbc987ea49cd61be000ea911639ec530399e528922e09062c02fa5f
64-
sourceBlobDigest: sha256:24d837ec7ccccb55559e6de16951a64c09874b48e5ca92b7af36ea0b95b0eac2
63+
sourceRevisionDigest: sha256:1fbb46311fcd3eeb71e9a09c37090870dc7aecb71ebfde03b840c77b53bcc313
64+
sourceBlobDigest: sha256:a490b555d6f186cd37f72a06e06ba49293a0f371d145db2d9913d5081ecfc5a2
6565
lending-library:
6666
source: lending-source
6767
sourceNamespace: lending-source

bank-feeds/.speakeasy/gen.lock

Lines changed: 51 additions & 25 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
@@ -11,8 +11,9 @@ generation:
1111
requestResponseComponentNamesFeb2024: true
1212
auth:
1313
oAuth2ClientCredentialsEnabled: false
14+
oAuth2PasswordEnabled: false
1415
csharp:
15-
version: 5.0.0
16+
version: 6.0.0
1617
additionalDependencies: []
1718
author: Codat
1819
clientServerStatusCodesAsErrors: true
@@ -21,6 +22,7 @@ csharp:
2122
dotnetVersion: net8.0
2223
enableSourceLink: false
2324
flattenGlobalSecurity: false
25+
flatteningOrder: ""
2426
imports:
2527
option: openapi
2628
paths:
@@ -32,7 +34,9 @@ csharp:
3234
includeDebugSymbols: false
3335
inputModelSuffix: input
3436
maxMethodParams: 0
37+
methodArguments: infer-optional-args
3538
outputModelSuffix: output
3639
packageName: Codat.BankFeeds
3740
packageTags: ""
3841
responseFormat: envelope
42+
sourceDirectory: ""

bank-feeds/Codat/BankFeeds/AccountMapping.cs

Lines changed: 30 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,16 @@ public interface IAccountMapping
2929
{
3030

3131
/// <summary>
32-
/// List bank feed account mappings
32+
/// List bank feed accounts
3333
///
3434
/// <remarks>
35-
/// The *List bank account mappings* endpoint returns information about a source bank account and any current or potential target mapping accounts.<br/>
35+
/// The *List bank accounts* endpoint returns information about a source bank account and any current or potential target mapping accounts.<br/>
3636
/// <br/>
37-
/// A bank feed account mapping is a specified link between the source account (provided by the Codat user) and the target account (the end users account in the underlying platform).<br/>
37+
/// A bank feed account mapping is a specified link between the source account (provided by the Codat user) and the target account (the end user&apos;s account in the underlying software).<br/>
3838
/// <br/>
39-
/// This endpoint is only needed if building an account management UI.
39+
/// &gt; **For custom builds only**<br/>
40+
/// &gt; <br/>
41+
/// &gt; Only use this endpoint if you are building your own account management UI.
4042
/// </remarks>
4143
/// </summary>
4244
Task<GetBankAccountMappingResponse> GetAsync(GetBankAccountMappingRequest request, RetryConfig? retryConfig = null);
@@ -47,11 +49,13 @@ public interface IAccountMapping
4749
/// <remarks>
4850
/// The *Create bank account mapping* endpoint creates a new mapping between a source bank account and a potential account in the accounting software (target account).<br/>
4951
/// <br/>
50-
/// A bank feed account mapping is a specified link between the source account (provided by the Codat user) and the target account (the end users account in the underlying platform).<br/>
52+
/// A bank feed account mapping is a specified link between the source account (provided by the Codat user) and the target account (the end user&apos;s account in the underlying software).<br/>
5153
/// <br/>
52-
/// To find valid target account options, first call list bank feed account mappings.<br/>
54+
/// To find valid target account options, first call the <a href="https://docs.codat.io//bank-feeds-api#/operations/get-bank-account-mapping">List bank feed account mappings</a> endpoint.<br/>
5355
/// <br/>
54-
/// This endpoint is only needed if building an account management UI.
56+
/// &gt; **For custom builds only**<br/>
57+
/// &gt;<br/>
58+
/// &gt; Only use this endpoint if you are building your own account management UI.
5559
/// </remarks>
5660
/// </summary>
5761
Task<CreateBankAccountMappingResponse> CreateAsync(CreateBankAccountMappingRequest request, RetryConfig? retryConfig = null);
@@ -64,10 +68,10 @@ public class AccountMapping: IAccountMapping
6468
{
6569
public SDKConfig SDKConfiguration { get; private set; }
6670
private const string _language = "csharp";
67-
private const string _sdkVersion = "5.0.0";
68-
private const string _sdkGenVersion = "2.415.6";
71+
private const string _sdkVersion = "6.0.0";
72+
private const string _sdkGenVersion = "2.451.0";
6973
private const string _openapiDocVersion = "3.0.0";
70-
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0 2.415.6 3.0.0 Codat.BankFeeds";
74+
private const string _userAgent = "speakeasy-sdk/csharp 6.0.0 2.451.0 3.0.0 Codat.BankFeeds";
7175
private string _serverUrl = "";
7276
private ISpeakeasyHttpClient _client;
7377
private Func<Codat.BankFeeds.Models.Shared.Security>? _securitySource;
@@ -168,20 +172,18 @@ public async Task<GetBankAccountMappingResponse> GetAsync(GetBankAccountMappingR
168172
{
169173
if(Utilities.IsContentTypeMatch("application/json", contentType))
170174
{
171-
var obj = ResponseBodyDeserializer.Deserialize<BankFeedMapping>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
175+
var obj = ResponseBodyDeserializer.Deserialize<List<BankFeedMapping>>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
172176
var response = new GetBankAccountMappingResponse()
173177
{
174178
StatusCode = responseStatusCode,
175179
ContentType = contentType,
176180
RawResponse = httpResponse
177181
};
178-
response.BankFeedMapping = obj;
182+
response.BankFeedMappings = obj;
179183
return response;
180184
}
181-
else
182-
{
183-
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
184-
}
185+
186+
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
185187
}
186188
else if(new List<int>{401, 402, 403, 404, 429, 500, 503}.Contains(responseStatusCode))
187189
{
@@ -190,19 +192,15 @@ public async Task<GetBankAccountMappingResponse> GetAsync(GetBankAccountMappingR
190192
var obj = ResponseBodyDeserializer.Deserialize<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
191193
throw obj!;
192194
}
193-
else
194-
{
195-
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
196-
}
195+
196+
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
197197
}
198198
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
199199
{
200-
throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
201-
}
202-
else
203-
{
204-
throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
200+
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
205201
}
202+
203+
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
206204
}
207205

208206
public async Task<CreateBankAccountMappingResponse> CreateAsync(CreateBankAccountMappingRequest request, RetryConfig? retryConfig = null)
@@ -309,10 +307,8 @@ public async Task<CreateBankAccountMappingResponse> CreateAsync(CreateBankAccoun
309307
response.BankFeedAccountMappingResponse = obj;
310308
return response;
311309
}
312-
else
313-
{
314-
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
315-
}
310+
311+
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
316312
}
317313
else if(new List<int>{400, 401, 402, 403, 404, 429, 500, 503}.Contains(responseStatusCode))
318314
{
@@ -321,19 +317,15 @@ public async Task<CreateBankAccountMappingResponse> CreateAsync(CreateBankAccoun
321317
var obj = ResponseBodyDeserializer.Deserialize<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
322318
throw obj!;
323319
}
324-
else
325-
{
326-
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
327-
}
320+
321+
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
328322
}
329323
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
330324
{
331-
throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
332-
}
333-
else
334-
{
335-
throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
325+
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
336326
}
327+
328+
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
337329
}
338330
}
339331
}

0 commit comments

Comments
 (0)