import * as utils from "../internal/utils"; import * as operations from "../sdk/models/operations"; import { SDKConfiguration } from "./sdk"; import { AxiosRequestConfig } from "axios"; /** * Transfers */ export declare class Transfers { private sdkConfiguration; constructor(sdkConfig: SDKConfiguration); /** * Create transfer * * @remarks * The *Create transfer* endpoint creates a new [transfer](https://docs.codat.io/accounting-api#/schemas/Transfer) for a given company's connection. * * [Transfers](https://docs.codat.io/accounting-api#/schemas/Transfer) record the movement of money between two bank accounts, or between a bank account and a nominal account. * * **Integration-specific behaviour** * * Required data may vary by integration. To see what data to post, first call [Get create transfer model](https://docs.codat.io/accounting-api#/operations/get-create-transfers-model). * * Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=transfers) for integrations that support creating an account. * */ create(req: operations.CreateTransferRequest, retries?: utils.RetryConfig, config?: AxiosRequestConfig): Promise; /** * Get transfer * * @remarks * The *Get transfer* endpoint returns a single transfer for a given transferId. * * [Transfers](https://docs.codat.io/accounting-api#/schemas/Transfer) record the movement of money between two bank accounts, or between a bank account and a nominal account. * * Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=transfers) for integrations that support getting a specific transfer. * * Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/codat-api#/operations/refresh-company-data). * */ get(req: operations.GetTransferRequest, retries?: utils.RetryConfig, config?: AxiosRequestConfig): Promise; /** * Get create transfer model * * @remarks * The *Get create transfer model* endpoint returns the expected data for the request payload when creating a [transfer](https://docs.codat.io/accounting-api#/schemas/Transfer) for a given company and integration. * * [Transfers](https://docs.codat.io/accounting-api#/schemas/Transfer) record the movement of money between two bank accounts, or between a bank account and a nominal account. * * **Integration-specific behaviour** * * See the *response examples* for integration-specific indicative models. * * Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=transfers) for integrations that support creating a transfer. * */ getCreateModel(req: operations.GetCreateTransfersModelRequest, retries?: utils.RetryConfig, config?: AxiosRequestConfig): Promise; /** * List transfers * * @remarks * The *List transfers* endpoint returns a list of [transfers](https://docs.codat.io/accounting-api#/schemas/Transfer) for a given company's connection. * * [Transfers](https://docs.codat.io/accounting-api#/schemas/Transfer) record the movement of money between two bank accounts, or between a bank account and a nominal account. * * Before using this endpoint, you must have [retrieved data for the company](https://docs.codat.io/codat-api#/operations/refresh-company-data). * */ list(req: operations.ListTransfersRequest, retries?: utils.RetryConfig, config?: AxiosRequestConfig): Promise; /** * Upload invoice attachment * * @remarks * The *Upload transfer attachment* endpoint uploads an attachment and assigns it against a specific `transferId`. * * [Transfers](https://docs.codat.io/accounting-api#/schemas/Transfer) are issued by a supplier for the purpose of recording transfer. * * **Integration-specific behaviour** * * For more details on supported file types by integration see [Attachments](https://docs.codat.io/accounting-api#/schemas/Attachment). * * Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=transfers) for integrations that support uploading a transfer attachment. * */ uploadAttachment(req: operations.UploadTransferAttachmentRequest, retries?: utils.RetryConfig, config?: AxiosRequestConfig): Promise; }