UNPKG

@afriex/core

Version:

HTTP client, configuration and typed errors for the Afriex Business API SDK

26 lines • 1.17 kB
import { Currency, Country } from "../types/common.js"; /** * @deprecated A small subset of the currencies the API supports. Do not use * it to decide whether a currency is valid: the API accepts many more. Read * the currencies a business holds from the balance endpoint. */ export declare const SUPPORTED_CURRENCIES: Currency[]; /** * @deprecated A small subset of the countries the API supports. Do not use * it to decide whether a country is valid. */ export declare const SUPPORTED_COUNTRIES: Country[]; /** * @deprecated Answers `false` for most currencies the API supports, such as * `ZAR` and `INR`. Let the API validate the currency. */ export declare function isValidCurrency(currency: string): currency is Currency; /** * @deprecated Answers `false` for most countries the API supports. Let the * API validate the country. */ export declare function isValidCountry(country: string): country is Country; export declare function isValidEmail(email: string): boolean; export declare function isValidPhoneNumber(phoneNumber: string): boolean; export declare function isValidAmount(amount: number): boolean; //# sourceMappingURL=validators.d.ts.map