@@ -136,14 +136,14 @@ public class CodatSyncExpenses: ICodatSyncExpenses
136
136
public SDKConfig SDKConfiguration { get ; private set ; }
137
137
138
138
private const string _language = "csharp" ;
139
- private const string _sdkVersion = "5.0 .0" ;
140
- private const string _sdkGenVersion = "2.248.6 " ;
139
+ private const string _sdkVersion = "5.1 .0" ;
140
+ private const string _sdkGenVersion = "2.257.2 " ;
141
141
private const string _openapiDocVersion = "prealpha" ;
142
- private const string _userAgent = "speakeasy-sdk/csharp 5.0 .0 2.248.6 prealpha Codat.Sync.Expenses" ;
142
+ private const string _userAgent = "speakeasy-sdk/csharp 5.1 .0 2.257.2 prealpha Codat.Sync.Expenses" ;
143
143
private string _serverUrl = "" ;
144
144
private int _serverIndex = 0 ;
145
145
private ISpeakeasyHttpClient _defaultClient ;
146
- private ISpeakeasyHttpClient _securityClient ;
146
+ private Func < Security > ? _securitySource ;
147
147
public ICompanies Companies { get ; private set ; }
148
148
public IConnections Connections { get ; private set ; }
149
149
public IAccounts Accounts { get ; private set ; }
@@ -156,7 +156,7 @@ public class CodatSyncExpenses: ICodatSyncExpenses
156
156
public ISync Sync { get ; private set ; }
157
157
public ITransactionStatus TransactionStatus { get ; private set ; }
158
158
159
- public CodatSyncExpenses ( Security ? security = null , int ? serverIndex = null , string ? serverUrl = null , Dictionary < string , string > ? urlParams = null , ISpeakeasyHttpClient ? client = null )
159
+ public CodatSyncExpenses ( Security ? security = null , Func < Security > ? securitySource = null , int ? serverIndex = null , string ? serverUrl = null , Dictionary < string , string > ? urlParams = null , ISpeakeasyHttpClient ? client = null )
160
160
{
161
161
if ( serverIndex != null )
162
162
{
@@ -173,11 +173,14 @@ public CodatSyncExpenses(Security? security = null, int? serverIndex = null, str
173
173
}
174
174
175
175
_defaultClient = new SpeakeasyHttpClient ( client ) ;
176
- _securityClient = _defaultClient ;
177
176
178
- if ( security != null )
177
+ if ( securitySource != null )
179
178
{
180
- _securityClient = SecuritySerializer . Apply ( _defaultClient , security ) ;
179
+ _securitySource = securitySource ;
180
+ }
181
+ else if ( security != null )
182
+ {
183
+ _securitySource = ( ) => security ;
181
184
}
182
185
183
186
SDKConfiguration = new SDKConfig ( )
@@ -186,17 +189,17 @@ public CodatSyncExpenses(Security? security = null, int? serverIndex = null, str
186
189
serverUrl = _serverUrl
187
190
} ;
188
191
189
- Companies = new Companies ( _defaultClient , _securityClient , _serverUrl , SDKConfiguration ) ;
190
- Connections = new Connections ( _defaultClient , _securityClient , _serverUrl , SDKConfiguration ) ;
191
- Accounts = new Accounts ( _defaultClient , _securityClient , _serverUrl , SDKConfiguration ) ;
192
- Customers = new Customers ( _defaultClient , _securityClient , _serverUrl , SDKConfiguration ) ;
193
- Suppliers = new Suppliers ( _defaultClient , _securityClient , _serverUrl , SDKConfiguration ) ;
194
- ManageData = new ManageData ( _defaultClient , _securityClient , _serverUrl , SDKConfiguration ) ;
195
- PushOperations = new PushOperations ( _defaultClient , _securityClient , _serverUrl , SDKConfiguration ) ;
196
- Configuration = new Configuration ( _defaultClient , _securityClient , _serverUrl , SDKConfiguration ) ;
197
- Expenses = new Expenses ( _defaultClient , _securityClient , _serverUrl , SDKConfiguration ) ;
198
- Sync = new Sync ( _defaultClient , _securityClient , _serverUrl , SDKConfiguration ) ;
199
- TransactionStatus = new TransactionStatus ( _defaultClient , _securityClient , _serverUrl , SDKConfiguration ) ;
192
+ Companies = new Companies ( _defaultClient , _securitySource , _serverUrl , SDKConfiguration ) ;
193
+ Connections = new Connections ( _defaultClient , _securitySource , _serverUrl , SDKConfiguration ) ;
194
+ Accounts = new Accounts ( _defaultClient , _securitySource , _serverUrl , SDKConfiguration ) ;
195
+ Customers = new Customers ( _defaultClient , _securitySource , _serverUrl , SDKConfiguration ) ;
196
+ Suppliers = new Suppliers ( _defaultClient , _securitySource , _serverUrl , SDKConfiguration ) ;
197
+ ManageData = new ManageData ( _defaultClient , _securitySource , _serverUrl , SDKConfiguration ) ;
198
+ PushOperations = new PushOperations ( _defaultClient , _securitySource , _serverUrl , SDKConfiguration ) ;
199
+ Configuration = new Configuration ( _defaultClient , _securitySource , _serverUrl , SDKConfiguration ) ;
200
+ Expenses = new Expenses ( _defaultClient , _securitySource , _serverUrl , SDKConfiguration ) ;
201
+ Sync = new Sync ( _defaultClient , _securitySource , _serverUrl , SDKConfiguration ) ;
202
+ TransactionStatus = new TransactionStatus ( _defaultClient , _securitySource , _serverUrl , SDKConfiguration ) ;
200
203
}
201
204
}
202
205
}
0 commit comments