import * as utils from "../internal/utils"; import * as operations from "../sdk/models/operations"; import { SDKConfiguration } from "./sdk"; import { AxiosRequestConfig } from "axios"; /** * Journals */ export declare class Journals { private sdkConfiguration; constructor(sdkConfig: SDKConfiguration); /** * Create journal * * @remarks * The *Create journal* endpoint creates a new [journal](https://docs.codat.io/accounting-api#/schemas/Journal) for a given company's connection. * * [Journals](https://docs.codat.io/accounting-api#/schemas/Journal) are used to record all the financial transactions of a company. * * **Integration-specific behaviour** * * Required data may vary by integration. To see what data to post, first call [Get create journal model](https://docs.codat.io/accounting-api#/operations/get-create-journals-model). * * Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=journals) for integrations that support creating an account. * */ create(req: operations.CreateJournalRequest, retries?: utils.RetryConfig, config?: AxiosRequestConfig): Promise; /** * Get journal * * @remarks * The *Get journal* endpoint returns a single journal for a given journalId. * * [Journals](https://docs.codat.io/accounting-api#/schemas/Journal) are used to record all the financial transactions of a company. * * Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=journals) for integrations that support getting a specific journal. * * 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.GetJournalRequest, retries?: utils.RetryConfig, config?: AxiosRequestConfig): Promise; /** * Get create journal model * * @remarks * The *Get create journal model* endpoint returns the expected data for the request payload when creating a [journal](https://docs.codat.io/accounting-api#/schemas/Journal) for a given company and integration. * * [Journals](https://docs.codat.io/accounting-api#/schemas/Journal) are used to record all the financial transactions of a company. * * **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=journals) for integrations that support creating a journal. * */ getCreateModel(req: operations.GetCreateJournalsModelRequest, retries?: utils.RetryConfig, config?: AxiosRequestConfig): Promise; /** * List journals * * @remarks * The *List journals* endpoint returns a list of [journals](https://docs.codat.io/accounting-api#/schemas/Journal) for a given company's connection. * * [Journals](https://docs.codat.io/accounting-api#/schemas/Journal) are used to record all the financial transactions of a company. * * 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.ListJournalsRequest, retries?: utils.RetryConfig, config?: AxiosRequestConfig): Promise; }