Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.431.0 (#323)
Browse files Browse the repository at this point in the history
Co-authored-by: speakeasybot <[email protected]>
  • Loading branch information
github-actions[bot] and speakeasybot authored Nov 6, 2024
1 parent 9e66fe5 commit aee8bab
Show file tree
Hide file tree
Showing 346 changed files with 6,053 additions and 3,868 deletions.
8 changes: 4 additions & 4 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ sources:
- main
lending-source:
sourceNamespace: lending-source
sourceRevisionDigest: sha256:1abb9712d8df1fe1937d3a50bf5e307354782665b78fc118ea1d124fe54fbf8e
sourceBlobDigest: sha256:11ae523963780dcf6d5f3e5d617b7d4f809c94c11f59f95202727916e51510f4
sourceRevisionDigest: sha256:712c9fe17e3378a480659ed34f75e0ef120341f40a0528c5c93f4d4ebcfe5ee3
sourceBlobDigest: sha256:4525ee073b57729cfcb4c57cd3715fd634d44b091eb42b011966d87654980fc2
tags:
- latest
- main
Expand Down Expand Up @@ -65,8 +65,8 @@ targets:
lending-library:
source: lending-source
sourceNamespace: lending-source
sourceRevisionDigest: sha256:1abb9712d8df1fe1937d3a50bf5e307354782665b78fc118ea1d124fe54fbf8e
sourceBlobDigest: sha256:11ae523963780dcf6d5f3e5d617b7d4f809c94c11f59f95202727916e51510f4
sourceRevisionDigest: sha256:712c9fe17e3378a480659ed34f75e0ef120341f40a0528c5c93f4d4ebcfe5ee3
sourceBlobDigest: sha256:4525ee073b57729cfcb4c57cd3715fd634d44b091eb42b011966d87654980fc2
platform-library:
source: platform-source
sourceNamespace: platform-source
Expand Down
1,186 changes: 673 additions & 513 deletions lending/.speakeasy/gen.lock

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion lending/.speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ generation:
requestResponseComponentNamesFeb2024: true
auth:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
csharp:
version: 6.0.1
version: 7.0.0
additionalDependencies: []
author: Codat
clientServerStatusCodesAsErrors: true
Expand All @@ -21,6 +22,7 @@ csharp:
dotnetVersion: net8.0
enableSourceLink: false
flattenGlobalSecurity: true
flatteningOrder: ""
imports:
option: openapi
paths:
Expand All @@ -32,7 +34,9 @@ csharp:
includeDebugSymbols: false
inputModelSuffix: input
maxMethodParams: 0
methodArguments: infer-optional-args
outputModelSuffix: output
packageName: Codat.Lending
packageTags: ""
responseFormat: envelope
sourceDirectory: ""
26 changes: 10 additions & 16 deletions lending/Codat/Lending/AccountBalances.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ public class AccountBalances: IAccountBalances
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "6.0.1";
private const string _sdkGenVersion = "2.415.6";
private const string _sdkVersion = "7.0.0";
private const string _sdkGenVersion = "2.451.0";
private const string _openapiDocVersion = "3.0.0";
private const string _userAgent = "speakeasy-sdk/csharp 6.0.1 2.415.6 3.0.0 Codat.Lending";
private const string _userAgent = "speakeasy-sdk/csharp 7.0.0 2.451.0 3.0.0 Codat.Lending";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Codat.Lending.Models.Components.Security>? _securitySource;
Expand Down Expand Up @@ -158,10 +158,8 @@ public async Task<ListBankingAccountBalancesResponse> ListAsync(ListBankingAccou
response.BankingAccountBalances = obj;
return response;
}
else
{
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}

throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}
else if(new List<int>{400, 401, 402, 403, 404, 409, 429, 500, 503}.Contains(responseStatusCode))
{
Expand All @@ -170,19 +168,15 @@ public async Task<ListBankingAccountBalancesResponse> ListAsync(ListBankingAccou
var obj = ResponseBodyDeserializer.Deserialize<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
throw obj!;
}
else
{
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}

throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
{
throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}
else
{
throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}

throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}
}
}
48 changes: 17 additions & 31 deletions lending/Codat/Lending/AccountTransactions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ public interface IAccountTransactions
/// <br/>
/// <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/>
/// <br/>
/// 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/>
/// <br/>
/// 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/>
///
/// </remarks>
Expand All @@ -60,10 +58,10 @@ public class AccountTransactions: IAccountTransactions
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "6.0.1";
private const string _sdkGenVersion = "2.415.6";
private const string _sdkVersion = "7.0.0";
private const string _sdkGenVersion = "2.451.0";
private const string _openapiDocVersion = "3.0.0";
private const string _userAgent = "speakeasy-sdk/csharp 6.0.1 2.415.6 3.0.0 Codat.Lending";
private const string _userAgent = "speakeasy-sdk/csharp 7.0.0 2.451.0 3.0.0 Codat.Lending";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Codat.Lending.Models.Components.Security>? _securitySource;
Expand Down Expand Up @@ -174,10 +172,8 @@ public async Task<ListAccountingAccountTransactionsResponse> ListAsync(ListAccou
response.AccountingAccountTransactions = obj;
return response;
}
else
{
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}

throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}
else if(new List<int>{400, 401, 402, 403, 404, 409, 429, 500, 503}.Contains(responseStatusCode))
{
Expand All @@ -186,19 +182,15 @@ public async Task<ListAccountingAccountTransactionsResponse> ListAsync(ListAccou
var obj = ResponseBodyDeserializer.Deserialize<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
throw obj!;
}
else
{
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}

throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
{
throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}
else
{
throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}

throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}

public async Task<GetAccountingAccountTransactionResponse> GetAsync(GetAccountingAccountTransactionRequest request, RetryConfig? retryConfig = null)
Expand Down Expand Up @@ -299,10 +291,8 @@ public async Task<GetAccountingAccountTransactionResponse> GetAsync(GetAccountin
response.AccountingAccountTransaction = obj;
return response;
}
else
{
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}

throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}
else if(new List<int>{401, 402, 403, 404, 409, 429, 500, 503}.Contains(responseStatusCode))
{
Expand All @@ -311,19 +301,15 @@ public async Task<GetAccountingAccountTransactionResponse> GetAsync(GetAccountin
var obj = ResponseBodyDeserializer.Deserialize<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
throw obj!;
}
else
{
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}

throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
{
throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}
else
{
throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}

throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}
}
}
28 changes: 10 additions & 18 deletions lending/Codat/Lending/AccountingBankData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ public interface IAccountingBankData
/// <br/>
/// <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/>
/// <br/>
/// 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/>
/// <br/>
/// 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/>
///
/// </remarks>
Expand All @@ -53,10 +51,10 @@ public class AccountingBankData: IAccountingBankData
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "6.0.1";
private const string _sdkGenVersion = "2.415.6";
private const string _sdkVersion = "7.0.0";
private const string _sdkGenVersion = "2.451.0";
private const string _openapiDocVersion = "3.0.0";
private const string _userAgent = "speakeasy-sdk/csharp 6.0.1 2.415.6 3.0.0 Codat.Lending";
private const string _userAgent = "speakeasy-sdk/csharp 7.0.0 2.451.0 3.0.0 Codat.Lending";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Codat.Lending.Models.Components.Security>? _securitySource;
Expand Down Expand Up @@ -169,10 +167,8 @@ public async Task<ListAccountingBankAccountTransactionsResponse> ListTransaction
response.AccountingBankTransactions = obj;
return response;
}
else
{
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}

throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}
else if(new List<int>{400, 401, 402, 403, 404, 409, 429, 500, 503}.Contains(responseStatusCode))
{
Expand All @@ -181,19 +177,15 @@ public async Task<ListAccountingBankAccountTransactionsResponse> ListTransaction
var obj = ResponseBodyDeserializer.Deserialize<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
throw obj!;
}
else
{
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}

throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
{
throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}
else
{
throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}

throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}
}
}
Loading

0 comments on commit aee8bab

Please sign in to comment.