Skip to content

Commit aee8bab

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

File tree

346 files changed

+6053
-3868
lines changed

Some content is hidden

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

346 files changed

+6053
-3868
lines changed

.speakeasy/workflow.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ sources:
99
- main
1010
lending-source:
1111
sourceNamespace: lending-source
12-
sourceRevisionDigest: sha256:1abb9712d8df1fe1937d3a50bf5e307354782665b78fc118ea1d124fe54fbf8e
13-
sourceBlobDigest: sha256:11ae523963780dcf6d5f3e5d617b7d4f809c94c11f59f95202727916e51510f4
12+
sourceRevisionDigest: sha256:712c9fe17e3378a480659ed34f75e0ef120341f40a0528c5c93f4d4ebcfe5ee3
13+
sourceBlobDigest: sha256:4525ee073b57729cfcb4c57cd3715fd634d44b091eb42b011966d87654980fc2
1414
tags:
1515
- latest
1616
- main
@@ -65,8 +65,8 @@ targets:
6565
lending-library:
6666
source: lending-source
6767
sourceNamespace: lending-source
68-
sourceRevisionDigest: sha256:1abb9712d8df1fe1937d3a50bf5e307354782665b78fc118ea1d124fe54fbf8e
69-
sourceBlobDigest: sha256:11ae523963780dcf6d5f3e5d617b7d4f809c94c11f59f95202727916e51510f4
68+
sourceRevisionDigest: sha256:712c9fe17e3378a480659ed34f75e0ef120341f40a0528c5c93f4d4ebcfe5ee3
69+
sourceBlobDigest: sha256:4525ee073b57729cfcb4c57cd3715fd634d44b091eb42b011966d87654980fc2
7070
platform-library:
7171
source: platform-source
7272
sourceNamespace: platform-source

lending/.speakeasy/gen.lock

Lines changed: 673 additions & 513 deletions
Large diffs are not rendered by default.

lending/.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: 6.0.1
16+
version: 7.0.0
1617
additionalDependencies: []
1718
author: Codat
1819
clientServerStatusCodesAsErrors: true
@@ -21,6 +22,7 @@ csharp:
2122
dotnetVersion: net8.0
2223
enableSourceLink: false
2324
flattenGlobalSecurity: true
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.Lending
3740
packageTags: ""
3841
responseFormat: envelope
42+
sourceDirectory: ""

lending/Codat/Lending/AccountBalances.cs

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ public class AccountBalances: IAccountBalances
4444
{
4545
public SDKConfig SDKConfiguration { get; private set; }
4646
private const string _language = "csharp";
47-
private const string _sdkVersion = "6.0.1";
48-
private const string _sdkGenVersion = "2.415.6";
47+
private const string _sdkVersion = "7.0.0";
48+
private const string _sdkGenVersion = "2.451.0";
4949
private const string _openapiDocVersion = "3.0.0";
50-
private const string _userAgent = "speakeasy-sdk/csharp 6.0.1 2.415.6 3.0.0 Codat.Lending";
50+
private const string _userAgent = "speakeasy-sdk/csharp 7.0.0 2.451.0 3.0.0 Codat.Lending";
5151
private string _serverUrl = "";
5252
private ISpeakeasyHttpClient _client;
5353
private Func<Codat.Lending.Models.Components.Security>? _securitySource;
@@ -158,10 +158,8 @@ public async Task<ListBankingAccountBalancesResponse> ListAsync(ListBankingAccou
158158
response.BankingAccountBalances = obj;
159159
return response;
160160
}
161-
else
162-
{
163-
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
164-
}
161+
162+
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
165163
}
166164
else if(new List<int>{400, 401, 402, 403, 404, 409, 429, 500, 503}.Contains(responseStatusCode))
167165
{
@@ -170,19 +168,15 @@ public async Task<ListBankingAccountBalancesResponse> ListAsync(ListBankingAccou
170168
var obj = ResponseBodyDeserializer.Deserialize<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
171169
throw obj!;
172170
}
173-
else
174-
{
175-
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
176-
}
171+
172+
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
177173
}
178174
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
179175
{
180-
throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
181-
}
182-
else
183-
{
184-
throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
176+
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
185177
}
178+
179+
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
186180
}
187181
}
188182
}

lending/Codat/Lending/AccountTransactions.cs

Lines changed: 17 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ public interface IAccountTransactions
4747
/// <br/>
4848
/// <a href="https://docs.codat.io/lending-api#/schemas/AccountTransaction">Account transactions</a> represent bank activity within an accounting software. All transactions that go through a bank account are recorded as account transactions.<br/>
4949
/// <br/>
50-
/// Check out our <a href="https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&amp;dataType=accountTransactions">coverage explorer</a> for integrations that support getting a specific account transaction.<br/>
51-
/// <br/>
5250
/// Before using this endpoint, you must have <a href="https://docs.codat.io/lending-api#/operations/refresh-company-data">retrieved data for the company</a>.<br/>
5351
///
5452
/// </remarks>
@@ -60,10 +58,10 @@ public class AccountTransactions: IAccountTransactions
6058
{
6159
public SDKConfig SDKConfiguration { get; private set; }
6260
private const string _language = "csharp";
63-
private const string _sdkVersion = "6.0.1";
64-
private const string _sdkGenVersion = "2.415.6";
61+
private const string _sdkVersion = "7.0.0";
62+
private const string _sdkGenVersion = "2.451.0";
6563
private const string _openapiDocVersion = "3.0.0";
66-
private const string _userAgent = "speakeasy-sdk/csharp 6.0.1 2.415.6 3.0.0 Codat.Lending";
64+
private const string _userAgent = "speakeasy-sdk/csharp 7.0.0 2.451.0 3.0.0 Codat.Lending";
6765
private string _serverUrl = "";
6866
private ISpeakeasyHttpClient _client;
6967
private Func<Codat.Lending.Models.Components.Security>? _securitySource;
@@ -174,10 +172,8 @@ public async Task<ListAccountingAccountTransactionsResponse> ListAsync(ListAccou
174172
response.AccountingAccountTransactions = obj;
175173
return response;
176174
}
177-
else
178-
{
179-
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
180-
}
175+
176+
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
181177
}
182178
else if(new List<int>{400, 401, 402, 403, 404, 409, 429, 500, 503}.Contains(responseStatusCode))
183179
{
@@ -186,19 +182,15 @@ public async Task<ListAccountingAccountTransactionsResponse> ListAsync(ListAccou
186182
var obj = ResponseBodyDeserializer.Deserialize<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
187183
throw obj!;
188184
}
189-
else
190-
{
191-
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
192-
}
185+
186+
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
193187
}
194188
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
195189
{
196-
throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
197-
}
198-
else
199-
{
200-
throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
190+
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
201191
}
192+
193+
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
202194
}
203195

204196
public async Task<GetAccountingAccountTransactionResponse> GetAsync(GetAccountingAccountTransactionRequest request, RetryConfig? retryConfig = null)
@@ -299,10 +291,8 @@ public async Task<GetAccountingAccountTransactionResponse> GetAsync(GetAccountin
299291
response.AccountingAccountTransaction = obj;
300292
return response;
301293
}
302-
else
303-
{
304-
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
305-
}
294+
295+
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
306296
}
307297
else if(new List<int>{401, 402, 403, 404, 409, 429, 500, 503}.Contains(responseStatusCode))
308298
{
@@ -311,19 +301,15 @@ public async Task<GetAccountingAccountTransactionResponse> GetAsync(GetAccountin
311301
var obj = ResponseBodyDeserializer.Deserialize<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
312302
throw obj!;
313303
}
314-
else
315-
{
316-
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
317-
}
304+
305+
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
318306
}
319307
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
320308
{
321-
throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
322-
}
323-
else
324-
{
325-
throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
309+
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
326310
}
311+
312+
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
327313
}
328314
}
329315
}

lending/Codat/Lending/AccountingBankData.cs

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ public interface IAccountingBankData
3737
/// <br/>
3838
/// <a href="https://docs.codat.io/lending-api#/schemas/BankTransactions">Bank account transactions</a> are records of money that has moved in and out of an SMB&apos;s bank account.<br/>
3939
/// <br/>
40-
/// Check out our <a href="https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&amp;dataType=bankTransactions">coverage explorer</a> for integrations that support listing bank transactions.<br/>
41-
/// <br/>
4240
/// Before using this endpoint, you must have <a href="https://docs.codat.io/lending-api#/operations/refresh-company-data">retrieved data for the company</a>.<br/>
4341
///
4442
/// </remarks>
@@ -53,10 +51,10 @@ public class AccountingBankData: IAccountingBankData
5351
{
5452
public SDKConfig SDKConfiguration { get; private set; }
5553
private const string _language = "csharp";
56-
private const string _sdkVersion = "6.0.1";
57-
private const string _sdkGenVersion = "2.415.6";
54+
private const string _sdkVersion = "7.0.0";
55+
private const string _sdkGenVersion = "2.451.0";
5856
private const string _openapiDocVersion = "3.0.0";
59-
private const string _userAgent = "speakeasy-sdk/csharp 6.0.1 2.415.6 3.0.0 Codat.Lending";
57+
private const string _userAgent = "speakeasy-sdk/csharp 7.0.0 2.451.0 3.0.0 Codat.Lending";
6058
private string _serverUrl = "";
6159
private ISpeakeasyHttpClient _client;
6260
private Func<Codat.Lending.Models.Components.Security>? _securitySource;
@@ -169,10 +167,8 @@ public async Task<ListAccountingBankAccountTransactionsResponse> ListTransaction
169167
response.AccountingBankTransactions = obj;
170168
return response;
171169
}
172-
else
173-
{
174-
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
175-
}
170+
171+
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
176172
}
177173
else if(new List<int>{400, 401, 402, 403, 404, 409, 429, 500, 503}.Contains(responseStatusCode))
178174
{
@@ -181,19 +177,15 @@ public async Task<ListAccountingBankAccountTransactionsResponse> ListTransaction
181177
var obj = ResponseBodyDeserializer.Deserialize<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
182178
throw obj!;
183179
}
184-
else
185-
{
186-
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
187-
}
180+
181+
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
188182
}
189183
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
190184
{
191-
throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
192-
}
193-
else
194-
{
195-
throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
185+
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
196186
}
187+
188+
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
197189
}
198190
}
199191
}

0 commit comments

Comments
 (0)