@@ -136,14 +136,14 @@ public class CodatSyncExpenses: ICodatSyncExpenses
136136 public SDKConfig SDKConfiguration { get ; private set ; }
137137
138138 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 " ;
141141 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" ;
143143 private string _serverUrl = "" ;
144144 private int _serverIndex = 0 ;
145145 private ISpeakeasyHttpClient _defaultClient ;
146- private ISpeakeasyHttpClient _securityClient ;
146+ private Func < Security > ? _securitySource ;
147147 public ICompanies Companies { get ; private set ; }
148148 public IConnections Connections { get ; private set ; }
149149 public IAccounts Accounts { get ; private set ; }
@@ -156,7 +156,7 @@ public class CodatSyncExpenses: ICodatSyncExpenses
156156 public ISync Sync { get ; private set ; }
157157 public ITransactionStatus TransactionStatus { get ; private set ; }
158158
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 )
160160 {
161161 if ( serverIndex != null )
162162 {
@@ -173,11 +173,14 @@ public CodatSyncExpenses(Security? security = null, int? serverIndex = null, str
173173 }
174174
175175 _defaultClient = new SpeakeasyHttpClient ( client ) ;
176- _securityClient = _defaultClient ;
177176
178- if ( security != null )
177+ if ( securitySource != null )
179178 {
180- _securityClient = SecuritySerializer . Apply ( _defaultClient , security ) ;
179+ _securitySource = securitySource ;
180+ }
181+ else if ( security != null )
182+ {
183+ _securitySource = ( ) => security ;
181184 }
182185
183186 SDKConfiguration = new SDKConfig ( )
@@ -186,17 +189,17 @@ public CodatSyncExpenses(Security? security = null, int? serverIndex = null, str
186189 serverUrl = _serverUrl
187190 } ;
188191
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 ) ;
200203 }
201204 }
202205}
0 commit comments