Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 3.0.0, Speakeasy CLI 1.136.1 (#241)
Browse files Browse the repository at this point in the history
Co-authored-by: speakeasybot <[email protected]>
  • Loading branch information
github-actions[bot] and speakeasybot authored Jan 12, 2024
1 parent 5cea580 commit ac1b6da
Show file tree
Hide file tree
Showing 52 changed files with 1,638 additions and 55 deletions.
67 changes: 51 additions & 16 deletions bank-feeds/.speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 0e14a69b-dba1-4c0f-85f5-3b5d7f7f7731
management:
docChecksum: 3a0b899f2dc3766b39e4fd3e931ebe0c
docChecksum: d8a3c846c6e6c943937af494c3623e4f
docVersion: 3.0.0
speakeasyVersion: internal
generationVersion: 2.230.3
releaseVersion: 4.0.1
configChecksum: 50a31dadee0c2f34640461ed64c36527
generationVersion: 2.231.0
releaseVersion: 4.1.0
configChecksum: c8523722d6a3d25e87ba781150e508bb
repoURL: https://github.com/codatio/client-sdk-csharp.git
repoSubDirectory: bank-feeds
published: true
Expand All @@ -17,6 +17,7 @@ features:
examples: 2.81.3
globalSecurity: 2.81.2
globalServerURLs: 2.82.2
inputOutputModels: 2.83.0
nameOverrides: 2.81.1
generatedFiles:
- CodatBankFeeds/Companies.cs
Expand Down Expand Up @@ -78,6 +79,10 @@ generatedFiles:
- CodatBankFeeds/Models/Operations/ListSourceAccountsResponse.cs
- CodatBankFeeds/Models/Operations/UpdateSourceAccountRequest.cs
- CodatBankFeeds/Models/Operations/UpdateSourceAccountResponse.cs
- CodatBankFeeds/Models/Operations/CreateBankAccountRequest.cs
- CodatBankFeeds/Models/Operations/CreateBankAccountResponse.cs
- CodatBankFeeds/Models/Operations/GetCreateBankAccountsModelRequest.cs
- CodatBankFeeds/Models/Operations/GetCreateBankAccountsModelResponse.cs
- CodatBankFeeds/Models/Operations/ListBankAccountsRequest.cs
- CodatBankFeeds/Models/Operations/ListBankAccountsResponse.cs
- CodatBankFeeds/Models/Operations/CreateBankTransactionsRequest.cs
Expand Down Expand Up @@ -109,22 +114,35 @@ generatedFiles:
- CodatBankFeeds/Models/Shared/TargetAccountOption.cs
- CodatBankFeeds/Models/Shared/SourceAccount.cs
- CodatBankFeeds/Models/Shared/BankAccountCredentials.cs
- CodatBankFeeds/Models/Shared/BankAccountType.cs
- CodatBankFeeds/Models/Shared/BankAccountCreateResponseBankAccountType.cs
- CodatBankFeeds/Models/Shared/Metadata.cs
- CodatBankFeeds/Models/Shared/SupplementalData.cs
- CodatBankFeeds/Models/Shared/AccountingBankAccount.cs
- CodatBankFeeds/Models/Shared/BankAccounts.cs
- CodatBankFeeds/Models/Shared/CreateBankTransactionsResponse.cs
- CodatBankFeeds/Models/Shared/BankAccountCreateResponse.cs
- CodatBankFeeds/Models/Shared/Validation.cs
- CodatBankFeeds/Models/Shared/ValidationItem.cs
- CodatBankFeeds/Models/Shared/PushOperationStatus.cs
- CodatBankFeeds/Models/Shared/DataType.cs
- CodatBankFeeds/Models/Shared/CreateBankTransactions.cs
- CodatBankFeeds/Models/Shared/BankTransactionType.cs
- CodatBankFeeds/Models/Shared/BankTransactions.cs
- CodatBankFeeds/Models/Shared/PushOperationChange.cs
- CodatBankFeeds/Models/Shared/PushChangeType.cs
- CodatBankFeeds/Models/Shared/PushOperationRef.cs
- CodatBankFeeds/Models/Shared/BankAccountType.cs
- CodatBankFeeds/Models/Shared/BankAccountPrototype.cs
- CodatBankFeeds/Models/Shared/PushOption.cs
- CodatBankFeeds/Models/Shared/PushValidationInfo.cs
- CodatBankFeeds/Models/Shared/PushFieldValidation.cs
- CodatBankFeeds/Models/Shared/PushOptionType.cs
- CodatBankFeeds/Models/Shared/PushOptionProperty.cs
- CodatBankFeeds/Models/Shared/PushOptionChoice.cs
- CodatBankFeeds/Models/Shared/BankAccountsBankAccountType.cs
- CodatBankFeeds/Models/Shared/BankAccountsMetadata.cs
- CodatBankFeeds/Models/Shared/BankAccountsSupplementalData.cs
- CodatBankFeeds/Models/Shared/BankAccountsAccountingBankAccount.cs
- CodatBankFeeds/Models/Shared/BankAccounts.cs
- CodatBankFeeds/Models/Shared/CreateBankTransactionsResponse.cs
- CodatBankFeeds/Models/Shared/CreateBankTransactions.cs
- CodatBankFeeds/Models/Shared/BankTransactionType.cs
- CodatBankFeeds/Models/Shared/BankTransactions.cs
- CodatBankFeeds/Models/Shared/PushOperation.cs
- CodatBankFeeds/Models/Shared/PushOperations.cs
- CodatBankFeeds/Models/Shared/Configuration.cs
Expand Down Expand Up @@ -180,6 +198,10 @@ generatedFiles:
- docs/Models/Operations/ListSourceAccountsResponse.md
- docs/Models/Operations/UpdateSourceAccountRequest.md
- docs/Models/Operations/UpdateSourceAccountResponse.md
- docs/Models/Operations/CreateBankAccountRequest.md
- docs/Models/Operations/CreateBankAccountResponse.md
- docs/Models/Operations/GetCreateBankAccountsModelRequest.md
- docs/Models/Operations/GetCreateBankAccountsModelResponse.md
- docs/Models/Operations/ListBankAccountsRequest.md
- docs/Models/Operations/ListBankAccountsResponse.md
- docs/Models/Operations/CreateBankTransactionsRequest.md
Expand Down Expand Up @@ -211,22 +233,35 @@ generatedFiles:
- docs/Models/Shared/TargetAccountOption.md
- docs/Models/Shared/SourceAccount.md
- docs/Models/Shared/BankAccountCredentials.md
- docs/Models/Shared/BankAccountType.md
- docs/Models/Shared/BankAccountCreateResponseBankAccountType.md
- docs/Models/Shared/Metadata.md
- docs/Models/Shared/SupplementalData.md
- docs/Models/Shared/AccountingBankAccount.md
- docs/Models/Shared/BankAccounts.md
- docs/Models/Shared/CreateBankTransactionsResponse.md
- docs/Models/Shared/BankAccountCreateResponse.md
- docs/Models/Shared/Validation.md
- docs/Models/Shared/ValidationItem.md
- docs/Models/Shared/PushOperationStatus.md
- docs/Models/Shared/DataType.md
- docs/Models/Shared/CreateBankTransactions.md
- docs/Models/Shared/BankTransactionType.md
- docs/Models/Shared/BankTransactions.md
- docs/Models/Shared/PushOperationChange.md
- docs/Models/Shared/PushChangeType.md
- docs/Models/Shared/PushOperationRef.md
- docs/Models/Shared/BankAccountType.md
- docs/Models/Shared/BankAccountPrototype.md
- docs/Models/Shared/PushOption.md
- docs/Models/Shared/PushValidationInfo.md
- docs/Models/Shared/PushFieldValidation.md
- docs/Models/Shared/PushOptionType.md
- docs/Models/Shared/PushOptionProperty.md
- docs/Models/Shared/PushOptionChoice.md
- docs/Models/Shared/BankAccountsBankAccountType.md
- docs/Models/Shared/BankAccountsMetadata.md
- docs/Models/Shared/BankAccountsSupplementalData.md
- docs/Models/Shared/BankAccountsAccountingBankAccount.md
- docs/Models/Shared/BankAccounts.md
- docs/Models/Shared/CreateBankTransactionsResponse.md
- docs/Models/Shared/CreateBankTransactions.md
- docs/Models/Shared/BankTransactionType.md
- docs/Models/Shared/BankTransactions.md
- docs/Models/Shared/PushOperation.md
- docs/Models/Shared/PushOperations.md
- docs/Models/Shared/Configuration.md
Expand Down
6 changes: 3 additions & 3 deletions bank-feeds/CodatBankFeeds/AccountMapping.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ public class AccountMapping: IAccountMapping
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "4.0.1";
private const string _sdkGenVersion = "2.230.3";
private const string _sdkVersion = "4.1.0";
private const string _sdkGenVersion = "2.231.0";
private const string _openapiDocVersion = "3.0.0";
private const string _userAgent = "speakeasy-sdk/csharp 4.0.1 2.230.3 3.0.0 Codat.BankFeeds";
private const string _userAgent = "speakeasy-sdk/csharp 4.1.0 2.231.0 3.0.0 Codat.BankFeeds";
private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;
Expand Down
134 changes: 131 additions & 3 deletions bank-feeds/CodatBankFeeds/BankAccounts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,41 @@ namespace Codat.BankFeeds
public interface IBankAccounts
{

/// <summary>
/// Create bank account
///
/// <remarks>
/// The *Create bank account* endpoint creates a new <a href="https://docs.codat.io/bank-feeds-api#/schemas/BankAccount">bank account</a> for a given company&apos;s connection.<br/>
/// <br/>
/// <a href="https://docs.codat.io/bank-feeds-api#/schemas/BankAccount">Bank accounts</a> are financial accounts maintained by a bank or other financial institution.<br/>
/// <br/>
/// **Integration-specific behaviour**<br/>
/// <br/>
/// Required data may vary by integration. To see what data to post, first call <a href="https://docs.codat.io/bank-feeds-api#/operations/get-create-update-bankAccounts-model">Get create/update bank account model</a>.<br/>
/// <br/>
/// Check out our <a href="https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&amp;dataType=bankAccounts">coverage explorer</a> for integrations that support creating an account.
/// </remarks>
/// </summary>
Task<CreateBankAccountResponse> CreateAsync(CreateBankAccountRequest? request = null);

/// <summary>
/// Get create/update bank account model
///
/// <remarks>
/// The *Get create/update bank account model* endpoint returns the expected data for the request payload when creating and updating a <a href="https://docs.codat.io/bank-feeds-api#/schemas/BankAccount">bank account</a> for a given company and integration.<br/>
/// <br/>
/// <a href="https://docs.codat.io/bank-feeds-api#/schemas/BankAccount">Bank accounts</a> are financial accounts maintained by a bank or other financial institution.<br/>
/// <br/>
/// **Integration-specific behaviour**<br/>
/// <br/>
/// See the *response examples* for integration-specific indicative models.<br/>
/// <br/>
/// Check out our <a href="https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&amp;dataType=bankAccounts">coverage explorer</a> for integrations that support creating and updating a bank account.<br/>
///
/// </remarks>
/// </summary>
Task<GetCreateBankAccountsModelResponse> GetCreateModelAsync(GetCreateBankAccountsModelRequest? request = null);

/// <summary>
/// List bank accounts
///
Expand All @@ -47,10 +82,10 @@ public class BankAccounts: IBankAccounts
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "4.0.1";
private const string _sdkGenVersion = "2.230.3";
private const string _sdkVersion = "4.1.0";
private const string _sdkGenVersion = "2.231.0";
private const string _openapiDocVersion = "3.0.0";
private const string _userAgent = "speakeasy-sdk/csharp 4.0.1 2.230.3 3.0.0 Codat.BankFeeds";
private const string _userAgent = "speakeasy-sdk/csharp 4.1.0 2.231.0 3.0.0 Codat.BankFeeds";
private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;
Expand All @@ -64,6 +99,99 @@ public BankAccounts(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient sec
}


public async Task<CreateBankAccountResponse> CreateAsync(CreateBankAccountRequest? request = null)
{
string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails();
var urlString = URLBuilder.Build(baseUrl, "/companies/{companyId}/connections/{connectionId}/push/bankAccounts", request);

var httpRequest = new HttpRequestMessage(HttpMethod.Post, urlString);
httpRequest.Headers.Add("user-agent", _userAgent);

var serializedBody = RequestBodySerializer.Serialize(request, "BankAccountPrototype", "json");
if (serializedBody != null)
{
httpRequest.Content = serializedBody;
}

var client = _securityClient;

var httpResponse = await client.SendAsync(httpRequest);

var contentType = httpResponse.Content.Headers.ContentType?.MediaType;

var response = new CreateBankAccountResponse
{
StatusCode = (int)httpResponse.StatusCode,
ContentType = contentType,
RawResponse = httpResponse
};

if((response.StatusCode == 200))
{
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
{
response.BankAccountCreateResponse = JsonConvert.DeserializeObject<BankAccountCreateResponse>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}

return response;
}
if((response.StatusCode == 400) || (response.StatusCode == 401) || (response.StatusCode == 402) || (response.StatusCode == 403) || (response.StatusCode == 404) || (response.StatusCode == 429) || (response.StatusCode == 500) || (response.StatusCode == 503))
{
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
{
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}

return response;
}
return response;
}


public async Task<GetCreateBankAccountsModelResponse> GetCreateModelAsync(GetCreateBankAccountsModelRequest? request = null)
{
string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails();
var urlString = URLBuilder.Build(baseUrl, "/companies/{companyId}/connections/{connectionId}/options/bankAccounts", request);

var httpRequest = new HttpRequestMessage(HttpMethod.Get, urlString);
httpRequest.Headers.Add("user-agent", _userAgent);


var client = _securityClient;

var httpResponse = await client.SendAsync(httpRequest);

var contentType = httpResponse.Content.Headers.ContentType?.MediaType;

var response = new GetCreateBankAccountsModelResponse
{
StatusCode = (int)httpResponse.StatusCode,
ContentType = contentType,
RawResponse = httpResponse
};

if((response.StatusCode == 200))
{
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
{
response.PushOption = JsonConvert.DeserializeObject<PushOption>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}

return response;
}
if((response.StatusCode == 401) || (response.StatusCode == 402) || (response.StatusCode == 403) || (response.StatusCode == 404) || (response.StatusCode == 429) || (response.StatusCode == 500) || (response.StatusCode == 503))
{
if(Utilities.IsContentTypeMatch("application/json",response.ContentType))
{
response.ErrorMessage = JsonConvert.DeserializeObject<ErrorMessage>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }});
}

return response;
}
return response;
}


public async Task<ListBankAccountsResponse> ListAsync(ListBankAccountsRequest? request = null)
{
string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails();
Expand Down
6 changes: 3 additions & 3 deletions bank-feeds/CodatBankFeeds/CodatBankFeeds.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ public class CodatBankFeeds: ICodatBankFeeds
public SDKConfig SDKConfiguration { get; private set; }

private const string _language = "csharp";
private const string _sdkVersion = "4.0.1";
private const string _sdkGenVersion = "2.230.3";
private const string _sdkVersion = "4.1.0";
private const string _sdkGenVersion = "2.231.0";
private const string _openapiDocVersion = "3.0.0";
private const string _userAgent = "speakeasy-sdk/csharp 4.0.1 2.230.3 3.0.0 Codat.BankFeeds";
private const string _userAgent = "speakeasy-sdk/csharp 4.1.0 2.231.0 3.0.0 Codat.BankFeeds";
private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;
Expand Down
2 changes: 1 addition & 1 deletion bank-feeds/CodatBankFeeds/CodatBankFeeds.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<IsPackable>true</IsPackable>
<PackageId>Codat.BankFeeds</PackageId>
<Version>4.0.1</Version>
<Version>4.1.0</Version>
<Authors>Codat</Authors>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
Expand Down
6 changes: 3 additions & 3 deletions bank-feeds/CodatBankFeeds/Companies.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ public class Companies: ICompanies
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "4.0.1";
private const string _sdkGenVersion = "2.230.3";
private const string _sdkVersion = "4.1.0";
private const string _sdkGenVersion = "2.231.0";
private const string _openapiDocVersion = "3.0.0";
private const string _userAgent = "speakeasy-sdk/csharp 4.0.1 2.230.3 3.0.0 Codat.BankFeeds";
private const string _userAgent = "speakeasy-sdk/csharp 4.1.0 2.231.0 3.0.0 Codat.BankFeeds";
private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;
Expand Down
6 changes: 3 additions & 3 deletions bank-feeds/CodatBankFeeds/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ public class Configuration: IConfiguration
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "4.0.1";
private const string _sdkGenVersion = "2.230.3";
private const string _sdkVersion = "4.1.0";
private const string _sdkGenVersion = "2.231.0";
private const string _openapiDocVersion = "3.0.0";
private const string _userAgent = "speakeasy-sdk/csharp 4.0.1 2.230.3 3.0.0 Codat.BankFeeds";
private const string _userAgent = "speakeasy-sdk/csharp 4.1.0 2.231.0 3.0.0 Codat.BankFeeds";
private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;
Expand Down
6 changes: 3 additions & 3 deletions bank-feeds/CodatBankFeeds/Connections.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ public class Connections: IConnections
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "4.0.1";
private const string _sdkGenVersion = "2.230.3";
private const string _sdkVersion = "4.1.0";
private const string _sdkGenVersion = "2.231.0";
private const string _openapiDocVersion = "3.0.0";
private const string _userAgent = "speakeasy-sdk/csharp 4.0.1 2.230.3 3.0.0 Codat.BankFeeds";
private const string _userAgent = "speakeasy-sdk/csharp 4.1.0 2.231.0 3.0.0 Codat.BankFeeds";
private string _serverUrl = "";
private ISpeakeasyHttpClient _defaultClient;
private ISpeakeasyHttpClient _securityClient;
Expand Down
Loading

0 comments on commit ac1b6da

Please sign in to comment.