Skip to content

Commit 974f696

Browse files
ci: regenerated with OpenAPI Doc prealpha, Speakeay CLI 1.87.0 (#88)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
1 parent 1c2466f commit 974f696

File tree

222 files changed

+2969
-3125
lines changed

Some content is hidden

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

222 files changed

+2969
-3125
lines changed

sync-for-expenses/CodatSyncExpenses/Accounts.cs

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,37 @@ namespace CodatSyncExpenses
1919
using System.Threading.Tasks;
2020
using System;
2121

22+
/// <summary>
23+
/// Accounts
24+
/// </summary>
2225
public interface IAccountsSDK
2326
{
27+
28+
/// <summary>
29+
/// Create account
30+
///
31+
/// <remarks>
32+
/// The *Create account* endpoint creates a new <a href="https://docs.codat.io/accounting-api#/schemas/Account">account</a> for a given company&apos;s connection.<br/>
33+
/// <br/>
34+
/// <a href="https://docs.codat.io/accounting-api#/schemas/Account">Accounts</a> are the categories a business uses to record accounting transactions.<br/>
35+
/// <br/>
36+
/// **Integration-specific behaviour**<br/>
37+
/// <br/>
38+
/// Required data may vary by integration. To see what data to post, first call <a href="https://docs.codat.io/accounting-api#/operations/get-create-chartOfAccounts-model">Get create account model</a>.<br/>
39+
/// <br/>
40+
/// Check out our <a href="https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&amp;dataType=chartOfAccounts">coverage explorer</a> for integrations that support creating an account.<br/>
41+
///
42+
/// </remarks>
43+
/// </summary>
2444
Task<Models.Operations.CreateAccountResponse> CreateAsync(CreateAccountRequest? request = null);
2545
}
2646

27-
/// <summary>
28-
/// Accounts
29-
/// </summary>
3047
public class AccountsSDK: IAccountsSDK
3148
{
3249
public SDKConfig Config { get; private set; }
3350
private const string _language = "csharp";
34-
private const string _sdkVersion = "0.8.0";
35-
private const string _sdkGenVersion = "2.113.0";
51+
private const string _sdkVersion = "1.1.0";
52+
private const string _sdkGenVersion = "2.116.0";
3653
private const string _openapiDocVersion = "prealpha";
3754
private string _serverUrl = "";
3855
private ISpeakeasyHttpClient _defaultClient;
@@ -47,22 +64,6 @@ public AccountsSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient secu
4764
}
4865

4966

50-
/// <summary>
51-
/// Create account
52-
///
53-
/// <remarks>
54-
/// The *Create account* endpoint creates a new [account](https://docs.codat.io/accounting-api#/schemas/Account) for a given company's connection.
55-
///
56-
/// [Accounts](https://docs.codat.io/accounting-api#/schemas/Account) are the categories a business uses to record accounting transactions.
57-
///
58-
/// **Integration-specific behaviour**
59-
///
60-
/// Required data may vary by integration. To see what data to post, first call [Get create account model](https://docs.codat.io/accounting-api#/operations/get-create-chartOfAccounts-model).
61-
///
62-
/// Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=chartOfAccounts) for integrations that support creating an account.
63-
///
64-
/// </remarks>
65-
/// </summary>
6667
public async Task<Models.Operations.CreateAccountResponse> CreateAsync(CreateAccountRequest? request = null)
6768
{
6869
string baseUrl = _serverUrl;

sync-for-expenses/CodatSyncExpenses/CodatSyncExpenses.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
<PropertyGroup>
33
<IsPackable>true</IsPackable>
44
<PackageId>Codat.Sync.Expenses</PackageId>
5-
<Version>0.8.0</Version>
5+
<Version>1.1.0</Version>
66
<Authors>Codat</Authors>
77
<TargetFramework>net6.0</TargetFramework>
88
<Nullable>enable</Nullable>
99
<PackageReadmeFile>README.md</PackageReadmeFile>
10+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1011
</PropertyGroup>
1112

1213
<ItemGroup>

sync-for-expenses/CodatSyncExpenses/CodatSyncExpensesSDK.cs

Lines changed: 62 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -17,41 +17,85 @@ namespace CodatSyncExpenses
1717
using System.Threading.Tasks;
1818
using System;
1919

20+
/// <summary>
21+
/// Sync for Expenses: The API for Sync for Expenses.&lt;br/&gt;
22+
///
23+
/// <remarks>
24+
/// <br/>
25+
/// Sync for Expenses is an API and a set of supporting tools. It has been built to<br/>
26+
/// enable corporate card and expense management platforms to provide high-quality<br/>
27+
/// integrations with multiple accounting platforms through a standardized API.<br/>
28+
/// <br/>
29+
/// <a href="https://docs.codat.io/sync-for-expenses/overview">Read more...</a><br/>
30+
/// <br/>
31+
/// <a href="https://github.com/codatio/oas">See our OpenAPI spec</a><br/>
32+
/// <br/>
33+
/// Not seeing the endpoints you&apos;re expecting? We&apos;ve <a href="https://docs.codat.io/updates/230901-new-products">reorganized our products</a>, and you may be using a <a href="https://docs.codat.io/sync-for-expenses-v1-api#/">different version of Sync for Commerce</a>.
34+
/// </remarks>
35+
/// </summary>
2036
public interface ICodatSyncExpensesSDK
2137
{
38+
39+
/// <summary>
40+
/// Accounts
41+
/// </summary>
2242
public IAccountsSDK Accounts { get; }
43+
44+
/// <summary>
45+
/// Create and manage your Codat companies.
46+
/// </summary>
2347
public ICompaniesSDK Companies { get; }
48+
49+
/// <summary>
50+
/// Manage mapping options and sync configuration.
51+
/// </summary>
2452
public IConfigurationSDK Configuration { get; }
53+
54+
/// <summary>
55+
/// Create and manage partner expense connection.
56+
/// </summary>
2557
public IConnectionsSDK Connections { get; }
58+
59+
/// <summary>
60+
/// Customers
61+
/// </summary>
2662
public ICustomersSDK Customers { get; }
63+
64+
/// <summary>
65+
/// Create expense datasets and upload receipts.
66+
/// </summary>
2767
public IExpensesSDK Expenses { get; }
68+
69+
/// <summary>
70+
/// Asynchronously retrieve data from an integration to refresh data in Codat.
71+
/// </summary>
2872
public IManageDataSDK ManageData { get; }
73+
74+
/// <summary>
75+
/// Access create, update and delete operations made to an SMB&amp;apos;s data connection.
76+
/// </summary>
2977
public IPushOperationsSDK PushOperations { get; }
78+
79+
/// <summary>
80+
/// Suppliers
81+
/// </summary>
3082
public ISuppliersSDK Suppliers { get; }
83+
84+
/// <summary>
85+
/// Trigger and monitor expense syncs to accounting software.
86+
/// </summary>
3187
public ISyncSDK Sync { get; }
88+
89+
/// <summary>
90+
/// Retrieve the status of transactions within a sync.
91+
/// </summary>
3292
public ITransactionStatusSDK TransactionStatus { get; }
3393
}
3494

3595
public class SDKConfig
3696
{
3797
}
3898

39-
/// <summary>
40-
/// Sync for Expenses: The API for Sync for Expenses.
41-
///
42-
/// <remarks>
43-
///
44-
/// Sync for Expenses is an API and a set of supporting tools. It has been built to
45-
/// enable corporate card and expense management platforms to provide high-quality
46-
/// integrations with multiple accounting platforms through a standardized API.
47-
///
48-
/// [Read more...](https://docs.codat.io/sync-for-expenses/overview)
49-
///
50-
/// [See our OpenAPI spec](https://github.com/codatio/oas)
51-
///
52-
/// Not seeing the endpoints you're expecting? We've [reorganized our products](https://docs.codat.io/updates/230901-new-products), and you may be using a [different version of Sync for Commerce](https://docs.codat.io/sync-for-expenses-v1-api#/).
53-
/// </remarks>
54-
/// </summary>
5599
public class CodatSyncExpensesSDK: ICodatSyncExpensesSDK
56100
{
57101
public SDKConfig Config { get; private set; }
@@ -61,55 +105,22 @@ public class CodatSyncExpensesSDK: ICodatSyncExpensesSDK
61105
};
62106

63107
private const string _language = "csharp";
64-
private const string _sdkVersion = "0.8.0";
65-
private const string _sdkGenVersion = "2.113.0";
108+
private const string _sdkVersion = "1.1.0";
109+
private const string _sdkGenVersion = "2.116.0";
66110
private const string _openapiDocVersion = "prealpha";
67111
private string _serverUrl = "";
68112
private ISpeakeasyHttpClient _defaultClient;
69113
private ISpeakeasyHttpClient _securityClient;
70-
/// <summary>
71-
/// Accounts
72-
/// </summary>
73114
public IAccountsSDK Accounts { get; private set; }
74-
/// <summary>
75-
/// Create and manage your Codat companies.
76-
/// </summary>
77115
public ICompaniesSDK Companies { get; private set; }
78-
/// <summary>
79-
/// Manage mapping options and sync configuration.
80-
/// </summary>
81116
public IConfigurationSDK Configuration { get; private set; }
82-
/// <summary>
83-
/// Create and manage partner expense connection.
84-
/// </summary>
85117
public IConnectionsSDK Connections { get; private set; }
86-
/// <summary>
87-
/// Customers
88-
/// </summary>
89118
public ICustomersSDK Customers { get; private set; }
90-
/// <summary>
91-
/// Create expense datasets and upload receipts.
92-
/// </summary>
93119
public IExpensesSDK Expenses { get; private set; }
94-
/// <summary>
95-
/// Asynchronously retrieve data from an integration to refresh data in Codat.
96-
/// </summary>
97120
public IManageDataSDK ManageData { get; private set; }
98-
/// <summary>
99-
/// Access create, update and delete operations made to an SMB's data connection.
100-
/// </summary>
101121
public IPushOperationsSDK PushOperations { get; private set; }
102-
/// <summary>
103-
/// Suppliers
104-
/// </summary>
105122
public ISuppliersSDK Suppliers { get; private set; }
106-
/// <summary>
107-
/// Trigger and monitor expense syncs to accounting software.
108-
/// </summary>
109123
public ISyncSDK Sync { get; private set; }
110-
/// <summary>
111-
/// Retrieve the status of transactions within a sync.
112-
/// </summary>
113124
public ITransactionStatusSDK TransactionStatus { get; private set; }
114125

115126
public CodatSyncExpensesSDK(Security? security = null, string? serverUrl = null, ISpeakeasyHttpClient? client = null)

sync-for-expenses/CodatSyncExpenses/Companies.cs

Lines changed: 50 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,69 @@ namespace CodatSyncExpenses
1919
using System.Threading.Tasks;
2020
using System;
2121

22+
/// <summary>
23+
/// Create and manage your Codat companies.
24+
/// </summary>
2225
public interface ICompaniesSDK
2326
{
27+
28+
/// <summary>
29+
/// Create company
30+
///
31+
/// <remarks>
32+
/// Creates a new company that can be used to assign connections to. <br/>
33+
/// <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/>
35+
/// <br/>
36+
///
37+
/// </remarks>
38+
/// </summary>
2439
Task<CreateCompanyResponse> CreateAsync(CompanyRequestBody? request = null);
40+
41+
/// <summary>
42+
/// Delete a company
43+
///
44+
/// <remarks>
45+
/// <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.
47+
/// </remarks>
48+
/// </summary>
2549
Task<DeleteCompanyResponse> DeleteAsync(DeleteCompanyRequest? request = null);
50+
51+
/// <summary>
52+
/// Get company
53+
///
54+
/// <remarks>
55+
/// Returns the company for a valid identifier. If the identifier is for a deleted company, a not found response is returned.
56+
/// </remarks>
57+
/// </summary>
2658
Task<GetCompanyResponse> GetAsync(GetCompanyRequest? request = null);
59+
60+
/// <summary>
61+
/// List companies
62+
///
63+
/// <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.
65+
/// </remarks>
66+
/// </summary>
2767
Task<ListCompaniesResponse> ListAsync(ListCompaniesRequest? request = null);
68+
69+
/// <summary>
70+
/// Update company
71+
///
72+
/// <remarks>
73+
/// Updates both the name and description of the company.
74+
/// </remarks>
75+
/// </summary>
2876
Task<UpdateCompanyResponse> UpdateAsync(UpdateCompanyRequest? request = null);
2977
}
3078

31-
/// <summary>
32-
/// Create and manage your Codat companies.
33-
/// </summary>
3479
public class CompaniesSDK: ICompaniesSDK
3580
{
3681
public SDKConfig Config { get; private set; }
3782
private const string _language = "csharp";
38-
private const string _sdkVersion = "0.8.0";
39-
private const string _sdkGenVersion = "2.113.0";
83+
private const string _sdkVersion = "1.1.0";
84+
private const string _sdkGenVersion = "2.116.0";
4085
private const string _openapiDocVersion = "prealpha";
4186
private string _serverUrl = "";
4287
private ISpeakeasyHttpClient _defaultClient;
@@ -51,17 +96,6 @@ public CompaniesSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient sec
5196
}
5297

5398

54-
/// <summary>
55-
/// Create company
56-
///
57-
/// <remarks>
58-
/// Creates a new company that can be used to assign connections to.
59-
///
60-
/// 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`.
61-
///
62-
///
63-
/// </remarks>
64-
/// </summary>
6599
public async Task<CreateCompanyResponse> CreateAsync(CompanyRequestBody? request = null)
66100
{
67101
string baseUrl = _serverUrl;
@@ -115,14 +149,6 @@ public async Task<CreateCompanyResponse> CreateAsync(CompanyRequestBody? request
115149
}
116150

117151

118-
/// <summary>
119-
/// Delete a company
120-
///
121-
/// <remarks>
122-
///
123-
/// 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.
124-
/// </remarks>
125-
/// </summary>
126152
public async Task<DeleteCompanyResponse> DeleteAsync(DeleteCompanyRequest? request = null)
127153
{
128154
string baseUrl = _serverUrl;
@@ -167,13 +193,6 @@ public async Task<DeleteCompanyResponse> DeleteAsync(DeleteCompanyRequest? reque
167193
}
168194

169195

170-
/// <summary>
171-
/// Get company
172-
///
173-
/// <remarks>
174-
/// Returns the company for a valid identifier. If the identifier is for a deleted company, a not found response is returned.
175-
/// </remarks>
176-
/// </summary>
177196
public async Task<GetCompanyResponse> GetAsync(GetCompanyRequest? request = null)
178197
{
179198
string baseUrl = _serverUrl;
@@ -222,13 +241,6 @@ public async Task<GetCompanyResponse> GetAsync(GetCompanyRequest? request = null
222241
}
223242

224243

225-
/// <summary>
226-
/// List companies
227-
///
228-
/// <remarks>
229-
/// Returns a list of your companies. The company schema contains a list of [connections](https://docs.codat.io/sync-for-expenses-api#/schemas/Connection) related to the company.
230-
/// </remarks>
231-
/// </summary>
232244
public async Task<ListCompaniesResponse> ListAsync(ListCompaniesRequest? request = null)
233245
{
234246
string baseUrl = _serverUrl;
@@ -277,13 +289,6 @@ public async Task<ListCompaniesResponse> ListAsync(ListCompaniesRequest? request
277289
}
278290

279291

280-
/// <summary>
281-
/// Update company
282-
///
283-
/// <remarks>
284-
/// Updates both the name and description of the company.
285-
/// </remarks>
286-
/// </summary>
287292
public async Task<UpdateCompanyResponse> UpdateAsync(UpdateCompanyRequest? request = null)
288293
{
289294
string baseUrl = _serverUrl;

0 commit comments

Comments
 (0)