Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc prealpha, Speakeasy CLI 1.166.0 (#242)
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 Feb 4, 2024
1 parent ac1b6da commit 68b416b
Show file tree
Hide file tree
Showing 100 changed files with 1,686 additions and 466 deletions.
466 changes: 466 additions & 0 deletions sync-for-expenses/.speakeasy/gen.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions sync-for-expenses/CodatSyncExpenses/Accounts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ public class Accounts: IAccounts
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "4.0.0";
private const string _sdkGenVersion = "2.214.3";
private const string _sdkVersion = "5.0.0";
private const string _sdkGenVersion = "2.248.6";
private const string _openapiDocVersion = "prealpha";
private const string _userAgent = "speakeasy-sdk/csharp 4.0.0 2.214.3 prealpha Codat.Sync.Expenses";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0 2.248.6 prealpha Codat.Sync.Expenses";
private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;
Expand Down
25 changes: 17 additions & 8 deletions sync-for-expenses/CodatSyncExpenses/CodatSyncExpenses.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,12 @@ public class CodatSyncExpenses: ICodatSyncExpenses
public SDKConfig SDKConfiguration { get; private set; }

private const string _language = "csharp";
private const string _sdkVersion = "4.0.0";
private const string _sdkGenVersion = "2.214.3";
private const string _sdkVersion = "5.0.0";
private const string _sdkGenVersion = "2.248.6";
private const string _openapiDocVersion = "prealpha";
private const string _userAgent = "speakeasy-sdk/csharp 4.0.0 2.214.3 prealpha Codat.Sync.Expenses";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0 2.248.6 prealpha Codat.Sync.Expenses";
private string _serverUrl = "";
private int _serverIndex = 0;
private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;
public ICompanies Companies { get; private set; }
Expand All @@ -157,23 +158,31 @@ public class CodatSyncExpenses: ICodatSyncExpenses

public CodatSyncExpenses(Security? security = null, int? serverIndex = null, string? serverUrl = null, Dictionary<string, string>? urlParams = null, ISpeakeasyHttpClient? client = null)
{
if (serverUrl != null) {
if (urlParams != null) {
if (serverIndex != null)
{
_serverIndex = serverIndex.Value;
}

if (serverUrl != null)
{
if (urlParams != null)
{
serverUrl = Utilities.TemplateUrl(serverUrl, urlParams);
}
_serverUrl = serverUrl;
}

_defaultClient = new SpeakeasyHttpClient(client);
_securityClient = _defaultClient;

if(security != null)
{
_securityClient = SecuritySerializer.Apply(_defaultClient, security);
}

SDKConfiguration = new SDKConfig()
{
serverIndex = _serverIndex,
serverUrl = _serverUrl
};

Expand All @@ -190,4 +199,4 @@ public CodatSyncExpenses(Security? security = null, int? serverIndex = null, str
TransactionStatus = new TransactionStatus(_defaultClient, _securityClient, _serverUrl, SDKConfiguration);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<IsPackable>true</IsPackable>
<PackageId>Codat.Sync.Expenses</PackageId>
<Version>4.0.0</Version>
<Version>5.0.0</Version>
<Authors>Codat</Authors>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
Expand Down
35 changes: 25 additions & 10 deletions sync-for-expenses/CodatSyncExpenses/Companies.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ public interface ICompanies
/// Create company
///
/// <remarks>
/// Creates a new company that can be used to assign connections to. <br/>
/// Use the *Create company* endpoint to create a new <a href="https://docs.codat.io/sync-for-expenses-api#/schemas/Company">company</a> that represents your customer in Codat. <br/>
/// <br/>
/// If forbidden characters (see `name` pattern) are present in the request, a company will be created with the forbidden characters removed. For example, `Company (Codat[1])` with be created as `Company Codat1`.<br/>
/// A <a href="https://docs.codat.io/sync-for-expenses-api#/schemas/Company">company</a> represents a business sharing access to their data.<br/>
/// Each company can have multiple <a href="https://docs.codat.io/sync-for-expenses-api#/schemas/Connection">connections</a> to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data.<br/>
/// <br/>
///
/// If forbidden characters (see `name` pattern) are present in the request, a company will be created with the forbidden characters removed. For example, `Company (Codat[1])` with be created as `Company Codat1`.
/// </remarks>
/// </summary>
Task<CreateCompanyResponse> CreateAsync(CompanyRequestBody? request = null);
Expand All @@ -42,8 +43,11 @@ public interface ICompanies
/// Delete a company
///
/// <remarks>
/// The *Delete company* endpoint permanently deletes a <a href="https://docs.codat.io/sync-for-expenses-api#/schemas/Company">company</a>, its <a href="https://docs.codat.io/sync-for-expenses-api#/schemas/Connection">connections</a> and any cached data. This operation is irreversible.<br/>
/// <br/>
/// Permanently deletes a company, its connections and any cached data. This operation is irreversible. If the company ID does not exist an error is returned.
/// A <a href="https://docs.codat.io/sync-for-expenses-api#/schemas/Company">company</a> represents a business sharing access to their data.<br/>
/// Each company can have multiple <a href="https://docs.codat.io/sync-for-expenses-api#/schemas/Connection">connections</a> to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data.<br/>
///
/// </remarks>
/// </summary>
Task<DeleteCompanyResponse> DeleteAsync(DeleteCompanyRequest? request = null);
Expand All @@ -52,7 +56,11 @@ public interface ICompanies
/// Get company
///
/// <remarks>
/// Returns the company for a valid identifier. If the identifier is for a deleted company, a not found response is returned.
/// The *Get company* endpoint returns a single company for a given `companyId`.<br/>
/// <br/>
/// A <a href="https://docs.codat.io/sync-for-expenses-api#/schemas/Company">company</a> represents a business sharing access to their data.<br/>
/// Each company can have multiple <a href="https://docs.codat.io/sync-for-expenses-api#/schemas/Connection">connections</a> to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data.<br/>
///
/// </remarks>
/// </summary>
Task<GetCompanyResponse> GetAsync(GetCompanyRequest? request = null);
Expand All @@ -61,7 +69,10 @@ public interface ICompanies
/// List companies
///
/// <remarks>
/// Returns a list of your companies. The company schema contains a list of <a href="https://docs.codat.io/sync-for-expenses-api#/schemas/Connection">connections</a> related to the company.
/// The *List companies* endpoint returns a list of [companies] associated to your instances.<br/>
/// <br/>
/// A <a href="https://docs.codat.io/sync-for-expenses-api#/schemas/Company">company</a> represents a business sharing access to their data.<br/>
/// Each company can have multiple <a href="https://docs.codat.io/sync-for-expenses-api#/schemas/Connection">connections</a> to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data.
/// </remarks>
/// </summary>
Task<ListCompaniesResponse> ListAsync(ListCompaniesRequest? request = null);
Expand All @@ -70,7 +81,11 @@ public interface ICompanies
/// Update company
///
/// <remarks>
/// Updates both the name and description of the company.
/// Use the *Update company* endpoint to update both the name and description of the company. <br/>
/// If you use <a href="https://docs.codat.io/sync-for-expenses-api#/schemas/Group">groups</a> to manage a set of companies, use the <a href="https://docs.codat.io/sync-for-expenses-api#/operations/add-company-to-group">Add company</a> or <a href="https://docs.codat.io/sync-for-expenses-api#/operations/remove-company-from-group">Remove company</a> endpoints to add or remove a company from a group.<br/>
/// <br/>
/// A <a href="https://docs.codat.io/sync-for-expenses-api#/schemas/Company">company</a> represents a business sharing access to their data.<br/>
/// Each company can have multiple <a href="https://docs.codat.io/sync-for-expenses-api#/schemas/Connection">connections</a> to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data.
/// </remarks>
/// </summary>
Task<UpdateCompanyResponse> UpdateAsync(UpdateCompanyRequest? request = null);
Expand All @@ -83,10 +98,10 @@ public class Companies: ICompanies
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "4.0.0";
private const string _sdkGenVersion = "2.214.3";
private const string _sdkVersion = "5.0.0";
private const string _sdkGenVersion = "2.248.6";
private const string _openapiDocVersion = "prealpha";
private const string _userAgent = "speakeasy-sdk/csharp 4.0.0 2.214.3 prealpha Codat.Sync.Expenses";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0 2.248.6 prealpha Codat.Sync.Expenses";
private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;
Expand Down
6 changes: 3 additions & 3 deletions sync-for-expenses/CodatSyncExpenses/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ public class Configuration: IConfiguration
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "4.0.0";
private const string _sdkGenVersion = "2.214.3";
private const string _sdkVersion = "5.0.0";
private const string _sdkGenVersion = "2.248.6";
private const string _openapiDocVersion = "prealpha";
private const string _userAgent = "speakeasy-sdk/csharp 4.0.0 2.214.3 prealpha Codat.Sync.Expenses";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0 2.248.6 prealpha Codat.Sync.Expenses";
private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;
Expand Down
6 changes: 3 additions & 3 deletions sync-for-expenses/CodatSyncExpenses/Connections.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ public class Connections: IConnections
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "4.0.0";
private const string _sdkGenVersion = "2.214.3";
private const string _sdkVersion = "5.0.0";
private const string _sdkGenVersion = "2.248.6";
private const string _openapiDocVersion = "prealpha";
private const string _userAgent = "speakeasy-sdk/csharp 4.0.0 2.214.3 prealpha Codat.Sync.Expenses";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0 2.248.6 prealpha Codat.Sync.Expenses";
private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;
Expand Down
6 changes: 3 additions & 3 deletions sync-for-expenses/CodatSyncExpenses/Customers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ public class Customers: ICustomers
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "4.0.0";
private const string _sdkGenVersion = "2.214.3";
private const string _sdkVersion = "5.0.0";
private const string _sdkGenVersion = "2.248.6";
private const string _openapiDocVersion = "prealpha";
private const string _userAgent = "speakeasy-sdk/csharp 4.0.0 2.214.3 prealpha Codat.Sync.Expenses";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0 2.248.6 prealpha Codat.Sync.Expenses";
private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;
Expand Down
6 changes: 3 additions & 3 deletions sync-for-expenses/CodatSyncExpenses/Expenses.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ public class Expenses: IExpenses
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "4.0.0";
private const string _sdkGenVersion = "2.214.3";
private const string _sdkVersion = "5.0.0";
private const string _sdkGenVersion = "2.248.6";
private const string _openapiDocVersion = "prealpha";
private const string _userAgent = "speakeasy-sdk/csharp 4.0.0 2.214.3 prealpha Codat.Sync.Expenses";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0 2.248.6 prealpha Codat.Sync.Expenses";
private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;
Expand Down
6 changes: 3 additions & 3 deletions sync-for-expenses/CodatSyncExpenses/ManageData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ public class ManageData: IManageData
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "4.0.0";
private const string _sdkGenVersion = "2.214.3";
private const string _sdkVersion = "5.0.0";
private const string _sdkGenVersion = "2.248.6";
private const string _openapiDocVersion = "prealpha";
private const string _userAgent = "speakeasy-sdk/csharp 4.0.0 2.214.3 prealpha Codat.Sync.Expenses";
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0 2.248.6 prealpha Codat.Sync.Expenses";
private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,5 @@ public static AccountMappingInfoAccountType ToEnum(this string value)
throw new Exception($"Unknown value {value} for enum AccountMappingInfoAccountType");
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,5 @@ public static AccountStatus ToEnum(this string value)
throw new Exception($"Unknown value {value} for enum AccountStatus");
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,5 @@ public static AccountType ToEnum(this string value)
throw new Exception($"Unknown value {value} for enum AccountType");
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ namespace Codat.Sync.Expenses.Models.Shared
{
using Newtonsoft.Json;
using System.Collections.Generic;
using System;

/// <summary>
/// &gt; **Language tip:** Accounts are also referred to as **chart of accounts**, **nominal accounts**, and **general ledger**.<br/>
Expand Down Expand Up @@ -45,8 +46,8 @@ namespace Codat.Sync.Expenses.Models.Shared
/// &gt;<br/>
/// &gt; This approach gives a true representation of the company&apos;s accounts whilst preventing distorting financials such as a company&apos;s profit and loss and balance sheet reports.
/// </remarks>
/// </summary>
public class Account
/// </summary>[Obsolete("This will be removed in a future release, please migrate away from it as soon as possible.")]
public class AccountingAccount
{

/// <summary>
Expand Down Expand Up @@ -112,7 +113,7 @@ public class Account
public bool? IsBankAccount { get; set; }

[JsonProperty("metadata")]
public AccountMetadata? Metadata { get; set; }
public CreateAccountResponseMetadata? Metadata { get; set; }

[JsonProperty("modifiedDate")]
public string? ModifiedDate { get; set; }
Expand Down Expand Up @@ -159,6 +160,6 @@ public class Account
/// The validDatatypeLinks can be used to determine whether an account can be correctly mapped to another object; for example, accounts with a `type` of `income` might only support being used on an Invoice and Direct Income. For more information, see <a href="/sync-for-expenses-api#/schemas/ValidDataTypeLinks">Valid Data Type Links</a>.
/// </summary>
[JsonProperty("validDatatypeLinks")]
public List<AccountValidDataTypeLinks>? ValidDatatypeLinks { get; set; }
public List<CreateAccountResponseValidDataTypeLinks>? ValidDatatypeLinks { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,5 @@ public static AccountingAddressType ToEnum(this string value)
throw new Exception($"Unknown value {value} for enum AccountingAddressType");
}
}

}
Loading

0 comments on commit 68b416b

Please sign in to comment.