Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 3.0.0, Speakeay CLI 1.91.0 (#125)
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 8542817 commit 086b3fd
Show file tree
Hide file tree
Showing 230 changed files with 1,612 additions and 465 deletions.
23 changes: 13 additions & 10 deletions sync-for-payroll/CodatSyncPayroll/Accounts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,15 @@ public interface IAccountsSDK
Task<ListAccountsResponse> ListAsync(ListAccountsRequest? request = null);
}

/// <summary>
/// Accounts
/// </summary>
public class AccountsSDK: IAccountsSDK
{
public SDKConfig Config { get; private set; }

Check warning on line 99 in sync-for-payroll/CodatSyncPayroll/Accounts.cs

View workflow job for this annotation

GitHub Actions / publish / Publish C# SDK

Missing XML comment for publicly visible type or member 'AccountsSDK.Config'
private const string _language = "csharp";
private const string _sdkVersion = "1.2.0";
private const string _sdkGenVersion = "2.122.1";
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 @@ -146,7 +149,7 @@ public AccountsSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient secu
{
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() }});
response.CreateAccountResponseValue = JsonConvert.DeserializeObject<Models.Shared.CreateAccountResponse>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}

return response;
Expand All @@ -155,7 +158,7 @@ public AccountsSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient secu
{
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 @@ -194,7 +197,7 @@ public async Task<GetAccountResponse> GetAsync(GetAccountRequest? request = null
{
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
{
response.Account = JsonConvert.DeserializeObject<Account>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
response.Account = JsonConvert.DeserializeObject<Account>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}

return response;
Expand All @@ -203,7 +206,7 @@ public async Task<GetAccountResponse> GetAsync(GetAccountRequest? 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 @@ -242,7 +245,7 @@ public async Task<GetCreateAccountsModelResponse> GetCreateModelAsync(GetCreateA
{
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
{
response.PushOption = JsonConvert.DeserializeObject<PushOption>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
response.PushOption = JsonConvert.DeserializeObject<PushOption>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}

return response;
Expand All @@ -251,7 +254,7 @@ public async Task<GetCreateAccountsModelResponse> GetCreateModelAsync(GetCreateA
{
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 @@ -290,7 +293,7 @@ public async Task<ListAccountsResponse> ListAsync(ListAccountsRequest? request =
{
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
{
response.Accounts = JsonConvert.DeserializeObject<Accounts>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
response.Accounts = JsonConvert.DeserializeObject<Accounts>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}

return response;
Expand All @@ -299,7 +302,7 @@ public async Task<ListAccountsResponse> ListAsync(ListAccountsRequest? 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
2 changes: 1 addition & 1 deletion sync-for-payroll/CodatSyncPayroll/CodatSyncPayroll.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<IsPackable>true</IsPackable>
<PackageId>Codat.Sync.Payroll</PackageId>
<Version>1.2.0</Version>
<Version>2.1.0</Version>
<Authors>Codat</Authors>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
Expand Down
29 changes: 27 additions & 2 deletions sync-for-payroll/CodatSyncPayroll/CodatSyncPayrollSDK.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,31 @@ public class SDKConfig
{
}

/// <summary>
/// Sync for Payroll: The API for Sync for Payroll. &lt;br/&gt;
///
/// <remarks>
/// <br/>
/// Sync for Payroll is an API and a set of supporting tools built to help integrate your customers&apos; payroll data from their HR and payroll platforms into their accounting platforms and to support its reconciliation.<br/>
/// <br/>
/// <a href="https://docs.codat.io/payroll/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/>
/// | Accounts | Get, create, and update Accounts. |<br/>
/// | Journal entries | Get, create, and update Journal entries. |<br/>
/// | Journals | Get, create, and update Journals. |<br/>
/// | Tracking categories | Get, create, and update Tracking Categories for additional categorization of payroll components. |<br/>
/// | Company info | View company profile from the source platform. |<br/>
/// | Manage data | Control how data is retrieved from an integration. |
/// </remarks>
/// </summary>
public class CodatSyncPayrollSDK: ICodatSyncPayrollSDK
{
public SDKConfig Config { get; private set; }

Check warning on line 120 in sync-for-payroll/CodatSyncPayroll/CodatSyncPayrollSDK.cs

View workflow job for this annotation

GitHub Actions / publish / Publish C# SDK

Missing XML comment for publicly visible type or member 'CodatSyncPayrollSDK.Config'
Expand All @@ -99,8 +124,8 @@ public class CodatSyncPayrollSDK: ICodatSyncPayrollSDK
};

private const string _language = "csharp";
private const string _sdkVersion = "1.2.0";
private const string _sdkGenVersion = "2.122.1";
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 sync-for-payroll/CodatSyncPayroll/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.2.0";
private const string _sdkGenVersion = "2.122.1";
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 086b3fd

Please sign in to comment.