1010namespace Codat . Platform
1111{
1212 using Codat . Platform . Hooks ;
13+ using Codat . Platform . Models . Components ;
1314 using Codat . Platform . Models . Errors ;
14- using Codat . Platform . Models . Shared ;
1515 using Codat . Platform . Utils . Retries ;
1616 using Codat . Platform . Utils ;
1717 using Newtonsoft . Json ;
@@ -54,59 +54,59 @@ public interface ICodatPlatform
5454 {
5555
5656 /// <summary>
57- /// Manage company profile configuration, sync settings, and API keys .
57+ /// Create and manage your SMB users' companies .
5858 /// </summary>
59- public ISettings Settings { get ; }
59+ public ICompanies Companies { get ; }
6060
6161 /// <summary>
62- /// Create and manage your SMB users' companies .
62+ /// Create new and manage existing data connections for a company .
6363 /// </summary>
64- public ICompanies Companies { get ; }
64+ public IConnections Connections { get ; }
6565
6666 /// <summary>
6767 /// Configure UI and retrieve access tokens for authentication used by **Connections SDK**.
6868 /// </summary>
6969 public IConnectionManagement ConnectionManagement { get ; }
7070
7171 /// <summary>
72- /// Create new and manage existing data connections for a company .
72+ /// Initiate data refreshes, view pull status and history .
7373 /// </summary>
74- public IConnections Connections { get ; }
74+ public IRefreshData RefreshData { get ; }
7575
7676 /// <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 .
7878 /// </summary>
79- public ICustomDataType CustomDataType { get ; }
79+ public IGroups Groups { get ; }
8080
8181 /// <summary>
82- /// Initiate and monitor Create, Update, and Delete operations .
82+ /// Create and manage webhooks that listen to Codat's events .
8383 /// </summary>
84- public IPushData PushData { get ; }
84+ public IWebhooks Webhooks { get ; }
8585
8686 /// <summary>
87- /// Initiate data refreshes, view pull status and history .
87+ /// Get a list of integrations supported by Codat and their logos .
8888 /// </summary>
89- public IRefreshData RefreshData { get ; }
89+ public IIntegrations Integrations { get ; }
9090
9191 /// <summary>
92- /// Define and manage sets of companies based on a chosen characteristic .
92+ /// Manage company profile configuration, sync settings, and API keys .
9393 /// </summary>
94- public IGroups Groups { get ; }
94+ public ISettings Settings { get ; }
9595
9696 /// <summary>
97- /// Get a list of integrations supported by Codat and their logos .
97+ /// Initiate and monitor Create, Update, and Delete operations .
9898 /// </summary>
99- public IIntegrations Integrations { get ; }
99+ public IPushData PushData { get ; }
100100
101101 /// <summary>
102102 /// Configure and pull additional data you can include in Codat's standard data types.
103103 /// </summary>
104104 public ISupplementalData SupplementalData { get ; }
105105
106106 /// <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 .
108108 /// </summary>
109- public IWebhooks Webhooks { get ; }
109+ public ICustomDataType CustomDataType { get ; }
110110 }
111111
112112 public class SDKConfig
@@ -179,27 +179,27 @@ public class CodatPlatform: ICodatPlatform
179179 public SDKConfig SDKConfiguration { get ; private set ; }
180180
181181 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 " ;
184184 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" ;
186186 private string _serverUrl = "" ;
187187 private int _serverIndex = 0 ;
188188 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 ;
191190 public ICompanies Companies { get ; private set ; }
192- public IConnectionManagement ConnectionManagement { get ; private set ; }
193191 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 ; }
196193 public IRefreshData RefreshData { get ; private set ; }
197194 public IGroups Groups { get ; private set ; }
195+ public IWebhooks Webhooks { get ; private set ; }
198196 public IIntegrations Integrations { get ; private set ; }
197+ public ISettings Settings { get ; private set ; }
198+ public IPushData PushData { get ; private set ; }
199199 public ISupplementalData SupplementalData { get ; private set ; }
200- public IWebhooks Webhooks { get ; private set ; }
200+ public ICustomDataType CustomDataType { get ; private set ; }
201201
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 )
203203 {
204204 if ( serverIndex != null )
205205 {
@@ -221,17 +221,17 @@ public CodatPlatform(Codat.Platform.Models.Shared.Security? security = null, Fun
221221
222222 _client = client ?? new SpeakeasyHttpClient ( ) ;
223223
224- if ( securitySource != null )
224+ if ( authHeaderSource != null )
225225 {
226- _securitySource = securitySource ;
226+ _securitySource = ( ) => new Codat . Platform . Models . Components . Security ( ) { AuthHeader = authHeaderSource ( ) } ;
227227 }
228- else if ( security != null )
228+ else if ( authHeader != null )
229229 {
230- _securitySource = ( ) => security ;
230+ _securitySource = ( ) => new Codat . Platform . Models . Components . Security ( ) { AuthHeader = authHeader } ;
231231 }
232232 else
233233 {
234- throw new Exception ( "security and securitySource cannot both be null" ) ;
234+ throw new Exception ( "authHeader and authHeaderSource cannot both be null" ) ;
235235 }
236236
237237 SDKConfiguration = new SDKConfig ( )
@@ -244,37 +244,37 @@ public CodatPlatform(Codat.Platform.Models.Shared.Security? security = null, Fun
244244 _client = SDKConfiguration . InitHooks ( _client ) ;
245245
246246
247- Settings = new Settings ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
247+ Companies = new Companies ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
248248
249249
250- Companies = new Companies ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
250+ Connections = new Connections ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
251251
252252
253253 ConnectionManagement = new ConnectionManagement ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
254254
255255
256- Connections = new Connections ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
256+ RefreshData = new RefreshData ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
257257
258258
259- CustomDataType = new CustomDataType ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
259+ Groups = new Groups ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
260260
261261
262- PushData = new PushData ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
262+ Webhooks = new Webhooks ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
263263
264264
265- RefreshData = new RefreshData ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
265+ Integrations = new Integrations ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
266266
267267
268- Groups = new Groups ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
268+ Settings = new Settings ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
269269
270270
271- Integrations = new Integrations ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
271+ PushData = new PushData ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
272272
273273
274274 SupplementalData = new SupplementalData ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
275275
276276
277- Webhooks = new Webhooks ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
277+ CustomDataType = new CustomDataType ( _client , _securitySource , _serverUrl , SDKConfiguration ) ;
278278 }
279279 }
280280}
0 commit comments