Skip to content

Commit 60d304f

Browse files
ci: regenerated with OpenAPI Doc 3.0.0, Speakeasy CLI 1.179.0 (#246)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
1 parent 567d730 commit 60d304f

Some content is hidden

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

51 files changed

+715
-487
lines changed

bank-feeds/.speakeasy/gen.lock

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
lockVersion: 2.0.0
22
id: 0e14a69b-dba1-4c0f-85f5-3b5d7f7f7731
33
management:
4-
docChecksum: d8a3c846c6e6c943937af494c3623e4f
4+
docChecksum: 4dc8263ccdcfe623fbd51a2f54a06f5d
55
docVersion: 3.0.0
66
speakeasyVersion: internal
7-
generationVersion: 2.231.0
8-
releaseVersion: 4.1.0
9-
configChecksum: c8523722d6a3d25e87ba781150e508bb
7+
generationVersion: 2.257.2
8+
releaseVersion: 4.2.0
9+
configChecksum: 18858f1ad996dc3cbd0f95bd1b84ef6b
1010
repoURL: https://github.com/codatio/client-sdk-csharp.git
1111
repoSubDirectory: bank-feeds
1212
published: true
1313
features:
1414
csharp:
15-
core: 3.3.0
15+
core: 3.3.2
1616
deprecations: 2.81.2
1717
examples: 2.81.3
18-
globalSecurity: 2.81.2
18+
globalSecurity: 2.83.0
1919
globalServerURLs: 2.82.2
2020
inputOutputModels: 2.83.0
2121
nameOverrides: 2.81.1
@@ -97,6 +97,8 @@ generatedFiles:
9797
- CodatBankFeeds/Models/Operations/SetConfigurationResponse.cs
9898
- CodatBankFeeds/Models/Shared/Zero.cs
9999
- CodatBankFeeds/Models/Shared/ErrorMessage.cs
100+
- CodatBankFeeds/Models/Shared/ErrorValidation.cs
101+
- CodatBankFeeds/Models/Shared/ErrorValidationItem.cs
100102
- CodatBankFeeds/Models/Shared/GroupReference.cs
101103
- CodatBankFeeds/Models/Shared/Company.cs
102104
- CodatBankFeeds/Models/Shared/SourceType.cs
@@ -216,6 +218,8 @@ generatedFiles:
216218
- docs/Models/Operations/SetConfigurationResponse.md
217219
- docs/Models/Shared/Zero.md
218220
- docs/Models/Shared/ErrorMessage.md
221+
- docs/Models/Shared/ErrorValidation.md
222+
- docs/Models/Shared/ErrorValidationItem.md
219223
- docs/Models/Shared/GroupReference.md
220224
- docs/Models/Shared/Company.md
221225
- docs/Models/Shared/SourceType.md

bank-feeds/CodatBankFeeds/AccountMapping.cs

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,18 @@ public class AccountMapping: IAccountMapping
6161
{
6262
public SDKConfig SDKConfiguration { get; private set; }
6363
private const string _language = "csharp";
64-
private const string _sdkVersion = "4.1.0";
65-
private const string _sdkGenVersion = "2.231.0";
64+
private const string _sdkVersion = "4.2.0";
65+
private const string _sdkGenVersion = "2.257.2";
6666
private const string _openapiDocVersion = "3.0.0";
67-
private const string _userAgent = "speakeasy-sdk/csharp 4.1.0 2.231.0 3.0.0 Codat.BankFeeds";
67+
private const string _userAgent = "speakeasy-sdk/csharp 4.2.0 2.257.2 3.0.0 Codat.BankFeeds";
6868
private string _serverUrl = "";
6969
private ISpeakeasyHttpClient _defaultClient;
70-
private ISpeakeasyHttpClient _securityClient;
70+
private Func<Security>? _securitySource;
7171

72-
public AccountMapping(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient securityClient, string serverUrl, SDKConfig config)
72+
public AccountMapping(ISpeakeasyHttpClient defaultClient, Func<Security>? securitySource, string serverUrl, SDKConfig config)
7373
{
7474
_defaultClient = defaultClient;
75-
_securityClient = securityClient;
75+
_securitySource = securitySource;
7676
_serverUrl = serverUrl;
7777
SDKConfiguration = config;
7878
}
@@ -92,8 +92,12 @@ public async Task<CreateBankAccountMappingResponse> CreateAsync(CreateBankAccoun
9292
httpRequest.Content = serializedBody;
9393
}
9494

95-
var client = _securityClient;
96-
95+
var client = _defaultClient;
96+
if (_securitySource != null)
97+
{
98+
client = SecuritySerializer.Apply(_defaultClient, _securitySource);
99+
}
100+
97101
var httpResponse = await client.SendAsync(httpRequest);
98102

99103
var contentType = httpResponse.Content.Headers.ContentType?.MediaType;
@@ -111,7 +115,7 @@ public async Task<CreateBankAccountMappingResponse> CreateAsync(CreateBankAccoun
111115
{
112116
response.BankFeedAccountMappingResponse = JsonConvert.DeserializeObject<BankFeedAccountMappingResponse>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
113117
}
114-
118+
115119
return response;
116120
}
117121
if((response.StatusCode == 400) || (response.StatusCode == 401) || (response.StatusCode == 402) || (response.StatusCode == 403) || (response.StatusCode == 404) || (response.StatusCode == 429) || (response.StatusCode == 500) || (response.StatusCode == 503))
@@ -120,11 +124,12 @@ public async Task<CreateBankAccountMappingResponse> CreateAsync(CreateBankAccoun
120124
{
121125
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
122126
}
123-
127+
124128
return response;
125129
}
126130
return response;
127131
}
132+
128133

129134

130135
public async Task<GetBankAccountMappingResponse> GetAsync(GetBankAccountMappingRequest? request = null)
@@ -136,8 +141,12 @@ public async Task<GetBankAccountMappingResponse> GetAsync(GetBankAccountMappingR
136141
httpRequest.Headers.Add("user-agent", _userAgent);
137142

138143

139-
var client = _securityClient;
140-
144+
var client = _defaultClient;
145+
if (_securitySource != null)
146+
{
147+
client = SecuritySerializer.Apply(_defaultClient, _securitySource);
148+
}
149+
141150
var httpResponse = await client.SendAsync(httpRequest);
142151

143152
var contentType = httpResponse.Content.Headers.ContentType?.MediaType;
@@ -155,7 +164,7 @@ public async Task<GetBankAccountMappingResponse> GetAsync(GetBankAccountMappingR
155164
{
156165
response.BankFeedMapping = JsonConvert.DeserializeObject<BankFeedMapping>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
157166
}
158-
167+
159168
return response;
160169
}
161170
if((response.StatusCode == 401) || (response.StatusCode == 402) || (response.StatusCode == 403) || (response.StatusCode == 404) || (response.StatusCode == 429) || (response.StatusCode == 500) || (response.StatusCode == 503))
@@ -164,11 +173,12 @@ public async Task<GetBankAccountMappingResponse> GetAsync(GetBankAccountMappingR
164173
{
165174
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
166175
}
167-
176+
168177
return response;
169178
}
170179
return response;
171180
}
181+
172182

173183
}
174184
}

bank-feeds/CodatBankFeeds/BankAccounts.cs

Lines changed: 33 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -82,18 +82,18 @@ public class BankAccounts: IBankAccounts
8282
{
8383
public SDKConfig SDKConfiguration { get; private set; }
8484
private const string _language = "csharp";
85-
private const string _sdkVersion = "4.1.0";
86-
private const string _sdkGenVersion = "2.231.0";
85+
private const string _sdkVersion = "4.2.0";
86+
private const string _sdkGenVersion = "2.257.2";
8787
private const string _openapiDocVersion = "3.0.0";
88-
private const string _userAgent = "speakeasy-sdk/csharp 4.1.0 2.231.0 3.0.0 Codat.BankFeeds";
88+
private const string _userAgent = "speakeasy-sdk/csharp 4.2.0 2.257.2 3.0.0 Codat.BankFeeds";
8989
private string _serverUrl = "";
9090
private ISpeakeasyHttpClient _defaultClient;
91-
private ISpeakeasyHttpClient _securityClient;
91+
private Func<Security>? _securitySource;
9292

93-
public BankAccounts(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient securityClient, string serverUrl, SDKConfig config)
93+
public BankAccounts(ISpeakeasyHttpClient defaultClient, Func<Security>? securitySource, string serverUrl, SDKConfig config)
9494
{
9595
_defaultClient = defaultClient;
96-
_securityClient = securityClient;
96+
_securitySource = securitySource;
9797
_serverUrl = serverUrl;
9898
SDKConfiguration = config;
9999
}
@@ -113,8 +113,12 @@ public async Task<CreateBankAccountResponse> CreateAsync(CreateBankAccountReques
113113
httpRequest.Content = serializedBody;
114114
}
115115

116-
var client = _securityClient;
117-
116+
var client = _defaultClient;
117+
if (_securitySource != null)
118+
{
119+
client = SecuritySerializer.Apply(_defaultClient, _securitySource);
120+
}
121+
118122
var httpResponse = await client.SendAsync(httpRequest);
119123

120124
var contentType = httpResponse.Content.Headers.ContentType?.MediaType;
@@ -132,7 +136,7 @@ public async Task<CreateBankAccountResponse> CreateAsync(CreateBankAccountReques
132136
{
133137
response.BankAccountCreateResponse = JsonConvert.DeserializeObject<BankAccountCreateResponse>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
134138
}
135-
139+
136140
return response;
137141
}
138142
if((response.StatusCode == 400) || (response.StatusCode == 401) || (response.StatusCode == 402) || (response.StatusCode == 403) || (response.StatusCode == 404) || (response.StatusCode == 429) || (response.StatusCode == 500) || (response.StatusCode == 503))
@@ -141,11 +145,12 @@ public async Task<CreateBankAccountResponse> CreateAsync(CreateBankAccountReques
141145
{
142146
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
143147
}
144-
148+
145149
return response;
146150
}
147151
return response;
148152
}
153+
149154

150155

151156
public async Task<GetCreateBankAccountsModelResponse> GetCreateModelAsync(GetCreateBankAccountsModelRequest? request = null)
@@ -157,8 +162,12 @@ public async Task<GetCreateBankAccountsModelResponse> GetCreateModelAsync(GetCre
157162
httpRequest.Headers.Add("user-agent", _userAgent);
158163

159164

160-
var client = _securityClient;
161-
165+
var client = _defaultClient;
166+
if (_securitySource != null)
167+
{
168+
client = SecuritySerializer.Apply(_defaultClient, _securitySource);
169+
}
170+
162171
var httpResponse = await client.SendAsync(httpRequest);
163172

164173
var contentType = httpResponse.Content.Headers.ContentType?.MediaType;
@@ -176,7 +185,7 @@ public async Task<GetCreateBankAccountsModelResponse> GetCreateModelAsync(GetCre
176185
{
177186
response.PushOption = JsonConvert.DeserializeObject<PushOption>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
178187
}
179-
188+
180189
return response;
181190
}
182191
if((response.StatusCode == 401) || (response.StatusCode == 402) || (response.StatusCode == 403) || (response.StatusCode == 404) || (response.StatusCode == 429) || (response.StatusCode == 500) || (response.StatusCode == 503))
@@ -185,11 +194,12 @@ public async Task<GetCreateBankAccountsModelResponse> GetCreateModelAsync(GetCre
185194
{
186195
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
187196
}
188-
197+
189198
return response;
190199
}
191200
return response;
192201
}
202+
193203

194204

195205
public async Task<ListBankAccountsResponse> ListAsync(ListBankAccountsRequest? request = null)
@@ -201,8 +211,12 @@ public async Task<ListBankAccountsResponse> ListAsync(ListBankAccountsRequest? r
201211
httpRequest.Headers.Add("user-agent", _userAgent);
202212

203213

204-
var client = _securityClient;
205-
214+
var client = _defaultClient;
215+
if (_securitySource != null)
216+
{
217+
client = SecuritySerializer.Apply(_defaultClient, _securitySource);
218+
}
219+
206220
var httpResponse = await client.SendAsync(httpRequest);
207221

208222
var contentType = httpResponse.Content.Headers.ContentType?.MediaType;
@@ -220,7 +234,7 @@ public async Task<ListBankAccountsResponse> ListAsync(ListBankAccountsRequest? r
220234
{
221235
response.BankAccounts = JsonConvert.DeserializeObject<Models.Shared.BankAccounts>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
222236
}
223-
237+
224238
return response;
225239
}
226240
if((response.StatusCode == 400) || (response.StatusCode == 401) || (response.StatusCode == 402) || (response.StatusCode == 403) || (response.StatusCode == 404) || (response.StatusCode == 409) || (response.StatusCode == 429) || (response.StatusCode == 500) || (response.StatusCode == 503))
@@ -229,11 +243,12 @@ public async Task<ListBankAccountsResponse> ListAsync(ListBankAccountsRequest? r
229243
{
230244
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
231245
}
232-
246+
233247
return response;
234248
}
235249
return response;
236250
}
251+
237252

238253
}
239254
}

bank-feeds/CodatBankFeeds/CodatBankFeeds.cs

Lines changed: 32 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,14 @@ public class CodatBankFeeds: ICodatBankFeeds
128128
public SDKConfig SDKConfiguration { get; private set; }
129129

130130
private const string _language = "csharp";
131-
private const string _sdkVersion = "4.1.0";
132-
private const string _sdkGenVersion = "2.231.0";
131+
private const string _sdkVersion = "4.2.0";
132+
private const string _sdkGenVersion = "2.257.2";
133133
private const string _openapiDocVersion = "3.0.0";
134-
private const string _userAgent = "speakeasy-sdk/csharp 4.1.0 2.231.0 3.0.0 Codat.BankFeeds";
134+
private const string _userAgent = "speakeasy-sdk/csharp 4.2.0 2.257.2 3.0.0 Codat.BankFeeds";
135135
private string _serverUrl = "";
136+
private int _serverIndex = 0;
136137
private ISpeakeasyHttpClient _defaultClient;
137-
private ISpeakeasyHttpClient _securityClient;
138+
private Func<Security>? _securitySource;
138139
public ICompanies Companies { get; private set; }
139140
public IConnections Connections { get; private set; }
140141
public IAccountMapping AccountMapping { get; private set; }
@@ -143,35 +144,46 @@ public class CodatBankFeeds: ICodatBankFeeds
143144
public ITransactions Transactions { get; private set; }
144145
public IConfiguration Configuration { get; private set; }
145146

146-
public CodatBankFeeds(Security? security = null, int? serverIndex = null, string? serverUrl = null, Dictionary<string, string>? urlParams = null, ISpeakeasyHttpClient? client = null)
147+
public CodatBankFeeds(Security? security = null, Func<Security>? securitySource = null, int? serverIndex = null, string? serverUrl = null, Dictionary<string, string>? urlParams = null, ISpeakeasyHttpClient? client = null)
147148
{
148-
if (serverUrl != null) {
149-
if (urlParams != null) {
149+
if (serverIndex != null)
150+
{
151+
_serverIndex = serverIndex.Value;
152+
}
153+
154+
if (serverUrl != null)
155+
{
156+
if (urlParams != null)
157+
{
150158
serverUrl = Utilities.TemplateUrl(serverUrl, urlParams);
151159
}
152160
_serverUrl = serverUrl;
153161
}
154162

155163
_defaultClient = new SpeakeasyHttpClient(client);
156-
_securityClient = _defaultClient;
157-
158-
if(security != null)
164+
165+
if(securitySource != null)
166+
{
167+
_securitySource = securitySource;
168+
}
169+
else if(security != null)
159170
{
160-
_securityClient = SecuritySerializer.Apply(_defaultClient, security);
171+
_securitySource = () => security;
161172
}
162-
173+
163174
SDKConfiguration = new SDKConfig()
164175
{
176+
serverIndex = _serverIndex,
165177
serverUrl = _serverUrl
166178
};
167179

168-
Companies = new Companies(_defaultClient, _securityClient, _serverUrl, SDKConfiguration);
169-
Connections = new Connections(_defaultClient, _securityClient, _serverUrl, SDKConfiguration);
170-
AccountMapping = new AccountMapping(_defaultClient, _securityClient, _serverUrl, SDKConfiguration);
171-
SourceAccounts = new SourceAccounts(_defaultClient, _securityClient, _serverUrl, SDKConfiguration);
172-
BankAccounts = new BankAccounts(_defaultClient, _securityClient, _serverUrl, SDKConfiguration);
173-
Transactions = new Transactions(_defaultClient, _securityClient, _serverUrl, SDKConfiguration);
174-
Configuration = new Configuration(_defaultClient, _securityClient, _serverUrl, SDKConfiguration);
180+
Companies = new Companies(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
181+
Connections = new Connections(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
182+
AccountMapping = new AccountMapping(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
183+
SourceAccounts = new SourceAccounts(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
184+
BankAccounts = new BankAccounts(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
185+
Transactions = new Transactions(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
186+
Configuration = new Configuration(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
175187
}
176188
}
177-
}
189+
}

bank-feeds/CodatBankFeeds/CodatBankFeeds.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<IsPackable>true</IsPackable>
44
<PackageId>Codat.BankFeeds</PackageId>
5-
<Version>4.1.0</Version>
5+
<Version>4.2.0</Version>
66
<Authors>Codat</Authors>
77
<TargetFramework>net6.0</TargetFramework>
88
<Nullable>enable</Nullable>

0 commit comments

Comments
 (0)