Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc prealpha, Speakeay CLI 1.82.5 (#48)
Browse files Browse the repository at this point in the history
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
  • Loading branch information
github-actions[bot] and speakeasybot committed Sep 13, 2023
1 parent ad2ee86 commit 799e091
Show file tree
Hide file tree
Showing 204 changed files with 937 additions and 972 deletions.
8 changes: 4 additions & 4 deletions sync-for-expenses/CodatSyncExpenses/Accounts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public class AccountsSDK: IAccountsSDK
{
public SDKConfig Config { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "0.4.0";
private const string _sdkGenVersion = "2.91.4";
private const string _sdkVersion = "0.5.0";
private const string _sdkGenVersion = "2.108.3";
private const string _openapiDocVersion = "prealpha";
private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient;
Expand Down Expand Up @@ -93,7 +93,7 @@ public AccountsSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient secu
};
if((response.StatusCode == 200))
{
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
{
response.CreateAccountResponseValue = JsonConvert.DeserializeObject<Models.Shared.CreateAccountResponse>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
}
Expand All @@ -102,7 +102,7 @@ public AccountsSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient secu
}
if((response.StatusCode == 400) || (response.StatusCode == 401) || (response.StatusCode == 404) || (response.StatusCode == 429))
{
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
{
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
}
Expand Down
4 changes: 2 additions & 2 deletions sync-for-expenses/CodatSyncExpenses/CodatSyncExpenses.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<PropertyGroup>
<IsPackable>true</IsPackable>
<PackageId>Codat.Sync.Expenses</PackageId>
<Version>0.4.0</Version>
<Version>0.5.0</Version>
<Authors>Codat</Authors>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions sync-for-expenses/CodatSyncExpenses/CodatSyncExpensesSDK.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ public class CodatSyncExpensesSDK: ICodatSyncExpensesSDK
};

private const string _language = "csharp";
private const string _sdkVersion = "0.4.0";
private const string _sdkGenVersion = "2.91.4";
private const string _sdkVersion = "0.5.0";
private const string _sdkGenVersion = "2.108.3";
private const string _openapiDocVersion = "prealpha";
private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient;
Expand Down
22 changes: 11 additions & 11 deletions sync-for-expenses/CodatSyncExpenses/Companies.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public class CompaniesSDK: ICompaniesSDK
{
public SDKConfig Config { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "0.4.0";
private const string _sdkGenVersion = "2.91.4";
private const string _sdkVersion = "0.5.0";
private const string _sdkGenVersion = "2.108.3";
private const string _openapiDocVersion = "prealpha";
private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient;
Expand Down Expand Up @@ -92,7 +92,7 @@ public async Task<CreateCompanyResponse> CreateAsync(CompanyRequestBody? request
};
if((response.StatusCode == 200))
{
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
{
response.Company = JsonConvert.DeserializeObject<Company>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
}
Expand All @@ -101,7 +101,7 @@ public async Task<CreateCompanyResponse> CreateAsync(CompanyRequestBody? request
}
if((response.StatusCode == 400) || (response.StatusCode == 401) || (response.StatusCode == 429))
{
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
{
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
}
Expand Down Expand Up @@ -153,7 +153,7 @@ public async Task<DeleteCompanyResponse> DeleteAsync(DeleteCompanyRequest? reque
}
if((response.StatusCode == 401) || (response.StatusCode == 404) || (response.StatusCode == 429))
{
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
{
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
}
Expand Down Expand Up @@ -199,7 +199,7 @@ public async Task<GetCompanyResponse> GetAsync(GetCompanyRequest? request = null
};
if((response.StatusCode == 200))
{
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
{
response.Company = JsonConvert.DeserializeObject<Company>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
}
Expand All @@ -208,7 +208,7 @@ public async Task<GetCompanyResponse> GetAsync(GetCompanyRequest? request = null
}
if((response.StatusCode == 401) || (response.StatusCode == 404) || (response.StatusCode == 429))
{
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
{
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
}
Expand Down Expand Up @@ -254,7 +254,7 @@ public async Task<ListCompaniesResponse> ListAsync(ListCompaniesRequest? request
};
if((response.StatusCode == 200))
{
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
{
response.Companies = JsonConvert.DeserializeObject<Companies>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
}
Expand All @@ -263,7 +263,7 @@ public async Task<ListCompaniesResponse> ListAsync(ListCompaniesRequest? request
}
if((response.StatusCode == 400) || (response.StatusCode == 401) || (response.StatusCode == 429))
{
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
{
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
}
Expand Down Expand Up @@ -314,7 +314,7 @@ public async Task<UpdateCompanyResponse> UpdateAsync(UpdateCompanyRequest? reque
};
if((response.StatusCode == 200))
{
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
{
response.Company = JsonConvert.DeserializeObject<Company>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
}
Expand All @@ -323,7 +323,7 @@ public async Task<UpdateCompanyResponse> UpdateAsync(UpdateCompanyRequest? reque
}
if((response.StatusCode == 401) || (response.StatusCode == 404) || (response.StatusCode == 429))
{
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
{
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
}
Expand Down
16 changes: 8 additions & 8 deletions sync-for-expenses/CodatSyncExpenses/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public class ConfigurationSDK: IConfigurationSDK
{
public SDKConfig Config { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "0.4.0";
private const string _sdkGenVersion = "2.91.4";
private const string _sdkVersion = "0.5.0";
private const string _sdkGenVersion = "2.108.3";
private const string _openapiDocVersion = "prealpha";
private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient;
Expand Down Expand Up @@ -81,7 +81,7 @@ public async Task<GetCompanyConfigurationResponse> GetAsync(GetCompanyConfigurat
};
if((response.StatusCode == 200))
{
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
{
response.CompanyConfiguration = JsonConvert.DeserializeObject<CompanyConfiguration>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
}
Expand All @@ -90,7 +90,7 @@ public async Task<GetCompanyConfigurationResponse> GetAsync(GetCompanyConfigurat
}
if((response.StatusCode == 401) || (response.StatusCode == 404) || (response.StatusCode == 429))
{
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
{
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
}
Expand Down Expand Up @@ -136,7 +136,7 @@ public async Task<GetMappingOptionsResponse> GetMappingOptionsAsync(GetMappingOp
};
if((response.StatusCode == 200))
{
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
{
response.MappingOptions = JsonConvert.DeserializeObject<MappingOptions>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
}
Expand All @@ -145,7 +145,7 @@ public async Task<GetMappingOptionsResponse> GetMappingOptionsAsync(GetMappingOp
}
if((response.StatusCode == 401) || (response.StatusCode == 404) || (response.StatusCode == 429))
{
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
{
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
}
Expand Down Expand Up @@ -196,7 +196,7 @@ public async Task<SetCompanyConfigurationResponse> SetAsync(SetCompanyConfigurat
};
if((response.StatusCode == 200))
{
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
{
response.CompanyConfiguration = JsonConvert.DeserializeObject<CompanyConfiguration>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
}
Expand All @@ -205,7 +205,7 @@ public async Task<SetCompanyConfigurationResponse> SetAsync(SetCompanyConfigurat
}
if((response.StatusCode == 400) || (response.StatusCode == 401) || (response.StatusCode == 404) || (response.StatusCode == 429))
{
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
{
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
}
Expand Down
Loading

0 comments on commit 799e091

Please sign in to comment.