Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.402.1 (#307)
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 Sep 24, 2024
1 parent ef88063 commit ccdd386
Show file tree
Hide file tree
Showing 59 changed files with 932 additions and 775 deletions.
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
speakeasyVersion: 1.396.6
speakeasyVersion: 1.402.1
sources:
bank-feeds-source:
sourceNamespace: bank-feeds-source
Expand Down Expand Up @@ -30,8 +30,8 @@ sources:
- main
sync-for-expenses-source:
sourceNamespace: sync-for-expenses-source
sourceRevisionDigest: sha256:ce40190cfe78e3f220050ea0830074c03d674b25d5760a37c9263161fc97e292
sourceBlobDigest: sha256:7f399328e7bf537a3e5ee884667234673d34c00e889182df4e2b0500bb91dcfd
sourceRevisionDigest: sha256:29b3738ed98f81087388bc423a26d18d807ebff3e1fe826a8c3d38ec257526ad
sourceBlobDigest: sha256:8ff5db8d481a4d93a95e36d83aee7ea08d38383a681da291f47206e4153bb757
tags:
- latest
- main
Expand Down Expand Up @@ -73,8 +73,8 @@ targets:
sync-for-expenses-library:
source: sync-for-expenses-source
sourceNamespace: sync-for-expenses-source
sourceRevisionDigest: sha256:ce40190cfe78e3f220050ea0830074c03d674b25d5760a37c9263161fc97e292
sourceBlobDigest: sha256:7f399328e7bf537a3e5ee884667234673d34c00e889182df4e2b0500bb91dcfd
sourceRevisionDigest: sha256:29b3738ed98f81087388bc423a26d18d807ebff3e1fe826a8c3d38ec257526ad
sourceBlobDigest: sha256:8ff5db8d481a4d93a95e36d83aee7ea08d38383a681da291f47206e4153bb757
sync-for-payables-version-1-library:
source: sync-for-payables-version-1-source
sourceNamespace: sync-for-payables-version-1-source
Expand Down
96 changes: 54 additions & 42 deletions sync-for-expenses/.speakeasy/gen.lock

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion sync-for-expenses/.speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
csharp:
version: 6.0.0
version: 6.1.0
additionalDependencies: []
author: Codat
clientServerStatusCodesAsErrors: true
Expand All @@ -36,3 +36,4 @@ csharp:
packageName: Codat.Sync.Expenses
packageTags: ""
responseFormat: envelope
sourceDirectory: ""
46 changes: 17 additions & 29 deletions sync-for-expenses/Codat/Sync/Expenses/Accounts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ public class Accounts: IAccounts
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "6.0.0";
private const string _sdkGenVersion = "2.415.6";
private const string _sdkVersion = "6.1.0";
private const string _sdkGenVersion = "2.422.6";
private const string _openapiDocVersion = "prealpha";
private const string _userAgent = "speakeasy-sdk/csharp 6.0.0 2.415.6 prealpha Codat.Sync.Expenses";
private const string _userAgent = "speakeasy-sdk/csharp 6.1.0 2.422.6 prealpha Codat.Sync.Expenses";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Codat.Sync.Expenses.Models.Components.Security>? _securitySource;
Expand Down Expand Up @@ -192,10 +192,8 @@ public Accounts(ISpeakeasyHttpClient client, Func<Codat.Sync.Expenses.Models.Com
response.CreateAccountResponseValue = 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, 429, 500, 503}.Contains(responseStatusCode))
{
Expand All @@ -204,19 +202,15 @@ public Accounts(ISpeakeasyHttpClient client, Func<Codat.Sync.Expenses.Models.Com
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<GetCreateChartOfAccountsModelResponse> GetCreateModelAsync(GetCreateChartOfAccountsModelRequest request, RetryConfig? retryConfig = null)
Expand Down Expand Up @@ -317,10 +311,8 @@ public async Task<GetCreateChartOfAccountsModelResponse> GetCreateModelAsync(Get
response.PushOption = 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, 429, 500, 503}.Contains(responseStatusCode))
{
Expand All @@ -329,19 +321,15 @@ public async Task<GetCreateChartOfAccountsModelResponse> GetCreateModelAsync(Get
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);
}
}
}
26 changes: 10 additions & 16 deletions sync-for-expenses/Codat/Sync/Expenses/Adjustments.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ public class Adjustments: IAdjustments
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "6.0.0";
private const string _sdkGenVersion = "2.415.6";
private const string _sdkVersion = "6.1.0";
private const string _sdkGenVersion = "2.422.6";
private const string _openapiDocVersion = "prealpha";
private const string _userAgent = "speakeasy-sdk/csharp 6.0.0 2.415.6 prealpha Codat.Sync.Expenses";
private const string _userAgent = "speakeasy-sdk/csharp 6.1.0 2.422.6 prealpha Codat.Sync.Expenses";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Codat.Sync.Expenses.Models.Components.Security>? _securitySource;
Expand Down Expand Up @@ -173,10 +173,8 @@ public async Task<CreateAdjustmentTransactionResponse> CreateAsync(CreateAdjustm
response.AdjustmentTransactionResponse = 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, 429, 500, 503}.Contains(responseStatusCode))
{
Expand All @@ -185,19 +183,15 @@ public async Task<CreateAdjustmentTransactionResponse> CreateAsync(CreateAdjustm
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);
}
}
}
26 changes: 10 additions & 16 deletions sync-for-expenses/Codat/Sync/Expenses/Attachments.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ public class Attachments: IAttachments
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "6.0.0";
private const string _sdkGenVersion = "2.415.6";
private const string _sdkVersion = "6.1.0";
private const string _sdkGenVersion = "2.422.6";
private const string _openapiDocVersion = "prealpha";
private const string _userAgent = "speakeasy-sdk/csharp 6.0.0 2.415.6 prealpha Codat.Sync.Expenses";
private const string _userAgent = "speakeasy-sdk/csharp 6.1.0 2.422.6 prealpha Codat.Sync.Expenses";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Codat.Sync.Expenses.Models.Components.Security>? _securitySource;
Expand Down Expand Up @@ -178,10 +178,8 @@ public async Task<UploadExpenseAttachmentResponse> UploadAsync(UploadExpenseAtta
response.Attachment = 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, 429, 500, 503}.Contains(responseStatusCode))
{
Expand All @@ -190,19 +188,15 @@ public async Task<UploadExpenseAttachmentResponse> UploadAsync(UploadExpenseAtta
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);
}
}
}
46 changes: 17 additions & 29 deletions sync-for-expenses/Codat/Sync/Expenses/BankAccounts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ public class BankAccounts: IBankAccounts
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "6.0.0";
private const string _sdkGenVersion = "2.415.6";
private const string _sdkVersion = "6.1.0";
private const string _sdkGenVersion = "2.422.6";
private const string _openapiDocVersion = "prealpha";
private const string _userAgent = "speakeasy-sdk/csharp 6.0.0 2.415.6 prealpha Codat.Sync.Expenses";
private const string _userAgent = "speakeasy-sdk/csharp 6.1.0 2.422.6 prealpha Codat.Sync.Expenses";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Codat.Sync.Expenses.Models.Components.Security>? _securitySource;
Expand Down Expand Up @@ -191,10 +191,8 @@ public BankAccounts(ISpeakeasyHttpClient client, Func<Codat.Sync.Expenses.Models
response.CreateBankAccountResponseValue = 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, 429, 500, 503}.Contains(responseStatusCode))
{
Expand All @@ -203,19 +201,15 @@ public BankAccounts(ISpeakeasyHttpClient client, Func<Codat.Sync.Expenses.Models
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<GetCreateBankAccountsModelResponse> GetCreateModelAsync(GetCreateBankAccountsModelRequest request, RetryConfig? retryConfig = null)
Expand Down Expand Up @@ -316,10 +310,8 @@ public async Task<GetCreateBankAccountsModelResponse> GetCreateModelAsync(GetCre
response.PushOption = 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, 429, 500, 503}.Contains(responseStatusCode))
{
Expand All @@ -328,19 +320,15 @@ public async Task<GetCreateBankAccountsModelResponse> GetCreateModelAsync(GetCre
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);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<IsPackable>true</IsPackable>
<PackageId>Codat.Sync.Expenses</PackageId>
<Version>6.0.0</Version>
<Version>6.1.0</Version>
<TargetFramework>net8.0</TargetFramework>
<Authors>Codat</Authors>
<Copyright>Copyright (c) Codat 2024</Copyright>
Expand Down
Loading

0 comments on commit ccdd386

Please sign in to comment.