10
10
namespace Codat . Platform
11
11
{
12
12
using Codat . Platform . Hooks ;
13
+ using Codat . Platform . Models . Components ;
13
14
using Codat . Platform . Models . Errors ;
14
- using Codat . Platform . Models . Shared ;
15
15
using Codat . Platform . Utils . Retries ;
16
16
using Codat . Platform . Utils ;
17
17
using Newtonsoft . Json ;
@@ -54,59 +54,59 @@ public interface ICodatPlatform
54
54
{
55
55
56
56
/// <summary>
57
- /// Manage company profile configuration, sync settings, and API keys .
57
+ /// Create and manage your SMB users' companies .
58
58
/// </summary>
59
- public ISettings Settings { get ; }
59
+ public ICompanies Companies { get ; }
60
60
61
61
/// <summary>
62
- /// Create and manage your SMB users' companies .
62
+ /// Create new and manage existing data connections for a company .
63
63
/// </summary>
64
- public ICompanies Companies { get ; }
64
+ public IConnections Connections { get ; }
65
65
66
66
/// <summary>
67
67
/// Configure UI and retrieve access tokens for authentication used by **Connections SDK**.
68
68
/// </summary>
69
69
public IConnectionManagement ConnectionManagement { get ; }
70
70
71
71
/// <summary>
72
- /// Create new and manage existing data connections for a company .
72
+ /// Initiate data refreshes, view pull status and history .
73
73
/// </summary>
74
- public IConnections Connections { get ; }
74
+ public IRefreshData RefreshData { get ; }
75
75
76
76
/// <summary>
77
- /// Configure and pull additional data types that are not included in Codat's standardized data model .
77
+ /// Define and manage sets of companies based on a chosen characteristic .
78
78
/// </summary>
79
- public ICustomDataType CustomDataType { get ; }
79
+ public IGroups Groups { get ; }
80
80
81
81
/// <summary>
82
- /// Initiate and monitor Create, Update, and Delete operations .
82
+ /// Create and manage webhooks that listen to Codat's events .
83
83
/// </summary>
84
- public IPushData PushData { get ; }
84
+ public IWebhooks Webhooks { get ; }
85
85
86
86
/// <summary>
87
- /// Initiate data refreshes, view pull status and history .
87
+ /// Get a list of integrations supported by Codat and their logos .
88
88
/// </summary>
89
- public IRefreshData RefreshData { get ; }
89
+ public IIntegrations Integrations { get ; }
90
90
91
91
/// <summary>
92
- /// Define and manage sets of companies based on a chosen characteristic .
92
+ /// Manage company profile configuration, sync settings, and API keys .
93
93
/// </summary>
94
- public IGroups Groups { get ; }
94
+ public ISettings Settings { get ; }
95
95
96
96
/// <summary>
97
- /// Get a list of integrations supported by Codat and their logos .
97
+ /// Initiate and monitor Create, Update, and Delete operations .
98
98
/// </summary>
99
- public IIntegrations Integrations { get ; }
99
+ public IPushData PushData { get ; }
100
100
101
101
/// <summary>
102
102
/// Configure and pull additional data you can include in Codat's standard data types.
103
103
/// </summary>
104
104
public ISupplementalData SupplementalData { get ; }
105
105
106
106
/// <summary>
107
- /// Create and manage webhooks that listen to Codat's events .
107
+ /// Configure and pull additional data types that are not included in Codat's standardized data model .
108
108
/// </summary>
109
- public IWebhooks Webhooks { get ; }
109
+ public ICustomDataType CustomDataType { get ; }
110
110
}
111
111
112
112
public class SDKConfig
@@ -179,27 +179,27 @@ public class CodatPlatform: ICodatPlatform
179
179
public SDKConfig SDKConfiguration { get ; private set ; }
180
180
181
181
private const string _language = "csharp" ;
182
- private const string _sdkVersion = "3.7.1 " ;
183
- private const string _sdkGenVersion = "2.411.9 " ;
182
+ private const string _sdkVersion = "4.0.0 " ;
183
+ private const string _sdkGenVersion = "2.415.6 " ;
184
184
private const string _openapiDocVersion = "3.0.0" ;
185
- private const string _userAgent = "speakeasy-sdk/csharp 3.7.1 2.411.9 3.0.0 Codat.Platform" ;
185
+ private const string _userAgent = "speakeasy-sdk/csharp 4.0.0 2.415.6 3.0.0 Codat.Platform" ;
186
186
private string _serverUrl = "" ;
187
187
private int _serverIndex = 0 ;
188
188
private ISpeakeasyHttpClient _client ;
189
- private Func < Codat . Platform . Models . Shared . Security > ? _securitySource ;
190
- public ISettings Settings { get ; private set ; }
189
+ private Func < Codat . Platform . Models . Components . Security > ? _securitySource ;
191
190
public ICompanies Companies { get ; private set ; }
192
- public IConnectionManagement ConnectionManagement { get ; private set ; }
193
191
public IConnections Connections { get ; private set ; }
194
- public ICustomDataType CustomDataType { get ; private set ; }
195
- public IPushData PushData { get ; private set ; }
192
+ public IConnectionManagement ConnectionManagement { get ; private set ; }
196
193
public IRefreshData RefreshData { get ; private set ; }
197
194
public IGroups Groups { get ; private set ; }
195
+ public IWebhooks Webhooks { get ; private set ; }
198
196
public IIntegrations Integrations { get ; private set ; }
197
+ public ISettings Settings { get ; private set ; }
198
+ public IPushData PushData { get ; private set ; }
199
199
public ISupplementalData SupplementalData { get ; private set ; }
200
- public IWebhooks Webhooks { get ; private set ; }
200
+ public ICustomDataType CustomDataType { get ; private set ; }
201
201
202
- public CodatPlatform ( Codat . Platform . Models . Shared . Security ? security = null , Func < Codat . Platform . Models . Shared . Security > ? securitySource = null , int ? serverIndex = null , string ? serverUrl = null , Dictionary < string , string > ? urlParams = null , ISpeakeasyHttpClient ? client = null , RetryConfig ? retryConfig = null )
202
+ public CodatPlatform ( string ? authHeader = null , Func < string > ? authHeaderSource = null , int ? serverIndex = null , string ? serverUrl = null , Dictionary < string , string > ? urlParams = null , ISpeakeasyHttpClient ? client = null , RetryConfig ? retryConfig = null )
203
203
{
204
204
if ( serverIndex != null )
205
205
{
@@ -221,17 +221,17 @@ public CodatPlatform(Codat.Platform.Models.Shared.Security? security = null, Fun
221
221
222
222
_client = client ?? new SpeakeasyHttpClient ( ) ;
223
223
224
- if ( securitySource != null )
224
+ if ( authHeaderSource != null )
225
225
{
226
- _securitySource = securitySource ;
226
+ _securitySource = ( ) => new Codat . Platform . Models . Components . Security ( ) { AuthHeader = authHeaderSource ( ) } ;
227
227
}
228
- else if ( security != null )
228
+ else if ( authHeader != null )
229
229
{
230
- _securitySource = ( ) => security ;
230
+ _securitySource = ( ) => new Codat . Platform . Models . Components . Security ( ) { AuthHeader = authHeader } ;
231
231
}
232
232
else
233
233
{
234
- throw new Exception ( "security and securitySource cannot both be null" ) ;
234
+ throw new Exception ( "authHeader and authHeaderSource cannot both be null" ) ;
235
235
}
236
236
237
237
SDKConfiguration = new SDKConfig ( )
@@ -244,37 +244,37 @@ public CodatPlatform(Codat.Platform.Models.Shared.Security? security = null, Fun
244
244
_client = SDKConfiguration . InitHooks ( _client ) ;
245
245
246
246
247
- Settings = new Settings ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
247
+ Companies = new Companies ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
248
248
249
249
250
- Companies = new Companies ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
250
+ Connections = new Connections ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
251
251
252
252
253
253
ConnectionManagement = new ConnectionManagement ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
254
254
255
255
256
- Connections = new Connections ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
256
+ RefreshData = new RefreshData ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
257
257
258
258
259
- CustomDataType = new CustomDataType ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
259
+ Groups = new Groups ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
260
260
261
261
262
- PushData = new PushData ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
262
+ Webhooks = new Webhooks ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
263
263
264
264
265
- RefreshData = new RefreshData ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
265
+ Integrations = new Integrations ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
266
266
267
267
268
- Groups = new Groups ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
268
+ Settings = new Settings ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
269
269
270
270
271
- Integrations = new Integrations ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
271
+ PushData = new PushData ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
272
272
273
273
274
274
SupplementalData = new SupplementalData ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
275
275
276
276
277
- Webhooks = new Webhooks ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
277
+ CustomDataType = new CustomDataType ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
278
278
}
279
279
}
280
280
}
0 commit comments