Skip to content

Commit d854096

Browse files
ci: regenerated with OpenAPI Doc 1.1, Speakeay CLI 1.91.0 (#128)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
1 parent a7cc876 commit d854096

File tree

125 files changed

+707
-240
lines changed

Some content is hidden

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

125 files changed

+707
-240
lines changed

sync-for-commerce/CodatSyncCommerce/AdvancedControls.cs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,15 @@ public interface IAdvancedControlsSDK
6262
Task<SetConfigurationResponse> SetConfigurationAsync(SetConfigurationRequest? request = null);
6363
}
6464

65+
/// <summary>
66+
/// Advanced company management and sync preferences.
67+
/// </summary>
6568
public class AdvancedControlsSDK: IAdvancedControlsSDK
6669
{
6770
public SDKConfig Config { get; private set; }
6871
private const string _language = "csharp";
69-
private const string _sdkVersion = "1.1.0";
70-
private const string _sdkGenVersion = "2.116.0";
72+
private const string _sdkVersion = "2.1.0";
73+
private const string _sdkGenVersion = "2.129.1";
7174
private const string _openapiDocVersion = "1.1";
7275
private string _serverUrl = "";
7376
private ISpeakeasyHttpClient _defaultClient;
@@ -117,7 +120,7 @@ public async Task<CreateCompanyResponse> CreateCompanyAsync(CreateCompany? reque
117120
{
118121
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
119122
{
120-
response.Company = JsonConvert.DeserializeObject<Company>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
123+
response.Company = JsonConvert.DeserializeObject<Company>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
121124
}
122125

123126
return response;
@@ -156,7 +159,7 @@ public async Task<GetConfigurationResponse> GetConfigurationAsync(GetConfigurati
156159
{
157160
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
158161
{
159-
response.Configuration = JsonConvert.DeserializeObject<Configuration>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
162+
response.Configuration = JsonConvert.DeserializeObject<Configuration>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
160163
}
161164

162165
return response;
@@ -195,7 +198,7 @@ public async Task<ListCompaniesResponse> ListCompaniesAsync(ListCompaniesRequest
195198
{
196199
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
197200
{
198-
response.Companies = JsonConvert.DeserializeObject<Companies>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
201+
response.Companies = JsonConvert.DeserializeObject<Companies>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
199202
}
200203

201204
return response;
@@ -234,7 +237,7 @@ public async Task<SetConfigurationResponse> SetConfigurationAsync(SetConfigurati
234237
{
235238
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
236239
{
237-
response.Configuration = JsonConvert.DeserializeObject<Configuration>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
240+
response.Configuration = JsonConvert.DeserializeObject<Configuration>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
238241
}
239242

240243
return response;

sync-for-commerce/CodatSyncCommerce/CodatSyncCommerce.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<IsPackable>true</IsPackable>
44
<PackageId>Codat.Sync.Commerce</PackageId>
5-
<Version>1.1.0</Version>
5+
<Version>2.1.0</Version>
66
<Authors>Codat</Authors>
77
<TargetFramework>net6.0</TargetFramework>
88
<Nullable>enable</Nullable>

sync-for-commerce/CodatSyncCommerce/CodatSyncCommerceSDK.cs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,18 @@ public class SDKConfig
6262
{
6363
}
6464

65+
/// <summary>
66+
/// Sync for Commerce: The API for Sync for Commerce. &lt;br/&gt;
67+
///
68+
/// <remarks>
69+
/// <br/>
70+
/// 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.<br/>
71+
/// <br/>
72+
/// <a href="https://docs.codat.io/commerce/overview">Read More...</a><br/>
73+
/// <br/>
74+
/// Not seeing the endpoints you&apos;re expecting? We&apos;ve <a href="https://docs.codat.io/updates/230901-new-products">reorganized our products</a>, and you may be using a <a href="https://docs.codat.io/sync-for-commerce-v1-api#/">different version of Sync for Commerce</a>.
75+
/// </remarks>
76+
/// </summary>
6577
public class CodatSyncCommerceSDK: ICodatSyncCommerceSDK
6678
{
6779
public SDKConfig Config { get; private set; }
@@ -71,8 +83,8 @@ public class CodatSyncCommerceSDK: ICodatSyncCommerceSDK
7183
};
7284

7385
private const string _language = "csharp";
74-
private const string _sdkVersion = "1.1.0";
75-
private const string _sdkGenVersion = "2.116.0";
86+
private const string _sdkVersion = "2.1.0";
87+
private const string _sdkGenVersion = "2.129.1";
7688
private const string _openapiDocVersion = "1.1";
7789
private string _serverUrl = "";
7890
private ISpeakeasyHttpClient _defaultClient;

sync-for-commerce/CodatSyncCommerce/Connections.cs

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,15 @@ public interface IConnectionsSDK
7373
Task<UpdateConnectionResponse> UpdateConnectionAsync(UpdateConnectionRequest? request = null);
7474
}
7575

76+
/// <summary>
77+
/// Create new and manage existing Sync for Commerce connections using the Sync flow UI.
78+
/// </summary>
7679
public class ConnectionsSDK: IConnectionsSDK
7780
{
7881
public SDKConfig Config { get; private set; }
7982
private const string _language = "csharp";
80-
private const string _sdkVersion = "1.1.0";
81-
private const string _sdkGenVersion = "2.116.0";
83+
private const string _sdkVersion = "2.1.0";
84+
private const string _sdkGenVersion = "2.129.1";
8285
private const string _openapiDocVersion = "1.1";
8386
private string _serverUrl = "";
8487
private ISpeakeasyHttpClient _defaultClient;
@@ -128,7 +131,7 @@ public async Task<CreateConnectionResponse> CreateAsync(CreateConnectionRequest?
128131
{
129132
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
130133
{
131-
response.Connection = JsonConvert.DeserializeObject<Connection>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
134+
response.Connection = JsonConvert.DeserializeObject<Connection>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
132135
}
133136

134137
return response;
@@ -137,7 +140,7 @@ public async Task<CreateConnectionResponse> CreateAsync(CreateConnectionRequest?
137140
{
138141
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
139142
{
140-
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
143+
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
141144
}
142145

143146
return response;
@@ -176,7 +179,7 @@ public async Task<GetSyncFlowUrlResponse> GetSyncFlowUrlAsync(GetSyncFlowUrlRequ
176179
{
177180
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
178181
{
179-
response.SyncFlowUrl = JsonConvert.DeserializeObject<SyncFlowUrl>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
182+
response.SyncFlowUrl = JsonConvert.DeserializeObject<SyncFlowUrl>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
180183
}
181184

182185
return response;
@@ -215,7 +218,7 @@ public async Task<ListConnectionsResponse> ListAsync(ListConnectionsRequest? req
215218
{
216219
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
217220
{
218-
response.Connections = JsonConvert.DeserializeObject<Connections>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
221+
response.Connections = JsonConvert.DeserializeObject<Connections>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
219222
}
220223

221224
return response;
@@ -224,7 +227,7 @@ public async Task<ListConnectionsResponse> ListAsync(ListConnectionsRequest? req
224227
{
225228
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
226229
{
227-
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
230+
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
228231
}
229232

230233
return response;
@@ -268,7 +271,7 @@ public async Task<UpdateConnectionAuthorizationResponse> UpdateAuthorizationAsyn
268271
{
269272
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
270273
{
271-
response.Connection = JsonConvert.DeserializeObject<Connection>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
274+
response.Connection = JsonConvert.DeserializeObject<Connection>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
272275
}
273276

274277
return response;
@@ -312,7 +315,7 @@ public async Task<UpdateConnectionResponse> UpdateConnectionAsync(UpdateConnecti
312315
{
313316
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
314317
{
315-
response.Connection = JsonConvert.DeserializeObject<Connection>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
318+
response.Connection = JsonConvert.DeserializeObject<Connection>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
316319
}
317320

318321
return response;

sync-for-commerce/CodatSyncCommerce/Integrations.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,15 @@ public interface IIntegrationsSDK
4444
Task<ListIntegrationsResponse> ListAsync(ListIntegrationsRequest? request = null);
4545
}
4646

47+
/// <summary>
48+
/// View useful information about codat&amp;apos;s integrations.
49+
/// </summary>
4750
public class IntegrationsSDK: IIntegrationsSDK
4851
{
4952
public SDKConfig Config { get; private set; }
5053
private const string _language = "csharp";
51-
private const string _sdkVersion = "1.1.0";
52-
private const string _sdkGenVersion = "2.116.0";
54+
private const string _sdkVersion = "2.1.0";
55+
private const string _sdkGenVersion = "2.129.1";
5356
private const string _openapiDocVersion = "1.1";
5457
private string _serverUrl = "";
5558
private ISpeakeasyHttpClient _defaultClient;
@@ -94,7 +97,7 @@ public async Task<GetIntegrationBrandingResponse> GetBrandingAsync(GetIntegratio
9497
{
9598
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
9699
{
97-
response.Branding = JsonConvert.DeserializeObject<Branding>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
100+
response.Branding = JsonConvert.DeserializeObject<Branding>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
98101
}
99102

100103
return response;
@@ -133,7 +136,7 @@ public async Task<ListIntegrationsResponse> ListAsync(ListIntegrationsRequest? r
133136
{
134137
if(Utilities.IsContentTypeMatch("application/json", response.ContentType))
135138
{
136-
response.Integrations = JsonConvert.DeserializeObject<Integrations>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer() }});
139+
response.Integrations = JsonConvert.DeserializeObject<Integrations>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
137140
}
138141

139142
return response;

sync-for-commerce/CodatSyncCommerce/Models/Operations/CreateCompanyResponse.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,19 @@ public class CreateCompanyResponse
2222
/// </summary>
2323
public Company? Company { get; set; }
2424

25+
/// <summary>
26+
/// HTTP response content type for this operation
27+
/// </summary>
2528
public string? ContentType { get; set; } = default!;
2629

30+
/// <summary>
31+
/// HTTP response status code for this operation
32+
/// </summary>
2733
public int StatusCode { get; set; } = default!;
2834

35+
/// <summary>
36+
/// Raw HTTP response; suitable for custom response parsing
37+
/// </summary>
2938
public HttpResponseMessage? RawResponse { get; set; }
3039
}
3140
}

sync-for-commerce/CodatSyncCommerce/Models/Operations/CreateConnectionRequest.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ public class CreateConnectionRequest
1818
[SpeakeasyMetadata("request:mediaType=application/json")]
1919
public CreateConnectionRequestBody? RequestBody { get; set; }
2020

21+
/// <summary>
22+
/// Unique identifier for a company.
23+
/// </summary>
2124
[SpeakeasyMetadata("pathParam:style=simple,explode=false,name=companyId")]
2225
public string CompanyId { get; set; } = default!;
2326
}

sync-for-commerce/CodatSyncCommerce/Models/Operations/CreateConnectionRequestBody.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ namespace CodatSyncCommerce.Models.Operations
1515
public class CreateConnectionRequestBody
1616
{
1717

18+
/// <summary>
19+
/// A unique 4-letter key to represent a platform in each integration. View &lt;a href=&quot;https://docs.codat.io/integrations/accounting/overview#platform-keys&quot;&gt;accounting&lt;/a&gt;, &lt;a href=&quot;https://docs.codat.io/integrations/banking/overview#platform-keys&quot;&gt;banking&lt;/a&gt;, and &lt;a href=&quot;https://docs.codat.io/integrations/commerce/overview#platform-keys&quot;&gt;commerce&lt;/a&gt; platform keys.
20+
/// </summary>
1821
[JsonProperty("platformKey")]
1922
public string? PlatformKey { get; set; }
2023
}

sync-for-commerce/CodatSyncCommerce/Models/Operations/CreateConnectionResponse.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,24 @@ public class CreateConnectionResponse
2222
/// </summary>
2323
public Connection? Connection { get; set; }
2424

25+
/// <summary>
26+
/// HTTP response content type for this operation
27+
/// </summary>
2528
public string? ContentType { get; set; } = default!;
2629

2730
/// <summary>
2831
/// Your API request was not properly authorized.
2932
/// </summary>
3033
public ErrorMessage? ErrorMessage { get; set; }
3134

35+
/// <summary>
36+
/// HTTP response status code for this operation
37+
/// </summary>
3238
public int StatusCode { get; set; } = default!;
3339

40+
/// <summary>
41+
/// Raw HTTP response; suitable for custom response parsing
42+
/// </summary>
3443
public HttpResponseMessage? RawResponse { get; set; }
3544
}
3645
}

sync-for-commerce/CodatSyncCommerce/Models/Operations/GetConfigTextSyncFlowResponse.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,24 @@ namespace CodatSyncCommerce.Models.Operations
1818
public class GetConfigTextSyncFlowResponse
1919
{
2020

21+
/// <summary>
22+
/// HTTP response content type for this operation
23+
/// </summary>
2124
public string? ContentType { get; set; } = default!;
2225

2326
/// <summary>
2427
/// Success
2528
/// </summary>
2629
public Dictionary<string, Localization>? LocalizationInfo { get; set; }
2730

31+
/// <summary>
32+
/// HTTP response status code for this operation
33+
/// </summary>
2834
public int StatusCode { get; set; } = default!;
2935

36+
/// <summary>
37+
/// Raw HTTP response; suitable for custom response parsing
38+
/// </summary>
3039
public HttpResponseMessage? RawResponse { get; set; }
3140
}
3241
}

sync-for-commerce/CodatSyncCommerce/Models/Operations/GetConfigurationRequest.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ namespace CodatSyncCommerce.Models.Operations
1515
public class GetConfigurationRequest
1616
{
1717

18+
/// <summary>
19+
/// Unique identifier for a company.
20+
/// </summary>
1821
[SpeakeasyMetadata("pathParam:style=simple,explode=false,name=companyId")]
1922
public string CompanyId { get; set; } = default!;
2023
}

sync-for-commerce/CodatSyncCommerce/Models/Operations/GetConfigurationResponse.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,19 @@ public class GetConfigurationResponse
2222
/// </summary>
2323
public Configuration? Configuration { get; set; }
2424

25+
/// <summary>
26+
/// HTTP response content type for this operation
27+
/// </summary>
2528
public string? ContentType { get; set; } = default!;
2629

30+
/// <summary>
31+
/// HTTP response status code for this operation
32+
/// </summary>
2733
public int StatusCode { get; set; } = default!;
2834

35+
/// <summary>
36+
/// Raw HTTP response; suitable for custom response parsing
37+
/// </summary>
2938
public HttpResponseMessage? RawResponse { get; set; }
3039
}
3140
}

0 commit comments

Comments
 (0)