import { SpeakeasyBase } from "../../../internal/utils"; import { BankTransactionType } from "./banktransactiontype"; import { Links } from "./links"; /** * > **Accessing Bank Accounts through Banking API** * * @remarks * > * > This datatype was originally used for accessing bank account data both in accounting integrations and open banking aggregators. * > * > To view bank account data through the Banking API, please refer to the new datatype [here](https://docs.codat.io/banking-api#/operations/list-all-banking-transactions) * * > View the coverage for bank transactions in the Data coverage explorer. * * ## Overview * * Transactional banking data for a specific company and account. * * Bank transactions include the: * * Amount of the transaction. * * Current account balance. * * Transaction type, for example, credit, debit, or transfer. */ export declare class SourceModifiedDate extends SpeakeasyBase { /** * Unique identifier to the `accountId` the bank transactions originates from. */ accountId?: string; /** * The amount transacted in the bank transaction. */ amount?: number; /** * The remaining balance in the account with ID `accountId`. */ balance?: number; /** * 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: * * @remarks * * ``` * 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. */ clearedOnDate?: string; /** * Description of the bank transaction. */ description?: string; /** * Identifier for the bank transaction, unique to the company in the accounting platform. */ id?: string; modifiedDate?: string; /** * `True` if the bank transaction has been [reconciled](https://www.xero.com/uk/guides/what-is-bank-reconciliation/) in the accounting platform. */ reconciled?: boolean; sourceModifiedDate?: string; /** * Type of transaction for the bank statement line. */ transactionType?: BankTransactionType; } export declare class BankTransactions extends SpeakeasyBase { links: Links; /** * Current page number. */ pageNumber: number; /** * Number of items to return in results array. */ pageSize: number; results?: SourceModifiedDate[]; /** * Total number of items. */ totalResults: number; }