Skip to content

Commit 7511785

Browse files
ci: regenerated with OpenAPI Doc 1.1, Speakeay CLI 1.100.2 (#175)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
1 parent 7ebcb69 commit 7511785

File tree

128 files changed

+498
-465
lines changed

Some content is hidden

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

128 files changed

+498
-465
lines changed

sync-for-commerce/CodatSyncCommerce/AdvancedControls.cs

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,10 @@ public class AdvancedControlsSDK: IAdvancedControlsSDK
6969
{
7070
public SDKConfig Config { get; private set; }
7171
private const string _language = "csharp";
72-
private const string _sdkVersion = "2.1.0";
73-
private const string _sdkGenVersion = "2.129.1";
72+
private const string _sdkVersion = "2.2.0";
73+
private const string _sdkGenVersion = "2.159.2";
7474
private const string _openapiDocVersion = "1.1";
75+
private const string _userAgent = "speakeasy-sdk/csharp 2.2.0 2.159.2 1.1 Codat.Sync.Commerce";
7576
private string _serverUrl = "";
7677
private ISpeakeasyHttpClient _defaultClient;
7778
private ISpeakeasyHttpClient _securityClient;
@@ -96,7 +97,7 @@ public async Task<CreateCompanyResponse> CreateCompanyAsync(CreateCompany? reque
9697

9798

9899
var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString);
99-
httpRequest.Headers.Add("user-agent", $"speakeasy-sdk/{_language} {_sdkVersion} {_sdkGenVersion} {_openapiDocVersion}");
100+
httpRequest.Headers.Add("user-agent", _userAgent);
100101

101102
var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json");
102103
if (serializedBody != null)
@@ -116,9 +117,10 @@ public async Task<CreateCompanyResponse> CreateCompanyAsync(CreateCompany? reque
116117
ContentType = contentType,
117118
RawResponse = httpResponse
118119
};
120+
119121
if((response.StatusCode == 200))
120122
{
121-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
123+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
122124
{
123125
response.Company = JsonConvert.DeserializeObject<Company>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
124126
}
@@ -140,7 +142,7 @@ public async Task<GetConfigurationResponse> GetConfigurationAsync(GetConfigurati
140142

141143

142144
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
143-
httpRequest.Headers.Add("user-agent", $"speakeasy-sdk/{_language} {_sdkVersion} {_sdkGenVersion} {_openapiDocVersion}");
145+
httpRequest.Headers.Add("user-agent", _userAgent);
144146

145147

146148
var client = _securityClient;
@@ -155,9 +157,10 @@ public async Task<GetConfigurationResponse> GetConfigurationAsync(GetConfigurati
155157
ContentType = contentType,
156158
RawResponse = httpResponse
157159
};
160+
158161
if((response.StatusCode == 200))
159162
{
160-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
163+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
161164
{
162165
response.Configuration = JsonConvert.DeserializeObject<Configuration>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
163166
}
@@ -179,7 +182,7 @@ public async Task<ListCompaniesResponse> ListCompaniesAsync(ListCompaniesRequest
179182

180183

181184
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
182-
httpRequest.Headers.Add("user-agent", $"speakeasy-sdk/{_language} {_sdkVersion} {_sdkGenVersion} {_openapiDocVersion}");
185+
httpRequest.Headers.Add("user-agent", _userAgent);
183186

184187

185188
var client = _securityClient;
@@ -194,9 +197,10 @@ public async Task<ListCompaniesResponse> ListCompaniesAsync(ListCompaniesRequest
194197
ContentType = contentType,
195198
RawResponse = httpResponse
196199
};
200+
197201
if((response.StatusCode == 200))
198202
{
199-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
203+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
200204
{
201205
response.Companies = JsonConvert.DeserializeObject<Companies>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
202206
}
@@ -218,7 +222,7 @@ public async Task<SetConfigurationResponse> SetConfigurationAsync(SetConfigurati
218222

219223

220224
var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString);
221-
httpRequest.Headers.Add("user-agent", $"speakeasy-sdk/{_language} {_sdkVersion} {_sdkGenVersion} {_openapiDocVersion}");
225+
httpRequest.Headers.Add("user-agent", _userAgent);
222226

223227

224228
var client = _securityClient;
@@ -233,9 +237,10 @@ public async Task<SetConfigurationResponse> SetConfigurationAsync(SetConfigurati
233237
ContentType = contentType,
234238
RawResponse = httpResponse
235239
};
240+
236241
if((response.StatusCode == 200))
237242
{
238-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
243+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
239244
{
240245
response.Configuration = JsonConvert.DeserializeObject<Configuration>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
241246
}

sync-for-commerce/CodatSyncCommerce/CodatSyncCommerce.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.Commerce</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-commerce/CodatSyncCommerce/CodatSyncCommerceSDK.cs

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

2020
/// <summary>
21-
/// Sync for Commerce: The API for Sync for Commerce. &lt;br/&gt;
21+
/// Sync for Commerce: The API for Sync for Commerce. <br/>
2222
///
2323
/// <remarks>
2424
/// <br/>
@@ -43,7 +43,7 @@ public interface ICodatSyncCommerceSDK
4343
public IConnectionsSDK Connections { get; }
4444

4545
/// <summary>
46-
/// View useful information about codat&amp;apos;s integrations.
46+
/// View useful information about codat&apos;s integrations.
4747
/// </summary>
4848
public IIntegrationsSDK Integrations { get; }
4949

@@ -63,7 +63,7 @@ public class SDKConfig
6363
}
6464

6565
/// <summary>
66-
/// Sync for Commerce: The API for Sync for Commerce. &lt;br/&gt;
66+
/// Sync for Commerce: The API for Sync for Commerce. <br/>
6767
///
6868
/// <remarks>
6969
/// <br/>
@@ -83,9 +83,10 @@ public class CodatSyncCommerceSDK: ICodatSyncCommerceSDK
8383
};
8484

8585
private const string _language = "csharp";
86-
private const string _sdkVersion = "2.1.0";
87-
private const string _sdkGenVersion = "2.129.1";
86+
private const string _sdkVersion = "2.2.0";
87+
private const string _sdkGenVersion = "2.159.2";
8888
private const string _openapiDocVersion = "1.1";
89+
private const string _userAgent = "speakeasy-sdk/csharp 2.2.0 2.159.2 1.1 Codat.Sync.Commerce";
8990
private string _serverUrl = "";
9091
private ISpeakeasyHttpClient _defaultClient;
9192
private ISpeakeasyHttpClient _securityClient;

sync-for-commerce/CodatSyncCommerce/Connections.cs

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public interface IConnectionsSDK
3131
/// <remarks>
3232
/// Creates a connection for the company by providing a valid `platformKey`. <br/>
3333
/// <br/>
34-
/// Use the <a href="https://docs.codat.io/sync-for-commerce-api#/operations/list-integrations">List Integrations</a> endpoint to access valid platform keys.
34+
/// Use the <a href="https://docs.codat.io/sync-for-sync-for-commerce-api#/operations/list-integrations">List Integrations</a> endpoint to access valid platform keys.
3535
/// </remarks>
3636
/// </summary>
3737
Task<CreateConnectionResponse> CreateAsync(CreateConnectionRequest? request = null);
@@ -80,9 +80,10 @@ public class ConnectionsSDK: IConnectionsSDK
8080
{
8181
public SDKConfig Config { get; private set; }
8282
private const string _language = "csharp";
83-
private const string _sdkVersion = "2.1.0";
84-
private const string _sdkGenVersion = "2.129.1";
83+
private const string _sdkVersion = "2.2.0";
84+
private const string _sdkGenVersion = "2.159.2";
8585
private const string _openapiDocVersion = "1.1";
86+
private const string _userAgent = "speakeasy-sdk/csharp 2.2.0 2.159.2 1.1 Codat.Sync.Commerce";
8687
private string _serverUrl = "";
8788
private ISpeakeasyHttpClient _defaultClient;
8889
private ISpeakeasyHttpClient _securityClient;
@@ -107,7 +108,7 @@ public async Task<CreateConnectionResponse> CreateAsync(CreateConnectionRequest?
107108

108109

109110
var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString);
110-
httpRequest.Headers.Add("user-agent", $"speakeasy-sdk/{_language} {_sdkVersion} {_sdkGenVersion} {_openapiDocVersion}");
111+
httpRequest.Headers.Add("user-agent", _userAgent);
111112

112113
var serializedBody = RequestBodySerializer.Serialize(request, "RequestBody", "json");
113114
if (serializedBody != null)
@@ -127,9 +128,10 @@ public async Task<CreateConnectionResponse> CreateAsync(CreateConnectionRequest?
127128
ContentType = contentType,
128129
RawResponse = httpResponse
129130
};
131+
130132
if((response.StatusCode == 200))
131133
{
132-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
134+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
133135
{
134136
response.Connection = JsonConvert.DeserializeObject<Connection>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
135137
}
@@ -138,7 +140,7 @@ public async Task<CreateConnectionResponse> CreateAsync(CreateConnectionRequest?
138140
}
139141
if((response.StatusCode == 401) || (response.StatusCode == 404) || (response.StatusCode == 429))
140142
{
141-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
143+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
142144
{
143145
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
144146
}
@@ -160,7 +162,7 @@ public async Task<GetSyncFlowUrlResponse> GetSyncFlowUrlAsync(GetSyncFlowUrlRequ
160162

161163

162164
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
163-
httpRequest.Headers.Add("user-agent", $"speakeasy-sdk/{_language} {_sdkVersion} {_sdkGenVersion} {_openapiDocVersion}");
165+
httpRequest.Headers.Add("user-agent", _userAgent);
164166

165167

166168
var client = _securityClient;
@@ -175,9 +177,10 @@ public async Task<GetSyncFlowUrlResponse> GetSyncFlowUrlAsync(GetSyncFlowUrlRequ
175177
ContentType = contentType,
176178
RawResponse = httpResponse
177179
};
180+
178181
if((response.StatusCode == 200))
179182
{
180-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
183+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
181184
{
182185
response.SyncFlowUrl = JsonConvert.DeserializeObject<SyncFlowUrl>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
183186
}
@@ -199,7 +202,7 @@ public async Task<ListConnectionsResponse> ListAsync(ListConnectionsRequest? req
199202

200203

201204
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
202-
httpRequest.Headers.Add("user-agent", $"speakeasy-sdk/{_language} {_sdkVersion} {_sdkGenVersion} {_openapiDocVersion}");
205+
httpRequest.Headers.Add("user-agent", _userAgent);
203206

204207

205208
var client = _securityClient;
@@ -214,9 +217,10 @@ public async Task<ListConnectionsResponse> ListAsync(ListConnectionsRequest? req
214217
ContentType = contentType,
215218
RawResponse = httpResponse
216219
};
220+
217221
if((response.StatusCode == 200))
218222
{
219-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
223+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
220224
{
221225
response.Connections = JsonConvert.DeserializeObject<Connections>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
222226
}
@@ -225,7 +229,7 @@ public async Task<ListConnectionsResponse> ListAsync(ListConnectionsRequest? req
225229
}
226230
if((response.StatusCode == 400) || (response.StatusCode == 401) || (response.StatusCode == 404) || (response.StatusCode == 429))
227231
{
228-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
232+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
229233
{
230234
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
231235
}
@@ -247,7 +251,7 @@ public async Task<UpdateConnectionAuthorizationResponse> UpdateAuthorizationAsyn
247251

248252

249253
var httpRequest = new HttpRequestMessage(HttpMethod.Put, urlString);
250-
httpRequest.Headers.Add("user-agent", $"speakeasy-sdk/{_language} {_sdkVersion} {_sdkGenVersion} {_openapiDocVersion}");
254+
httpRequest.Headers.Add("user-agent", _userAgent);
251255

252256
var serializedBody = RequestBodySerializer.Serialize(request, "RequestBody", "json");
253257
if (serializedBody != null)
@@ -267,9 +271,10 @@ public async Task<UpdateConnectionAuthorizationResponse> UpdateAuthorizationAsyn
267271
ContentType = contentType,
268272
RawResponse = httpResponse
269273
};
274+
270275
if((response.StatusCode == 200))
271276
{
272-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
277+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
273278
{
274279
response.Connection = JsonConvert.DeserializeObject<Connection>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
275280
}
@@ -291,7 +296,7 @@ public async Task<UpdateConnectionResponse> UpdateConnectionAsync(UpdateConnecti
291296

292297

293298
var httpRequest = new HttpRequestMessage(HttpMethod.Patch, urlString);
294-
httpRequest.Headers.Add("user-agent", $"speakeasy-sdk/{_language} {_sdkVersion} {_sdkGenVersion} {_openapiDocVersion}");
299+
httpRequest.Headers.Add("user-agent", _userAgent);
295300

296301
var serializedBody = RequestBodySerializer.Serialize(request, "UpdateConnection", "json");
297302
if (serializedBody != null)
@@ -311,9 +316,10 @@ public async Task<UpdateConnectionResponse> UpdateConnectionAsync(UpdateConnecti
311316
ContentType = contentType,
312317
RawResponse = httpResponse
313318
};
319+
314320
if((response.StatusCode == 200))
315321
{
316-
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
322+
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
317323
{
318324
response.Connection = JsonConvert.DeserializeObject<Connection>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
319325
}

0 commit comments

Comments
 (0)