Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.396.6 (#306)
Browse files Browse the repository at this point in the history
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
  • Loading branch information
github-actions[bot] and speakeasybot committed Sep 13, 2024
1 parent 6e8902a commit ef88063
Show file tree
Hide file tree
Showing 390 changed files with 8,371 additions and 4,348 deletions.
14 changes: 14 additions & 0 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ sources:
tags:
- latest
- main
sync-for-payroll-source:
sourceNamespace: sync-for-payroll-source
sourceRevisionDigest: sha256:bc65498e99dadc8f219637655003bc96b3a74072424793cfa00f84c4c9a80e74
sourceBlobDigest: sha256:367f56c8bbc3e5f79b13390764a0e77ad2d9d25ca3e515c1c62b19fe459d927c
tags:
- latest
- main
targets:
bank-feeds-library:
source: bank-feeds-source
Expand Down Expand Up @@ -73,6 +80,11 @@ targets:
sourceNamespace: sync-for-payables-version-1-source
sourceRevisionDigest: sha256:8a265bac8fe5d0a020e2e098459e0d2336d69f6acb919efab1e20e2b0ba4dc79
sourceBlobDigest: sha256:e1fb1fe0af40cf137b8b320fd75e913c83e54e0a2bb2e80a5af69e0bce409e71
sync-for-payroll-library:
source: sync-for-payroll-source
sourceNamespace: sync-for-payroll-source
sourceRevisionDigest: sha256:bc65498e99dadc8f219637655003bc96b3a74072424793cfa00f84c4c9a80e74
sourceBlobDigest: sha256:367f56c8bbc3e5f79b13390764a0e77ad2d9d25ca3e515c1c62b19fe459d927c
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down Expand Up @@ -113,6 +125,8 @@ workflow:
sync-for-payroll-source:
inputs:
- location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Payroll.yaml
registry:
location: registry.speakeasyapi.dev/codat/codat/sync-for-payroll-source
targets:
bank-feeds-library:
target: csharp
Expand Down
2 changes: 2 additions & 0 deletions .speakeasy/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ sources:
sync-for-payroll-source:
inputs:
- location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Payroll.yaml
registry:
location: registry.speakeasyapi.dev/codat/codat/sync-for-payroll-source
targets:
bank-feeds-library:
target: csharp
Expand Down
2,479 changes: 2,150 additions & 329 deletions sync-for-payroll/.speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sync-for-payroll/.speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ csharp:
outputModelSuffix: output
packageName: Codat.Sync.Payroll
packageTags: ""
responseFormat: envelope
responseFormat: envelope
26 changes: 26 additions & 0 deletions sync-for-payroll/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Contributing to This Repository

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.

## How to Report Issues

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:

- A clear and descriptive title
- Steps to reproduce the issue
- Expected and actual behavior
- Any relevant logs, screenshots, or error messages
- Information about your environment (e.g., operating system, software versions)
- For example can be collected using the `npx envinfo` command from your terminal if you have Node.js installed

## Issue Triage and Upstream Fixes

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.

## Contact

If you have any questions or need further assistance, please feel free to reach out by opening an issue.

Thank you for your understanding and cooperation!

The Maintainers
286 changes: 215 additions & 71 deletions sync-for-payroll/Codat/Sync/Payroll/Accounts.cs

Large diffs are not rendered by default.

50 changes: 42 additions & 8 deletions sync-for-payroll/Codat/Sync/Payroll/Codat.Sync.Payroll.csproj
Original file line number Diff line number Diff line change
@@ -1,22 +1,56 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<IsPackable>true</IsPackable>
<PackageId>Codat.Sync.Payroll</PackageId>
<Version>3.1.0</Version>
<Version>4.0.0</Version>
<TargetFramework>net8.0</TargetFramework>
<Authors>Codat</Authors>
<TargetFramework>net6.0</TargetFramework>
<Copyright>Copyright (c) Codat 2024</Copyright>
<RepositoryUrl>https://github.com/codatio/client-sdk-csharp.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<Description>Sync for Payroll: The API for Sync for Payroll.

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.

[Explore product](https://docs.codat.io/payroll/overview) | [See OpenAPI spec](https://github.com/codatio/oas)

---

<!-- Start Codat Tags Table -->
## Endpoints

| Endpoints | Description |
| :- |:- |
| Companies | Create and manage your SMB users' companies. |
| Connections | Create new and manage existing data connections for a company. |
| Accounts | Get, create, and update Accounts. |
| Journal entries | Get, create, and update Journal entries. |
| Journals | Get, create, and update Journals. |
| Tracking categories | Get, create, and update Tracking Categories for additional categorization of payroll components. |
| Company info | View company profile from the source platform. |
| Manage data | Control how data is retrieved from an integration. |
<!-- End Codat Tags Table --></Description>
</PropertyGroup>

<PropertyGroup>
<Nullable>enable</Nullable>
<PackageReadmeFile>README.md</PackageReadmeFile>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>1591</NoWarn>
<RepositoryUrl>https://github.com/codatio/client-sdk-csharp</RepositoryUrl>
</PropertyGroup>

<PropertyGroup>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

<ItemGroup>
<None Include="../README.md" Pack="true" PackagePath="/"/>
<None Include="../docs/*" Pack="true" PackagePath="/docs"/>
<None Include="..\..\..\NUGET.md" Pack="true" PackagePath="README.md"/>
<None Include="..\..\..\docs\**\*" Pack="true" PackagePath="\docs" CopyToOutputDirectory="PreserveNewest"/>
</ItemGroup>

<ItemGroup>
<PackageReference Include="newtonsoft.json" Version="13.0.3" />
<PackageReference Include="nodatime" Version="3.1.9" />
</ItemGroup>
</Project>

</Project>
78 changes: 40 additions & 38 deletions sync-for-payroll/Codat/Sync/Payroll/CodatSyncPayroll.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
//
// Changes to this file may cause incorrect behavior and will be lost when
// the code is regenerated.
Expand All @@ -11,8 +10,9 @@
namespace Codat.Sync.Payroll
{
using Codat.Sync.Payroll.Hooks;
using Codat.Sync.Payroll.Models.Components;
using Codat.Sync.Payroll.Models.Errors;
using Codat.Sync.Payroll.Models.Shared;
using Codat.Sync.Payroll.Utils.Retries;
using Codat.Sync.Payroll.Utils;
using Newtonsoft.Json;
using System.Collections.Generic;
Expand All @@ -25,7 +25,7 @@ namespace Codat.Sync.Payroll
///
/// <remarks>
/// <br/>
/// 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/>
/// 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/>
/// <br/>
/// <a href="https://docs.codat.io/payroll/overview">Explore product</a> | <a href="https://github.com/codatio/oas">See OpenAPI spec</a><br/>
/// <br/>
Expand Down Expand Up @@ -60,6 +60,11 @@ public interface ICodatSyncPayroll
/// </summary>
public IConnections Connections { get; }

/// <summary>
/// Control how data is retrieved from an integration.
/// </summary>
public IManageData ManageData { get; }

/// <summary>
/// Get, create, and update Accounts.
/// </summary>
Expand All @@ -76,19 +81,14 @@ public interface ICodatSyncPayroll
public IJournals Journals { get; }

/// <summary>
/// Control how data is retrieved from an integration.
/// Get, create, and update Tracking Categories for additional categorization of payroll components.
/// </summary>
public IManageData ManageData { get; }
public ITrackingCategories TrackingCategories { get; }

/// <summary>
/// View company profile from the source platform.
/// </summary>
public ICompanyInfo CompanyInfo { get; }

/// <summary>
/// Get, create, and update Tracking Categories for additional categorization of payroll components.
/// </summary>
public ITrackingCategories TrackingCategories { get; }
}

public class SDKConfig
Expand All @@ -102,7 +102,8 @@ public class SDKConfig

public string ServerUrl = "";
public int ServerIndex = 0;
public SDKHooks hooks = new SDKHooks();
public SDKHooks Hooks = new SDKHooks();
public RetryConfig? RetryConfig = null;

public string GetTemplatedServerUrl()
{
Expand All @@ -116,7 +117,7 @@ public string GetTemplatedServerUrl()
public ISpeakeasyHttpClient InitHooks(ISpeakeasyHttpClient client)
{
string preHooksUrl = GetTemplatedServerUrl();
var (postHooksUrl, postHooksClient) = this.hooks.SDKInit(preHooksUrl, client);
var (postHooksUrl, postHooksClient) = this.Hooks.SDKInit(preHooksUrl, client);
if (preHooksUrl != postHooksUrl)
{
this.ServerUrl = postHooksUrl;
Expand All @@ -130,7 +131,7 @@ public ISpeakeasyHttpClient InitHooks(ISpeakeasyHttpClient client)
///
/// <remarks>
/// <br/>
/// 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/>
/// 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/>
/// <br/>
/// <a href="https://docs.codat.io/payroll/overview">Explore product</a> | <a href="https://github.com/codatio/oas">See OpenAPI spec</a><br/>
/// <br/>
Expand All @@ -157,24 +158,24 @@ public class CodatSyncPayroll: ICodatSyncPayroll
public SDKConfig SDKConfiguration { get; private set; }

private const string _language = "csharp";
private const string _sdkVersion = "3.1.0";
private const string _sdkGenVersion = "2.319.7";
private const string _sdkVersion = "4.0.0";
private const string _sdkGenVersion = "2.415.6";
private const string _openapiDocVersion = "3.0.0";
private const string _userAgent = "speakeasy-sdk/csharp 3.1.0 2.319.7 3.0.0 Codat.Sync.Payroll";
private const string _userAgent = "speakeasy-sdk/csharp 4.0.0 2.415.6 3.0.0 Codat.Sync.Payroll";
private string _serverUrl = "";
private int _serverIndex = 0;
private ISpeakeasyHttpClient _defaultClient;
private Func<Security>? _securitySource;
private ISpeakeasyHttpClient _client;
private Func<Codat.Sync.Payroll.Models.Components.Security>? _securitySource;
public ICompanies Companies { get; private set; }
public IConnections Connections { get; private set; }
public IManageData ManageData { get; private set; }
public IAccounts Accounts { get; private set; }
public IJournalEntries JournalEntries { get; private set; }
public IJournals Journals { get; private set; }
public IManageData ManageData { get; private set; }
public ICompanyInfo CompanyInfo { get; private set; }
public ITrackingCategories TrackingCategories { get; private set; }
public ICompanyInfo CompanyInfo { get; private set; }

public CodatSyncPayroll(Security? security = null, Func<Security>? securitySource = null, int? serverIndex = null, string? serverUrl = null, Dictionary<string, string>? urlParams = null, ISpeakeasyHttpClient? client = null)
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)
{
if (serverIndex != null)
{
Expand All @@ -194,52 +195,53 @@ public CodatSyncPayroll(Security? security = null, Func<Security>? securitySourc
_serverUrl = serverUrl;
}

_defaultClient = new SpeakeasyHttpClient(client);
_client = client ?? new SpeakeasyHttpClient();

if(securitySource != null)
if(authHeaderSource != null)
{
_securitySource = securitySource;
_securitySource = () => new Codat.Sync.Payroll.Models.Components.Security() { AuthHeader = authHeaderSource() };
}
else if(security != null)
else if(authHeader != null)
{
_securitySource = () => security;
_securitySource = () => new Codat.Sync.Payroll.Models.Components.Security() { AuthHeader = authHeader };
}
else
{
throw new Exception("security and securitySource cannot both be null");
throw new Exception("authHeader and authHeaderSource cannot both be null");
}

SDKConfiguration = new SDKConfig()
{
ServerIndex = _serverIndex,
ServerUrl = _serverUrl
ServerUrl = _serverUrl,
RetryConfig = retryConfig
};

_defaultClient = SDKConfiguration.InitHooks(_defaultClient);
_client = SDKConfiguration.InitHooks(_client);


Companies = new Companies(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
Companies = new Companies(_client, _securitySource, _serverUrl, SDKConfiguration);


Connections = new Connections(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
Connections = new Connections(_client, _securitySource, _serverUrl, SDKConfiguration);


Accounts = new Accounts(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
ManageData = new ManageData(_client, _securitySource, _serverUrl, SDKConfiguration);


JournalEntries = new JournalEntries(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
Accounts = new Accounts(_client, _securitySource, _serverUrl, SDKConfiguration);


Journals = new Journals(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
JournalEntries = new JournalEntries(_client, _securitySource, _serverUrl, SDKConfiguration);


ManageData = new ManageData(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
Journals = new Journals(_client, _securitySource, _serverUrl, SDKConfiguration);


CompanyInfo = new CompanyInfo(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
TrackingCategories = new TrackingCategories(_client, _securitySource, _serverUrl, SDKConfiguration);


TrackingCategories = new TrackingCategories(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
CompanyInfo = new CompanyInfo(_client, _securitySource, _serverUrl, SDKConfiguration);
}
}
}
Loading

0 comments on commit ef88063

Please sign in to comment.