UNPKG

@mollie/api-client

Version:
33 lines (32 loc) 1.09 kB
import type MaybeArray from './types/MaybeArray'; import type Xor from './types/Xor'; type Options = Xor<{ /** * The Mollie API key, starting with `'test_'` or `'live_'`. */ apiKey: string; }, { /** * OAuth access token, starting with `'access_''. */ accessToken: string; }> & { /** * One or an array of version strings of the software you are using, such as `'RockenbergCommerce/3.1.12'`. */ versionStrings?: MaybeArray<string>; /** * The headers set in the requests sent to the Mollie API. `Authorization`, `User-Agent`, `Accept`, * `Accept-Encoding`, and `Content-Type` are set by this library directly. Setting them here has no effect. */ headers?: Record<string, string>; /** * The URL of the root of the Mollie API. Default: `'https://api.mollie.com:443/v2/'`. */ apiEndpoint?: string; }; /** * Throws a `TypeError` if the passed options object does not contain an `apiKey` or an `accessToken`. */ export declare function checkCredentials(options: Options): void; export default Options;