/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "./environments.js"; import * as core from "./core/index.js"; import { EntityGroup } from "./api/resources/entityGroup/client/Client.js"; import { Entity } from "./api/resources/entity/client/Client.js"; import { InvoiceTemplate } from "./api/resources/invoiceTemplate/client/Client.js"; import { Invoice } from "./api/resources/invoice/client/Client.js"; import { Organization } from "./api/resources/organization/client/Client.js"; import { BankLookup } from "./api/resources/bankLookup/client/Client.js"; import { Calculate } from "./api/resources/calculate/client/Client.js"; import { CustomPaymentMethodSchema } from "./api/resources/customPaymentMethodSchema/client/Client.js"; import { Ocr } from "./api/resources/ocr/client/Client.js"; import { PaymentGateway } from "./api/resources/paymentGateway/client/Client.js"; import { PaymentMethods } from "./api/resources/paymentMethods/client/Client.js"; import { Transaction } from "./api/resources/transaction/client/Client.js"; export declare namespace MercoaClient { interface Options { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; token: core.Supplier; /** Override the X-API-Version header */ xApiVersion?: "2024-08-01"; /** Additional headers to include in requests. */ headers?: Record | undefined>; } interface RequestOptions { /** The maximum time to wait for a response in seconds. */ timeoutInSeconds?: number; /** The number of times to retry the request. Defaults to 2. */ maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Additional query string parameters to include in the request. */ queryParams?: Record; /** Additional headers to include in the request. */ headers?: Record | undefined>; /** Override the X-API-Version header */ xApiVersion?: "2024-08-01"; } } export declare class MercoaClient { protected readonly _options: MercoaClient.Options; protected _entityGroup: EntityGroup | undefined; protected _entity: Entity | undefined; protected _invoiceTemplate: InvoiceTemplate | undefined; protected _invoice: Invoice | undefined; protected _organization: Organization | undefined; protected _bankLookup: BankLookup | undefined; protected _calculate: Calculate | undefined; protected _customPaymentMethodSchema: CustomPaymentMethodSchema | undefined; protected _ocr: Ocr | undefined; protected _paymentGateway: PaymentGateway | undefined; protected _paymentMethods: PaymentMethods | undefined; protected _transaction: Transaction | undefined; constructor(_options: MercoaClient.Options); get entityGroup(): EntityGroup; get entity(): Entity; get invoiceTemplate(): InvoiceTemplate; get invoice(): Invoice; get organization(): Organization; get bankLookup(): BankLookup; get calculate(): Calculate; get customPaymentMethodSchema(): CustomPaymentMethodSchema; get ocr(): Ocr; get paymentGateway(): PaymentGateway; get paymentMethods(): PaymentMethods; get transaction(): Transaction; }