Skip to content

Commit a7cc876

Browse files
ci: regenerated with OpenAPI Doc prealpha, Speakeay CLI 1.91.0 (#129)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
1 parent 3b5d5f8 commit a7cc876

File tree

277 files changed

+1855
-598
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

277 files changed

+1855
-598
lines changed

sync-for-expenses/CodatSyncExpenses/Accounts.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,15 @@ public interface IAccountsSDK
4444
Task<Models.Operations.CreateAccountResponse> CreateAsync(CreateAccountRequest? request = null);
4545
}
4646

47+
/// <summary>
48+
/// Accounts
49+
/// </summary>
4750
public class AccountsSDK: IAccountsSDK
4851
{
4952
public SDKConfig Config { get; private set; }
5053
private const string _language = "csharp";
51-
private const string _sdkVersion = "1.1.0";
52-
private const string _sdkGenVersion = "2.116.0";
54+
private const string _sdkVersion = "2.1.0";
55+
private const string _sdkGenVersion = "2.129.1";
5356
private const string _openapiDocVersion = "prealpha";
5457
private string _serverUrl = "";
5558
private ISpeakeasyHttpClient _defaultClient;
@@ -99,7 +102,7 @@ public AccountsSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient secu
99102
{
100103
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
101104
{
102-
response.CreateAccountResponseValue = JsonConvert.DeserializeObject<Models.Shared.CreateAccountResponse>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
105+
response.CreateAccountResponseValue = JsonConvert.DeserializeObject<Models.Shared.CreateAccountResponse>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
103106
}
104107

105108
return response;
@@ -108,7 +111,7 @@ public AccountsSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient secu
108111
{
109112
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
110113
{
111-
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
114+
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
112115
}
113116

114117
return response;

sync-for-expenses/CodatSyncExpenses/CodatSyncExpenses.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<IsPackable>true</IsPackable>
44
<PackageId>Codat.Sync.Expenses</PackageId>
5-
<Version>1.1.0</Version>
5+
<Version>2.1.0</Version>
66
<Authors>Codat</Authors>
77
<TargetFramework>net6.0</TargetFramework>
88
<Nullable>enable</Nullable>

sync-for-expenses/CodatSyncExpenses/CodatSyncExpensesSDK.cs

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,22 @@ public class SDKConfig
9696
{
9797
}
9898

99+
/// <summary>
100+
/// Sync for Expenses: The API for Sync for Expenses.&lt;br/&gt;
101+
///
102+
/// <remarks>
103+
/// <br/>
104+
/// Sync for Expenses is an API and a set of supporting tools. It has been built to<br/>
105+
/// enable corporate card and expense management platforms to provide high-quality<br/>
106+
/// integrations with multiple accounting platforms through a standardized API.<br/>
107+
/// <br/>
108+
/// <a href="https://docs.codat.io/sync-for-expenses/overview">Read more...</a><br/>
109+
/// <br/>
110+
/// <a href="https://github.com/codatio/oas">See our OpenAPI spec</a><br/>
111+
/// <br/>
112+
/// Not seeing the endpoints you&apos;re expecting? We&apos;ve <a href="https://docs.codat.io/updates/230901-new-products">reorganized our products</a>, and you may be using a <a href="https://docs.codat.io/sync-for-expenses-v1-api#/">different version of Sync for Commerce</a>.
113+
/// </remarks>
114+
/// </summary>
99115
public class CodatSyncExpensesSDK: ICodatSyncExpensesSDK
100116
{
101117
public SDKConfig Config { get; private set; }
@@ -105,8 +121,8 @@ public class CodatSyncExpensesSDK: ICodatSyncExpensesSDK
105121
};
106122

107123
private const string _language = "csharp";
108-
private const string _sdkVersion = "1.1.0";
109-
private const string _sdkGenVersion = "2.116.0";
124+
private const string _sdkVersion = "2.1.0";
125+
private const string _sdkGenVersion = "2.129.1";
110126
private const string _openapiDocVersion = "prealpha";
111127
private string _serverUrl = "";
112128
private ISpeakeasyHttpClient _defaultClient;

sync-for-expenses/CodatSyncExpenses/Companies.cs

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,15 @@ public interface ICompaniesSDK
7676
Task<UpdateCompanyResponse> UpdateAsync(UpdateCompanyRequest? request = null);
7777
}
7878

79+
/// <summary>
80+
/// Create and manage your Codat companies.
81+
/// </summary>
7982
public class CompaniesSDK: ICompaniesSDK
8083
{
8184
public SDKConfig Config { get; private set; }
8285
private const string _language = "csharp";
83-
private const string _sdkVersion = "1.1.0";
84-
private const string _sdkGenVersion = "2.116.0";
86+
private const string _sdkVersion = "2.1.0";
87+
private const string _sdkGenVersion = "2.129.1";
8588
private const string _openapiDocVersion = "prealpha";
8689
private string _serverUrl = "";
8790
private ISpeakeasyHttpClient _defaultClient;
@@ -131,7 +134,7 @@ public async Task<CreateCompanyResponse> CreateAsync(CompanyRequestBody? request
131134
{
132135
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
133136
{
134-
response.Company = JsonConvert.DeserializeObject<Company>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
137+
response.Company = JsonConvert.DeserializeObject<Company>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
135138
}
136139

137140
return response;
@@ -140,7 +143,7 @@ public async Task<CreateCompanyResponse> CreateAsync(CompanyRequestBody? request
140143
{
141144
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
142145
{
143-
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
146+
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
144147
}
145148

146149
return response;
@@ -184,7 +187,7 @@ public async Task<DeleteCompanyResponse> DeleteAsync(DeleteCompanyRequest? reque
184187
{
185188
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
186189
{
187-
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
190+
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
188191
}
189192

190193
return response;
@@ -223,7 +226,7 @@ public async Task<GetCompanyResponse> GetAsync(GetCompanyRequest? request = null
223226
{
224227
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
225228
{
226-
response.Company = JsonConvert.DeserializeObject<Company>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
229+
response.Company = JsonConvert.DeserializeObject<Company>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
227230
}
228231

229232
return response;
@@ -232,7 +235,7 @@ public async Task<GetCompanyResponse> GetAsync(GetCompanyRequest? request = null
232235
{
233236
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
234237
{
235-
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
238+
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
236239
}
237240

238241
return response;
@@ -271,7 +274,7 @@ public async Task<ListCompaniesResponse> ListAsync(ListCompaniesRequest? request
271274
{
272275
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
273276
{
274-
response.Companies = JsonConvert.DeserializeObject<Companies>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
277+
response.Companies = JsonConvert.DeserializeObject<Companies>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
275278
}
276279

277280
return response;
@@ -280,7 +283,7 @@ public async Task<ListCompaniesResponse> ListAsync(ListCompaniesRequest? request
280283
{
281284
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
282285
{
283-
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
286+
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
284287
}
285288

286289
return response;
@@ -324,7 +327,7 @@ public async Task<UpdateCompanyResponse> UpdateAsync(UpdateCompanyRequest? reque
324327
{
325328
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
326329
{
327-
response.Company = JsonConvert.DeserializeObject<Company>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
330+
response.Company = JsonConvert.DeserializeObject<Company>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
328331
}
329332

330333
return response;
@@ -333,7 +336,7 @@ public async Task<UpdateCompanyResponse> UpdateAsync(UpdateCompanyRequest? reque
333336
{
334337
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
335338
{
336-
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
339+
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
337340
}
338341

339342
return response;

sync-for-expenses/CodatSyncExpenses/Configuration.cs

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,15 @@ public interface IConfigurationSDK
5353
Task<SetCompanyConfigurationResponse> SetAsync(SetCompanyConfigurationRequest? request = null);
5454
}
5555

56+
/// <summary>
57+
/// Manage mapping options and sync configuration.
58+
/// </summary>
5659
public class ConfigurationSDK: IConfigurationSDK
5760
{
5861
public SDKConfig Config { get; private set; }
5962
private const string _language = "csharp";
60-
private const string _sdkVersion = "1.1.0";
61-
private const string _sdkGenVersion = "2.116.0";
63+
private const string _sdkVersion = "2.1.0";
64+
private const string _sdkGenVersion = "2.129.1";
6265
private const string _openapiDocVersion = "prealpha";
6366
private string _serverUrl = "";
6467
private ISpeakeasyHttpClient _defaultClient;
@@ -103,7 +106,7 @@ public async Task<GetCompanyConfigurationResponse> GetAsync(GetCompanyConfigurat
103106
{
104107
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
105108
{
106-
response.CompanyConfiguration = JsonConvert.DeserializeObject<CompanyConfiguration>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
109+
response.CompanyConfiguration = JsonConvert.DeserializeObject<CompanyConfiguration>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
107110
}
108111

109112
return response;
@@ -112,7 +115,7 @@ public async Task<GetCompanyConfigurationResponse> GetAsync(GetCompanyConfigurat
112115
{
113116
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
114117
{
115-
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
118+
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
116119
}
117120

118121
return response;
@@ -151,7 +154,7 @@ public async Task<GetMappingOptionsResponse> GetMappingOptionsAsync(GetMappingOp
151154
{
152155
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
153156
{
154-
response.MappingOptions = JsonConvert.DeserializeObject<MappingOptions>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
157+
response.MappingOptions = JsonConvert.DeserializeObject<MappingOptions>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
155158
}
156159

157160
return response;
@@ -160,7 +163,7 @@ public async Task<GetMappingOptionsResponse> GetMappingOptionsAsync(GetMappingOp
160163
{
161164
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
162165
{
163-
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
166+
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
164167
}
165168

166169
return response;
@@ -204,7 +207,7 @@ public async Task<SetCompanyConfigurationResponse> SetAsync(SetCompanyConfigurat
204207
{
205208
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
206209
{
207-
response.CompanyConfiguration = JsonConvert.DeserializeObject<CompanyConfiguration>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
210+
response.CompanyConfiguration = JsonConvert.DeserializeObject<CompanyConfiguration>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
208211
}
209212

210213
return response;
@@ -213,7 +216,7 @@ public async Task<SetCompanyConfigurationResponse> SetAsync(SetCompanyConfigurat
213216
{
214217
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
215218
{
216-
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
219+
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
217220
}
218221

219222
return response;

0 commit comments

Comments
 (0)