Skip to content

Commit ef88063

Browse files
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.396.6 (#306)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
1 parent 6e8902a commit ef88063

File tree

390 files changed

+8371
-4348
lines changed

Some content is hidden

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

390 files changed

+8371
-4348
lines changed

.speakeasy/workflow.lock

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ sources:
4242
tags:
4343
- latest
4444
- main
45+
sync-for-payroll-source:
46+
sourceNamespace: sync-for-payroll-source
47+
sourceRevisionDigest: sha256:bc65498e99dadc8f219637655003bc96b3a74072424793cfa00f84c4c9a80e74
48+
sourceBlobDigest: sha256:367f56c8bbc3e5f79b13390764a0e77ad2d9d25ca3e515c1c62b19fe459d927c
49+
tags:
50+
- latest
51+
- main
4552
targets:
4653
bank-feeds-library:
4754
source: bank-feeds-source
@@ -73,6 +80,11 @@ targets:
7380
sourceNamespace: sync-for-payables-version-1-source
7481
sourceRevisionDigest: sha256:8a265bac8fe5d0a020e2e098459e0d2336d69f6acb919efab1e20e2b0ba4dc79
7582
sourceBlobDigest: sha256:e1fb1fe0af40cf137b8b320fd75e913c83e54e0a2bb2e80a5af69e0bce409e71
83+
sync-for-payroll-library:
84+
source: sync-for-payroll-source
85+
sourceNamespace: sync-for-payroll-source
86+
sourceRevisionDigest: sha256:bc65498e99dadc8f219637655003bc96b3a74072424793cfa00f84c4c9a80e74
87+
sourceBlobDigest: sha256:367f56c8bbc3e5f79b13390764a0e77ad2d9d25ca3e515c1c62b19fe459d927c
7688
workflow:
7789
workflowVersion: 1.0.0
7890
speakeasyVersion: latest
@@ -113,6 +125,8 @@ workflow:
113125
sync-for-payroll-source:
114126
inputs:
115127
- location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Payroll.yaml
128+
registry:
129+
location: registry.speakeasyapi.dev/codat/codat/sync-for-payroll-source
116130
targets:
117131
bank-feeds-library:
118132
target: csharp

.speakeasy/workflow.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ sources:
3737
sync-for-payroll-source:
3838
inputs:
3939
- location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Payroll.yaml
40+
registry:
41+
location: registry.speakeasyapi.dev/codat/codat/sync-for-payroll-source
4042
targets:
4143
bank-feeds-library:
4244
target: csharp

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

Lines changed: 2150 additions & 329 deletions
Large diffs are not rendered by default.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ csharp:
3535
outputModelSuffix: output
3636
packageName: Codat.Sync.Payroll
3737
packageTags: ""
38-
responseFormat: envelope
38+
responseFormat: envelope

sync-for-payroll/CONTRIBUTING.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Contributing to This Repository
2+
3+
Thank you for your interest in contributing to this repository. Please note that this repository contains generated code. As such, we do not accept direct changes or pull requests. Instead, we encourage you to follow the guidelines below to report issues and suggest improvements.
4+
5+
## How to Report Issues
6+
7+
If you encounter any bugs or have suggestions for improvements, please open an issue on GitHub. When reporting an issue, please provide as much detail as possible to help us reproduce the problem. This includes:
8+
9+
- A clear and descriptive title
10+
- Steps to reproduce the issue
11+
- Expected and actual behavior
12+
- Any relevant logs, screenshots, or error messages
13+
- Information about your environment (e.g., operating system, software versions)
14+
- For example can be collected using the `npx envinfo` command from your terminal if you have Node.js installed
15+
16+
## Issue Triage and Upstream Fixes
17+
18+
We will review and triage issues as quickly as possible. Our goal is to address bugs and incorporate improvements in the upstream source code. Fixes will be included in the next generation of the generated code.
19+
20+
## Contact
21+
22+
If you have any questions or need further assistance, please feel free to reach out by opening an issue.
23+
24+
Thank you for your understanding and cooperation!
25+
26+
The Maintainers

sync-for-payroll/Codat/Sync/Payroll/Accounts.cs

Lines changed: 215 additions & 71 deletions
Large diffs are not rendered by default.
Lines changed: 42 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,56 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2+
23
<PropertyGroup>
34
<IsPackable>true</IsPackable>
45
<PackageId>Codat.Sync.Payroll</PackageId>
5-
<Version>3.1.0</Version>
6+
<Version>4.0.0</Version>
7+
<TargetFramework>net8.0</TargetFramework>
68
<Authors>Codat</Authors>
7-
<TargetFramework>net6.0</TargetFramework>
9+
<Copyright>Copyright (c) Codat 2024</Copyright>
10+
<RepositoryUrl>https://github.com/codatio/client-sdk-csharp.git</RepositoryUrl>
11+
<RepositoryType>git</RepositoryType>
12+
<Description>Sync for Payroll: The API for Sync for Payroll.
13+
14+
Sync for Payroll is an API and a set of supporting tools built to help integrate your customers' payroll data from their HR and payroll platforms into their accounting software and to support its reconciliation.
15+
16+
[Explore product](https://docs.codat.io/payroll/overview) | [See OpenAPI spec](https://github.com/codatio/oas)
17+
18+
---
19+
20+
<!-- Start Codat Tags Table -->
21+
## Endpoints
22+
23+
| Endpoints | Description |
24+
| :- |:- |
25+
| Companies | Create and manage your SMB users' companies. |
26+
| Connections | Create new and manage existing data connections for a company. |
27+
| Accounts | Get, create, and update Accounts. |
28+
| Journal entries | Get, create, and update Journal entries. |
29+
| Journals | Get, create, and update Journals. |
30+
| Tracking categories | Get, create, and update Tracking Categories for additional categorization of payroll components. |
31+
| Company info | View company profile from the source platform. |
32+
| Manage data | Control how data is retrieved from an integration. |
33+
<!-- End Codat Tags Table --></Description>
34+
</PropertyGroup>
35+
36+
<PropertyGroup>
837
<Nullable>enable</Nullable>
9-
<PackageReadmeFile>README.md</PackageReadmeFile>
10-
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1138
<NoWarn>1591</NoWarn>
12-
<RepositoryUrl>https://github.com/codatio/client-sdk-csharp</RepositoryUrl>
39+
</PropertyGroup>
40+
41+
<PropertyGroup>
42+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
43+
<PackageReadmeFile>README.md</PackageReadmeFile>
1344
</PropertyGroup>
1445

1546
<ItemGroup>
16-
<None Include="../README.md" Pack="true" PackagePath="/"/>
17-
<None Include="../docs/*" Pack="true" PackagePath="/docs"/>
47+
<None Include="..\..\..\NUGET.md" Pack="true" PackagePath="README.md"/>
48+
<None Include="..\..\..\docs\**\*" Pack="true" PackagePath="\docs" CopyToOutputDirectory="PreserveNewest"/>
49+
</ItemGroup>
1850

51+
<ItemGroup>
1952
<PackageReference Include="newtonsoft.json" Version="13.0.3" />
2053
<PackageReference Include="nodatime" Version="3.1.9" />
2154
</ItemGroup>
22-
</Project>
55+
56+
</Project>

sync-for-payroll/Codat/Sync/Payroll/CodatSyncPayroll.cs

Lines changed: 40 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
21
//------------------------------------------------------------------------------
32
// <auto-generated>
4-
// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
3+
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
54
//
65
// Changes to this file may cause incorrect behavior and will be lost when
76
// the code is regenerated.
@@ -11,8 +10,9 @@
1110
namespace Codat.Sync.Payroll
1211
{
1312
using Codat.Sync.Payroll.Hooks;
13+
using Codat.Sync.Payroll.Models.Components;
1414
using Codat.Sync.Payroll.Models.Errors;
15-
using Codat.Sync.Payroll.Models.Shared;
15+
using Codat.Sync.Payroll.Utils.Retries;
1616
using Codat.Sync.Payroll.Utils;
1717
using Newtonsoft.Json;
1818
using System.Collections.Generic;
@@ -25,7 +25,7 @@ namespace Codat.Sync.Payroll
2525
///
2626
/// <remarks>
2727
/// <br/>
28-
/// Sync for Payroll is an API and a set of supporting tools built to help integrate your customers&apos; payroll data from their HR and payroll platforms into their accounting platforms and to support its reconciliation.<br/>
28+
/// Sync for Payroll is an API and a set of supporting tools built to help integrate your customers&apos; payroll data from their HR and payroll platforms into their accounting software and to support its reconciliation.<br/>
2929
/// <br/>
3030
/// <a href="https://docs.codat.io/payroll/overview">Explore product</a> | <a href="https://github.com/codatio/oas">See OpenAPI spec</a><br/>
3131
/// <br/>
@@ -60,6 +60,11 @@ public interface ICodatSyncPayroll
6060
/// </summary>
6161
public IConnections Connections { get; }
6262

63+
/// <summary>
64+
/// Control how data is retrieved from an integration.
65+
/// </summary>
66+
public IManageData ManageData { get; }
67+
6368
/// <summary>
6469
/// Get, create, and update Accounts.
6570
/// </summary>
@@ -76,19 +81,14 @@ public interface ICodatSyncPayroll
7681
public IJournals Journals { get; }
7782

7883
/// <summary>
79-
/// Control how data is retrieved from an integration.
84+
/// Get, create, and update Tracking Categories for additional categorization of payroll components.
8085
/// </summary>
81-
public IManageData ManageData { get; }
86+
public ITrackingCategories TrackingCategories { get; }
8287

8388
/// <summary>
8489
/// View company profile from the source platform.
8590
/// </summary>
8691
public ICompanyInfo CompanyInfo { get; }
87-
88-
/// <summary>
89-
/// Get, create, and update Tracking Categories for additional categorization of payroll components.
90-
/// </summary>
91-
public ITrackingCategories TrackingCategories { get; }
9292
}
9393

9494
public class SDKConfig
@@ -102,7 +102,8 @@ public class SDKConfig
102102

103103
public string ServerUrl = "";
104104
public int ServerIndex = 0;
105-
public SDKHooks hooks = new SDKHooks();
105+
public SDKHooks Hooks = new SDKHooks();
106+
public RetryConfig? RetryConfig = null;
106107

107108
public string GetTemplatedServerUrl()
108109
{
@@ -116,7 +117,7 @@ public string GetTemplatedServerUrl()
116117
public ISpeakeasyHttpClient InitHooks(ISpeakeasyHttpClient client)
117118
{
118119
string preHooksUrl = GetTemplatedServerUrl();
119-
var (postHooksUrl, postHooksClient) = this.hooks.SDKInit(preHooksUrl, client);
120+
var (postHooksUrl, postHooksClient) = this.Hooks.SDKInit(preHooksUrl, client);
120121
if (preHooksUrl != postHooksUrl)
121122
{
122123
this.ServerUrl = postHooksUrl;
@@ -130,7 +131,7 @@ public ISpeakeasyHttpClient InitHooks(ISpeakeasyHttpClient client)
130131
///
131132
/// <remarks>
132133
/// <br/>
133-
/// Sync for Payroll is an API and a set of supporting tools built to help integrate your customers&apos; payroll data from their HR and payroll platforms into their accounting platforms and to support its reconciliation.<br/>
134+
/// Sync for Payroll is an API and a set of supporting tools built to help integrate your customers&apos; payroll data from their HR and payroll platforms into their accounting software and to support its reconciliation.<br/>
134135
/// <br/>
135136
/// <a href="https://docs.codat.io/payroll/overview">Explore product</a> | <a href="https://github.com/codatio/oas">See OpenAPI spec</a><br/>
136137
/// <br/>
@@ -157,24 +158,24 @@ public class CodatSyncPayroll: ICodatSyncPayroll
157158
public SDKConfig SDKConfiguration { get; private set; }
158159

159160
private const string _language = "csharp";
160-
private const string _sdkVersion = "3.1.0";
161-
private const string _sdkGenVersion = "2.319.7";
161+
private const string _sdkVersion = "4.0.0";
162+
private const string _sdkGenVersion = "2.415.6";
162163
private const string _openapiDocVersion = "3.0.0";
163-
private const string _userAgent = "speakeasy-sdk/csharp 3.1.0 2.319.7 3.0.0 Codat.Sync.Payroll";
164+
private const string _userAgent = "speakeasy-sdk/csharp 4.0.0 2.415.6 3.0.0 Codat.Sync.Payroll";
164165
private string _serverUrl = "";
165166
private int _serverIndex = 0;
166-
private ISpeakeasyHttpClient _defaultClient;
167-
private Func<Security>? _securitySource;
167+
private ISpeakeasyHttpClient _client;
168+
private Func<Codat.Sync.Payroll.Models.Components.Security>? _securitySource;
168169
public ICompanies Companies { get; private set; }
169170
public IConnections Connections { get; private set; }
171+
public IManageData ManageData { get; private set; }
170172
public IAccounts Accounts { get; private set; }
171173
public IJournalEntries JournalEntries { get; private set; }
172174
public IJournals Journals { get; private set; }
173-
public IManageData ManageData { get; private set; }
174-
public ICompanyInfo CompanyInfo { get; private set; }
175175
public ITrackingCategories TrackingCategories { get; private set; }
176+
public ICompanyInfo CompanyInfo { get; private set; }
176177

177-
public CodatSyncPayroll(Security? security = null, Func<Security>? securitySource = null, int? serverIndex = null, string? serverUrl = null, Dictionary<string, string>? urlParams = null, ISpeakeasyHttpClient? client = null)
178+
public CodatSyncPayroll(string? authHeader = null, Func<string>? authHeaderSource = null, int? serverIndex = null, string? serverUrl = null, Dictionary<string, string>? urlParams = null, ISpeakeasyHttpClient? client = null, RetryConfig? retryConfig = null)
178179
{
179180
if (serverIndex != null)
180181
{
@@ -194,52 +195,53 @@ public CodatSyncPayroll(Security? security = null, Func<Security>? securitySourc
194195
_serverUrl = serverUrl;
195196
}
196197

197-
_defaultClient = new SpeakeasyHttpClient(client);
198+
_client = client ?? new SpeakeasyHttpClient();
198199

199-
if(securitySource != null)
200+
if(authHeaderSource != null)
200201
{
201-
_securitySource = securitySource;
202+
_securitySource = () => new Codat.Sync.Payroll.Models.Components.Security() { AuthHeader = authHeaderSource() };
202203
}
203-
else if(security != null)
204+
else if(authHeader != null)
204205
{
205-
_securitySource = () => security;
206+
_securitySource = () => new Codat.Sync.Payroll.Models.Components.Security() { AuthHeader = authHeader };
206207
}
207208
else
208209
{
209-
throw new Exception("security and securitySource cannot both be null");
210+
throw new Exception("authHeader and authHeaderSource cannot both be null");
210211
}
211212

212213
SDKConfiguration = new SDKConfig()
213214
{
214215
ServerIndex = _serverIndex,
215-
ServerUrl = _serverUrl
216+
ServerUrl = _serverUrl,
217+
RetryConfig = retryConfig
216218
};
217219

218-
_defaultClient = SDKConfiguration.InitHooks(_defaultClient);
220+
_client = SDKConfiguration.InitHooks(_client);
219221

220222

221-
Companies = new Companies(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
223+
Companies = new Companies(_client, _securitySource, _serverUrl, SDKConfiguration);
222224

223225

224-
Connections = new Connections(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
226+
Connections = new Connections(_client, _securitySource, _serverUrl, SDKConfiguration);
225227

226228

227-
Accounts = new Accounts(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
229+
ManageData = new ManageData(_client, _securitySource, _serverUrl, SDKConfiguration);
228230

229231

230-
JournalEntries = new JournalEntries(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
232+
Accounts = new Accounts(_client, _securitySource, _serverUrl, SDKConfiguration);
231233

232234

233-
Journals = new Journals(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
235+
JournalEntries = new JournalEntries(_client, _securitySource, _serverUrl, SDKConfiguration);
234236

235237

236-
ManageData = new ManageData(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
238+
Journals = new Journals(_client, _securitySource, _serverUrl, SDKConfiguration);
237239

238240

239-
CompanyInfo = new CompanyInfo(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
241+
TrackingCategories = new TrackingCategories(_client, _securitySource, _serverUrl, SDKConfiguration);
240242

241243

242-
TrackingCategories = new TrackingCategories(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
244+
CompanyInfo = new CompanyInfo(_client, _securitySource, _serverUrl, SDKConfiguration);
243245
}
244246
}
245247
}

0 commit comments

Comments
 (0)