UNPKG

bankdata-austria

Version:
53 lines (50 loc) 1.92 kB
/** * bankdata-austria * Copyright (C) 2023 Klaus Kirnbauer * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ import { BankData, ProbablyString } from "./types"; export interface Banks { [blz: string]: string[]; } export declare const myBankData: Banks; /** * Get name (and BIC if available) for bank with given BLZ * * @param blz Austrian BLZ with 5 digits * @param date Bank data valid at this date (default: current date) * @returns Bank data or null if invalid */ export declare const bankDataByBLZ: (blz: string) => BankData | null; /** * Get name (and BIC if available) for bank with given BBAN * * @param bban Austrian BBAN with 11 digits * @param date Bank data valid at this date (default: current date) * @returns Bank data or null if invalid */ export declare const bankDataByBBAN: (bban: ProbablyString) => BankData | null; /** * Get name (and BIC if available) for bank with given IBAN * * @param bban Austrian IBAN with 20 digits * @returns Bank data or null if invalid */ export declare const bankDataByIBAN: (iban: ProbablyString) => BankData | null; /** * Search all bank data and check if any contains the BIC * * @param bic BIC to search for * @returns Whether BIC exists in bank data */ export declare const isBICInData: (bic: string) => boolean;