Skip to content

Commit fc053f2

Browse files
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.396.6 (#301)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
1 parent 0a49ddf commit fc053f2

File tree

289 files changed

+4350
-2512
lines changed

Some content is hidden

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

289 files changed

+4350
-2512
lines changed

.speakeasy/workflow.lock

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ sources:
2121
tags:
2222
- latest
2323
- main
24+
sync-for-commerce-source:
25+
sourceNamespace: sync-for-commerce-source
26+
sourceRevisionDigest: sha256:25f68f6f72e255804ffe90049b3b15b1dd8dcb78e7f96954e1ec5852799fc13f
27+
sourceBlobDigest: sha256:ab64a148f650a63d3411abb1686ffdcc252ddb1525415957d2dcd7e818882594
28+
tags:
29+
- latest
30+
- main
2431
targets:
2532
bank-feeds-library:
2633
source: bank-feeds-source
@@ -37,6 +44,11 @@ targets:
3744
sourceNamespace: platform-source
3845
sourceRevisionDigest: sha256:63cd9348c74d8931dbcbeaefdb72a6d1d62e739c2863ffd9eaee728cc1f61f98
3946
sourceBlobDigest: sha256:e1e3f4c3ed16022322bc656bb0e4ef28c04fff8c92c271cc859c6e2b32af5613
47+
sync-for-commerce-library:
48+
source: sync-for-commerce-source
49+
sourceNamespace: sync-for-commerce-source
50+
sourceRevisionDigest: sha256:25f68f6f72e255804ffe90049b3b15b1dd8dcb78e7f96954e1ec5852799fc13f
51+
sourceBlobDigest: sha256:ab64a148f650a63d3411abb1686ffdcc252ddb1525415957d2dcd7e818882594
4052
workflow:
4153
workflowVersion: 1.0.0
4254
speakeasyVersion: latest
@@ -59,6 +71,8 @@ workflow:
5971
sync-for-commerce-source:
6072
inputs:
6173
- location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Commerce.yaml
74+
registry:
75+
location: registry.speakeasyapi.dev/codat/codat/sync-for-commerce-source
6276
sync-for-expenses-source:
6377
inputs:
6478
- location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Expenses.yaml

.speakeasy/workflow.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ sources:
1919
sync-for-commerce-source:
2020
inputs:
2121
- location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Commerce.yaml
22+
registry:
23+
location: registry.speakeasyapi.dev/codat/codat/sync-for-commerce-source
2224
sync-for-expenses-source:
2325
inputs:
2426
- location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Expenses.yaml

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

Lines changed: 560 additions & 240 deletions
Large diffs are not rendered by default.

sync-for-commerce/.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.Commerce
3737
packageTags: ""
38-
responseFormat: envelope
38+
responseFormat: envelope

sync-for-commerce/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-commerce/Codat/Sync/Commerce/AdvancedControls.cs

Lines changed: 220 additions & 76 deletions
Large diffs are not rendered by default.
Lines changed: 41 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,55 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2+
23
<PropertyGroup>
34
<IsPackable>true</IsPackable>
45
<PackageId>Codat.Sync.Commerce</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 Commerce: The API for Sync for Commerce.
13+
14+
Sync for Commerce automatically replicates and reconciles sales data from a merchant’s source PoS, Payments, and eCommerce systems into their accounting software. This eliminates manual processing by merchants and transforms their ability to run and grow their business.
15+
16+
[Explore product](https://docs.codat.io/commerce/overview) | [See our OpenAPI spec](https://github.com/codatio/oas)
17+
18+
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-commerce-v1-api#/).
19+
20+
---
21+
22+
<!-- Start Codat Tags Table -->
23+
## Endpoints
24+
25+
| Endpoints | Description |
26+
| :- |:- |
27+
| Connections | Create new and manage existing data connections for a company. |
28+
| Sync | Initiate data syncs and monitor their status. |
29+
| Sync flow settings | Control text and visibility settings for the Sync Flow. |
30+
| Integrations | Get a list of integrations supported by Sync for Commerce and their logos. |
31+
| Advanced controls | View and manage mapping configured for a company's commerce sync. |
32+
<!-- End Codat Tags Table --></Description>
33+
</PropertyGroup>
34+
35+
<PropertyGroup>
836
<Nullable>enable</Nullable>
9-
<PackageReadmeFile>README.md</PackageReadmeFile>
10-
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1137
<NoWarn>1591</NoWarn>
12-
<RepositoryUrl>https://github.com/codatio/client-sdk-csharp</RepositoryUrl>
38+
</PropertyGroup>
39+
40+
<PropertyGroup>
41+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
42+
<PackageReadmeFile>README.md</PackageReadmeFile>
1343
</PropertyGroup>
1444

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

50+
<ItemGroup>
1951
<PackageReference Include="newtonsoft.json" Version="13.0.3" />
2052
<PackageReference Include="nodatime" Version="3.1.9" />
2153
</ItemGroup>
22-
</Project>
54+
55+
</Project>

sync-for-commerce/Codat/Sync/Commerce/CodatSyncCommerce.cs

Lines changed: 37 additions & 35 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.Commerce
1211
{
1312
using Codat.Sync.Commerce.Hooks;
13+
using Codat.Sync.Commerce.Models.Components;
1414
using Codat.Sync.Commerce.Models.Errors;
15-
using Codat.Sync.Commerce.Models.Shared;
15+
using Codat.Sync.Commerce.Utils.Retries;
1616
using Codat.Sync.Commerce.Utils;
1717
using Newtonsoft.Json;
1818
using System.Collections.Generic;
@@ -50,29 +50,29 @@ public interface ICodatSyncCommerce
5050
{
5151

5252
/// <summary>
53-
/// Control text and visibility settings for the Sync Flow.
53+
/// Create new and manage existing data connections for a company.
5454
/// </summary>
55-
public ISyncFlowSettings SyncFlowSettings { get; }
55+
public IConnections Connections { get; }
5656

5757
/// <summary>
5858
/// View and manage mapping configured for a company&apos;s commerce sync.
5959
/// </summary>
6060
public IAdvancedControls AdvancedControls { get; }
6161

6262
/// <summary>
63-
/// Create new and manage existing data connections for a company.
63+
/// Get a list of integrations supported by Sync for Commerce and their logos.
6464
/// </summary>
65-
public IConnections Connections { get; }
65+
public IIntegrations Integrations { get; }
6666

6767
/// <summary>
68-
/// Initiate data syncs and monitor their status.
68+
/// Control text and visibility settings for the Sync Flow.
6969
/// </summary>
70-
public ISync Sync { get; }
70+
public ISyncFlowSettings SyncFlowSettings { get; }
7171

7272
/// <summary>
73-
/// Get a list of integrations supported by Sync for Commerce and their logos.
73+
/// Initiate data syncs and monitor their status.
7474
/// </summary>
75-
public IIntegrations Integrations { get; }
75+
public ISync Sync { get; }
7676
}
7777

7878
public class SDKConfig
@@ -86,7 +86,8 @@ public class SDKConfig
8686

8787
public string ServerUrl = "";
8888
public int ServerIndex = 0;
89-
public SDKHooks hooks = new SDKHooks();
89+
public SDKHooks Hooks = new SDKHooks();
90+
public RetryConfig? RetryConfig = null;
9091

9192
public string GetTemplatedServerUrl()
9293
{
@@ -100,7 +101,7 @@ public string GetTemplatedServerUrl()
100101
public ISpeakeasyHttpClient InitHooks(ISpeakeasyHttpClient client)
101102
{
102103
string preHooksUrl = GetTemplatedServerUrl();
103-
var (postHooksUrl, postHooksClient) = this.hooks.SDKInit(preHooksUrl, client);
104+
var (postHooksUrl, postHooksClient) = this.Hooks.SDKInit(preHooksUrl, client);
104105
if (preHooksUrl != postHooksUrl)
105106
{
106107
this.ServerUrl = postHooksUrl;
@@ -140,21 +141,21 @@ public class CodatSyncCommerce: ICodatSyncCommerce
140141
public SDKConfig SDKConfiguration { get; private set; }
141142

142143
private const string _language = "csharp";
143-
private const string _sdkVersion = "3.1.0";
144-
private const string _sdkGenVersion = "2.319.7";
144+
private const string _sdkVersion = "4.0.0";
145+
private const string _sdkGenVersion = "2.415.6";
145146
private const string _openapiDocVersion = "1.1";
146-
private const string _userAgent = "speakeasy-sdk/csharp 3.1.0 2.319.7 1.1 Codat.Sync.Commerce";
147+
private const string _userAgent = "speakeasy-sdk/csharp 4.0.0 2.415.6 1.1 Codat.Sync.Commerce";
147148
private string _serverUrl = "";
148149
private int _serverIndex = 0;
149-
private ISpeakeasyHttpClient _defaultClient;
150-
private Func<Security>? _securitySource;
151-
public ISyncFlowSettings SyncFlowSettings { get; private set; }
152-
public IAdvancedControls AdvancedControls { get; private set; }
150+
private ISpeakeasyHttpClient _client;
151+
private Func<Codat.Sync.Commerce.Models.Components.Security>? _securitySource;
153152
public IConnections Connections { get; private set; }
154-
public ISync Sync { get; private set; }
153+
public IAdvancedControls AdvancedControls { get; private set; }
155154
public IIntegrations Integrations { get; private set; }
155+
public ISyncFlowSettings SyncFlowSettings { get; private set; }
156+
public ISync Sync { get; private set; }
156157

157-
public CodatSyncCommerce(Security? security = null, Func<Security>? securitySource = null, int? serverIndex = null, string? serverUrl = null, Dictionary<string, string>? urlParams = null, ISpeakeasyHttpClient? client = null)
158+
public CodatSyncCommerce(string? authHeader = null, Func<string>? authHeaderSource = null, int? serverIndex = null, string? serverUrl = null, Dictionary<string, string>? urlParams = null, ISpeakeasyHttpClient? client = null, RetryConfig? retryConfig = null)
158159
{
159160
if (serverIndex != null)
160161
{
@@ -174,43 +175,44 @@ public CodatSyncCommerce(Security? security = null, Func<Security>? securitySour
174175
_serverUrl = serverUrl;
175176
}
176177

177-
_defaultClient = new SpeakeasyHttpClient(client);
178+
_client = client ?? new SpeakeasyHttpClient();
178179

179-
if(securitySource != null)
180+
if(authHeaderSource != null)
180181
{
181-
_securitySource = securitySource;
182+
_securitySource = () => new Codat.Sync.Commerce.Models.Components.Security() { AuthHeader = authHeaderSource() };
182183
}
183-
else if(security != null)
184+
else if(authHeader != null)
184185
{
185-
_securitySource = () => security;
186+
_securitySource = () => new Codat.Sync.Commerce.Models.Components.Security() { AuthHeader = authHeader };
186187
}
187188
else
188189
{
189-
throw new Exception("security and securitySource cannot both be null");
190+
throw new Exception("authHeader and authHeaderSource cannot both be null");
190191
}
191192

192193
SDKConfiguration = new SDKConfig()
193194
{
194195
ServerIndex = _serverIndex,
195-
ServerUrl = _serverUrl
196+
ServerUrl = _serverUrl,
197+
RetryConfig = retryConfig
196198
};
197199

198-
_defaultClient = SDKConfiguration.InitHooks(_defaultClient);
200+
_client = SDKConfiguration.InitHooks(_client);
199201

200202

201-
SyncFlowSettings = new SyncFlowSettings(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
203+
Connections = new Connections(_client, _securitySource, _serverUrl, SDKConfiguration);
202204

203205

204-
AdvancedControls = new AdvancedControls(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
206+
AdvancedControls = new AdvancedControls(_client, _securitySource, _serverUrl, SDKConfiguration);
205207

206208

207-
Connections = new Connections(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
209+
Integrations = new Integrations(_client, _securitySource, _serverUrl, SDKConfiguration);
208210

209211

210-
Sync = new Sync(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
212+
SyncFlowSettings = new SyncFlowSettings(_client, _securitySource, _serverUrl, SDKConfiguration);
211213

212214

213-
Integrations = new Integrations(_defaultClient, _securitySource, _serverUrl, SDKConfiguration);
215+
Sync = new Sync(_client, _securitySource, _serverUrl, SDKConfiguration);
214216
}
215217
}
216218
}

0 commit comments

Comments
 (0)