Skip to content

Commit 653dff4

Browse files
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.405.8 (#309)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
1 parent ccdd386 commit 653dff4

Some content is hidden

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

55 files changed

+699
-592
lines changed

.speakeasy/workflow.lock

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
speakeasyVersion: 1.402.1
1+
speakeasyVersion: 1.405.8
22
sources:
33
bank-feeds-source:
44
sourceNamespace: bank-feeds-source
@@ -35,6 +35,13 @@ sources:
3535
tags:
3636
- latest
3737
- main
38+
sync-for-payables-source:
39+
sourceNamespace: sync-for-payables-source
40+
sourceRevisionDigest: sha256:5bbca92291f77d408d1172141904f939ff18db2c6db88c6f2e88717981ab30e4
41+
sourceBlobDigest: sha256:b2999b2b9b935bfc647fe90125f27429ceca251baba134fe2e1b28ee05204eb6
42+
tags:
43+
- latest
44+
- main
3845
sync-for-payables-version-1-source:
3946
sourceNamespace: sync-for-payables-version-1-source
4047
sourceRevisionDigest: sha256:8a265bac8fe5d0a020e2e098459e0d2336d69f6acb919efab1e20e2b0ba4dc79
@@ -75,6 +82,11 @@ targets:
7582
sourceNamespace: sync-for-expenses-source
7683
sourceRevisionDigest: sha256:29b3738ed98f81087388bc423a26d18d807ebff3e1fe826a8c3d38ec257526ad
7784
sourceBlobDigest: sha256:8ff5db8d481a4d93a95e36d83aee7ea08d38383a681da291f47206e4153bb757
85+
sync-for-payables-library:
86+
source: sync-for-payables-source
87+
sourceNamespace: sync-for-payables-source
88+
sourceRevisionDigest: sha256:5bbca92291f77d408d1172141904f939ff18db2c6db88c6f2e88717981ab30e4
89+
sourceBlobDigest: sha256:b2999b2b9b935bfc647fe90125f27429ceca251baba134fe2e1b28ee05204eb6
7890
sync-for-payables-version-1-library:
7991
source: sync-for-payables-version-1-source
8092
sourceNamespace: sync-for-payables-version-1-source
@@ -117,6 +129,8 @@ workflow:
117129
sync-for-payables-source:
118130
inputs:
119131
- location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Payables.yaml
132+
registry:
133+
location: registry.speakeasyapi.dev/codat/codat/sync-for-payables-source
120134
sync-for-payables-version-1-source:
121135
inputs:
122136
- location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Payables-v1.yaml

.speakeasy/workflow.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ sources:
2929
sync-for-payables-source:
3030
inputs:
3131
- location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Payables.yaml
32+
registry:
33+
location: registry.speakeasyapi.dev/codat/codat/sync-for-payables-source
3234
sync-for-payables-version-1-source:
3335
inputs:
3436
- location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Payables-v1.yaml

sync-for-payables/.speakeasy/gen.lock

Lines changed: 52 additions & 40 deletions
Large diffs are not rendered by default.

sync-for-payables/.speakeasy/gen.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ generation:
1212
auth:
1313
oAuth2ClientCredentialsEnabled: false
1414
csharp:
15-
version: 4.0.0
15+
version: 5.0.0
1616
additionalDependencies: []
1717
author: Codat
1818
clientServerStatusCodesAsErrors: true
@@ -35,4 +35,5 @@ csharp:
3535
outputModelSuffix: output
3636
packageName: Codat.Sync.Payables
3737
packageTags: ""
38-
responseFormat: envelope
38+
responseFormat: envelope
39+
sourceDirectory: ""

sync-for-payables/Codat/Sync/Payables/BankAccounts.cs

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ public class BankAccounts: IBankAccounts
4747
{
4848
public SDKConfig SDKConfiguration { get; private set; }
4949
private const string _language = "csharp";
50-
private const string _sdkVersion = "4.0.0";
51-
private const string _sdkGenVersion = "2.413.0";
50+
private const string _sdkVersion = "5.0.0";
51+
private const string _sdkGenVersion = "2.429.0";
5252
private const string _openapiDocVersion = "3.0.0";
53-
private const string _userAgent = "speakeasy-sdk/csharp 4.0.0 2.413.0 3.0.0 Codat.Sync.Payables";
53+
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0 2.429.0 3.0.0 Codat.Sync.Payables";
5454
private string _serverUrl = "";
5555
private ISpeakeasyHttpClient _client;
5656
private Func<Codat.Sync.Payables.Models.Components.Security>? _securitySource;
@@ -168,10 +168,8 @@ public async Task<CreateBankAccountResponse> CreateAsync(CreateBankAccountReques
168168
response.BankAccount = obj;
169169
return response;
170170
}
171-
else
172-
{
173-
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
174-
}
171+
172+
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
175173
}
176174
else if(new List<int>{400, 401, 402, 403, 404, 429, 500, 503}.Contains(responseStatusCode))
177175
{
@@ -180,19 +178,15 @@ public async Task<CreateBankAccountResponse> CreateAsync(CreateBankAccountReques
180178
var obj = ResponseBodyDeserializer.Deserialize<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
181179
throw obj!;
182180
}
183-
else
184-
{
185-
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
186-
}
181+
182+
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
187183
}
188184
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
189185
{
190-
throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
191-
}
192-
else
193-
{
194-
throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
186+
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
195187
}
188+
189+
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
196190
}
197191
}
198192
}

sync-for-payables/Codat/Sync/Payables/BillPayments.cs

Lines changed: 17 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ public class BillPayments: IBillPayments
6060
{
6161
public SDKConfig SDKConfiguration { get; private set; }
6262
private const string _language = "csharp";
63-
private const string _sdkVersion = "4.0.0";
64-
private const string _sdkGenVersion = "2.413.0";
63+
private const string _sdkVersion = "5.0.0";
64+
private const string _sdkGenVersion = "2.429.0";
6565
private const string _openapiDocVersion = "3.0.0";
66-
private const string _userAgent = "speakeasy-sdk/csharp 4.0.0 2.413.0 3.0.0 Codat.Sync.Payables";
66+
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0 2.429.0 3.0.0 Codat.Sync.Payables";
6767
private string _serverUrl = "";
6868
private ISpeakeasyHttpClient _client;
6969
private Func<Codat.Sync.Payables.Models.Components.Security>? _securitySource;
@@ -174,10 +174,8 @@ public async Task<GetMappingOptionsPaymentsResponse> GetPaymentOptionsAsync(GetM
174174
response.PaymentMappingOptions = obj;
175175
return response;
176176
}
177-
else
178-
{
179-
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
180-
}
177+
178+
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
181179
}
182180
else if(new List<int>{400, 401, 402, 403, 404, 429, 500, 503}.Contains(responseStatusCode))
183181
{
@@ -186,19 +184,15 @@ public async Task<GetMappingOptionsPaymentsResponse> GetPaymentOptionsAsync(GetM
186184
var obj = ResponseBodyDeserializer.Deserialize<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
187185
throw obj!;
188186
}
189-
else
190-
{
191-
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
192-
}
187+
188+
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
193189
}
194190
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
195191
{
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);
192+
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
201193
}
194+
195+
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
202196
}
203197

204198
public async Task<CreateBillPaymentResponse> CreateAsync(CreateBillPaymentRequest request, RetryConfig? retryConfig = null)
@@ -306,10 +300,8 @@ public async Task<CreateBillPaymentResponse> CreateAsync(CreateBillPaymentReques
306300
response.BillPayment = obj;
307301
return response;
308302
}
309-
else
310-
{
311-
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
312-
}
303+
304+
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
313305
}
314306
else if(new List<int>{400, 401, 402, 403, 404, 409, 429, 500, 503}.Contains(responseStatusCode))
315307
{
@@ -318,19 +310,15 @@ public async Task<CreateBillPaymentResponse> CreateAsync(CreateBillPaymentReques
318310
var obj = ResponseBodyDeserializer.Deserialize<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
319311
throw obj!;
320312
}
321-
else
322-
{
323-
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
324-
}
313+
314+
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
325315
}
326316
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
327317
{
328-
throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
329-
}
330-
else
331-
{
332-
throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
318+
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
333319
}
320+
321+
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
334322
}
335323
}
336324
}

0 commit comments

Comments
 (0)