Skip to content

Commit 9869ac5

Browse files
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.396.6 (#299)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
1 parent 787559f commit 9869ac5

File tree

1,464 files changed

+34966
-18477
lines changed

Some content is hidden

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

1,464 files changed

+34966
-18477
lines changed

.speakeasy/workflow.lock

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,24 @@ sources:
77
tags:
88
- latest
99
- main
10+
lending-source:
11+
sourceNamespace: lending-source
12+
sourceRevisionDigest: sha256:430975ebcb3efb3647bd8b8cf76e07f0219c0f0866403526b038486843c34455
13+
sourceBlobDigest: sha256:11ae523963780dcf6d5f3e5d617b7d4f809c94c11f59f95202727916e51510f4
14+
tags:
15+
- latest
16+
- main
1017
targets:
1118
bank-feeds-library:
1219
source: bank-feeds-source
1320
sourceNamespace: bank-feeds-source
1421
sourceRevisionDigest: sha256:ccef85376bbc987ea49cd61be000ea911639ec530399e528922e09062c02fa5f
1522
sourceBlobDigest: sha256:24d837ec7ccccb55559e6de16951a64c09874b48e5ca92b7af36ea0b95b0eac2
23+
lending-library:
24+
source: lending-source
25+
sourceNamespace: lending-source
26+
sourceRevisionDigest: sha256:430975ebcb3efb3647bd8b8cf76e07f0219c0f0866403526b038486843c34455
27+
sourceBlobDigest: sha256:11ae523963780dcf6d5f3e5d617b7d4f809c94c11f59f95202727916e51510f4
1628
workflow:
1729
workflowVersion: 1.0.0
1830
speakeasyVersion: latest
@@ -25,6 +37,8 @@ workflow:
2537
lending-source:
2638
inputs:
2739
- location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Lending.yaml
40+
registry:
41+
location: registry.speakeasyapi.dev/codat/codat/lending-source
2842
platform-source:
2943
inputs:
3044
- location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Platform.yaml

.speakeasy/workflow.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ sources:
99
lending-source:
1010
inputs:
1111
- location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Lending.yaml
12+
registry:
13+
location: registry.speakeasyapi.dev/codat/codat/lending-source
1214
platform-source:
1315
inputs:
1416
- location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Platform.yaml

lending/.speakeasy/gen.lock

Lines changed: 11789 additions & 1354 deletions
Large diffs are not rendered by default.

lending/.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ csharp:
3535
outputModelSuffix: output
3636
packageName: Codat.Lending
3737
packageTags: ""
38-
responseFormat: envelope
38+
responseFormat: envelope

lending/CONTRIBUTING.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Contributing to This Repository
2+
3+
Thank you for your interest in contributing to this repository. Please note that this repository contains generated code. As such, we do not accept direct changes or pull requests. Instead, we encourage you to follow the guidelines below to report issues and suggest improvements.
4+
5+
## How to Report Issues
6+
7+
If you encounter any bugs or have suggestions for improvements, please open an issue on GitHub. When reporting an issue, please provide as much detail as possible to help us reproduce the problem. This includes:
8+
9+
- A clear and descriptive title
10+
- Steps to reproduce the issue
11+
- Expected and actual behavior
12+
- Any relevant logs, screenshots, or error messages
13+
- Information about your environment (e.g., operating system, software versions)
14+
- For example can be collected using the `npx envinfo` command from your terminal if you have Node.js installed
15+
16+
## Issue Triage and Upstream Fixes
17+
18+
We will review and triage issues as quickly as possible. Our goal is to address bugs and incorporate improvements in the upstream source code. Fixes will be included in the next generation of the generated code.
19+
20+
## Contact
21+
22+
If you have any questions or need further assistance, please feel free to reach out by opening an issue.
23+
24+
Thank you for your understanding and cooperation!
25+
26+
The Maintainers

lending/Codat/Lending/AccountBalances.cs

Lines changed: 54 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
21
//------------------------------------------------------------------------------
32
// <auto-generated>
4-
// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
3+
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
54
//
65
// Changes to this file may cause incorrect behavior and will be lost when
76
// the code is regenerated.
@@ -11,9 +10,10 @@
1110
namespace Codat.Lending
1211
{
1312
using Codat.Lending.Hooks;
13+
using Codat.Lending.Models.Components;
1414
using Codat.Lending.Models.Errors;
15-
using Codat.Lending.Models.Operations;
16-
using Codat.Lending.Models.Shared;
15+
using Codat.Lending.Models.Requests;
16+
using Codat.Lending.Utils.Retries;
1717
using Codat.Lending.Utils;
1818
using Newtonsoft.Json;
1919
using System.Collections.Generic;
@@ -37,30 +37,30 @@ public interface IAccountBalances
3737
///
3838
/// </remarks>
3939
/// </summary>
40-
Task<ListBankingAccountBalancesResponse> ListAsync(ListBankingAccountBalancesRequest request);
40+
Task<ListBankingAccountBalancesResponse> ListAsync(ListBankingAccountBalancesRequest request, RetryConfig? retryConfig = null);
4141
}
4242

4343
public class AccountBalances: IAccountBalances
4444
{
4545
public SDKConfig SDKConfiguration { get; private set; }
4646
private const string _language = "csharp";
47-
private const string _sdkVersion = "5.4.0";
48-
private const string _sdkGenVersion = "2.319.7";
47+
private const string _sdkVersion = "6.0.0";
48+
private const string _sdkGenVersion = "2.415.6";
4949
private const string _openapiDocVersion = "3.0.0";
50-
private const string _userAgent = "speakeasy-sdk/csharp 5.4.0 2.319.7 3.0.0 Codat.Lending";
50+
private const string _userAgent = "speakeasy-sdk/csharp 6.0.0 2.415.6 3.0.0 Codat.Lending";
5151
private string _serverUrl = "";
52-
private ISpeakeasyHttpClient _defaultClient;
53-
private Func<Security>? _securitySource;
52+
private ISpeakeasyHttpClient _client;
53+
private Func<Codat.Lending.Models.Components.Security>? _securitySource;
5454

55-
public AccountBalances(ISpeakeasyHttpClient defaultClient, Func<Security>? securitySource, string serverUrl, SDKConfig config)
55+
public AccountBalances(ISpeakeasyHttpClient client, Func<Codat.Lending.Models.Components.Security>? securitySource, string serverUrl, SDKConfig config)
5656
{
57-
_defaultClient = defaultClient;
57+
_client = client;
5858
_securitySource = securitySource;
5959
_serverUrl = serverUrl;
6060
SDKConfiguration = config;
6161
}
6262

63-
public async Task<ListBankingAccountBalancesResponse> ListAsync(ListBankingAccountBalancesRequest request)
63+
public async Task<ListBankingAccountBalancesResponse> ListAsync(ListBankingAccountBalancesRequest request, RetryConfig? retryConfig = null)
6464
{
6565
string baseUrl = this.SDKConfiguration.GetTemplatedServerUrl();
6666
var urlString = URLBuilder.Build(baseUrl, "/companies/{companyId}/connections/{connectionId}/data/banking-accountBalances", request);
@@ -75,16 +75,52 @@ public async Task<ListBankingAccountBalancesResponse> ListAsync(ListBankingAccou
7575

7676
var hookCtx = new HookContext("list-banking-account-balances", null, _securitySource);
7777

78-
httpRequest = await this.SDKConfiguration.hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
78+
httpRequest = await this.SDKConfiguration.Hooks.BeforeRequestAsync(new BeforeRequestContext(hookCtx), httpRequest);
79+
if (retryConfig == null)
80+
{
81+
if (this.SDKConfiguration.RetryConfig != null)
82+
{
83+
retryConfig = this.SDKConfiguration.RetryConfig;
84+
}
85+
else
86+
{
87+
var backoff = new BackoffStrategy(
88+
initialIntervalMs: 500L,
89+
maxIntervalMs: 60000L,
90+
maxElapsedTimeMs: 3600000L,
91+
exponent: 1.5
92+
);
93+
retryConfig = new RetryConfig(
94+
strategy: RetryConfig.RetryStrategy.BACKOFF,
95+
backoff: backoff,
96+
retryConnectionErrors: true
97+
);
98+
}
99+
}
100+
101+
List<string> statusCodes = new List<string>
102+
{
103+
"408",
104+
"429",
105+
"5XX",
106+
};
107+
108+
Func<Task<HttpResponseMessage>> retrySend = async () =>
109+
{
110+
var _httpRequest = await _client.CloneAsync(httpRequest);
111+
return await _client.SendAsync(_httpRequest);
112+
};
113+
var retries = new Codat.Lending.Utils.Retries.Retries(retrySend, retryConfig, statusCodes);
114+
79115
HttpResponseMessage httpResponse;
80116
try
81117
{
82-
httpResponse = await _defaultClient.SendAsync(httpRequest);
118+
httpResponse = await retries.Run();
83119
int _statusCode = (int)httpResponse.StatusCode;
84120

85121
if (_statusCode == 400 || _statusCode == 401 || _statusCode == 402 || _statusCode == 403 || _statusCode == 404 || _statusCode == 409 || _statusCode == 429 || _statusCode >= 400 && _statusCode < 500 || _statusCode == 500 || _statusCode == 503 || _statusCode >= 500 && _statusCode < 600)
86122
{
87-
var _httpResponse = await this.SDKConfiguration.hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), httpResponse, null);
123+
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), httpResponse, null);
88124
if (_httpResponse != null)
89125
{
90126
httpResponse = _httpResponse;
@@ -93,7 +129,7 @@ public async Task<ListBankingAccountBalancesResponse> ListAsync(ListBankingAccou
93129
}
94130
catch (Exception error)
95131
{
96-
var _httpResponse = await this.SDKConfiguration.hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error);
132+
var _httpResponse = await this.SDKConfiguration.Hooks.AfterErrorAsync(new AfterErrorContext(hookCtx), null, error);
97133
if (_httpResponse != null)
98134
{
99135
httpResponse = _httpResponse;
@@ -104,7 +140,7 @@ public async Task<ListBankingAccountBalancesResponse> ListAsync(ListBankingAccou
104140
}
105141
}
106142

107-
httpResponse = await this.SDKConfiguration.hooks.AfterSuccessAsync(new AfterSuccessContext(hookCtx), httpResponse);
143+
httpResponse = await this.SDKConfiguration.Hooks.AfterSuccessAsync(new AfterSuccessContext(hookCtx), httpResponse);
108144

109145
var contentType = httpResponse.Content.Headers.ContentType?.MediaType;
110146
int responseStatusCode = (int)httpResponse.StatusCode;

0 commit comments

Comments
 (0)