Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 3.0.0, Speakeay CLI 1.91.0 (#123)
Browse files Browse the repository at this point in the history
Co-authored-by: speakeasybot <[email protected]>
  • Loading branch information
github-actions[bot] and speakeasybot authored Sep 25, 2023
1 parent 4e1b4ac commit 089b662
Show file tree
Hide file tree
Showing 143 changed files with 847 additions and 297 deletions.
15 changes: 9 additions & 6 deletions bank-feeds/CodatBankFeeds/AccountMapping.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,15 @@ public interface IAccountMappingSDK
Task<GetBankAccountMappingResponse> GetAsync(GetBankAccountMappingRequest? request = null);
}

/// <summary>
/// Bank feed bank account mapping.
/// </summary>
public class AccountMappingSDK: IAccountMappingSDK
{
public SDKConfig Config { get; private set; }

Check warning on line 62 in bank-feeds/CodatBankFeeds/AccountMapping.cs

View workflow job for this annotation

GitHub Actions / publish / Publish C# SDK

Missing XML comment for publicly visible type or member 'AccountMappingSDK.Config'
private const string _language = "csharp";
private const string _sdkVersion = "1.1.0";
private const string _sdkGenVersion = "2.116.0";
private const string _sdkVersion = "2.1.0";
private const string _sdkGenVersion = "2.129.1";
private const string _openapiDocVersion = "3.0.0";
private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient;
Expand Down Expand Up @@ -109,7 +112,7 @@ public async Task<CreateBankAccountMappingResponse> CreateAsync(CreateBankAccoun
{
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
{
response.BankFeedAccountMappingResponse = JsonConvert.DeserializeObject<BankFeedAccountMappingResponse>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
response.BankFeedAccountMappingResponse = JsonConvert.DeserializeObject<BankFeedAccountMappingResponse>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}

return response;
Expand All @@ -118,7 +121,7 @@ public async Task<CreateBankAccountMappingResponse> CreateAsync(CreateBankAccoun
{
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() }});
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}

return response;
Expand Down Expand Up @@ -157,7 +160,7 @@ public async Task<GetBankAccountMappingResponse> GetAsync(GetBankAccountMappingR
{
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
{
response.BankFeedMapping = JsonConvert.DeserializeObject<BankFeedMapping>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
response.BankFeedMapping = JsonConvert.DeserializeObject<BankFeedMapping>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}

return response;
Expand All @@ -166,7 +169,7 @@ public async Task<GetBankAccountMappingResponse> GetAsync(GetBankAccountMappingR
{
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() }});
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}

return response;
Expand Down
2 changes: 1 addition & 1 deletion bank-feeds/CodatBankFeeds/CodatBankFeeds.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<IsPackable>true</IsPackable>
<PackageId>Codat.BankFeeds</PackageId>
<Version>1.1.0</Version>
<Version>2.1.0</Version>
<Authors>Codat</Authors>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
Expand Down
26 changes: 24 additions & 2 deletions bank-feeds/CodatBankFeeds/CodatBankFeedsSDK.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,28 @@ public class SDKConfig
{
}

/// <summary>
/// Bank Feeds API: Bank Feeds API enables your SMB users to set up bank feeds from accounts in your application to supported accounting platforms.&lt;br/&gt;
///
/// <remarks>
/// <br/>
/// A bank feed is a connection between a source bank account in your application and a target bank account in a supported accounting package.<br/>
/// <br/>
/// <a href="https://docs.codat.io/bank-feeds-api/overview">Explore product</a> | <a href="https://github.com/codatio/oas">See OpenAPI spec</a><br/>
/// <br/>
/// ---<br/>
/// <br/>
/// ## Endpoints<br/>
/// <br/>
/// | Endpoints | Description |<br/>
/// | :- | :- |<br/>
/// | Companies | Create and manage your SMB users&apos; companies. |<br/>
/// | Connections | Create new and manage existing data connections for a company. |<br/>
/// | Source accounts | Provide and manage lists of source bank accounts. |<br/>
/// | Transactions | Create new bank account transactions for a company&apos;s connections, and see previous operations. |<br/>
/// | Account mapping | Extra functionality for building an account management UI |
/// </remarks>
/// </summary>
public class CodatBankFeedsSDK: ICodatBankFeedsSDK
{
public SDKConfig Config { get; private set; }

Check warning on line 99 in bank-feeds/CodatBankFeeds/CodatBankFeedsSDK.cs

View workflow job for this annotation

GitHub Actions / publish / Publish C# SDK

Missing XML comment for publicly visible type or member 'CodatBankFeedsSDK.Config'
Expand All @@ -81,8 +103,8 @@ public class CodatBankFeedsSDK: ICodatBankFeedsSDK
};

private const string _language = "csharp";
private const string _sdkVersion = "1.1.0";
private const string _sdkGenVersion = "2.116.0";
private const string _sdkVersion = "2.1.0";
private const string _sdkGenVersion = "2.129.1";
private const string _openapiDocVersion = "3.0.0";
private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient;
Expand Down
25 changes: 14 additions & 11 deletions bank-feeds/CodatBankFeeds/Companies.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,15 @@ public interface ICompaniesSDK
Task<UpdateCompanyResponse> UpdateAsync(UpdateCompanyRequest? request = null);
}

/// <summary>
/// Create and manage your Codat companies.
/// </summary>
public class CompaniesSDK: ICompaniesSDK
{
public SDKConfig Config { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "1.1.0";
private const string _sdkGenVersion = "2.116.0";
private const string _sdkVersion = "2.1.0";
private const string _sdkGenVersion = "2.129.1";
private const string _openapiDocVersion = "3.0.0";
private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient;
Expand Down Expand Up @@ -131,7 +134,7 @@ public async Task<CreateCompanyResponse> CreateAsync(CompanyRequestBody? request
{
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() }});
response.Company = JsonConvert.DeserializeObject<Company>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}

return response;
Expand All @@ -140,7 +143,7 @@ public async Task<CreateCompanyResponse> CreateAsync(CompanyRequestBody? request
{
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() }});
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}

return response;
Expand Down Expand Up @@ -184,7 +187,7 @@ public async Task<DeleteCompanyResponse> DeleteAsync(DeleteCompanyRequest? reque
{
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() }});
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}

return response;
Expand Down Expand Up @@ -223,7 +226,7 @@ public async Task<GetCompanyResponse> GetAsync(GetCompanyRequest? request = null
{
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() }});
response.Company = JsonConvert.DeserializeObject<Company>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}

return response;
Expand All @@ -232,7 +235,7 @@ public async Task<GetCompanyResponse> GetAsync(GetCompanyRequest? request = null
{
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() }});
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}

return response;
Expand Down Expand Up @@ -271,7 +274,7 @@ public async Task<ListCompaniesResponse> ListAsync(ListCompaniesRequest? request
{
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() }});
response.Companies = JsonConvert.DeserializeObject<Companies>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}

return response;
Expand All @@ -280,7 +283,7 @@ public async Task<ListCompaniesResponse> ListAsync(ListCompaniesRequest? request
{
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() }});
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}

return response;
Expand Down Expand Up @@ -324,7 +327,7 @@ public async Task<UpdateCompanyResponse> UpdateAsync(UpdateCompanyRequest? reque
{
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() }});
response.Company = JsonConvert.DeserializeObject<Company>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}

return response;
Expand All @@ -333,7 +336,7 @@ public async Task<UpdateCompanyResponse> UpdateAsync(UpdateCompanyRequest? reque
{
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() }});
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}

return response;
Expand Down
Loading

0 comments on commit 089b662

Please sign in to comment.