ibantools-germany
Version:
IBAN Validator and Generator for German Bank Accounts
36 lines (33 loc) • 1.73 kB
TypeScript
/**
* ibantools-germany
* Copyright (C) 2022-2024 Markus Baumer <markus@baumer.dev>
*
* 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 { Result } from "../types";
export declare const method06CheckDigit: (number: string, weights: number[], modulo?: number) => {
calculatedCheckDigit: number;
diffRemainder: number;
givenCheckDigit: number;
};
export declare const method06Result: (givenCheckDigit: number, calculatedCheckDigit: number, diff10CheckDigit?: number, diff11CheckDigit?: number) => Result;
/**
* @param number Significant digits for calculation and check digit at the rightmost position
* @param weights Weight for calculation, must be at
* @param diff10CheckDigit Check digit if moduloDifference returns 10
* @param diff11CheckDigit Check digit if moduloDifference returns 11
* @param modulo Moduolo for moduloDifference
* @returns
*/
export declare const method06Core: (number: string, weights: number[], diff10CheckDigit?: number, diff11CheckDigit?: number, modulo?: number) => Result;
declare const _default: (number: string) => Result;
export default _default;