import { SpeakeasyBase } from "../../../internal/utils"; import { AccountingAddressType } from "./accountingaddresstype"; import { PhoneNumberType } from "./phonenumbertype"; import { SupplementalData } from "./supplementaldata"; export declare class AccountingAddress extends SpeakeasyBase { /** * City of the customer address. */ city?: string; /** * Country of the customer address. */ country?: string; /** * Line 1 of the customer address. */ line1?: string; /** * Line 2 of the customer address. */ line2?: string; /** * Postal code or zip code. */ postalCode?: string; /** * Region of the customer address. */ region?: string; /** * The type of the address */ type: AccountingAddressType; } export declare class Phone extends SpeakeasyBase { /** * A phone number. */ number: string; /** * The type of phone number */ type: PhoneNumberType; } /** * The type of the weblink. */ export declare enum TypeT { Website = "Website", Social = "Social", Unknown = "Unknown" } /** * Weblink associated with the company. */ export declare class Weblink extends SpeakeasyBase { /** * The type of the weblink. */ type?: TypeT; /** * The full URL for the weblink. */ url?: string; } /** * > View the coverage for company profile in the Data coverage explorer. * * @remarks * * Company info provides standard details about a linked company such as their address, phone number, and company registration. * * > **Company information or companies?** * > * > Company profile is standard information that is held in the accounting platform about a company. `Companies` is an endpoint that lists businesses in the Codat system that have linked and shared their data sources. */ export declare class CompanyDataset extends SpeakeasyBase { /** * Identifier or reference for the company in the accounting platform. */ accountingPlatformRef?: string; /** * An array of Addresses. */ addresses?: AccountingAddress[]; /** * Currency set in the accounting platform of the linked company. Used by the currency rate. */ baseCurrency?: string; /** * Registered legal name of the linked company. */ companyLegalName?: string; /** * Name of the linked company. */ companyName?: string; /** * 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. */ createdDate?: string; /** * 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. */ financialYearStartDate?: string; /** * 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. */ ledgerLockDate?: string; /** * An array of phone numbers. */ phoneNumbers?: Phone[]; /** * Registration number given to the linked company by the companies authority in the country of origin. In the UK this is Companies House. */ registrationNumber?: string; /** * URL addresses for the accounting source. * * @remarks * * For example, for Xero integrations two URLs are returned. These have many potential use cases, such as [deep linking](https://developer.xero.com/documentation/api-guides/deep-link-xero). */ sourceUrls?: Record; /** * Supplemental data is additional data you can include in our standard data types. * * @remarks * * It is referenced as a configured dynamic key value pair that is unique to the accounting platform. [Learn more](https://docs.codat.io/using-the-api/supplemental-data/overview) about supplemental data. */ supplementalData?: SupplementalData; /** * Company tax number. */ taxNumber?: string; /** * An array of weblinks. */ webLinks?: Weblink[]; }