Skip to content

Commit 1c2466f

Browse files
ci: regenerated with OpenAPI Doc 3.0.0, Speakeay CLI 1.87.0 (#89)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
1 parent 159d099 commit 1c2466f

File tree

311 files changed

+5069
-5461
lines changed

Some content is hidden

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

311 files changed

+5069
-5461
lines changed

sync-for-payables/CodatSyncPayables/Accounts.cs

Lines changed: 66 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,84 @@ namespace CodatSyncPayables
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/sync-for-payables-api#/schemas/Account">account</a> for a given company&apos;s connection.<br/>
33+
/// <br/>
34+
/// <a href="https://docs.codat.io/sync-for-payables-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/sync-for-payables-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);
45+
46+
/// <summary>
47+
/// Get account
48+
///
49+
/// <remarks>
50+
/// The *Get account* endpoint returns a single account for a given `accountId`.<br/>
51+
/// <br/>
52+
/// <a href="https://docs.codat.io/sync-for-payables-api#/schemas/Account">Accounts</a> are the categories a business uses to record accounting transactions.<br/>
53+
/// <br/>
54+
/// 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 getting a specific account.<br/>
55+
/// <br/>
56+
/// Before using this endpoint, you must have <a href="https://docs.codat.io/sync-for-payables-api#/operations/refresh-company-data">retrieved data for the company</a>.<br/>
57+
///
58+
/// </remarks>
59+
/// </summary>
2560
Task<GetAccountResponse> GetAsync(GetAccountRequest? request = null);
61+
62+
/// <summary>
63+
/// Get create account model
64+
///
65+
/// <remarks>
66+
/// The *Get create account model* endpoint returns the expected data for the request payload when creating an <a href="https://docs.codat.io/sync-for-payables-api#/schemas/Account">account</a> for a given company and integration.<br/>
67+
/// <br/>
68+
/// <a href="https://docs.codat.io/sync-for-payables-api#/schemas/Account">Accounts</a> are the categories a business uses to record accounting transactions.<br/>
69+
/// <br/>
70+
/// **Integration-specific behaviour**<br/>
71+
/// <br/>
72+
/// See the *response examples* for integration-specific indicative models.<br/>
73+
/// <br/>
74+
/// 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/>
75+
///
76+
/// </remarks>
77+
/// </summary>
2678
Task<GetCreateAccountModelResponse> GetCreateModelAsync(GetCreateAccountModelRequest? request = null);
79+
80+
/// <summary>
81+
/// List accounts
82+
///
83+
/// <remarks>
84+
/// The *List accounts* endpoint returns a list of <a href="https://docs.codat.io/sync-for-payables-api#/schemas/Account">accounts</a> for a given company&apos;s connection.<br/>
85+
/// <br/>
86+
/// <a href="https://docs.codat.io/sync-for-payables-api#/schemas/Account">Accounts</a> are the categories a business uses to record accounting transactions.<br/>
87+
/// <br/>
88+
/// Before using this endpoint, you must have <a href="https://docs.codat.io/sync-for-payables-api#/operations/refresh-company-data">retrieved data for the company</a>.
89+
/// </remarks>
90+
/// </summary>
2791
Task<ListAccountsResponse> ListAsync(ListAccountsRequest? request = null);
2892
}
2993

30-
/// <summary>
31-
/// Accounts
32-
/// </summary>
3394
public class AccountsSDK: IAccountsSDK
3495
{
3596
public SDKConfig Config { get; private set; }
3697
private const string _language = "csharp";
37-
private const string _sdkVersion = "0.4.0";
38-
private const string _sdkGenVersion = "2.113.0";
98+
private const string _sdkVersion = "1.1.0";
99+
private const string _sdkGenVersion = "2.116.0";
39100
private const string _openapiDocVersion = "3.0.0";
40101
private string _serverUrl = "";
41102
private ISpeakeasyHttpClient _defaultClient;
@@ -50,22 +111,6 @@ public AccountsSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient secu
50111
}
51112

52113

53-
/// <summary>
54-
/// Create account
55-
///
56-
/// <remarks>
57-
/// The *Create account* endpoint creates a new [account](https://docs.codat.io/sync-for-payables-api#/schemas/Account) for a given company's connection.
58-
///
59-
/// [Accounts](https://docs.codat.io/sync-for-payables-api#/schemas/Account) are the categories a business uses to record accounting transactions.
60-
///
61-
/// **Integration-specific behaviour**
62-
///
63-
/// Required data may vary by integration. To see what data to post, first call [Get create account model](https://docs.codat.io/sync-for-payables-api#/operations/get-create-chartOfAccounts-model).
64-
///
65-
/// 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.
66-
///
67-
/// </remarks>
68-
/// </summary>
69114
public async Task<Models.Operations.CreateAccountResponse> CreateAsync(CreateAccountRequest? request = null)
70115
{
71116
string baseUrl = _serverUrl;
@@ -119,20 +164,6 @@ public AccountsSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient secu
119164
}
120165

121166

122-
/// <summary>
123-
/// Get account
124-
///
125-
/// <remarks>
126-
/// The *Get account* endpoint returns a single account for a given `accountId`.
127-
///
128-
/// [Accounts](https://docs.codat.io/sync-for-payables-api#/schemas/Account) are the categories a business uses to record accounting transactions.
129-
///
130-
/// Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=chartOfAccounts) for integrations that support getting a specific account.
131-
///
132-
/// Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-payables-api#/operations/refresh-company-data).
133-
///
134-
/// </remarks>
135-
/// </summary>
136167
public async Task<GetAccountResponse> GetAsync(GetAccountRequest? request = null)
137168
{
138169
string baseUrl = _serverUrl;
@@ -181,22 +212,6 @@ public async Task<GetAccountResponse> GetAsync(GetAccountRequest? request = null
181212
}
182213

183214

184-
/// <summary>
185-
/// Get create account model
186-
///
187-
/// <remarks>
188-
/// The *Get create account model* endpoint returns the expected data for the request payload when creating an [account](https://docs.codat.io/sync-for-payables-api#/schemas/Account) for a given company and integration.
189-
///
190-
/// [Accounts](https://docs.codat.io/sync-for-payables-api#/schemas/Account) are the categories a business uses to record accounting transactions.
191-
///
192-
/// **Integration-specific behaviour**
193-
///
194-
/// See the *response examples* for integration-specific indicative models.
195-
///
196-
/// 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.
197-
///
198-
/// </remarks>
199-
/// </summary>
200215
public async Task<GetCreateAccountModelResponse> GetCreateModelAsync(GetCreateAccountModelRequest? request = null)
201216
{
202217
string baseUrl = _serverUrl;
@@ -245,17 +260,6 @@ public async Task<GetCreateAccountModelResponse> GetCreateModelAsync(GetCreateAc
245260
}
246261

247262

248-
/// <summary>
249-
/// List accounts
250-
///
251-
/// <remarks>
252-
/// The *List accounts* endpoint returns a list of [accounts](https://docs.codat.io/sync-for-payables-api#/schemas/Account) for a given company's connection.
253-
///
254-
/// [Accounts](https://docs.codat.io/sync-for-payables-api#/schemas/Account) are the categories a business uses to record accounting transactions.
255-
///
256-
/// Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/sync-for-payables-api#/operations/refresh-company-data).
257-
/// </remarks>
258-
/// </summary>
259263
public async Task<ListAccountsResponse> ListAsync(ListAccountsRequest? request = null)
260264
{
261265
string baseUrl = _serverUrl;

0 commit comments

Comments
 (0)