Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.405.8 (#309)
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 Oct 2, 2024
1 parent ccdd386 commit 653dff4
Show file tree
Hide file tree
Showing 55 changed files with 699 additions and 592 deletions.
16 changes: 15 additions & 1 deletion .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
speakeasyVersion: 1.402.1
speakeasyVersion: 1.405.8
sources:
bank-feeds-source:
sourceNamespace: bank-feeds-source
Expand Down Expand Up @@ -35,6 +35,13 @@ sources:
tags:
- latest
- main
sync-for-payables-source:
sourceNamespace: sync-for-payables-source
sourceRevisionDigest: sha256:5bbca92291f77d408d1172141904f939ff18db2c6db88c6f2e88717981ab30e4
sourceBlobDigest: sha256:b2999b2b9b935bfc647fe90125f27429ceca251baba134fe2e1b28ee05204eb6
tags:
- latest
- main
sync-for-payables-version-1-source:
sourceNamespace: sync-for-payables-version-1-source
sourceRevisionDigest: sha256:8a265bac8fe5d0a020e2e098459e0d2336d69f6acb919efab1e20e2b0ba4dc79
Expand Down Expand Up @@ -75,6 +82,11 @@ targets:
sourceNamespace: sync-for-expenses-source
sourceRevisionDigest: sha256:29b3738ed98f81087388bc423a26d18d807ebff3e1fe826a8c3d38ec257526ad
sourceBlobDigest: sha256:8ff5db8d481a4d93a95e36d83aee7ea08d38383a681da291f47206e4153bb757
sync-for-payables-library:
source: sync-for-payables-source
sourceNamespace: sync-for-payables-source
sourceRevisionDigest: sha256:5bbca92291f77d408d1172141904f939ff18db2c6db88c6f2e88717981ab30e4
sourceBlobDigest: sha256:b2999b2b9b935bfc647fe90125f27429ceca251baba134fe2e1b28ee05204eb6
sync-for-payables-version-1-library:
source: sync-for-payables-version-1-source
sourceNamespace: sync-for-payables-version-1-source
Expand Down Expand Up @@ -117,6 +129,8 @@ workflow:
sync-for-payables-source:
inputs:
- location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Payables.yaml
registry:
location: registry.speakeasyapi.dev/codat/codat/sync-for-payables-source
sync-for-payables-version-1-source:
inputs:
- location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Payables-v1.yaml
Expand Down
2 changes: 2 additions & 0 deletions .speakeasy/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ sources:
sync-for-payables-source:
inputs:
- location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Payables.yaml
registry:
location: registry.speakeasyapi.dev/codat/codat/sync-for-payables-source
sync-for-payables-version-1-source:
inputs:
- location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Payables-v1.yaml
Expand Down
92 changes: 52 additions & 40 deletions sync-for-payables/.speakeasy/gen.lock

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions sync-for-payables/.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: 4.0.0
version: 5.0.0
additionalDependencies: []
author: Codat
clientServerStatusCodesAsErrors: true
Expand All @@ -35,4 +35,5 @@ csharp:
outputModelSuffix: output
packageName: Codat.Sync.Payables
packageTags: ""
responseFormat: envelope
responseFormat: envelope
sourceDirectory: ""
26 changes: 10 additions & 16 deletions sync-for-payables/Codat/Sync/Payables/BankAccounts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ public class BankAccounts: IBankAccounts
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "4.0.0";
private const string _sdkGenVersion = "2.413.0";
private const string _sdkVersion = "5.0.0";
private const string _sdkGenVersion = "2.429.0";
private const string _openapiDocVersion = "3.0.0";
private const string _userAgent = "speakeasy-sdk/csharp 4.0.0 2.413.0 3.0.0 Codat.Sync.Payables";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0 2.429.0 3.0.0 Codat.Sync.Payables";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Codat.Sync.Payables.Models.Components.Security>? _securitySource;
Expand Down Expand Up @@ -168,10 +168,8 @@ public async Task<CreateBankAccountResponse> CreateAsync(CreateBankAccountReques
response.BankAccount = 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 @@ -180,19 +178,15 @@ public async Task<CreateBankAccountResponse> CreateAsync(CreateBankAccountReques
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-payables/Codat/Sync/Payables/BillPayments.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ public class BillPayments: IBillPayments
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "4.0.0";
private const string _sdkGenVersion = "2.413.0";
private const string _sdkVersion = "5.0.0";
private const string _sdkGenVersion = "2.429.0";
private const string _openapiDocVersion = "3.0.0";
private const string _userAgent = "speakeasy-sdk/csharp 4.0.0 2.413.0 3.0.0 Codat.Sync.Payables";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0 2.429.0 3.0.0 Codat.Sync.Payables";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Codat.Sync.Payables.Models.Components.Security>? _securitySource;
Expand Down Expand Up @@ -174,10 +174,8 @@ public async Task<GetMappingOptionsPaymentsResponse> GetPaymentOptionsAsync(GetM
response.PaymentMappingOptions = 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 @@ -186,19 +184,15 @@ public async Task<GetMappingOptionsPaymentsResponse> GetPaymentOptionsAsync(GetM
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<CreateBillPaymentResponse> CreateAsync(CreateBillPaymentRequest request, RetryConfig? retryConfig = null)
Expand Down Expand Up @@ -306,10 +300,8 @@ public async Task<CreateBillPaymentResponse> CreateAsync(CreateBillPaymentReques
response.BillPayment = 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 @@ -318,19 +310,15 @@ public async Task<CreateBillPaymentResponse> CreateAsync(CreateBillPaymentReques
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 653dff4

Please sign in to comment.