Skip to content

Commit c8775d5

Browse files
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.423.5 (#320)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
1 parent dac693c commit c8775d5

17 files changed

+96
-49
lines changed

.speakeasy/workflow.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
speakeasyVersion: 1.423.3
1+
speakeasyVersion: 1.423.5
22
sources:
33
bank-feeds-source:
44
sourceNamespace: bank-feeds-source
@@ -37,8 +37,8 @@ sources:
3737
- main
3838
sync-for-payables-source:
3939
sourceNamespace: sync-for-payables-source
40-
sourceRevisionDigest: sha256:20c00cfeda723eddf2d75e47a875c3110ee333378980559d13a54bb8280bbf9f
41-
sourceBlobDigest: sha256:1ffa6da669abbf5bb7fef62b991e1c237af95f876b930288b8ab14994e0ab0b5
40+
sourceRevisionDigest: sha256:f1bb2a4dee08d524c8009ee2c6970011d967511542e4ebf384f0574e93c24a18
41+
sourceBlobDigest: sha256:f472244dc98845d90f55da060a2cc4acee05c771a89a0ff55bc5db04108e5693
4242
tags:
4343
- latest
4444
- main
@@ -85,8 +85,8 @@ targets:
8585
sync-for-payables-library:
8686
source: sync-for-payables-source
8787
sourceNamespace: sync-for-payables-source
88-
sourceRevisionDigest: sha256:20c00cfeda723eddf2d75e47a875c3110ee333378980559d13a54bb8280bbf9f
89-
sourceBlobDigest: sha256:1ffa6da669abbf5bb7fef62b991e1c237af95f876b930288b8ab14994e0ab0b5
88+
sourceRevisionDigest: sha256:f1bb2a4dee08d524c8009ee2c6970011d967511542e4ebf384f0574e93c24a18
89+
sourceBlobDigest: sha256:f472244dc98845d90f55da060a2cc4acee05c771a89a0ff55bc5db04108e5693
9090
sync-for-payables-version-1-library:
9191
source: sync-for-payables-version-1-source
9292
sourceNamespace: sync-for-payables-version-1-source

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

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 00cbdd6c-b863-4d25-8a48-4bec7ae20fc1
33
management:
4-
docChecksum: 16c2aba5060738f14671556b6526c400
4+
docChecksum: c0f4a56a46c488781ea9be7def894f8c
55
docVersion: 3.0.0
6-
speakeasyVersion: 1.423.3
7-
generationVersion: 2.442.11
8-
releaseVersion: 8.0.0
9-
configChecksum: 657d611f8074bdd3d37cc7b07fce5f79
6+
speakeasyVersion: 1.423.5
7+
generationVersion: 2.445.1
8+
releaseVersion: 9.0.0
9+
configChecksum: 8a9f6b76d7f676922f2562b273823691
1010
repoURL: https://github.com/codatio/client-sdk-csharp.git
1111
repoSubDirectory: sync-for-payables
1212
published: true
@@ -23,6 +23,7 @@ features:
2323
globalSecurityFlattening: 0.1.0
2424
globalServerURLs: 2.82.3
2525
intellisenseMarkdownSupport: 0.1.0
26+
methodArguments: 0.1.0
2627
nameOverrides: 2.81.2
2728
nullables: 0.1.0
2829
responseFormat: 0.0.4
@@ -773,6 +774,15 @@ examples:
773774
responses:
774775
"400":
775776
application/json: {"statusCode": 400, "service": "PublicApi", "error": "Error processing request - not valid.", "correlationId": "bc997528a9d7abb9161ef45f05d38599", "canBeRetried": "Unknown", "detailedErrorCode": 0}
777+
Attachment metadata:
778+
parameters:
779+
path:
780+
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002"
781+
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171"
782+
billId: "EILBDVJVNUAGVKRQ"
783+
responses:
784+
"201":
785+
application/json: {"id": "422f093f-e556-4bf3-91c0-93af70c3e850", "name": "receipt.png", "contentType": "image/png", "dateCreated": "2022-10-23T00:00:00.000Z", "fileSize": 100, "includeWhenSent": true, "sourceModifiedDate": "2022-05-26T10:34:10Z"}
776786
list-bill-attachments:
777787
Info:
778788
parameters:
@@ -795,6 +805,15 @@ examples:
795805
application/json: {"dateCreated": "2022-10-23T00:00:00Z", "sourceModifiedDate": "2022-10-23T00:00:00Z"}
796806
"401":
797807
application/json: {"statusCode": 401, "service": "PublicApi", "error": "Unauthorized", "correlationId": "7eb40d6b415d7bcd99ce658268284056", "canBeRetried": "Unknown", "detailedErrorCode": 0}
808+
Attachments:
809+
parameters:
810+
path:
811+
companyId: "8a210b68-6988-11ed-a1eb-0242ac120002"
812+
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171"
813+
billId: "EILBDVJVNUAGVKRQ"
814+
responses:
815+
"200":
816+
application/json: [{"id": "422f093f-e556-4bf3-91c0-93af70c3e850", "name": "receipt.png", "contentType": "image/png", "dateCreated": "2022-10-23T00:00:00.000Z", "fileSize": 100, "includeWhenSent": true, "sourceModifiedDate": "2022-05-26T10:34:10Z"}, {"id": "20cfd269-2f0f-44ef-a28c-7b5f725cf1aa", "name": "another_receipt.png", "contentType": "image/png", "dateCreated": "2022-10-24T00:00:00.000Z", "fileSize": 98, "includeWhenSent": true, "sourceModifiedDate": "2022-05-27T12:38:10Z"}]
798817
download-bill-attachment:
799818
Unauthorized:
800819
parameters:

sync-for-payables/.speakeasy/gen.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ generation:
1212
auth:
1313
oAuth2ClientCredentialsEnabled: false
1414
csharp:
15-
version: 8.0.0
15+
version: 9.0.0
1616
additionalDependencies: []
1717
author: Codat
1818
clientServerStatusCodesAsErrors: true
@@ -21,6 +21,7 @@ csharp:
2121
dotnetVersion: net8.0
2222
enableSourceLink: false
2323
flattenGlobalSecurity: true
24+
flatteningOrder: ""
2425
imports:
2526
option: openapi
2627
paths:
@@ -32,6 +33,7 @@ csharp:
3233
includeDebugSymbols: false
3334
inputModelSuffix: input
3435
maxMethodParams: 0
36+
methodArguments: infer-optional-args
3537
outputModelSuffix: output
3638
packageName: Codat.Sync.Payables
3739
packageTags: ""

sync-for-payables/Codat/Sync/Payables/BankAccounts.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ public class BankAccounts: IBankAccounts
4747
{
4848
public SDKConfig SDKConfiguration { get; private set; }
4949
private const string _language = "csharp";
50-
private const string _sdkVersion = "8.0.0";
51-
private const string _sdkGenVersion = "2.442.11";
50+
private const string _sdkVersion = "9.0.0";
51+
private const string _sdkGenVersion = "2.445.1";
5252
private const string _openapiDocVersion = "3.0.0";
53-
private const string _userAgent = "speakeasy-sdk/csharp 8.0.0 2.442.11 3.0.0 Codat.Sync.Payables";
53+
private const string _userAgent = "speakeasy-sdk/csharp 9.0.0 2.445.1 3.0.0 Codat.Sync.Payables";
5454
private string _serverUrl = "";
5555
private ISpeakeasyHttpClient _client;
5656
private Func<Codat.Sync.Payables.Models.Components.Security>? _securitySource;

sync-for-payables/Codat/Sync/Payables/BillPayments.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ public class BillPayments: IBillPayments
6060
{
6161
public SDKConfig SDKConfiguration { get; private set; }
6262
private const string _language = "csharp";
63-
private const string _sdkVersion = "8.0.0";
64-
private const string _sdkGenVersion = "2.442.11";
63+
private const string _sdkVersion = "9.0.0";
64+
private const string _sdkGenVersion = "2.445.1";
6565
private const string _openapiDocVersion = "3.0.0";
66-
private const string _userAgent = "speakeasy-sdk/csharp 8.0.0 2.442.11 3.0.0 Codat.Sync.Payables";
66+
private const string _userAgent = "speakeasy-sdk/csharp 9.0.0 2.445.1 3.0.0 Codat.Sync.Payables";
6767
private string _serverUrl = "";
6868
private ISpeakeasyHttpClient _client;
6969
private Func<Codat.Sync.Payables.Models.Components.Security>? _securitySource;

sync-for-payables/Codat/Sync/Payables/Bills.cs

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ public class Bills: IBills
109109
{
110110
public SDKConfig SDKConfiguration { get; private set; }
111111
private const string _language = "csharp";
112-
private const string _sdkVersion = "8.0.0";
113-
private const string _sdkGenVersion = "2.442.11";
112+
private const string _sdkVersion = "9.0.0";
113+
private const string _sdkGenVersion = "2.445.1";
114114
private const string _openapiDocVersion = "3.0.0";
115-
private const string _userAgent = "speakeasy-sdk/csharp 8.0.0 2.442.11 3.0.0 Codat.Sync.Payables";
115+
private const string _userAgent = "speakeasy-sdk/csharp 9.0.0 2.445.1 3.0.0 Codat.Sync.Payables";
116116
private string _serverUrl = "";
117117
private ISpeakeasyHttpClient _client;
118118
private Func<Codat.Sync.Payables.Models.Components.Security>? _securitySource;
@@ -580,13 +580,21 @@ public async Task<UploadBillAttachmentResponse> UploadAttachmentAsync(UploadBill
580580
var contentType = httpResponse.Content.Headers.ContentType?.MediaType;
581581
int responseStatusCode = (int)httpResponse.StatusCode;
582582
if(responseStatusCode == 201)
583-
{
584-
return new UploadBillAttachmentResponse()
583+
{
584+
if(Utilities.IsContentTypeMatch("application/json", contentType))
585585
{
586-
StatusCode = responseStatusCode,
587-
ContentType = contentType,
588-
RawResponse = httpResponse
589-
};
586+
var obj = ResponseBodyDeserializer.Deserialize<Attachment>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
587+
var response = new UploadBillAttachmentResponse()
588+
{
589+
StatusCode = responseStatusCode,
590+
ContentType = contentType,
591+
RawResponse = httpResponse
592+
};
593+
response.Attachment = obj;
594+
return response;
595+
}
596+
597+
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
590598
}
591599
else if(new List<int>{400, 401, 402, 403, 404, 429, 500, 503}.Contains(responseStatusCode))
592600
{
@@ -609,7 +617,7 @@ public async Task<UploadBillAttachmentResponse> UploadAttachmentAsync(UploadBill
609617
public async Task<ListBillAttachmentsResponse> ListAttachmentsAsync(ListBillAttachmentsRequest request, RetryConfig? retryConfig = null)
610618
{
611619
string baseUrl = this.SDKConfiguration.GetTemplatedServerUrl();
612-
var urlString = URLBuilder.Build(baseUrl, "/companies/{companyId}/connections/{connectionId}/bills/{billId}/attachments", request);
620+
var urlString = URLBuilder.Build(baseUrl, "/companies/{companyId}/connections/{connectionId}/payables/bills/{billId}/attachments", request);
613621

614622
var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
615623
httpRequest.Headers.Add("user-agent", _userAgent);
@@ -694,14 +702,14 @@ public async Task<ListBillAttachmentsResponse> ListAttachmentsAsync(ListBillAtta
694702
{
695703
if(Utilities.IsContentTypeMatch("application/json", contentType))
696704
{
697-
var obj = ResponseBodyDeserializer.Deserialize<Attachment>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
705+
var obj = ResponseBodyDeserializer.Deserialize<List<Attachment>>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
698706
var response = new ListBillAttachmentsResponse()
699707
{
700708
StatusCode = responseStatusCode,
701709
ContentType = contentType,
702710
RawResponse = httpResponse
703711
};
704-
response.Attachment = obj;
712+
response.Attachments = obj;
705713
return response;
706714
}
707715

sync-for-payables/Codat/Sync/Payables/Codat.Sync.Payables.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<IsPackable>true</IsPackable>
55
<PackageId>Codat.Sync.Payables</PackageId>
6-
<Version>8.0.0</Version>
6+
<Version>9.0.0</Version>
77
<TargetFramework>net8.0</TargetFramework>
88
<Authors>Codat</Authors>
99
<Copyright>Copyright (c) Codat 2024</Copyright>

sync-for-payables/Codat/Sync/Payables/CodatSyncPayables.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,10 @@ public class CodatSyncPayables: ICodatSyncPayables
169169
public SDKConfig SDKConfiguration { get; private set; }
170170

171171
private const string _language = "csharp";
172-
private const string _sdkVersion = "8.0.0";
173-
private const string _sdkGenVersion = "2.442.11";
172+
private const string _sdkVersion = "9.0.0";
173+
private const string _sdkGenVersion = "2.445.1";
174174
private const string _openapiDocVersion = "3.0.0";
175-
private const string _userAgent = "speakeasy-sdk/csharp 8.0.0 2.442.11 3.0.0 Codat.Sync.Payables";
175+
private const string _userAgent = "speakeasy-sdk/csharp 9.0.0 2.445.1 3.0.0 Codat.Sync.Payables";
176176
private string _serverUrl = "";
177177
private int _serverIndex = 0;
178178
private ISpeakeasyHttpClient _client;

sync-for-payables/Codat/Sync/Payables/Companies.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ public class Companies: ICompanies
100100
{
101101
public SDKConfig SDKConfiguration { get; private set; }
102102
private const string _language = "csharp";
103-
private const string _sdkVersion = "8.0.0";
104-
private const string _sdkGenVersion = "2.442.11";
103+
private const string _sdkVersion = "9.0.0";
104+
private const string _sdkGenVersion = "2.445.1";
105105
private const string _openapiDocVersion = "3.0.0";
106-
private const string _userAgent = "speakeasy-sdk/csharp 8.0.0 2.442.11 3.0.0 Codat.Sync.Payables";
106+
private const string _userAgent = "speakeasy-sdk/csharp 9.0.0 2.445.1 3.0.0 Codat.Sync.Payables";
107107
private string _serverUrl = "";
108108
private ISpeakeasyHttpClient _client;
109109
private Func<Codat.Sync.Payables.Models.Components.Security>? _securitySource;

sync-for-payables/Codat/Sync/Payables/CompanyInformation.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ public class CompanyInformation: ICompanyInformation
4747
{
4848
public SDKConfig SDKConfiguration { get; private set; }
4949
private const string _language = "csharp";
50-
private const string _sdkVersion = "8.0.0";
51-
private const string _sdkGenVersion = "2.442.11";
50+
private const string _sdkVersion = "9.0.0";
51+
private const string _sdkGenVersion = "2.445.1";
5252
private const string _openapiDocVersion = "3.0.0";
53-
private const string _userAgent = "speakeasy-sdk/csharp 8.0.0 2.442.11 3.0.0 Codat.Sync.Payables";
53+
private const string _userAgent = "speakeasy-sdk/csharp 9.0.0 2.445.1 3.0.0 Codat.Sync.Payables";
5454
private string _serverUrl = "";
5555
private ISpeakeasyHttpClient _client;
5656
private Func<Codat.Sync.Payables.Models.Components.Security>? _securitySource;

sync-for-payables/Codat/Sync/Payables/Connections.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ public class Connections: IConnections
8484
{
8585
public SDKConfig SDKConfiguration { get; private set; }
8686
private const string _language = "csharp";
87-
private const string _sdkVersion = "8.0.0";
88-
private const string _sdkGenVersion = "2.442.11";
87+
private const string _sdkVersion = "9.0.0";
88+
private const string _sdkGenVersion = "2.445.1";
8989
private const string _openapiDocVersion = "3.0.0";
90-
private const string _userAgent = "speakeasy-sdk/csharp 8.0.0 2.442.11 3.0.0 Codat.Sync.Payables";
90+
private const string _userAgent = "speakeasy-sdk/csharp 9.0.0 2.445.1 3.0.0 Codat.Sync.Payables";
9191
private string _serverUrl = "";
9292
private ISpeakeasyHttpClient _client;
9393
private Func<Codat.Sync.Payables.Models.Components.Security>? _securitySource;

sync-for-payables/Codat/Sync/Payables/Models/Requests/ListBillAttachmentsResponse.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ namespace Codat.Sync.Payables.Models.Requests
1111
{
1212
using Codat.Sync.Payables.Models.Components;
1313
using Codat.Sync.Payables.Utils;
14+
using System.Collections.Generic;
1415
using System.Net.Http;
1516
using System;
1617

@@ -35,6 +36,6 @@ public class ListBillAttachmentsResponse
3536
/// <summary>
3637
/// Success
3738
/// </summary>
38-
public Attachment? Attachment { get; set; } = null;
39+
public List<Attachment>? Attachments { get; set; }
3940
}
4041
}

sync-for-payables/Codat/Sync/Payables/Models/Requests/UploadBillAttachmentResponse.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#nullable enable
1010
namespace Codat.Sync.Payables.Models.Requests
1111
{
12+
using Codat.Sync.Payables.Models.Components;
1213
using Codat.Sync.Payables.Utils;
1314
using System.Net.Http;
1415
using System;
@@ -30,5 +31,10 @@ public class UploadBillAttachmentResponse
3031
/// Raw HTTP response; suitable for custom response parsing
3132
/// </summary>
3233
public HttpResponseMessage RawResponse { get; set; } = default!;
34+
35+
/// <summary>
36+
/// Created
37+
/// </summary>
38+
public Attachment? Attachment { get; set; } = null;
3339
}
3440
}

sync-for-payables/Codat/Sync/Payables/Suppliers.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ public class Suppliers: ISuppliers
6363
{
6464
public SDKConfig SDKConfiguration { get; private set; }
6565
private const string _language = "csharp";
66-
private const string _sdkVersion = "8.0.0";
67-
private const string _sdkGenVersion = "2.442.11";
66+
private const string _sdkVersion = "9.0.0";
67+
private const string _sdkGenVersion = "2.445.1";
6868
private const string _openapiDocVersion = "3.0.0";
69-
private const string _userAgent = "speakeasy-sdk/csharp 8.0.0 2.442.11 3.0.0 Codat.Sync.Payables";
69+
private const string _userAgent = "speakeasy-sdk/csharp 9.0.0 2.445.1 3.0.0 Codat.Sync.Payables";
7070
private string _serverUrl = "";
7171
private ISpeakeasyHttpClient _client;
7272
private Func<Codat.Sync.Payables.Models.Components.Security>? _securitySource;

sync-for-payables/RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,14 @@ Based on:
158158
### Generated
159159
- [csharp v8.0.0] sync-for-payables
160160
### Releases
161-
- [NuGet v8.0.0] https://www.nuget.org/packages/Codat.Sync.Payables/8.0.0 - sync-for-payables
161+
- [NuGet v8.0.0] https://www.nuget.org/packages/Codat.Sync.Payables/8.0.0 - sync-for-payables
162+
163+
## 2024-10-31 13:23:02
164+
### Changes
165+
Based on:
166+
- OpenAPI Doc
167+
- Speakeasy CLI 1.423.5 (2.445.1) https://github.com/speakeasy-api/speakeasy
168+
### Generated
169+
- [csharp v9.0.0] sync-for-payables
170+
### Releases
171+
- [NuGet v9.0.0] https://www.nuget.org/packages/Codat.Sync.Payables/9.0.0 - sync-for-payables

sync-for-payables/docs/Models/Requests/ListBillAttachmentsResponse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
99
| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
1010
| `RawResponse` | [HttpResponseMessage](https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage?view=net-5.0) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
11-
| `Attachment` | [Attachment](../../Models/Components/Attachment.md) | :heavy_minus_sign: | Success |
11+
| `Attachments` | List<[Attachment](../../Models/Components/Attachment.md)> | :heavy_minus_sign: | Success |

0 commit comments

Comments
 (0)