import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as operations from "./models/operations/index.js"; import * as shared from "./models/shared/index.js"; export declare class SourceAccounts extends ClientSDK { /** * Create source accounts * * @remarks * The _Batch create source accounts_ endpoint allows you to create multiple representations of your SMB's bank accounts within Codat's domain. The company can then map the source account to an existing or new target account in their accounting software. * * > ### Versioning * > If you are integrating the Bank Feeds solution with Codat after August 1, 2024, please use the v2 version of the API, as detailed in the schema below. For integrations completed before August 1, 2024, select the v1 version from the schema dropdown below. */ createBatch(request: operations.CreateBatchSourceAccountRequest, options?: RequestOptions): Promise; /** * Create single source account * * @remarks * The _Create Source Account_ endpoint allows you to create a representation of a bank account within Codat's domain. The company can then map the source account to an existing or new target account in their accounting software. * * > ### Versioning * > If you are integrating the Bank Feeds solution with Codat after August 1, 2024, please use the v2 version of the API, as detailed in the schema below. For integrations completed before August 1, 2024, select the v1 version from the schema dropdown below. */ create(request: operations.CreateSourceAccountRequest, options?: RequestOptions): Promise; /** * List source accounts * * @remarks * The _List source accounts_ endpoint returns a list of [source accounts](https://docs.codat.io/bank-feeds-api#/schemas/BankFeedAccount) for a given company's connection. * * [Source accounts](https://docs.codat.io/bank-feeds-api#/schemas/BankFeedAccount) are the bank's bank account within Codat's domain from which transactions are synced into the accounting platform. * * > ### Versioning * > If you are integrating the Bank Feeds solution with Codat after August 1, 2024, please use the v2 version of the API, as detailed in the schema below. For integrations completed before August 1, 2024, select the v1 version from the schema dropdown below. */ list(request: operations.ListSourceAccountsRequest, options?: RequestOptions): Promise; /** * Update source account * * @remarks * The _Update source account_ endpoint updates a single source account for a single data connection connected to a single company. * * ### Tips and pitfalls * * * This endpoint makes it possible to update the `accountName`, `status`, and `balance` fields. * * The `status` field can only be updated to 'disconnected'. * * The `balance` field can only be updated on accounts that are **not** 'connected'. * * Updates made here apply exclusively to source accounts and will not affect target accounts in the accounting software. */ update(request: operations.UpdateSourceAccountRequest, options?: RequestOptions): Promise; /** * Delete source account * * @remarks * The _Delete source account_ endpoint enables you to remove a source account. * * Removing a source account will also remove any mapping between the source bank feed bank accounts and the target bankfeed bank account. */ delete(request: operations.DeleteSourceAccountRequest, options?: RequestOptions): Promise; /** * Generate source account credentials * * @remarks * The _Generate bank account credentials_ endpoint can be used to generate credentials for QuickBooks Online to authenticate the Bank Feed in the QBO portal. Each time this endpoint is called, a new set of credentials will be generated. * * The old credentials will still be valid until the revoke credentials endpoint is used, which will revoke all credentials associated to the data connection. * * > **For QuickBooks Online only** * > * > Only call this endpoint when onboarding SMBs that use QuickBooks Online. */ generateCredentials(request: operations.GenerateCredentialsRequest, options?: RequestOptions): Promise; /** * Delete all source account credentials * * @remarks * The _Delete Bank Account Credentials_ endpoint serves as a comprehensive mechanism for revoking all existing authorization credentials that a company employs to establish its Bank Feed connection. * * In cases where multiple credential sets have been generated, a single API call to this endpoint revokes all of them. */ deleteCredentials(request: operations.DeleteBankFeedCredentialsRequest, options?: RequestOptions): Promise; /** * Generate one-time password * * @remarks * The *Generate OTP* endpoint generates a one-time password (OTP) for a bank feed connection. The OTP is returned along with an expiry time, after which it will no longer be valid. * * > **For Sage only** * > * > Only call this endpoint for connections to Sage. Calling it for other integrations will return an error. */ generateOtp(request: operations.GenerateOtpRequest, options?: RequestOptions): Promise; } //# sourceMappingURL=sourceaccounts.d.ts.map