Skip to content

Commit 68b416b

Browse files
ci: regenerated with OpenAPI Doc prealpha, Speakeasy CLI 1.166.0 (#242)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
1 parent ac1b6da commit 68b416b

File tree

100 files changed

+1686
-466
lines changed

Some content is hidden

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

100 files changed

+1686
-466
lines changed

sync-for-expenses/.speakeasy/gen.lock

Lines changed: 466 additions & 0 deletions
Large diffs are not rendered by default.

sync-for-expenses/CodatSyncExpenses/Accounts.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ public class Accounts: IAccounts
6969
{
7070
public SDKConfig SDKConfiguration { get; private set; }
7171
private const string _language = "csharp";
72-
private const string _sdkVersion = "4.0.0";
73-
private const string _sdkGenVersion = "2.214.3";
72+
private const string _sdkVersion = "5.0.0";
73+
private const string _sdkGenVersion = "2.248.6";
7474
private const string _openapiDocVersion = "prealpha";
75-
private const string _userAgent = "speakeasy-sdk/csharp 4.0.0 2.214.3 prealpha Codat.Sync.Expenses";
75+
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0 2.248.6 prealpha Codat.Sync.Expenses";
7676
private string _serverUrl = "";
7777
private ISpeakeasyHttpClient _defaultClient;
7878
private ISpeakeasyHttpClient _securityClient;

sync-for-expenses/CodatSyncExpenses/CodatSyncExpenses.cs

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,12 @@ public class CodatSyncExpenses: ICodatSyncExpenses
136136
public SDKConfig SDKConfiguration { get; private set; }
137137

138138
private const string _language = "csharp";
139-
private const string _sdkVersion = "4.0.0";
140-
private const string _sdkGenVersion = "2.214.3";
139+
private const string _sdkVersion = "5.0.0";
140+
private const string _sdkGenVersion = "2.248.6";
141141
private const string _openapiDocVersion = "prealpha";
142-
private const string _userAgent = "speakeasy-sdk/csharp 4.0.0 2.214.3 prealpha Codat.Sync.Expenses";
142+
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0 2.248.6 prealpha Codat.Sync.Expenses";
143143
private string _serverUrl = "";
144+
private int _serverIndex = 0;
144145
private ISpeakeasyHttpClient _defaultClient;
145146
private ISpeakeasyHttpClient _securityClient;
146147
public ICompanies Companies { get; private set; }
@@ -157,23 +158,31 @@ public class CodatSyncExpenses: ICodatSyncExpenses
157158

158159
public CodatSyncExpenses(Security? security = null, int? serverIndex = null, string? serverUrl = null, Dictionary<string, string>? urlParams = null, ISpeakeasyHttpClient? client = null)
159160
{
160-
if (serverUrl != null) {
161-
if (urlParams != null) {
161+
if (serverIndex != null)
162+
{
163+
_serverIndex = serverIndex.Value;
164+
}
165+
166+
if (serverUrl != null)
167+
{
168+
if (urlParams != null)
169+
{
162170
serverUrl = Utilities.TemplateUrl(serverUrl, urlParams);
163171
}
164172
_serverUrl = serverUrl;
165173
}
166174

167175
_defaultClient = new SpeakeasyHttpClient(client);
168176
_securityClient = _defaultClient;
169-
177+
170178
if(security != null)
171179
{
172180
_securityClient = SecuritySerializer.Apply(_defaultClient, security);
173181
}
174-
182+
175183
SDKConfiguration = new SDKConfig()
176184
{
185+
serverIndex = _serverIndex,
177186
serverUrl = _serverUrl
178187
};
179188

@@ -190,4 +199,4 @@ public CodatSyncExpenses(Security? security = null, int? serverIndex = null, str
190199
TransactionStatus = new TransactionStatus(_defaultClient, _securityClient, _serverUrl, SDKConfiguration);
191200
}
192201
}
193-
}
202+
}

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>4.0.0</Version>
5+
<Version>5.0.0</Version>
66
<Authors>Codat</Authors>
77
<TargetFramework>net6.0</TargetFramework>
88
<Nullable>enable</Nullable>

sync-for-expenses/CodatSyncExpenses/Companies.cs

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@ public interface ICompanies
2929
/// Create company
3030
///
3131
/// <remarks>
32-
/// Creates a new company that can be used to assign connections to. <br/>
32+
/// 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/>
3333
/// <br/>
34-
/// 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/>
34+
/// A <a href="https://docs.codat.io/sync-for-expenses-api#/schemas/Company">company</a> represents a business sharing access to their data.<br/>
35+
/// 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/>
3536
/// <br/>
36-
///
37+
/// 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`.
3738
/// </remarks>
3839
/// </summary>
3940
Task<CreateCompanyResponse> CreateAsync(CompanyRequestBody? request = null);
@@ -42,8 +43,11 @@ public interface ICompanies
4243
/// Delete a company
4344
///
4445
/// <remarks>
46+
/// 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/>
4547
/// <br/>
46-
/// 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.
48+
/// A <a href="https://docs.codat.io/sync-for-expenses-api#/schemas/Company">company</a> represents a business sharing access to their data.<br/>
49+
/// 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/>
50+
///
4751
/// </remarks>
4852
/// </summary>
4953
Task<DeleteCompanyResponse> DeleteAsync(DeleteCompanyRequest? request = null);
@@ -52,7 +56,11 @@ public interface ICompanies
5256
/// Get company
5357
///
5458
/// <remarks>
55-
/// Returns the company for a valid identifier. If the identifier is for a deleted company, a not found response is returned.
59+
/// The *Get company* endpoint returns a single company for a given `companyId`.<br/>
60+
/// <br/>
61+
/// A <a href="https://docs.codat.io/sync-for-expenses-api#/schemas/Company">company</a> represents a business sharing access to their data.<br/>
62+
/// 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/>
63+
///
5664
/// </remarks>
5765
/// </summary>
5866
Task<GetCompanyResponse> GetAsync(GetCompanyRequest? request = null);
@@ -61,7 +69,10 @@ public interface ICompanies
6169
/// List companies
6270
///
6371
/// <remarks>
64-
/// 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.
72+
/// The *List companies* endpoint returns a list of [companies] associated to your instances.<br/>
73+
/// <br/>
74+
/// A <a href="https://docs.codat.io/sync-for-expenses-api#/schemas/Company">company</a> represents a business sharing access to their data.<br/>
75+
/// 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.
6576
/// </remarks>
6677
/// </summary>
6778
Task<ListCompaniesResponse> ListAsync(ListCompaniesRequest? request = null);
@@ -70,7 +81,11 @@ public interface ICompanies
7081
/// Update company
7182
///
7283
/// <remarks>
73-
/// Updates both the name and description of the company.
84+
/// Use the *Update company* endpoint to update both the name and description of the company. <br/>
85+
/// 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/>
86+
/// <br/>
87+
/// A <a href="https://docs.codat.io/sync-for-expenses-api#/schemas/Company">company</a> represents a business sharing access to their data.<br/>
88+
/// 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.
7489
/// </remarks>
7590
/// </summary>
7691
Task<UpdateCompanyResponse> UpdateAsync(UpdateCompanyRequest? request = null);
@@ -83,10 +98,10 @@ public class Companies: ICompanies
8398
{
8499
public SDKConfig SDKConfiguration { get; private set; }
85100
private const string _language = "csharp";
86-
private const string _sdkVersion = "4.0.0";
87-
private const string _sdkGenVersion = "2.214.3";
101+
private const string _sdkVersion = "5.0.0";
102+
private const string _sdkGenVersion = "2.248.6";
88103
private const string _openapiDocVersion = "prealpha";
89-
private const string _userAgent = "speakeasy-sdk/csharp 4.0.0 2.214.3 prealpha Codat.Sync.Expenses";
104+
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0 2.248.6 prealpha Codat.Sync.Expenses";
90105
private string _serverUrl = "";
91106
private ISpeakeasyHttpClient _defaultClient;
92107
private ISpeakeasyHttpClient _securityClient;

sync-for-expenses/CodatSyncExpenses/Configuration.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ public class Configuration: IConfiguration
6060
{
6161
public SDKConfig SDKConfiguration { get; private set; }
6262
private const string _language = "csharp";
63-
private const string _sdkVersion = "4.0.0";
64-
private const string _sdkGenVersion = "2.214.3";
63+
private const string _sdkVersion = "5.0.0";
64+
private const string _sdkGenVersion = "2.248.6";
6565
private const string _openapiDocVersion = "prealpha";
66-
private const string _userAgent = "speakeasy-sdk/csharp 4.0.0 2.214.3 prealpha Codat.Sync.Expenses";
66+
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0 2.248.6 prealpha Codat.Sync.Expenses";
6767
private string _serverUrl = "";
6868
private ISpeakeasyHttpClient _defaultClient;
6969
private ISpeakeasyHttpClient _securityClient;

sync-for-expenses/CodatSyncExpenses/Connections.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ public class Connections: IConnections
9090
{
9191
public SDKConfig SDKConfiguration { get; private set; }
9292
private const string _language = "csharp";
93-
private const string _sdkVersion = "4.0.0";
94-
private const string _sdkGenVersion = "2.214.3";
93+
private const string _sdkVersion = "5.0.0";
94+
private const string _sdkGenVersion = "2.248.6";
9595
private const string _openapiDocVersion = "prealpha";
96-
private const string _userAgent = "speakeasy-sdk/csharp 4.0.0 2.214.3 prealpha Codat.Sync.Expenses";
96+
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0 2.248.6 prealpha Codat.Sync.Expenses";
9797
private string _serverUrl = "";
9898
private ISpeakeasyHttpClient _defaultClient;
9999
private ISpeakeasyHttpClient _securityClient;

sync-for-expenses/CodatSyncExpenses/Customers.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ public class Customers: ICustomers
9999
{
100100
public SDKConfig SDKConfiguration { get; private set; }
101101
private const string _language = "csharp";
102-
private const string _sdkVersion = "4.0.0";
103-
private const string _sdkGenVersion = "2.214.3";
102+
private const string _sdkVersion = "5.0.0";
103+
private const string _sdkGenVersion = "2.248.6";
104104
private const string _openapiDocVersion = "prealpha";
105-
private const string _userAgent = "speakeasy-sdk/csharp 4.0.0 2.214.3 prealpha Codat.Sync.Expenses";
105+
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0 2.248.6 prealpha Codat.Sync.Expenses";
106106
private string _serverUrl = "";
107107
private ISpeakeasyHttpClient _defaultClient;
108108
private ISpeakeasyHttpClient _securityClient;

sync-for-expenses/CodatSyncExpenses/Expenses.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ public class Expenses: IExpenses
9494
{
9595
public SDKConfig SDKConfiguration { get; private set; }
9696
private const string _language = "csharp";
97-
private const string _sdkVersion = "4.0.0";
98-
private const string _sdkGenVersion = "2.214.3";
97+
private const string _sdkVersion = "5.0.0";
98+
private const string _sdkGenVersion = "2.248.6";
9999
private const string _openapiDocVersion = "prealpha";
100-
private const string _userAgent = "speakeasy-sdk/csharp 4.0.0 2.214.3 prealpha Codat.Sync.Expenses";
100+
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0 2.248.6 prealpha Codat.Sync.Expenses";
101101
private string _serverUrl = "";
102102
private ISpeakeasyHttpClient _defaultClient;
103103
private ISpeakeasyHttpClient _securityClient;

sync-for-expenses/CodatSyncExpenses/ManageData.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ public class ManageData: IManageData
8585
{
8686
public SDKConfig SDKConfiguration { get; private set; }
8787
private const string _language = "csharp";
88-
private const string _sdkVersion = "4.0.0";
89-
private const string _sdkGenVersion = "2.214.3";
88+
private const string _sdkVersion = "5.0.0";
89+
private const string _sdkGenVersion = "2.248.6";
9090
private const string _openapiDocVersion = "prealpha";
91-
private const string _userAgent = "speakeasy-sdk/csharp 4.0.0 2.214.3 prealpha Codat.Sync.Expenses";
91+
private const string _userAgent = "speakeasy-sdk/csharp 5.0.0 2.248.6 prealpha Codat.Sync.Expenses";
9292
private string _serverUrl = "";
9393
private ISpeakeasyHttpClient _defaultClient;
9494
private ISpeakeasyHttpClient _securityClient;

sync-for-expenses/CodatSyncExpenses/Models/Shared/AccountMappingInfoAccountType.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,5 @@ public static AccountMappingInfoAccountType ToEnum(this string value)
6262
throw new Exception($"Unknown value {value} for enum AccountMappingInfoAccountType");
6363
}
6464
}
65+
6566
}

sync-for-expenses/CodatSyncExpenses/Models/Shared/AccountStatus.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,5 @@ public static AccountStatus ToEnum(this string value)
6060
throw new Exception($"Unknown value {value} for enum AccountStatus");
6161
}
6262
}
63+
6364
}

sync-for-expenses/CodatSyncExpenses/Models/Shared/AccountType.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,5 @@ public static AccountType ToEnum(this string value)
6464
throw new Exception($"Unknown value {value} for enum AccountType");
6565
}
6666
}
67+
6768
}

sync-for-expenses/CodatSyncExpenses/Models/Shared/Account.cs renamed to sync-for-expenses/CodatSyncExpenses/Models/Shared/AccountingAccount.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ namespace Codat.Sync.Expenses.Models.Shared
1212
{
1313
using Newtonsoft.Json;
1414
using System.Collections.Generic;
15+
using System;
1516

1617
/// <summary>
1718
/// &gt; **Language tip:** Accounts are also referred to as **chart of accounts**, **nominal accounts**, and **general ledger**.<br/>
@@ -45,8 +46,8 @@ namespace Codat.Sync.Expenses.Models.Shared
4546
/// &gt;<br/>
4647
/// &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.
4748
/// </remarks>
48-
/// </summary>
49-
public class Account
49+
/// </summary>[Obsolete("This will be removed in a future release, please migrate away from it as soon as possible.")]
50+
public class AccountingAccount
5051
{
5152

5253
/// <summary>
@@ -112,7 +113,7 @@ public class Account
112113
public bool? IsBankAccount { get; set; }
113114

114115
[JsonProperty("metadata")]
115-
public AccountMetadata? Metadata { get; set; }
116+
public CreateAccountResponseMetadata? Metadata { get; set; }
116117

117118
[JsonProperty("modifiedDate")]
118119
public string? ModifiedDate { get; set; }
@@ -159,6 +160,6 @@ public class Account
159160
/// 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>.
160161
/// </summary>
161162
[JsonProperty("validDatatypeLinks")]
162-
public List<AccountValidDataTypeLinks>? ValidDatatypeLinks { get; set; }
163+
public List<CreateAccountResponseValidDataTypeLinks>? ValidDatatypeLinks { get; set; }
163164
}
164165
}

sync-for-expenses/CodatSyncExpenses/Models/Shared/AccountingAddressType.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,5 @@ public static AccountingAddressType ToEnum(this string value)
5858
throw new Exception($"Unknown value {value} for enum AccountingAddressType");
5959
}
6060
}
61+
6162
}

0 commit comments

Comments
 (0)