Skip to content

Commit eae6ca8

Browse files
ci: regenerated with OpenAPI Doc 3.0.0, Speakeay CLI 1.100.2 (#179)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
1 parent 7120aba commit eae6ca8

File tree

183 files changed

+1012
-920
lines changed

Some content is hidden

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

183 files changed

+1012
-920
lines changed

sync-for-payroll/CodatSyncPayroll/Accounts.cs

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ public interface IAccountsSDK
6363
/// Get create account model
6464
///
6565
/// <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-payroll-api#/schemas/Account">account</a> for a given company and integration.<br/>
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-payroll-api#/schemas/Account">account</a> for a given company and integration.<br/>
6767
/// <br/>
68-
/// <a href="https://docs.codat.io/sync-for-payroll-api#/schemas/Account">Accounts</a> are the categories a business uses to record accounting transactions.<br/>
68+
/// <a href="https://docs.codat.io/sync-for-payroll-api#/schemas/Account">Accounts</a> are the categories a business uses to record accounting transactions.<br/>
6969
/// <br/>
70-
/// **Integration-specific behaviour**<br/>
70+
/// **Integration-specific behaviour**<br/>
7171
/// <br/>
72-
/// See the *response examples* for integration-specific indicative models.<br/>
72+
/// See the *response examples* for integration-specific indicative models.<br/>
7373
/// <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/>
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/>
7575
///
7676
/// </remarks>
7777
/// </summary>
@@ -98,9 +98,10 @@ public class AccountsSDK: IAccountsSDK
9898
{
9999
public SDKConfig Config { get; private set; }
100100
private const string _language = "csharp";
101-
private const string _sdkVersion = "2.1.0";
102-
private const string _sdkGenVersion = "2.129.1";
101+
private const string _sdkVersion = "2.2.0";
102+
private const string _sdkGenVersion = "2.159.2";
103103
private const string _openapiDocVersion = "3.0.0";
104+
private const string _userAgent = "speakeasy-sdk/csharp 2.2.0 2.159.2 3.0.0 Codat.Sync.Payroll";
104105
private string _serverUrl = "";
105106
private ISpeakeasyHttpClient _defaultClient;
106107
private ISpeakeasyHttpClient _securityClient;
@@ -125,7 +126,7 @@ public AccountsSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient secu
125126

126127

127128
var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString);
128-
httpRequest.Headers.Add("user-agent", $"speakeasy-sdk/{_language} {_sdkVersion} {_sdkGenVersion} {_openapiDocVersion}");
129+
httpRequest.Headers.Add("user-agent", _userAgent);
129130

130131
var serializedBody = RequestBodySerializer.Serialize(request, "Account", "json");
131132
if (serializedBody != null)
@@ -145,9 +146,10 @@ public AccountsSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient secu
145146
ContentType = contentType,
146147
RawResponse = httpResponse
147148
};
149+
148150
if((response.StatusCode == 200))
149151
{
150-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
152+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
151153
{
152154
response.CreateAccountResponseValue = JsonConvert.DeserializeObject<Models.Shared.CreateAccountResponse>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
153155
}
@@ -156,7 +158,7 @@ public AccountsSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient secu
156158
}
157159
if((response.StatusCode == 400) || (response.StatusCode == 401) || (response.StatusCode == 404) || (response.StatusCode == 429))
158160
{
159-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
161+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
160162
{
161163
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
162164
}
@@ -178,7 +180,7 @@ public async Task<GetAccountResponse> GetAsync(GetAccountRequest? request = null
178180

179181

180182
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
181-
httpRequest.Headers.Add("user-agent", $"speakeasy-sdk/{_language} {_sdkVersion} {_sdkGenVersion} {_openapiDocVersion}");
183+
httpRequest.Headers.Add("user-agent", _userAgent);
182184

183185

184186
var client = _securityClient;
@@ -193,9 +195,10 @@ public async Task<GetAccountResponse> GetAsync(GetAccountRequest? request = null
193195
ContentType = contentType,
194196
RawResponse = httpResponse
195197
};
198+
196199
if((response.StatusCode == 200))
197200
{
198-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
201+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
199202
{
200203
response.Account = JsonConvert.DeserializeObject<Account>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
201204
}
@@ -204,7 +207,7 @@ public async Task<GetAccountResponse> GetAsync(GetAccountRequest? request = null
204207
}
205208
if((response.StatusCode == 401) || (response.StatusCode == 404) || (response.StatusCode == 409) || (response.StatusCode == 429))
206209
{
207-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
210+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
208211
{
209212
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
210213
}
@@ -226,7 +229,7 @@ public async Task<GetCreateAccountsModelResponse> GetCreateModelAsync(GetCreateA
226229

227230

228231
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
229-
httpRequest.Headers.Add("user-agent", $"speakeasy-sdk/{_language} {_sdkVersion} {_sdkGenVersion} {_openapiDocVersion}");
232+
httpRequest.Headers.Add("user-agent", _userAgent);
230233

231234

232235
var client = _securityClient;
@@ -241,9 +244,10 @@ public async Task<GetCreateAccountsModelResponse> GetCreateModelAsync(GetCreateA
241244
ContentType = contentType,
242245
RawResponse = httpResponse
243246
};
247+
244248
if((response.StatusCode == 200))
245249
{
246-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
250+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
247251
{
248252
response.PushOption = JsonConvert.DeserializeObject<PushOption>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
249253
}
@@ -252,7 +256,7 @@ public async Task<GetCreateAccountsModelResponse> GetCreateModelAsync(GetCreateA
252256
}
253257
if((response.StatusCode == 401) || (response.StatusCode == 404) || (response.StatusCode == 429))
254258
{
255-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
259+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
256260
{
257261
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
258262
}
@@ -274,7 +278,7 @@ public async Task<ListAccountsResponse> ListAsync(ListAccountsRequest? request =
274278

275279

276280
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
277-
httpRequest.Headers.Add("user-agent", $"speakeasy-sdk/{_language} {_sdkVersion} {_sdkGenVersion} {_openapiDocVersion}");
281+
httpRequest.Headers.Add("user-agent", _userAgent);
278282

279283

280284
var client = _securityClient;
@@ -289,9 +293,10 @@ public async Task<ListAccountsResponse> ListAsync(ListAccountsRequest? request =
289293
ContentType = contentType,
290294
RawResponse = httpResponse
291295
};
296+
292297
if((response.StatusCode == 200))
293298
{
294-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
299+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
295300
{
296301
response.Accounts = JsonConvert.DeserializeObject<Accounts>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
297302
}
@@ -300,7 +305,7 @@ public async Task<ListAccountsResponse> ListAsync(ListAccountsRequest? request =
300305
}
301306
if((response.StatusCode == 400) || (response.StatusCode == 401) || (response.StatusCode == 404) || (response.StatusCode == 409))
302307
{
303-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
308+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
304309
{
305310
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
306311
}

sync-for-payroll/CodatSyncPayroll/CodatSyncPayroll.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
<PropertyGroup>
33
<IsPackable>true</IsPackable>
44
<PackageId>Codat.Sync.Payroll</PackageId>
5-
<Version>2.1.0</Version>
5+
<Version>2.2.0</Version>
66
<Authors>Codat</Authors>
77
<TargetFramework>net6.0</TargetFramework>
88
<Nullable>enable</Nullable>
99
<PackageReadmeFile>README.md</PackageReadmeFile>
1010
<GenerateDocumentationFile>true</GenerateDocumentationFile>
11+
<NoWarn>1591</NoWarn>
1112
</PropertyGroup>
1213

1314
<ItemGroup>

sync-for-payroll/CodatSyncPayroll/CodatSyncPayrollSDK.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace CodatSyncPayroll
1818
using System;
1919

2020
/// <summary>
21-
/// Sync for Payroll: The API for Sync for Payroll. &lt;br/&gt;
21+
/// Sync for Payroll: The API for Sync for Payroll. <br/>
2222
///
2323
/// <remarks>
2424
/// <br/>
@@ -61,7 +61,7 @@ public interface ICodatSyncPayrollSDK
6161
public ICompanyInfoSDK CompanyInfo { get; }
6262

6363
/// <summary>
64-
/// Manage your companies&amp;apos; data connections.
64+
/// Manage your companies&apos; data connections.
6565
/// </summary>
6666
public IConnectionsSDK Connections { get; }
6767

@@ -91,7 +91,7 @@ public class SDKConfig
9191
}
9292

9393
/// <summary>
94-
/// Sync for Payroll: The API for Sync for Payroll. &lt;br/&gt;
94+
/// Sync for Payroll: The API for Sync for Payroll. <br/>
9595
///
9696
/// <remarks>
9797
/// <br/>
@@ -124,9 +124,10 @@ public class CodatSyncPayrollSDK: ICodatSyncPayrollSDK
124124
};
125125

126126
private const string _language = "csharp";
127-
private const string _sdkVersion = "2.1.0";
128-
private const string _sdkGenVersion = "2.129.1";
127+
private const string _sdkVersion = "2.2.0";
128+
private const string _sdkGenVersion = "2.159.2";
129129
private const string _openapiDocVersion = "3.0.0";
130+
private const string _userAgent = "speakeasy-sdk/csharp 2.2.0 2.159.2 3.0.0 Codat.Sync.Payroll";
130131
private string _serverUrl = "";
131132
private ISpeakeasyHttpClient _defaultClient;
132133
private ISpeakeasyHttpClient _securityClient;

0 commit comments

Comments
 (0)