From 03e58fe5fa0f0f1266b87f0d94eee07d1caf0550 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 8 Jan 2024 13:30:27 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc 3.0.0, Speakeasy CLI 1.133.2 (#237) Co-authored-by: speakeasybot --- bank-feeds/.speakeasy/gen.lock | 213 ++++++++++++++++++ bank-feeds/CodatBankFeeds/AccountMapping.cs | 6 +- bank-feeds/CodatBankFeeds/CodatBankFeeds.cs | 6 +- .../CodatBankFeeds/CodatBankFeeds.csproj | 2 +- bank-feeds/CodatBankFeeds/Companies.cs | 35 ++- bank-feeds/CodatBankFeeds/Connections.cs | 6 +- .../Operations/ListSourceAccountsResponse.cs | 11 +- .../Models/Shared/BankTransactionType.cs | 1 + .../CodatBankFeeds/Models/Shared/Company.cs | 6 + .../Models/Shared/CompanyRequestBody.cs | 7 + .../Models/Shared/DataConnectionStatus.cs | 1 + .../CodatBankFeeds/Models/Shared/DataType.cs | 1 + .../Models/Shared/GroupReference.cs | 24 ++ .../CodatBankFeeds/Models/Shared/Items.cs | 24 ++ .../Models/Shared/PushChangeType.cs | 1 + .../Models/Shared/PushOperationStatus.cs | 1 + .../Models/Shared/SourceType.cs | 5 + bank-feeds/CodatBankFeeds/SourceAccounts.cs | 9 +- bank-feeds/CodatBankFeeds/Transactions.cs | 6 +- bank-feeds/README.md | 6 + bank-feeds/RELEASES.md | 12 +- bank-feeds/USAGE.md | 6 + .../Operations/ListSourceAccountsResponse.md | 4 +- bank-feeds/docs/Models/Shared/Company.md | 1 + .../docs/Models/Shared/CompanyRequestBody.md | 1 + .../docs/Models/Shared/GroupReference.md | 8 + bank-feeds/docs/Models/Shared/Items.md | 8 + bank-feeds/docs/Models/Shared/SourceType.md | 2 + bank-feeds/docs/sdks/companies/README.md | 43 +++- bank-feeds/gen.yaml | 26 +-- 30 files changed, 418 insertions(+), 64 deletions(-) create mode 100755 bank-feeds/.speakeasy/gen.lock create mode 100644 bank-feeds/CodatBankFeeds/Models/Shared/GroupReference.cs create mode 100644 bank-feeds/CodatBankFeeds/Models/Shared/Items.cs create mode 100644 bank-feeds/docs/Models/Shared/GroupReference.md create mode 100644 bank-feeds/docs/Models/Shared/Items.md diff --git a/bank-feeds/.speakeasy/gen.lock b/bank-feeds/.speakeasy/gen.lock new file mode 100755 index 000000000..4eb24936b --- /dev/null +++ b/bank-feeds/.speakeasy/gen.lock @@ -0,0 +1,213 @@ +lockVersion: 2.0.0 +id: 0e14a69b-dba1-4c0f-85f5-3b5d7f7f7731 +management: + docChecksum: b095b0a347cf654b362ab0929e984eb2 + docVersion: 3.0.0 + speakeasyVersion: internal + generationVersion: 2.228.3 + releaseVersion: 4.0.0 + configChecksum: 4139839a7587bcd223818f58d67588d9 + repoURL: https://github.com/codatio/client-sdk-csharp.git + repoSubDirectory: bank-feeds + published: true +features: + csharp: + core: 3.3.0 + deprecations: 2.81.2 + examples: 2.81.3 + globalSecurity: 2.81.2 + globalServerURLs: 2.82.2 + nameOverrides: 2.81.1 +generatedFiles: + - CodatBankFeeds/Companies.cs + - CodatBankFeeds/Connections.cs + - CodatBankFeeds/AccountMapping.cs + - CodatBankFeeds/SourceAccounts.cs + - CodatBankFeeds/Transactions.cs + - CodatBankFeeds/CodatBankFeeds.cs + - CodatBankFeeds/Utils/BigIntSerializer.cs + - CodatBankFeeds/Utils/DecimalSerializer.cs + - CodatBankFeeds/Utils/EnumSerializer.cs + - CodatBankFeeds/Utils/FlexibleObjectDeserializer.cs + - CodatBankFeeds/Utils/HeaderSerializer.cs + - CodatBankFeeds/Utils/IsoDateTimeSerializer.cs + - CodatBankFeeds/Utils/RequestBodySerializer.cs + - CodatBankFeeds/Utils/SecuritySerializer.cs + - CodatBankFeeds/Utils/SpeakeasyHttpClient.cs + - CodatBankFeeds/Utils/SpeakeasyMetadata.cs + - CodatBankFeeds/Utils/URLBuilder.cs + - CodatBankFeeds/Utils/Utilities.cs + - CodatBankFeeds/CodatBankFeeds.csproj + - CodatBankFeeds.sln + - CodatBankFeeds/Models/Operations/CreateCompanyResponse.cs + - CodatBankFeeds/Models/Operations/DeleteCompanyRequest.cs + - CodatBankFeeds/Models/Operations/DeleteCompanyResponse.cs + - CodatBankFeeds/Models/Operations/GetCompanyRequest.cs + - CodatBankFeeds/Models/Operations/GetCompanyResponse.cs + - CodatBankFeeds/Models/Operations/ListCompaniesRequest.cs + - CodatBankFeeds/Models/Operations/ListCompaniesResponse.cs + - CodatBankFeeds/Models/Operations/UpdateCompanyRequest.cs + - CodatBankFeeds/Models/Operations/UpdateCompanyResponse.cs + - CodatBankFeeds/Models/Operations/CreateConnectionRequestBody.cs + - CodatBankFeeds/Models/Operations/CreateConnectionRequest.cs + - CodatBankFeeds/Models/Operations/CreateConnectionResponse.cs + - CodatBankFeeds/Models/Operations/DeleteConnectionRequest.cs + - CodatBankFeeds/Models/Operations/DeleteConnectionResponse.cs + - CodatBankFeeds/Models/Operations/GetConnectionRequest.cs + - CodatBankFeeds/Models/Operations/GetConnectionResponse.cs + - CodatBankFeeds/Models/Operations/ListConnectionsRequest.cs + - CodatBankFeeds/Models/Operations/ListConnectionsResponse.cs + - CodatBankFeeds/Models/Operations/UnlinkConnectionUpdateConnection.cs + - CodatBankFeeds/Models/Operations/UnlinkConnectionRequest.cs + - CodatBankFeeds/Models/Operations/UnlinkConnectionResponse.cs + - CodatBankFeeds/Models/Operations/CreateBankAccountMappingRequest.cs + - CodatBankFeeds/Models/Operations/CreateBankAccountMappingResponse.cs + - CodatBankFeeds/Models/Operations/GetBankAccountMappingRequest.cs + - CodatBankFeeds/Models/Operations/GetBankAccountMappingResponse.cs + - CodatBankFeeds/Models/Operations/CreateSourceAccountRequest.cs + - CodatBankFeeds/Models/Operations/CreateSourceAccountResponse.cs + - CodatBankFeeds/Models/Operations/DeleteSourceAccountRequest.cs + - CodatBankFeeds/Models/Operations/DeleteSourceAccountResponse.cs + - CodatBankFeeds/Models/Operations/DeleteBankFeedCredentialsRequest.cs + - CodatBankFeeds/Models/Operations/DeleteBankFeedCredentialsResponse.cs + - CodatBankFeeds/Models/Operations/GenerateCredentialsRequest.cs + - CodatBankFeeds/Models/Operations/GenerateCredentialsResponse.cs + - CodatBankFeeds/Models/Operations/ListSourceAccountsRequest.cs + - CodatBankFeeds/Models/Operations/ListSourceAccountsResponse.cs + - CodatBankFeeds/Models/Operations/UpdateSourceAccountRequest.cs + - CodatBankFeeds/Models/Operations/UpdateSourceAccountResponse.cs + - CodatBankFeeds/Models/Operations/CreateBankTransactionsRequest.cs + - CodatBankFeeds/Models/Operations/CreateBankTransactionsResponse.cs + - CodatBankFeeds/Models/Operations/GetCreateOperationRequest.cs + - CodatBankFeeds/Models/Operations/GetCreateOperationResponse.cs + - CodatBankFeeds/Models/Operations/ListCreateOperationsRequest.cs + - CodatBankFeeds/Models/Operations/ListCreateOperationsResponse.cs + - CodatBankFeeds/Models/Shared/Zero.cs + - CodatBankFeeds/Models/Shared/ErrorMessage.cs + - CodatBankFeeds/Models/Shared/GroupReference.cs + - CodatBankFeeds/Models/Shared/Company.cs + - CodatBankFeeds/Models/Shared/SourceType.cs + - CodatBankFeeds/Models/Shared/Connection.cs + - CodatBankFeeds/Models/Shared/DataConnectionStatus.cs + - CodatBankFeeds/Models/Shared/DataConnectionError.cs + - CodatBankFeeds/Models/Shared/CompanyRequestBody.cs + - CodatBankFeeds/Models/Shared/Items.cs + - CodatBankFeeds/Models/Shared/Companies.cs + - CodatBankFeeds/Models/Shared/Links.cs + - CodatBankFeeds/Models/Shared/HalRef.cs + - CodatBankFeeds/Models/Shared/Connections.cs + - CodatBankFeeds/Models/Shared/BankFeedAccountMappingResponse.cs + - CodatBankFeeds/Models/Shared/BankFeedMapping.cs + - CodatBankFeeds/Models/Shared/TargetAccountOption.cs + - CodatBankFeeds/Models/Shared/SourceAccount.cs + - CodatBankFeeds/Models/Shared/BankAccountCredentials.cs + - CodatBankFeeds/Models/Shared/CreateBankTransactionsResponse.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/PushOperation.cs + - CodatBankFeeds/Models/Shared/PushOperations.cs + - CodatBankFeeds/Models/Shared/Security.cs + - CodatBankFeeds/Models/Shared/ClientRateLimitReachedWebhook.cs + - CodatBankFeeds/Models/Shared/ClientRateLimitReachedWebhookData.cs + - CodatBankFeeds/Models/Shared/ClientRateLimitResetWebhook.cs + - CodatBankFeeds/Models/Shared/ClientRateLimitResetWebhookData.cs + - CodatBankFeeds/Models/Webhooks/ClientRateLimitReachedResponse.cs + - CodatBankFeeds/Models/Webhooks/ClientRateLimitResetResponse.cs + - docs/Models/Operations/CreateCompanyResponse.md + - docs/Models/Operations/DeleteCompanyRequest.md + - docs/Models/Operations/DeleteCompanyResponse.md + - docs/Models/Operations/GetCompanyRequest.md + - docs/Models/Operations/GetCompanyResponse.md + - docs/Models/Operations/ListCompaniesRequest.md + - docs/Models/Operations/ListCompaniesResponse.md + - docs/Models/Operations/UpdateCompanyRequest.md + - docs/Models/Operations/UpdateCompanyResponse.md + - docs/Models/Operations/CreateConnectionRequestBody.md + - docs/Models/Operations/CreateConnectionRequest.md + - docs/Models/Operations/CreateConnectionResponse.md + - docs/Models/Operations/DeleteConnectionRequest.md + - docs/Models/Operations/DeleteConnectionResponse.md + - docs/Models/Operations/GetConnectionRequest.md + - docs/Models/Operations/GetConnectionResponse.md + - docs/Models/Operations/ListConnectionsRequest.md + - docs/Models/Operations/ListConnectionsResponse.md + - docs/Models/Operations/UnlinkConnectionUpdateConnection.md + - docs/Models/Operations/UnlinkConnectionRequest.md + - docs/Models/Operations/UnlinkConnectionResponse.md + - docs/Models/Operations/CreateBankAccountMappingRequest.md + - docs/Models/Operations/CreateBankAccountMappingResponse.md + - docs/Models/Operations/GetBankAccountMappingRequest.md + - docs/Models/Operations/GetBankAccountMappingResponse.md + - docs/Models/Operations/CreateSourceAccountRequest.md + - docs/Models/Operations/CreateSourceAccountResponse.md + - docs/Models/Operations/DeleteSourceAccountRequest.md + - docs/Models/Operations/DeleteSourceAccountResponse.md + - docs/Models/Operations/DeleteBankFeedCredentialsRequest.md + - docs/Models/Operations/DeleteBankFeedCredentialsResponse.md + - docs/Models/Operations/GenerateCredentialsRequest.md + - docs/Models/Operations/GenerateCredentialsResponse.md + - docs/Models/Operations/ListSourceAccountsRequest.md + - docs/Models/Operations/ListSourceAccountsResponse.md + - docs/Models/Operations/UpdateSourceAccountRequest.md + - docs/Models/Operations/UpdateSourceAccountResponse.md + - docs/Models/Operations/CreateBankTransactionsRequest.md + - docs/Models/Operations/CreateBankTransactionsResponse.md + - docs/Models/Operations/GetCreateOperationRequest.md + - docs/Models/Operations/GetCreateOperationResponse.md + - docs/Models/Operations/ListCreateOperationsRequest.md + - docs/Models/Operations/ListCreateOperationsResponse.md + - docs/Models/Shared/Zero.md + - docs/Models/Shared/ErrorMessage.md + - docs/Models/Shared/GroupReference.md + - docs/Models/Shared/Company.md + - docs/Models/Shared/SourceType.md + - docs/Models/Shared/Connection.md + - docs/Models/Shared/DataConnectionStatus.md + - docs/Models/Shared/DataConnectionError.md + - docs/Models/Shared/CompanyRequestBody.md + - docs/Models/Shared/Items.md + - docs/Models/Shared/Companies.md + - docs/Models/Shared/Links.md + - docs/Models/Shared/HalRef.md + - docs/Models/Shared/Connections.md + - docs/Models/Shared/BankFeedAccountMappingResponse.md + - docs/Models/Shared/BankFeedMapping.md + - docs/Models/Shared/TargetAccountOption.md + - docs/Models/Shared/SourceAccount.md + - docs/Models/Shared/BankAccountCredentials.md + - docs/Models/Shared/CreateBankTransactionsResponse.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/PushOperation.md + - docs/Models/Shared/PushOperations.md + - docs/Models/Shared/Security.md + - docs/Models/Shared/ClientRateLimitReachedWebhook.md + - docs/Models/Shared/ClientRateLimitReachedWebhookData.md + - docs/Models/Shared/ClientRateLimitResetWebhook.md + - docs/Models/Shared/ClientRateLimitResetWebhookData.md + - docs/Models/Webhooks/ClientRateLimitReachedResponse.md + - docs/Models/Webhooks/ClientRateLimitResetResponse.md + - docs/sdks/codatbankfeeds/README.md + - docs/sdks/companies/README.md + - docs/sdks/connections/README.md + - docs/sdks/accountmapping/README.md + - docs/sdks/sourceaccounts/README.md + - docs/sdks/transactions/README.md + - USAGE.md + - .gitattributes diff --git a/bank-feeds/CodatBankFeeds/AccountMapping.cs b/bank-feeds/CodatBankFeeds/AccountMapping.cs index 41cd07cdf..90ed392c2 100644 --- a/bank-feeds/CodatBankFeeds/AccountMapping.cs +++ b/bank-feeds/CodatBankFeeds/AccountMapping.cs @@ -61,10 +61,10 @@ public class AccountMapping: IAccountMapping { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "3.1.0"; - private const string _sdkGenVersion = "2.214.3"; + private const string _sdkVersion = "4.0.0"; + private const string _sdkGenVersion = "2.228.3"; private const string _openapiDocVersion = "3.0.0"; - private const string _userAgent = "speakeasy-sdk/csharp 3.1.0 2.214.3 3.0.0 Codat.BankFeeds"; + private const string _userAgent = "speakeasy-sdk/csharp 4.0.0 2.228.3 3.0.0 Codat.BankFeeds"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/bank-feeds/CodatBankFeeds/CodatBankFeeds.cs b/bank-feeds/CodatBankFeeds/CodatBankFeeds.cs index 0f05d6933..1f3a25eeb 100644 --- a/bank-feeds/CodatBankFeeds/CodatBankFeeds.cs +++ b/bank-feeds/CodatBankFeeds/CodatBankFeeds.cs @@ -118,10 +118,10 @@ public class CodatBankFeeds: ICodatBankFeeds public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "3.1.0"; - private const string _sdkGenVersion = "2.214.3"; + private const string _sdkVersion = "4.0.0"; + private const string _sdkGenVersion = "2.228.3"; private const string _openapiDocVersion = "3.0.0"; - private const string _userAgent = "speakeasy-sdk/csharp 3.1.0 2.214.3 3.0.0 Codat.BankFeeds"; + private const string _userAgent = "speakeasy-sdk/csharp 4.0.0 2.228.3 3.0.0 Codat.BankFeeds"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/bank-feeds/CodatBankFeeds/CodatBankFeeds.csproj b/bank-feeds/CodatBankFeeds/CodatBankFeeds.csproj index da612df65..e4d4bac23 100644 --- a/bank-feeds/CodatBankFeeds/CodatBankFeeds.csproj +++ b/bank-feeds/CodatBankFeeds/CodatBankFeeds.csproj @@ -2,7 +2,7 @@ true Codat.BankFeeds - 3.1.0 + 4.0.0 Codat net6.0 enable diff --git a/bank-feeds/CodatBankFeeds/Companies.cs b/bank-feeds/CodatBankFeeds/Companies.cs index 09e1efa15..c19af8855 100644 --- a/bank-feeds/CodatBankFeeds/Companies.cs +++ b/bank-feeds/CodatBankFeeds/Companies.cs @@ -29,11 +29,12 @@ public interface ICompanies /// Create company /// /// - /// Creates a new company that can be used to assign connections to.
+ /// Use the *Create company* endpoint to create a new company that represents your customer in Codat.
///
- /// If forbidden characters (see `name` pattern) are present in the request, a company will be created with the forbidden characters removed. For example, `Company (Codat[1])` with be created as `Company Codat1`.
+ /// A company represents a business sharing access to their data.
+ /// Each company can have multiple connections to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data.
///
- /// + /// If forbidden characters (see `name` pattern) are present in the request, a company will be created with the forbidden characters removed. For example, `Company (Codat[1])` with be created as `Company Codat1`. ///
/// Task CreateAsync(CompanyRequestBody? request = null); @@ -42,8 +43,11 @@ public interface ICompanies /// Delete a company /// /// + /// The *Delete company* endpoint permanently deletes a company, its connections and any cached data. This operation is irreversible.
///
- /// Permanently deletes a company, its connections and any cached data. This operation is irreversible. If the company ID does not exist an error is returned. + /// A company represents a business sharing access to their data.
+ /// Each company can have multiple connections to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data.
+ /// ///
/// Task DeleteAsync(DeleteCompanyRequest? request = null); @@ -52,7 +56,11 @@ public interface ICompanies /// Get company /// /// - /// Returns the company for a valid identifier. If the identifier is for a deleted company, a not found response is returned. + /// The *Get company* endpoint returns a single company for a given `companyId`.
+ ///
+ /// A company represents a business sharing access to their data.
+ /// Each company can have multiple connections to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data.
+ /// ///
/// Task GetAsync(GetCompanyRequest? request = null); @@ -61,7 +69,10 @@ public interface ICompanies /// List companies /// /// - /// Returns a list of your companies. The company schema contains a list of connections related to the company. + /// The *List companies* endpoint returns a list of [companies] associated to your instances.
+ ///
+ /// A company represents a business sharing access to their data.
+ /// Each company can have multiple connections to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data. ///
/// Task ListAsync(ListCompaniesRequest? request = null); @@ -70,7 +81,11 @@ public interface ICompanies /// Update company /// /// - /// Updates both the name and description of the company. + /// Use the *Update company* endpoint to update both the name and description of the company.
+ /// If you use groups to manage a set of companies, use the Add company or Remove company endpoints to add or remove a company from a group.
+ ///
+ /// A company represents a business sharing access to their data.
+ /// Each company can have multiple connections to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data. ///
/// Task UpdateAsync(UpdateCompanyRequest? request = null); @@ -83,10 +98,10 @@ public class Companies: ICompanies { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "3.1.0"; - private const string _sdkGenVersion = "2.214.3"; + private const string _sdkVersion = "4.0.0"; + private const string _sdkGenVersion = "2.228.3"; private const string _openapiDocVersion = "3.0.0"; - private const string _userAgent = "speakeasy-sdk/csharp 3.1.0 2.214.3 3.0.0 Codat.BankFeeds"; + private const string _userAgent = "speakeasy-sdk/csharp 4.0.0 2.228.3 3.0.0 Codat.BankFeeds"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/bank-feeds/CodatBankFeeds/Connections.cs b/bank-feeds/CodatBankFeeds/Connections.cs index 5e31a7966..04f4b9ef1 100644 --- a/bank-feeds/CodatBankFeeds/Connections.cs +++ b/bank-feeds/CodatBankFeeds/Connections.cs @@ -81,10 +81,10 @@ public class Connections: IConnections { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "3.1.0"; - private const string _sdkGenVersion = "2.214.3"; + private const string _sdkVersion = "4.0.0"; + private const string _sdkGenVersion = "2.228.3"; private const string _openapiDocVersion = "3.0.0"; - private const string _userAgent = "speakeasy-sdk/csharp 3.1.0 2.214.3 3.0.0 Codat.BankFeeds"; + private const string _userAgent = "speakeasy-sdk/csharp 4.0.0 2.228.3 3.0.0 Codat.BankFeeds"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/bank-feeds/CodatBankFeeds/Models/Operations/ListSourceAccountsResponse.cs b/bank-feeds/CodatBankFeeds/Models/Operations/ListSourceAccountsResponse.cs index 294ab3b8b..3b1b58dfa 100644 --- a/bank-feeds/CodatBankFeeds/Models/Operations/ListSourceAccountsResponse.cs +++ b/bank-feeds/CodatBankFeeds/Models/Operations/ListSourceAccountsResponse.cs @@ -11,6 +11,7 @@ namespace Codat.BankFeeds.Models.Operations { using Codat.BankFeeds.Models.Shared; + using System.Collections.Generic; using System.Net.Http; using System; @@ -27,11 +28,6 @@ public class ListSourceAccountsResponse /// public ErrorMessage? ErrorMessage { get; set; } - /// - /// Success - /// - public SourceAccount? SourceAccount { get; set; } - /// /// HTTP response status code for this operation /// @@ -41,5 +37,10 @@ public class ListSourceAccountsResponse /// Raw HTTP response; suitable for custom response parsing /// public HttpResponseMessage RawResponse { get; set; } = default!; + + /// + /// Success + /// + public List? SourceAccounts { get; set; } } } \ No newline at end of file diff --git a/bank-feeds/CodatBankFeeds/Models/Shared/BankTransactionType.cs b/bank-feeds/CodatBankFeeds/Models/Shared/BankTransactionType.cs index c8467d0f9..ecb7546a2 100644 --- a/bank-feeds/CodatBankFeeds/Models/Shared/BankTransactionType.cs +++ b/bank-feeds/CodatBankFeeds/Models/Shared/BankTransactionType.cs @@ -88,4 +88,5 @@ public static BankTransactionType ToEnum(this string value) throw new Exception($"Unknown value {value} for enum BankTransactionType"); } } + } \ No newline at end of file diff --git a/bank-feeds/CodatBankFeeds/Models/Shared/Company.cs b/bank-feeds/CodatBankFeeds/Models/Shared/Company.cs index a8a3aa848..d7ce903f2 100644 --- a/bank-feeds/CodatBankFeeds/Models/Shared/Company.cs +++ b/bank-feeds/CodatBankFeeds/Models/Shared/Company.cs @@ -69,6 +69,12 @@ public class Company [JsonProperty("description")] public string? Description { get; set; } + /// + /// An array of groups the company has been assigned to. + /// + [JsonProperty("groups")] + public List? Groups { get; set; } + /// /// Unique identifier for your SMB in Codat. /// diff --git a/bank-feeds/CodatBankFeeds/Models/Shared/CompanyRequestBody.cs b/bank-feeds/CodatBankFeeds/Models/Shared/CompanyRequestBody.cs index 54403222b..f3beca0ed 100644 --- a/bank-feeds/CodatBankFeeds/Models/Shared/CompanyRequestBody.cs +++ b/bank-feeds/CodatBankFeeds/Models/Shared/CompanyRequestBody.cs @@ -11,6 +11,7 @@ namespace Codat.BankFeeds.Models.Shared { using Newtonsoft.Json; + using System.Collections.Generic; public class CompanyRequestBody { @@ -21,6 +22,12 @@ public class CompanyRequestBody [JsonProperty("description")] public string? Description { get; set; } + /// + /// Reference to the groups that the company is assigned to. + /// + [JsonProperty("groups")] + public List? Groups { get; set; } + /// /// Name of company being connected. /// diff --git a/bank-feeds/CodatBankFeeds/Models/Shared/DataConnectionStatus.cs b/bank-feeds/CodatBankFeeds/Models/Shared/DataConnectionStatus.cs index 00c85fb96..ba5964b7f 100644 --- a/bank-feeds/CodatBankFeeds/Models/Shared/DataConnectionStatus.cs +++ b/bank-feeds/CodatBankFeeds/Models/Shared/DataConnectionStatus.cs @@ -60,4 +60,5 @@ public static DataConnectionStatus ToEnum(this string value) throw new Exception($"Unknown value {value} for enum DataConnectionStatus"); } } + } \ No newline at end of file diff --git a/bank-feeds/CodatBankFeeds/Models/Shared/DataType.cs b/bank-feeds/CodatBankFeeds/Models/Shared/DataType.cs index 86bfa2c29..bb3d1deb2 100644 --- a/bank-feeds/CodatBankFeeds/Models/Shared/DataType.cs +++ b/bank-feeds/CodatBankFeeds/Models/Shared/DataType.cs @@ -138,4 +138,5 @@ public static DataType ToEnum(this string value) throw new Exception($"Unknown value {value} for enum DataType"); } } + } \ No newline at end of file diff --git a/bank-feeds/CodatBankFeeds/Models/Shared/GroupReference.cs b/bank-feeds/CodatBankFeeds/Models/Shared/GroupReference.cs new file mode 100644 index 000000000..19da36117 --- /dev/null +++ b/bank-feeds/CodatBankFeeds/Models/Shared/GroupReference.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace Codat.BankFeeds.Models.Shared +{ + using Newtonsoft.Json; + + public class GroupReference + { + + /// + /// Unique identifier for the group. + /// + [JsonProperty("id")] + public string? Id { get; set; } + } +} \ No newline at end of file diff --git a/bank-feeds/CodatBankFeeds/Models/Shared/Items.cs b/bank-feeds/CodatBankFeeds/Models/Shared/Items.cs new file mode 100644 index 000000000..caab16aca --- /dev/null +++ b/bank-feeds/CodatBankFeeds/Models/Shared/Items.cs @@ -0,0 +1,24 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace Codat.BankFeeds.Models.Shared +{ + using Newtonsoft.Json; + + public class Items + { + + /// + /// Unique identifier for the group. + /// + [JsonProperty("id")] + public string? Id { get; set; } + } +} \ No newline at end of file diff --git a/bank-feeds/CodatBankFeeds/Models/Shared/PushChangeType.cs b/bank-feeds/CodatBankFeeds/Models/Shared/PushChangeType.cs index 0a44ef74b..fbe3ce1ba 100644 --- a/bank-feeds/CodatBankFeeds/Models/Shared/PushChangeType.cs +++ b/bank-feeds/CodatBankFeeds/Models/Shared/PushChangeType.cs @@ -62,4 +62,5 @@ public static PushChangeType ToEnum(this string value) throw new Exception($"Unknown value {value} for enum PushChangeType"); } } + } \ No newline at end of file diff --git a/bank-feeds/CodatBankFeeds/Models/Shared/PushOperationStatus.cs b/bank-feeds/CodatBankFeeds/Models/Shared/PushOperationStatus.cs index a1324f847..837f56df0 100644 --- a/bank-feeds/CodatBankFeeds/Models/Shared/PushOperationStatus.cs +++ b/bank-feeds/CodatBankFeeds/Models/Shared/PushOperationStatus.cs @@ -60,4 +60,5 @@ public static PushOperationStatus ToEnum(this string value) throw new Exception($"Unknown value {value} for enum PushOperationStatus"); } } + } \ No newline at end of file diff --git a/bank-feeds/CodatBankFeeds/Models/Shared/SourceType.cs b/bank-feeds/CodatBankFeeds/Models/Shared/SourceType.cs index 73ec275f7..a190cf47c 100644 --- a/bank-feeds/CodatBankFeeds/Models/Shared/SourceType.cs +++ b/bank-feeds/CodatBankFeeds/Models/Shared/SourceType.cs @@ -22,8 +22,12 @@ public enum SourceType Accounting, [JsonProperty("Banking")] Banking, + [JsonProperty("BankFeed")] + BankFeed, [JsonProperty("Commerce")] Commerce, + [JsonProperty("Expense")] + Expense, [JsonProperty("Other")] Other, [JsonProperty("Unknown")] @@ -62,4 +66,5 @@ public static SourceType ToEnum(this string value) throw new Exception($"Unknown value {value} for enum SourceType"); } } + } \ No newline at end of file diff --git a/bank-feeds/CodatBankFeeds/SourceAccounts.cs b/bank-feeds/CodatBankFeeds/SourceAccounts.cs index 8fadc159e..dd139a32a 100644 --- a/bank-feeds/CodatBankFeeds/SourceAccounts.cs +++ b/bank-feeds/CodatBankFeeds/SourceAccounts.cs @@ -14,6 +14,7 @@ namespace Codat.BankFeeds using Codat.BankFeeds.Models.Shared; using Codat.BankFeeds.Utils; using Newtonsoft.Json; + using System.Collections.Generic; using System.Net.Http.Headers; using System.Net.Http; using System.Threading.Tasks; @@ -120,10 +121,10 @@ public class SourceAccounts: ISourceAccounts { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "3.1.0"; - private const string _sdkGenVersion = "2.214.3"; + private const string _sdkVersion = "4.0.0"; + private const string _sdkGenVersion = "2.228.3"; private const string _openapiDocVersion = "3.0.0"; - private const string _userAgent = "speakeasy-sdk/csharp 3.1.0 2.214.3 3.0.0 Codat.BankFeeds"; + private const string _userAgent = "speakeasy-sdk/csharp 4.0.0 2.228.3 3.0.0 Codat.BankFeeds"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; @@ -345,7 +346,7 @@ public async Task ListAsync(ListSourceAccountsReques { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { - response.SourceAccount = JsonConvert.DeserializeObject(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); + response.SourceAccounts = JsonConvert.DeserializeObject>(await httpResponse.Content.ReadAsStringAsync(), new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = new JsonConverter[] { new FlexibleObjectDeserializer(), new EnumSerializer() }}); } return response; diff --git a/bank-feeds/CodatBankFeeds/Transactions.cs b/bank-feeds/CodatBankFeeds/Transactions.cs index 85232ec09..72350de89 100644 --- a/bank-feeds/CodatBankFeeds/Transactions.cs +++ b/bank-feeds/CodatBankFeeds/Transactions.cs @@ -69,10 +69,10 @@ public class Transactions: ITransactions { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "3.1.0"; - private const string _sdkGenVersion = "2.214.3"; + private const string _sdkVersion = "4.0.0"; + private const string _sdkGenVersion = "2.228.3"; private const string _openapiDocVersion = "3.0.0"; - private const string _userAgent = "speakeasy-sdk/csharp 3.1.0 2.214.3 3.0.0 Codat.BankFeeds"; + private const string _userAgent = "speakeasy-sdk/csharp 4.0.0 2.228.3 3.0.0 Codat.BankFeeds"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private ISpeakeasyHttpClient _securityClient; diff --git a/bank-feeds/README.md b/bank-feeds/README.md index 253d54008..b4ab49483 100644 --- a/bank-feeds/README.md +++ b/bank-feeds/README.md @@ -23,6 +23,7 @@ dotnet add package Codat.BankFeeds ```csharp using Codat.BankFeeds; using Codat.BankFeeds.Models.Shared; +using System.Collections.Generic; var sdk = new CodatBankFeeds( security: new Security() { @@ -31,6 +32,11 @@ var sdk = new CodatBankFeeds( CompanyRequestBody req = new CompanyRequestBody() { Description = "Requested early access to the new financing scheme.", + Groups = new List() { + new Items() { + Id = "60d2fa12-8a04-11ee-b9d1-0242ac120002", + }, + }, Name = "Bank of Dave", }; diff --git a/bank-feeds/RELEASES.md b/bank-feeds/RELEASES.md index ec6a95bbd..9578e9ece 100644 --- a/bank-feeds/RELEASES.md +++ b/bank-feeds/RELEASES.md @@ -118,4 +118,14 @@ Based on: ### Generated - [csharp v3.1.0] bank-feeds ### Releases -- [NuGet v3.1.0] https://www.nuget.org/packages/Codat.BankFeeds/3.1.0 - bank-feeds \ No newline at end of file +- [NuGet v3.1.0] https://www.nuget.org/packages/Codat.BankFeeds/3.1.0 - bank-feeds + +## 2024-01-08 13:11:20 +### Changes +Based on: +- OpenAPI Doc 3.0.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Bank-Feeds.yaml +- Speakeasy CLI 1.133.2 (2.228.3) https://github.com/speakeasy-api/speakeasy +### Generated +- [csharp v4.0.0] bank-feeds +### Releases +- [NuGet v4.0.0] https://www.nuget.org/packages/Codat.BankFeeds/4.0.0 - bank-feeds \ No newline at end of file diff --git a/bank-feeds/USAGE.md b/bank-feeds/USAGE.md index b43b4ae17..e00af265e 100644 --- a/bank-feeds/USAGE.md +++ b/bank-feeds/USAGE.md @@ -2,6 +2,7 @@ ```csharp using Codat.BankFeeds; using Codat.BankFeeds.Models.Shared; +using System.Collections.Generic; var sdk = new CodatBankFeeds( security: new Security() { @@ -10,6 +11,11 @@ var sdk = new CodatBankFeeds( CompanyRequestBody req = new CompanyRequestBody() { Description = "Requested early access to the new financing scheme.", + Groups = new List() { + new Items() { + Id = "60d2fa12-8a04-11ee-b9d1-0242ac120002", + }, + }, Name = "Bank of Dave", }; diff --git a/bank-feeds/docs/Models/Operations/ListSourceAccountsResponse.md b/bank-feeds/docs/Models/Operations/ListSourceAccountsResponse.md index 819d08e5d..54aff67b6 100644 --- a/bank-feeds/docs/Models/Operations/ListSourceAccountsResponse.md +++ b/bank-feeds/docs/Models/Operations/ListSourceAccountsResponse.md @@ -7,6 +7,6 @@ | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | | `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `ErrorMessage` | [ErrorMessage](../../Models/Shared/ErrorMessage.md) | :heavy_minus_sign: | Your API request was not properly authorized. | -| `SourceAccount` | [SourceAccount](../../Models/Shared/SourceAccount.md) | :heavy_minus_sign: | Success | | `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `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 | \ No newline at end of file +| `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 | +| `SourceAccounts` | List<[SourceAccount](../../Models/Shared/SourceAccount.md)> | :heavy_minus_sign: | Success | \ No newline at end of file diff --git a/bank-feeds/docs/Models/Shared/Company.md b/bank-feeds/docs/Models/Shared/Company.md index f144c4d0c..142b37301 100644 --- a/bank-feeds/docs/Models/Shared/Company.md +++ b/bank-feeds/docs/Models/Shared/Company.md @@ -15,6 +15,7 @@ When you create a company, you can specify a `name` and we will automatically ge | `CreatedByUserName` | *string* | :heavy_minus_sign: | Name of user that created the company in Codat. | | | `DataConnections` | List<[Connection](../../Models/Shared/Connection.md)> | :heavy_minus_sign: | N/A | | | `Description` | *string* | :heavy_minus_sign: | Additional information about the company. This can be used to store foreign IDs, references, etc. | Requested early access to the new financing scheme. | +| `Groups` | List<[GroupReference](../../Models/Shared/GroupReference.md)> | :heavy_minus_sign: | An array of groups the company has been assigned to. | | | `Id` | *string* | :heavy_check_mark: | Unique identifier for your SMB in Codat. | 8a210b68-6988-11ed-a1eb-0242ac120002 | | `LastSync` | *string* | :heavy_minus_sign: | In Codat's data model, dates and times are represented using the ISO 8601 standard. Date and time fields are formatted as strings; for example:

```
2020-10-08T22:40:50Z
2021-01-01T00:00:00
```



When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:

- Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
- Unqualified local time: `2021-11-15T01:00:00`
- UTC time offsets: `2021-11-15T01:00:00-05:00`

> Time zones
>
> Not all dates from Codat will contain information about time zones.
> Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced. | 2022-10-23 00:00:00 +0000 UTC | | `Name` | *string* | :heavy_check_mark: | The name of the company | Codat Ltd. | diff --git a/bank-feeds/docs/Models/Shared/CompanyRequestBody.md b/bank-feeds/docs/Models/Shared/CompanyRequestBody.md index 4ceb9ce33..28050588e 100644 --- a/bank-feeds/docs/Models/Shared/CompanyRequestBody.md +++ b/bank-feeds/docs/Models/Shared/CompanyRequestBody.md @@ -6,4 +6,5 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | | `Description` | *string* | :heavy_minus_sign: | Additional information about the company. This can be used to store foreign IDs, references, etc. | Requested early access to the new financing scheme. | +| `Groups` | List<[Items](../../Models/Shared/Items.md)> | :heavy_minus_sign: | Reference to the groups that the company is assigned to. | | | `Name` | *string* | :heavy_check_mark: | Name of company being connected. | Bank of Dave | \ No newline at end of file diff --git a/bank-feeds/docs/Models/Shared/GroupReference.md b/bank-feeds/docs/Models/Shared/GroupReference.md new file mode 100644 index 000000000..904200f57 --- /dev/null +++ b/bank-feeds/docs/Models/Shared/GroupReference.md @@ -0,0 +1,8 @@ +# GroupReference + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | +| `Id` | *string* | :heavy_minus_sign: | Unique identifier for the group. | 60d2fa12-8a04-11ee-b9d1-0242ac120002 | \ No newline at end of file diff --git a/bank-feeds/docs/Models/Shared/Items.md b/bank-feeds/docs/Models/Shared/Items.md new file mode 100644 index 000000000..fcb438c45 --- /dev/null +++ b/bank-feeds/docs/Models/Shared/Items.md @@ -0,0 +1,8 @@ +# Items + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | +| `Id` | *string* | :heavy_minus_sign: | Unique identifier for the group. | 60d2fa12-8a04-11ee-b9d1-0242ac120002 | \ No newline at end of file diff --git a/bank-feeds/docs/Models/Shared/SourceType.md b/bank-feeds/docs/Models/Shared/SourceType.md index f1ef993ef..3ddd34f70 100644 --- a/bank-feeds/docs/Models/Shared/SourceType.md +++ b/bank-feeds/docs/Models/Shared/SourceType.md @@ -9,6 +9,8 @@ The type of platform of the connection. | ------------ | ------------ | | `Accounting` | Accounting | | `Banking` | Banking | +| `BankFeed` | BankFeed | | `Commerce` | Commerce | +| `Expense` | Expense | | `Other` | Other | | `Unknown` | Unknown | \ No newline at end of file diff --git a/bank-feeds/docs/sdks/companies/README.md b/bank-feeds/docs/sdks/companies/README.md index 677c74943..ea41b2a0c 100644 --- a/bank-feeds/docs/sdks/companies/README.md +++ b/bank-feeds/docs/sdks/companies/README.md @@ -15,17 +15,19 @@ Create and manage your Codat companies. ## Create -Creates a new company that can be used to assign connections to. - -If forbidden characters (see `name` pattern) are present in the request, a company will be created with the forbidden characters removed. For example, `Company (Codat[1])` with be created as `Company Codat1`. +Use the *Create company* endpoint to create a new [company](https://docs.codat.io/bank-feeds-api#/schemas/Company) that represents your customer in Codat. +A [company](https://docs.codat.io/bank-feeds-api#/schemas/Company) represents a business sharing access to their data. +Each company can have multiple [connections](https://docs.codat.io/bank-feeds-api#/schemas/Connection) to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data. +If forbidden characters (see `name` pattern) are present in the request, a company will be created with the forbidden characters removed. For example, `Company (Codat[1])` with be created as `Company Codat1`. ### Example Usage ```csharp using Codat.BankFeeds; using Codat.BankFeeds.Models.Shared; +using System.Collections.Generic; var sdk = new CodatBankFeeds( security: new Security() { @@ -34,6 +36,11 @@ var sdk = new CodatBankFeeds( CompanyRequestBody req = new CompanyRequestBody() { Description = "Requested early access to the new financing scheme.", + Groups = new List() { + new Items() { + Id = "60d2fa12-8a04-11ee-b9d1-0242ac120002", + }, + }, Name = "Bank of Dave", }; @@ -56,8 +63,11 @@ var res = await sdk.Companies.CreateAsync(req); ## Delete - -Permanently deletes a company, its connections and any cached data. This operation is irreversible. If the company ID does not exist an error is returned. +The *Delete company* endpoint permanently deletes a [company](https://docs.codat.io/bank-feeds-api#/schemas/Company), its [connections](https://docs.codat.io/bank-feeds-api#/schemas/Connection) and any cached data. This operation is irreversible. + +A [company](https://docs.codat.io/bank-feeds-api#/schemas/Company) represents a business sharing access to their data. +Each company can have multiple [connections](https://docs.codat.io/bank-feeds-api#/schemas/Connection) to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data. + ### Example Usage @@ -94,7 +104,11 @@ var res = await sdk.Companies.DeleteAsync(req); ## Get -Returns the company for a valid identifier. If the identifier is for a deleted company, a not found response is returned. +The *Get company* endpoint returns a single company for a given `companyId`. + +A [company](https://docs.codat.io/bank-feeds-api#/schemas/Company) represents a business sharing access to their data. +Each company can have multiple [connections](https://docs.codat.io/bank-feeds-api#/schemas/Connection) to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data. + ### Example Usage @@ -131,7 +145,10 @@ var res = await sdk.Companies.GetAsync(req); ## List -Returns a list of your companies. The company schema contains a list of [connections](https://docs.codat.io/bank-feeds-api#/schemas/Connection) related to the company. +The *List companies* endpoint returns a list of [companies] associated to your instances. + +A [company](https://docs.codat.io/bank-feeds-api#/schemas/Company) represents a business sharing access to their data. +Each company can have multiple [connections](https://docs.codat.io/bank-feeds-api#/schemas/Connection) to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data. ### Example Usage @@ -170,7 +187,11 @@ var res = await sdk.Companies.ListAsync(req); ## Update -Updates both the name and description of the company. +Use the *Update company* endpoint to update both the name and description of the company. +If you use [groups](https://docs.codat.io/bank-feeds-api#/schemas/Group) to manage a set of companies, use the [Add company](https://docs.codat.io/bank-feeds-api#/operations/add-company-to-group) or [Remove company](https://docs.codat.io/bank-feeds-api#/operations/remove-company-from-group) endpoints to add or remove a company from a group. + +A [company](https://docs.codat.io/bank-feeds-api#/schemas/Company) represents a business sharing access to their data. +Each company can have multiple [connections](https://docs.codat.io/bank-feeds-api#/schemas/Connection) to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data. ### Example Usage @@ -178,6 +199,7 @@ var res = await sdk.Companies.ListAsync(req); using Codat.BankFeeds; using Codat.BankFeeds.Models.Shared; using Codat.BankFeeds.Models.Operations; +using System.Collections.Generic; var sdk = new CodatBankFeeds( security: new Security() { @@ -187,6 +209,11 @@ var sdk = new CodatBankFeeds( UpdateCompanyRequest req = new UpdateCompanyRequest() { CompanyRequestBody = new CompanyRequestBody() { Description = "Requested early access to the new financing scheme.", + Groups = new List() { + new Items() { + Id = "60d2fa12-8a04-11ee-b9d1-0242ac120002", + }, + }, Name = "Bank of Dave", }, CompanyId = "8a210b68-6988-11ed-a1eb-0242ac120002", diff --git a/bank-feeds/gen.yaml b/bank-feeds/gen.yaml index d70870eef..190e8e092 100644 --- a/bank-feeds/gen.yaml +++ b/bank-feeds/gen.yaml @@ -1,29 +1,15 @@ -configVersion: 1.0.0 -management: - docChecksum: a19e6e4f901ace72e0fa1bb907ccb71c - docVersion: 3.0.0 - speakeasyVersion: 1.126.3 - generationVersion: 2.214.3 +configVersion: 2.0.0 generation: - comments: {} sdkClassName: Codat.BankFeeds - repoURL: https://github.com/codatio/client-sdk-csharp.git usageSnippets: optionalPropertyRendering: withExample + fixes: + nameResolutionDec2023: false telemetryEnabled: true -features: - csharp: - core: 3.2.0 - deprecations: 2.81.1 - examples: 2.81.3 - globalSecurity: 2.81.2 - globalServerURLs: 2.82.2 - nameOverrides: 2.81.1 csharp: - version: 3.1.0 + version: 4.0.0 author: Codat - description: Set up bank feeds from accounts in your application to supported accounting - platforms. + description: Set up bank feeds from accounts in your application to supported accounting platforms. dotnetVersion: net6.0 imports: option: openapi @@ -37,5 +23,3 @@ csharp: maxMethodParams: 0 outputModelSuffix: output packageName: Codat.BankFeeds - published: true - repoSubDirectory: bank-feeds