1
-
2
1
//------------------------------------------------------------------------------
3
2
// <auto-generated>
4
3
// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
@@ -13,6 +12,7 @@ namespace Codat.Platform
13
12
using Codat . Platform . Hooks ;
14
13
using Codat . Platform . Models . Errors ;
15
14
using Codat . Platform . Models . Shared ;
15
+ using Codat . Platform . Utils . Retries ;
16
16
using Codat . Platform . Utils ;
17
17
using Newtonsoft . Json ;
18
18
using System . Collections . Generic ;
@@ -64,7 +64,7 @@ public interface ICodatPlatform
64
64
public ICompanies Companies { get ; }
65
65
66
66
/// <summary>
67
- /// Configure connection management UI and retrieve access tokens for authentication.
67
+ /// Configure UI and retrieve access tokens for authentication used by **Connections SDK** .
68
68
/// </summary>
69
69
public IConnectionManagement ConnectionManagement { get ; }
70
70
@@ -120,7 +120,8 @@ public class SDKConfig
120
120
121
121
public string ServerUrl = "" ;
122
122
public int ServerIndex = 0 ;
123
- public SDKHooks hooks = new SDKHooks ( ) ;
123
+ public SDKHooks Hooks = new SDKHooks ( ) ;
124
+ public RetryConfig ? RetryConfig = null ;
124
125
125
126
public string GetTemplatedServerUrl ( )
126
127
{
@@ -134,7 +135,7 @@ public string GetTemplatedServerUrl()
134
135
public ISpeakeasyHttpClient InitHooks ( ISpeakeasyHttpClient client )
135
136
{
136
137
string preHooksUrl = GetTemplatedServerUrl ( ) ;
137
- var ( postHooksUrl , postHooksClient ) = this . hooks . SDKInit ( preHooksUrl , client ) ;
138
+ var ( postHooksUrl , postHooksClient ) = this . Hooks . SDKInit ( preHooksUrl , client ) ;
138
139
if ( preHooksUrl != postHooksUrl )
139
140
{
140
141
this . ServerUrl = postHooksUrl ;
@@ -178,13 +179,13 @@ public class CodatPlatform: ICodatPlatform
178
179
public SDKConfig SDKConfiguration { get ; private set ; }
179
180
180
181
private const string _language = "csharp" ;
181
- private const string _sdkVersion = "3.6.1 " ;
182
- private const string _sdkGenVersion = "2.319.7 " ;
182
+ private const string _sdkVersion = "3.7.0 " ;
183
+ private const string _sdkGenVersion = "2.361.10 " ;
183
184
private const string _openapiDocVersion = "3.0.0" ;
184
- private const string _userAgent = "speakeasy-sdk/csharp 3.6.1 2.319.7 3.0.0 Codat.Platform" ;
185
+ private const string _userAgent = "speakeasy-sdk/csharp 3.7.0 2.361.10 3.0.0 Codat.Platform" ;
185
186
private string _serverUrl = "" ;
186
187
private int _serverIndex = 0 ;
187
- private ISpeakeasyHttpClient _defaultClient ;
188
+ private ISpeakeasyHttpClient _client ;
188
189
private Func < Security > ? _securitySource ;
189
190
public ISettings Settings { get ; private set ; }
190
191
public ICompanies Companies { get ; private set ; }
@@ -198,7 +199,7 @@ public class CodatPlatform: ICodatPlatform
198
199
public ISupplementalData SupplementalData { get ; private set ; }
199
200
public IWebhooks Webhooks { get ; private set ; }
200
201
201
- public CodatPlatform ( Security ? security = null , Func < Security > ? securitySource = null , int ? serverIndex = null , string ? serverUrl = null , Dictionary < string , string > ? urlParams = null , ISpeakeasyHttpClient ? client = null )
202
+ public CodatPlatform ( Security ? security = null , Func < Security > ? securitySource = null , int ? serverIndex = null , string ? serverUrl = null , Dictionary < string , string > ? urlParams = null , ISpeakeasyHttpClient ? client = null , RetryConfig ? retryConfig = null )
202
203
{
203
204
if ( serverIndex != null )
204
205
{
@@ -218,7 +219,7 @@ public CodatPlatform(Security? security = null, Func<Security>? securitySource =
218
219
_serverUrl = serverUrl ;
219
220
}
220
221
221
- _defaultClient = new SpeakeasyHttpClient ( client ) ;
222
+ _client = client ?? new SpeakeasyHttpClient ( ) ;
222
223
223
224
if ( securitySource != null )
224
225
{
@@ -236,43 +237,44 @@ public CodatPlatform(Security? security = null, Func<Security>? securitySource =
236
237
SDKConfiguration = new SDKConfig ( )
237
238
{
238
239
ServerIndex = _serverIndex ,
239
- ServerUrl = _serverUrl
240
+ ServerUrl = _serverUrl ,
241
+ RetryConfig = retryConfig
240
242
} ;
241
243
242
- _defaultClient = SDKConfiguration . InitHooks ( _defaultClient ) ;
244
+ _client = SDKConfiguration . InitHooks ( _client ) ;
243
245
244
246
245
- Settings = new Settings ( _defaultClient , _securitySource , _serverUrl , SDKConfiguration ) ;
247
+ Settings = new Settings ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
246
248
247
249
248
- Companies = new Companies ( _defaultClient , _securitySource , _serverUrl , SDKConfiguration ) ;
250
+ Companies = new Companies ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
249
251
250
252
251
- ConnectionManagement = new ConnectionManagement ( _defaultClient , _securitySource , _serverUrl , SDKConfiguration ) ;
253
+ ConnectionManagement = new ConnectionManagement ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
252
254
253
255
254
- Connections = new Connections ( _defaultClient , _securitySource , _serverUrl , SDKConfiguration ) ;
256
+ Connections = new Connections ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
255
257
256
258
257
- CustomDataType = new CustomDataType ( _defaultClient , _securitySource , _serverUrl , SDKConfiguration ) ;
259
+ CustomDataType = new CustomDataType ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
258
260
259
261
260
- PushData = new PushData ( _defaultClient , _securitySource , _serverUrl , SDKConfiguration ) ;
262
+ PushData = new PushData ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
261
263
262
264
263
- RefreshData = new RefreshData ( _defaultClient , _securitySource , _serverUrl , SDKConfiguration ) ;
265
+ RefreshData = new RefreshData ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
264
266
265
267
266
- Groups = new Groups ( _defaultClient , _securitySource , _serverUrl , SDKConfiguration ) ;
268
+ Groups = new Groups ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
267
269
268
270
269
- Integrations = new Integrations ( _defaultClient , _securitySource , _serverUrl , SDKConfiguration ) ;
271
+ Integrations = new Integrations ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
270
272
271
273
272
- SupplementalData = new SupplementalData ( _defaultClient , _securitySource , _serverUrl , SDKConfiguration ) ;
274
+ SupplementalData = new SupplementalData ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
273
275
274
276
275
- Webhooks = new Webhooks ( _defaultClient , _securitySource , _serverUrl , SDKConfiguration ) ;
277
+ Webhooks = new Webhooks ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
276
278
}
277
279
}
278
280
}
0 commit comments