Skip to content

Commit 2972a53

Browse files
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.447.0 (#329)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
1 parent 007076c commit 2972a53

File tree

113 files changed

+1516
-733
lines changed

Some content is hidden

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

113 files changed

+1516
-733
lines changed

.speakeasy/workflow.lock

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,12 @@ sources:
3232
- "1.1"
3333
sync-for-expenses-source:
3434
sourceNamespace: sync-for-expenses-source
35-
sourceRevisionDigest: sha256:29b3738ed98f81087388bc423a26d18d807ebff3e1fe826a8c3d38ec257526ad
36-
sourceBlobDigest: sha256:8ff5db8d481a4d93a95e36d83aee7ea08d38383a681da291f47206e4153bb757
35+
sourceRevisionDigest: sha256:bce4f7554ac962747b9beb73543366d4297eb7efc8e9fccc28e8bf6b29c5db31
36+
sourceBlobDigest: sha256:abe56a70fc7e5c5883c7e8a6bef59d69ceb2dc4eddbb3106ae06b6c5acb38408
3737
tags:
3838
- latest
39-
- main
39+
- speakeasy-sdk-regen-1732638512
40+
- prealpha
4041
sync-for-payables-source:
4142
sourceNamespace: sync-for-payables-source
4243
sourceRevisionDigest: sha256:f1bb2a4dee08d524c8009ee2c6970011d967511542e4ebf384f0574e93c24a18
@@ -88,8 +89,10 @@ targets:
8889
sync-for-expenses-library:
8990
source: sync-for-expenses-source
9091
sourceNamespace: sync-for-expenses-source
91-
sourceRevisionDigest: sha256:29b3738ed98f81087388bc423a26d18d807ebff3e1fe826a8c3d38ec257526ad
92-
sourceBlobDigest: sha256:8ff5db8d481a4d93a95e36d83aee7ea08d38383a681da291f47206e4153bb757
92+
sourceRevisionDigest: sha256:bce4f7554ac962747b9beb73543366d4297eb7efc8e9fccc28e8bf6b29c5db31
93+
sourceBlobDigest: sha256:abe56a70fc7e5c5883c7e8a6bef59d69ceb2dc4eddbb3106ae06b6c5acb38408
94+
codeSamplesNamespace: sync-for-expenses-source-code-samples
95+
codeSamplesRevisionDigest: sha256:96de587bc3726f162c82db1b0257026b0239c2f4485e4fcb10793f871462b735
9396
sync-for-payables-library:
9497
source: sync-for-payables-source
9598
sourceNamespace: sync-for-payables-source

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

Lines changed: 136 additions & 85 deletions
Large diffs are not rendered by default.

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,19 @@ generation:
1111
requestResponseComponentNamesFeb2024: true
1212
auth:
1313
oAuth2ClientCredentialsEnabled: false
14+
oAuth2PasswordEnabled: false
1415
csharp:
15-
version: 6.1.0
16+
version: 7.0.0
1617
additionalDependencies: []
1718
author: Codat
1819
clientServerStatusCodesAsErrors: true
20+
defaultErrorName: SDKException
1921
description: Push expenses to accounting platforms.
2022
disableNamespacePascalCasingApr2024: true
2123
dotnetVersion: net8.0
2224
enableSourceLink: false
2325
flattenGlobalSecurity: true
26+
flatteningOrder: ""
2427
imports:
2528
option: openapi
2629
paths:
@@ -32,6 +35,7 @@ csharp:
3235
includeDebugSymbols: false
3336
inputModelSuffix: input
3437
maxMethodParams: 0
38+
methodArguments: infer-optional-args
3539
outputModelSuffix: output
3640
packageName: Codat.Sync.Expenses
3741
packageTags: ""

sync-for-expenses/Codat/Sync/Expenses/Accounts.cs

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,7 @@ public interface IAccounts
3838
/// <br/>
3939
/// **Integration-specific behaviour**<br/>
4040
/// <br/>
41-
/// Required data may vary by integration. To see what data to post, first call <a href="https://docs.codat.io/sync-for-expenses-api#/operations/get-create-chartOfAccounts-model">Get create account model</a>.<br/>
42-
/// <br/>
43-
/// 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/>
44-
///
41+
/// Required data may vary by integration. To see what data to post, first call <a href="https://docs.codat.io/sync-for-expenses-api#/operations/get-create-chartOfAccounts-model">Get create account model</a>.
4542
/// </remarks>
4643
/// </summary>
4744
Task<Models.Requests.CreateAccountResponse> CreateAsync(CreateAccountRequest request, RetryConfig? retryConfig = null);
@@ -56,10 +53,7 @@ public interface IAccounts
5653
/// <br/>
5754
/// **Integration-specific behaviour**<br/>
5855
/// <br/>
59-
/// See the *response examples* for integration-specific indicative models.<br/>
60-
/// <br/>
61-
/// 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/>
62-
///
56+
/// See the *response examples* for integration-specific indicative models.
6357
/// </remarks>
6458
/// </summary>
6559
Task<GetCreateChartOfAccountsModelResponse> GetCreateModelAsync(GetCreateChartOfAccountsModelRequest request, RetryConfig? retryConfig = null);
@@ -72,10 +66,10 @@ public class Accounts: IAccounts
7266
{
7367
public SDKConfig SDKConfiguration { get; private set; }
7468
private const string _language = "csharp";
75-
private const string _sdkVersion = "6.1.0";
76-
private const string _sdkGenVersion = "2.422.6";
69+
private const string _sdkVersion = "7.0.0";
70+
private const string _sdkGenVersion = "2.463.0";
7771
private const string _openapiDocVersion = "prealpha";
78-
private const string _userAgent = "speakeasy-sdk/csharp 6.1.0 2.422.6 prealpha Codat.Sync.Expenses";
72+
private const string _userAgent = "speakeasy-sdk/csharp 7.0.0 2.463.0 prealpha Codat.Sync.Expenses";
7973
private string _serverUrl = "";
8074
private ISpeakeasyHttpClient _client;
8175
private Func<Codat.Sync.Expenses.Models.Components.Security>? _securitySource;

sync-for-expenses/Codat/Sync/Expenses/Adjustments.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ public class Adjustments: IAdjustments
5353
{
5454
public SDKConfig SDKConfiguration { get; private set; }
5555
private const string _language = "csharp";
56-
private const string _sdkVersion = "6.1.0";
57-
private const string _sdkGenVersion = "2.422.6";
56+
private const string _sdkVersion = "7.0.0";
57+
private const string _sdkGenVersion = "2.463.0";
5858
private const string _openapiDocVersion = "prealpha";
59-
private const string _userAgent = "speakeasy-sdk/csharp 6.1.0 2.422.6 prealpha Codat.Sync.Expenses";
59+
private const string _userAgent = "speakeasy-sdk/csharp 7.0.0 2.463.0 prealpha Codat.Sync.Expenses";
6060
private string _serverUrl = "";
6161
private ISpeakeasyHttpClient _client;
6262
private Func<Codat.Sync.Expenses.Models.Components.Security>? _securitySource;

sync-for-expenses/Codat/Sync/Expenses/Attachments.cs

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,20 @@ public interface IAttachments
3434
/// <remarks>
3535
/// The *Upload attachment* endpoint uploads an attachment in the accounting software against the given transactionId. <br/>
3636
/// <br/>
37-
/// <a href="https://docs.codat.io/sync-for-expenses-api#/schemas/ExpenseTransaction">Expense transactions</a> represent transactions made with a company debit or credit card. <br/>
37+
/// <a href="https://docs.codat.io/sync-for-expenses-api#/schemas/ExpenseTransaction">Expense transactions</a> represent transactions made with a company debit or credit card. Attachments for `Adjustment` and `Transfer` transaction types are not supported for any integrations.<br/>
3838
/// <br/>
3939
/// **Integration-specific behaviour**<br/>
4040
/// <br/>
4141
/// Each accounting software supports different file formats and sizes.<br/>
4242
/// <br/>
43-
/// | Integration | File Size | File Extension | <br/>
44-
/// |-------------|-------------|--------------------------------------------------------------------------------------------------------------|<br/>
45-
/// | Xero | 3MB | 7Z, BMP, CSV, DOC, DOCX, EML, GIF, JPEG, JPG, KEYNOTE, MSG, NUMBERS, ODF, ODS, ODT, PAGES, PDF, PNG, PPT, PPTX, RAR, RTF, TIF, TIFF, TXT, XLS, XLSX, ZIP |<br/>
46-
/// | QuickBooks Online | 100MB | AI, CSV, DOC, DOCX, EPS, GIF, JPEG, JPG, ODS, PAGES, PDF, PNG, RTF, TIF, TXT, XLS, XLSX, XML |<br/>
47-
/// | NetSuite | 100MB | BMP, CSV, XLS, XLSX, JSON, PDF, PJPG, PJPEG, PNG, TXT, SVG, TIF, TIFF, DOC, DOCX, ZIP |<br/>
48-
/// | Dynamics 365 Business Central | 350 MB | Dynamics do not explicitly outline which file types are supported but they do state &lt;a className=&quot;external&quot; href=&quot;https://learn.microsoft.com/en-gb/dynamics365/business-central/ui-how-add-link-to-record#to-attach-a-file-to-a-purchase-invoice&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt; that &quot;You can attach any type of file, such as text, image, or video files&quot;. |
43+
/// | Integration | File size | File extension |Supported transaction type<br/>
44+
/// |-------------------|-----------|------------------------------------------------------------------------------------------------------------------------------------------------|--------------|<br/>
45+
/// | **Xero** | 3 MB | 7Z, BMP, CSV, DOC, DOCX, EML, GIF, JPEG, JPG, KEYNOTE, MSG, NUMBERS, ODF, ODS, ODT, PAGES, PDF, PNG, PPT, PPTX, RAR, RTF, TIF, TIFF, TXT, XLS, XLSX, ZIP | All supported types |<br/>
46+
/// | **QuickBooks Online** | 100 MB | AI, CSV, DOC, DOCX, EPS, GIF, JPEG, JPG, ODS, PAGES, PDF, PNG, RTF, TIF, TXT, XLS, XLSX, XML | `ReimbursableExpenses`, `ExpensePayment`, `ExpenseRefund` |<br/>
47+
/// | **NetSuite** | 100 MB | BMP, CSV, XLS, XLSX, JSON, PDF, PJPG, PJPEG, PNG, TXT, SVG, TIF, TIFF, DOC, DOCX, ZIP |`ExpensePayment`, `ExpenseRefund` |<br/>
48+
/// | **Dynamics 365 Business Central** | 350 MB | <a href="https://learn.microsoft.com/en-gb/dynamics365/business-central/ui-how-add-link-to-record#to-attach-a-file-to-a-purchase-invoice">No explicit requirements outlined</a> for text, image, and video files. | All supported types<br/>
49+
/// | **QuickBooks Desktop** | NA | Does not support attachment upload | N/A |<br/>
50+
/// | **FreeAgent** | 5MB | PNG, X-PNG, JPEG, PJG, GIF, X-PDF
4951
/// </remarks>
5052
/// </summary>
5153
Task<UploadExpenseAttachmentResponse> UploadAsync(UploadExpenseAttachmentRequest request, RetryConfig? retryConfig = null);
@@ -58,10 +60,10 @@ public class Attachments: IAttachments
5860
{
5961
public SDKConfig SDKConfiguration { get; private set; }
6062
private const string _language = "csharp";
61-
private const string _sdkVersion = "6.1.0";
62-
private const string _sdkGenVersion = "2.422.6";
63+
private const string _sdkVersion = "7.0.0";
64+
private const string _sdkGenVersion = "2.463.0";
6365
private const string _openapiDocVersion = "prealpha";
64-
private const string _userAgent = "speakeasy-sdk/csharp 6.1.0 2.422.6 prealpha Codat.Sync.Expenses";
66+
private const string _userAgent = "speakeasy-sdk/csharp 7.0.0 2.463.0 prealpha Codat.Sync.Expenses";
6567
private string _serverUrl = "";
6668
private ISpeakeasyHttpClient _client;
6769
private Func<Codat.Sync.Expenses.Models.Components.Security>? _securitySource;

sync-for-expenses/Codat/Sync/Expenses/BankAccounts.cs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ public interface IBankAccounts
3838
/// <br/>
3939
/// **Integration-specific behaviour**<br/>
4040
/// <br/>
41-
/// Required data may vary by integration. To see what data to post, first call <a href="https://docs.codat.io/sync-for-expenses-api#/operations/get-create-update-bankAccounts-model">Get create/update bank account model</a>.<br/>
42-
/// <br/>
43-
/// Check out our <a href="https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&amp;dataType=bankAccounts">coverage explorer</a> for integrations that support creating an account.
41+
/// Required data may vary by integration. To see what data to post, first call <a href="https://docs.codat.io/sync-for-expenses-api#/operations/get-create-update-bankAccounts-model">Get create/update bank account model</a>.
4442
/// </remarks>
4543
/// </summary>
4644
Task<Models.Requests.CreateBankAccountResponse> CreateAsync(CreateBankAccountRequest request, RetryConfig? retryConfig = null);
@@ -56,8 +54,6 @@ public interface IBankAccounts
5654
/// **Integration-specific behaviour**<br/>
5755
/// <br/>
5856
/// See the *response examples* for integration-specific indicative models.<br/>
59-
/// <br/>
60-
/// Check out our <a href="https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&amp;dataType=bankAccounts">coverage explorer</a> for integrations that support creating and updating a bank account.<br/>
6157
///
6258
/// </remarks>
6359
/// </summary>
@@ -71,10 +67,10 @@ public class BankAccounts: IBankAccounts
7167
{
7268
public SDKConfig SDKConfiguration { get; private set; }
7369
private const string _language = "csharp";
74-
private const string _sdkVersion = "6.1.0";
75-
private const string _sdkGenVersion = "2.422.6";
70+
private const string _sdkVersion = "7.0.0";
71+
private const string _sdkGenVersion = "2.463.0";
7672
private const string _openapiDocVersion = "prealpha";
77-
private const string _userAgent = "speakeasy-sdk/csharp 6.1.0 2.422.6 prealpha Codat.Sync.Expenses";
73+
private const string _userAgent = "speakeasy-sdk/csharp 7.0.0 2.463.0 prealpha Codat.Sync.Expenses";
7874
private string _serverUrl = "";
7975
private ISpeakeasyHttpClient _client;
8076
private Func<Codat.Sync.Expenses.Models.Components.Security>? _securitySource;

sync-for-expenses/Codat/Sync/Expenses/Codat.Sync.Expenses.csproj

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -3,43 +3,43 @@
33
<PropertyGroup>
44
<IsPackable>true</IsPackable>
55
<PackageId>Codat.Sync.Expenses</PackageId>
6-
<Version>6.1.0</Version>
6+
<Version>7.0.0</Version>
77
<TargetFramework>net8.0</TargetFramework>
88
<Authors>Codat</Authors>
99
<Copyright>Copyright (c) Codat 2024</Copyright>
1010
<RepositoryUrl>https://github.com/codatio/client-sdk-csharp.git</RepositoryUrl>
1111
<RepositoryType>git</RepositoryType>
12-
<Description>Sync for Expenses: The API for Sync for Expenses.
13-
14-
Sync for Expenses is an API and a set of supporting tools. It has been built to
15-
enable corporate card and expense management platforms to provide high-quality
16-
integrations with multiple accounting software through a standardized API.
17-
18-
[Explore product](https://docs.codat.io/sync-for-expenses/overview) | [See our OpenAPI spec](https://github.com/codatio/oas)
19-
20-
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 Expenses](https://docs.codat.io/sync-for-expenses-v1-api#/).
21-
22-
---
23-
<!-- Start Codat Tags Table -->
24-
## Endpoints
25-
26-
| Endpoints | Description |
27-
| :- |:- |
28-
| Companies | Create and manage your SMB users' companies. |
29-
| Connections | Create new and manage existing data connections for a company. |
30-
| Configuration | View and manage mapping configuration and defaults for expense transactions. |
31-
| Sync | Monitor the status of data syncs. |
32-
| Expenses | Create and update transactions that represent your customers' spend. |
33-
| Transfers | Create and update transactions that represent the movement of your customers' money. |
34-
| Reimbursements | Create and update transactions that represent your customers' repayable spend. |
35-
| Attachments | Attach receipts to a transaction for a complete audit trail. |
36-
| Transaction status | Monitor the status of individual transactions in data syncs. |
37-
| Manage data | Control and monitor the retrieval of data from an integration. |
38-
| Push operations | View historic push operations. |
39-
| Accounts | Create accounts and view account schemas. |
40-
| Customers | Get, create, and update customers. |
41-
| Suppliers | Get, create, and update suppliers. |
42-
<!-- End Codat Tags Table --></Description>
12+
<Description>Sync for Expenses: The API for Sync for Expenses.<br/>
13+
<br/>
14+
Sync for Expenses is an API and a set of supporting tools. It has been built to<br/>
15+
enable corporate card and expense management platforms to provide high-quality<br/>
16+
integrations with multiple accounting software through a standardized API.<br/>
17+
<br/>
18+
<a href="https://docs.codat.io/sync-for-expenses/overview">Explore product</a> | <a href="https://github.com/codatio/oas">See our OpenAPI spec</a><br/>
19+
<br/>
20+
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 Expenses</a>.<br/>
21+
<br/>
22+
---<br/>
23+
&lt;!-- Start Codat Tags Table --&gt;<br/>
24+
## Endpoints<br/>
25+
<br/>
26+
| Endpoints | Description |<br/>
27+
| :- |:- |<br/>
28+
| Companies | Create and manage your SMB users&apos; companies. |<br/>
29+
| Connections | Create new and manage existing data connections for a company. |<br/>
30+
| Configuration | View and manage mapping configuration and defaults for expense transactions. |<br/>
31+
| Sync | Monitor the status of data syncs. |<br/>
32+
| Expenses | Create and update transactions that represent your customers&apos; spend. |<br/>
33+
| Transfers | Create and update transactions that represent the movement of your customers&apos; money. |<br/>
34+
| Reimbursements | Create and update transactions that represent your customers&apos; repayable spend. |<br/>
35+
| Attachments | Attach receipts to a transaction for a complete audit trail. |<br/>
36+
| Transaction status | Monitor the status of individual transactions in data syncs. |<br/>
37+
| Manage data | Control and monitor the retrieval of data from an integration. |<br/>
38+
| Push operations | View historic push operations. |<br/>
39+
| Accounts | Create accounts and view account schemas. |<br/>
40+
| Customers | Get, create, and update customers. |<br/>
41+
| Suppliers | Get, create, and update suppliers. |<br/>
42+
&lt;!-- End Codat Tags Table --&gt;</Description>
4343
</PropertyGroup>
4444

4545
<PropertyGroup>

sync-for-expenses/Codat/Sync/Expenses/CodatSyncExpenses.cs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ public interface ICodatSyncExpenses
6969
/// </summary>
7070
public IConnections Connections { get; }
7171

72+
/// <summary>
73+
/// View the company information of your customers&apos; linked accounting software.
74+
/// </summary>
75+
public ICompanyInfo CompanyInfo { get; }
76+
7277
/// <summary>
7378
/// View and manage mapping configuration and defaults for expense transactions.
7479
/// </summary>
@@ -221,16 +226,17 @@ public class CodatSyncExpenses: ICodatSyncExpenses
221226
public SDKConfig SDKConfiguration { get; private set; }
222227

223228
private const string _language = "csharp";
224-
private const string _sdkVersion = "6.1.0";
225-
private const string _sdkGenVersion = "2.422.6";
229+
private const string _sdkVersion = "7.0.0";
230+
private const string _sdkGenVersion = "2.463.0";
226231
private const string _openapiDocVersion = "prealpha";
227-
private const string _userAgent = "speakeasy-sdk/csharp 6.1.0 2.422.6 prealpha Codat.Sync.Expenses";
232+
private const string _userAgent = "speakeasy-sdk/csharp 7.0.0 2.463.0 prealpha Codat.Sync.Expenses";
228233
private string _serverUrl = "";
229234
private int _serverIndex = 0;
230235
private ISpeakeasyHttpClient _client;
231236
private Func<Codat.Sync.Expenses.Models.Components.Security>? _securitySource;
232237
public ICompanies Companies { get; private set; }
233238
public IConnections Connections { get; private set; }
239+
public ICompanyInfo CompanyInfo { get; private set; }
234240
public IConfiguration Configuration { get; private set; }
235241
public IMappingOptions MappingOptions { get; private set; }
236242
public ISync Sync { get; private set; }
@@ -298,6 +304,9 @@ public CodatSyncExpenses(string? authHeader = null, Func<string>? authHeaderSour
298304
Connections = new Connections(_client, _securitySource, _serverUrl, SDKConfiguration);
299305

300306

307+
CompanyInfo = new CompanyInfo(_client, _securitySource, _serverUrl, SDKConfiguration);
308+
309+
301310
Configuration = new Configuration(_client, _securitySource, _serverUrl, SDKConfiguration);
302311

303312

0 commit comments

Comments
 (0)