From 978eea066c77281cc1da88c1f3f94455bd80df9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sas=CC=8Ca=20Jovanic=CC=81?= Date: Wed, 14 Feb 2024 13:58:43 +0100 Subject: [PATCH] Version 4.5.0 --- ChangeLog | 3 +++ dist/ibantools.js | 3 ++- docs/enums/ValidationErrorsBIC.html | 4 +-- docs/enums/ValidationErrorsIBAN.html | 4 +-- docs/functions/composeIBAN.html | 2 +- docs/functions/electronicFormatIBAN.html | 2 +- docs/functions/extractBIC.html | 2 +- docs/functions/extractIBAN.html | 2 +- docs/functions/friendlyFormatIBAN.html | 2 +- docs/functions/getCountrySpecifications.html | 2 +- docs/functions/isQRIBAN.html | 2 +- docs/functions/isSEPACountry.html | 2 +- docs/functions/isValidBBAN.html | 2 +- docs/functions/isValidBIC.html | 2 +- docs/functions/isValidIBAN.html | 2 +- docs/functions/setCountryBBANValidation.html | 26 +++----------------- docs/functions/validateBIC.html | 2 +- docs/functions/validateIBAN.html | 2 +- docs/interfaces/ComposeIBANParams.html | 4 +-- docs/interfaces/CountryMap.html | 2 +- docs/interfaces/CountrySpec.html | 4 +-- docs/interfaces/ExtractBICResult.html | 4 +-- docs/interfaces/ExtractIBANResult.html | 4 +-- docs/interfaces/ValidateBICResult.html | 4 +-- docs/interfaces/ValidateIBANOptions.html | 4 +-- docs/interfaces/ValidateIBANResult.html | 4 +-- docs/variables/countrySpecs.html | 2 +- 27 files changed, 42 insertions(+), 56 deletions(-) diff --git a/ChangeLog b/ChangeLog index c052002..5cd515e 100755 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2024-02-14 Saša Jovanić + * Version 4.5.0 + 2024-02-14 Mayeul-T * Fix French (FR) IBAN extract diff --git a/dist/ibantools.js b/dist/ibantools.js index 9627798..ffd4581 100644 --- a/dist/ibantools.js +++ b/dist/ibantools.js @@ -1079,7 +1079,8 @@ define(["require", "exports"], function (require, exports) { IBANRegistry: true, SEPA: true, bank_identifier: '0-4', - account_indentifier: '4-27', + branch_indentifier: '5-9', + account_indentifier: '14-24', }, GA: { chars: 27, diff --git a/docs/enums/ValidationErrorsBIC.html b/docs/enums/ValidationErrorsBIC.html index ec22f59..d0eaf22 100644 --- a/docs/enums/ValidationErrorsBIC.html +++ b/docs/enums/ValidationErrorsBIC.html @@ -1,5 +1,5 @@ ValidationErrorsBIC | IBANTools

Enumeration ValidationErrorsBIC

BIC validation errors

-

Enumeration Members

Enumeration Members

NoBICCountry: 1
NoBICProvided: 0
WrongBICFormat: 2

Generated using TypeDoc

\ No newline at end of file +

Enumeration Members

NoBICCountry: 1
NoBICProvided: 0
WrongBICFormat: 2

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/enums/ValidationErrorsIBAN.html b/docs/enums/ValidationErrorsIBAN.html index c2ca34a..5533199 100644 --- a/docs/enums/ValidationErrorsIBAN.html +++ b/docs/enums/ValidationErrorsIBAN.html @@ -1,5 +1,5 @@ ValidationErrorsIBAN | IBANTools

Enumeration ValidationErrorsIBAN

IBAM validation errors

-

Enumeration Members

Enumeration Members

ChecksumNotNumber: 4
NoIBANCountry: 1
NoIBANProvided: 0
QRIBANNotAllowed: 7
WrongAccountBankBranchChecksum: 6
WrongBBANFormat: 3
WrongBBANLength: 2
WrongIBANChecksum: 5

Generated using TypeDoc

\ No newline at end of file +

Enumeration Members

ChecksumNotNumber: 4
NoIBANCountry: 1
NoIBANProvided: 0
QRIBANNotAllowed: 7
WrongAccountBankBranchChecksum: 6
WrongBBANFormat: 3
WrongBBANLength: 2
WrongIBANChecksum: 5

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/functions/composeIBAN.html b/docs/functions/composeIBAN.html index 1d4bf56..97dc81e 100644 --- a/docs/functions/composeIBAN.html +++ b/docs/functions/composeIBAN.html @@ -1,4 +1,4 @@ composeIBAN | IBANTools

Function composeIBAN

  • composeIBAN

    // returns NL91ABNA0417164300
    ibantools.composeIBAN({ countryCode: "NL", bban: "ABNA0417164300" });
    -

    Parameters

    Returns string | null

Generated using TypeDoc

\ No newline at end of file +

Parameters

Returns string | null

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/functions/electronicFormatIBAN.html b/docs/functions/electronicFormatIBAN.html index cecdbaf..3a9a871 100644 --- a/docs/functions/electronicFormatIBAN.html +++ b/docs/functions/electronicFormatIBAN.html @@ -3,4 +3,4 @@ When non-string value for IBAN is provided, returns null.

// returns "NL91ABNA0417164300"
ibantools.electronicFormatIBAN("NL91 ABNA 0417 1643 00");
-

Parameters

  • Optional iban: string

Returns string | null

Generated using TypeDoc

\ No newline at end of file +

Parameters

  • Optional iban: string

Returns string | null

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/functions/extractBIC.html b/docs/functions/extractBIC.html index 23e6bb1..eec2f91 100644 --- a/docs/functions/extractBIC.html +++ b/docs/functions/extractBIC.html @@ -1,4 +1,4 @@ extractBIC | IBANTools

Function extractBIC

  • extractBIC

    // returns {bankCode: "ABNA", countryCode: "NL", locationCode: "2A", branchCode: null, testBIC: false, valid: true}
    ibantools.extractBIC("ABNANL2A");
    -

    Parameters

    • inputBic: string

    Returns ExtractBICResult

Generated using TypeDoc

\ No newline at end of file +

Parameters

  • inputBic: string

Returns ExtractBICResult

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/functions/extractIBAN.html b/docs/functions/extractIBAN.html index 6b7c104..ff9e545 100644 --- a/docs/functions/extractIBAN.html +++ b/docs/functions/extractIBAN.html @@ -1,4 +1,4 @@ extractIBAN | IBANTools

Function extractIBAN

  • extractIBAN

    // returns {iban: "NL91ABNA0417164300", bban: "ABNA0417164300", countryCode: "NL", valid: true, accountNumber: '0417164300', bankIdentifier: 'ABNA'}
    ibantools.extractIBAN("NL91 ABNA 0417 1643 00");
    -

    Parameters

    • iban: string

    Returns ExtractIBANResult

Generated using TypeDoc

\ No newline at end of file +

Parameters

  • iban: string

Returns ExtractIBANResult

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/functions/friendlyFormatIBAN.html b/docs/functions/friendlyFormatIBAN.html index adfcc36..6a95672 100644 --- a/docs/functions/friendlyFormatIBAN.html +++ b/docs/functions/friendlyFormatIBAN.html @@ -5,4 +5,4 @@
// returns "NL91-ABNA-0417-1643-00"
ibantools.friendlyFormatIBAN("NL91ABNA0417164300","-");
-

Parameters

  • Optional iban: string
  • Optional separator: string

Returns string | null

Generated using TypeDoc

\ No newline at end of file +

Parameters

  • Optional iban: string
  • Optional separator: string

Returns string | null

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/functions/getCountrySpecifications.html b/docs/functions/getCountrySpecifications.html index 7e73b5a..ea55715 100644 --- a/docs/functions/getCountrySpecifications.html +++ b/docs/functions/getCountrySpecifications.html @@ -3,4 +3,4 @@ is member of not.

// Validating IBAN form field after user selects his country
// <select id="countries">
// ...
// <option value="NL">Netherlands</option>
// ...
// </select>
$("#countries").select(function() {
// Find country
let country = ibantools.getCountrySpecifications()[$(this).val()];
// Add country code letters to IBAN form field
$("input#iban").value($(this).val());
// Add New value to "pattern" attribute to #iban input text field
$("input#iban").attr("pattern", $(this).val() + "[0-9]{2}" + country.bban_regexp.slice(1).replace("$",""));
});
-

Returns CountryMap

Generated using TypeDoc

\ No newline at end of file +

Returns CountryMap

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/functions/isQRIBAN.html b/docs/functions/isQRIBAN.html index 1f1dcef..c878e6b 100644 --- a/docs/functions/isQRIBAN.html +++ b/docs/functions/isQRIBAN.html @@ -3,4 +3,4 @@
// returns false
ibantools.isQRIBAN("NL92ABNA0517164300");
-

Parameters

  • iban: string

Returns boolean

Generated using TypeDoc

\ No newline at end of file +

Parameters

  • iban: string

Returns boolean

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/functions/isSEPACountry.html b/docs/functions/isSEPACountry.html index 4b8a82c..ce33e6e 100644 --- a/docs/functions/isSEPACountry.html +++ b/docs/functions/isSEPACountry.html @@ -3,4 +3,4 @@
// returns false
ibantools.isSEPACountry("PK");
-

Parameters

  • countryCode: string

Returns boolean

Generated using TypeDoc

\ No newline at end of file +

Parameters

  • countryCode: string

Returns boolean

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/functions/isValidBBAN.html b/docs/functions/isValidBBAN.html index 4ab0a90..59f2b08 100644 --- a/docs/functions/isValidBBAN.html +++ b/docs/functions/isValidBBAN.html @@ -3,4 +3,4 @@
// returns false
ibantools.isValidBBAN("A7NA0517164300", "NL");
-

Parameters

  • Optional bban: string
  • Optional countryCode: string

Returns boolean

Generated using TypeDoc

\ No newline at end of file +

Parameters

  • Optional bban: string
  • Optional countryCode: string

Returns boolean

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/functions/isValidBIC.html b/docs/functions/isValidBIC.html index 777d675..21644e0 100644 --- a/docs/functions/isValidBIC.html +++ b/docs/functions/isValidBIC.html @@ -1,4 +1,4 @@ isValidBIC | IBANTools

Function isValidBIC

  • Validate BIC/SWIFT

    // returns true
    ibantools.isValidBIC("ABNANL2A");

    // returns true
    ibantools.isValidBIC("NEDSZAJJXXX");

    // returns false
    ibantools.isValidBIC("ABN4NL2A");

    // returns false
    ibantools.isValidBIC("ABNA NL 2A");
    -

    Parameters

    • bic: string

    Returns boolean

Generated using TypeDoc

\ No newline at end of file +

Parameters

  • bic: string

Returns boolean

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/functions/isValidIBAN.html b/docs/functions/isValidIBAN.html index 2ff1a97..7e37f69 100644 --- a/docs/functions/isValidIBAN.html +++ b/docs/functions/isValidIBAN.html @@ -7,4 +7,4 @@
// returns false
ibantools.isValidIBAN('CH4431999123000889012', { allowQRIBAN: false });
-

Parameters

Returns boolean

Generated using TypeDoc

\ No newline at end of file +

Parameters

Returns boolean

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/functions/setCountryBBANValidation.html b/docs/functions/setCountryBBANValidation.html index b6dc609..885f279 100644 --- a/docs/functions/setCountryBBANValidation.html +++ b/docs/functions/setCountryBBANValidation.html @@ -1,22 +1,4 @@ -setCountryBBANValidation | IBANTools

Function setCountryBBANValidation

  • -
    -
    -
    -
    -
    -
    -

    51d4e6c (Add dual license)

    -
    -
    -
    -
    -
    -
    -
    -
      -
    • Set custom BBAN validation function for country.
    • -
    • -
    • If bban_validation_func already exists for the corresponding country,
    • -
    • it will be overwritten.
    • -
    -

    Parameters

    • country: string
    • func: ((bban) => boolean)
        • (bban): boolean
        • Parameters

          • bban: string

          Returns boolean

    Returns boolean

Generated using TypeDoc

\ No newline at end of file +setCountryBBANValidation | IBANTools

Function setCountryBBANValidation

  • Set custom BBAN validation function for country.

    +

    If bban_validation_func already exists for the corresponding country, +it will be overwritten.

    +

    Parameters

    • country: string
    • func: ((bban) => boolean)
        • (bban): boolean
        • Parameters

          • bban: string

          Returns boolean

    Returns boolean

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/functions/validateBIC.html b/docs/functions/validateBIC.html index 0cd0db9..dcd4684 100644 --- a/docs/functions/validateBIC.html +++ b/docs/functions/validateBIC.html @@ -1,4 +1,4 @@ validateBIC | IBANTools

Function validateBIC

Generated using TypeDoc

\ No newline at end of file +

Parameters

  • Optional bic: string

Returns ValidateBICResult

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/functions/validateIBAN.html b/docs/functions/validateIBAN.html index 42a507e..6eb123c 100644 --- a/docs/functions/validateIBAN.html +++ b/docs/functions/validateIBAN.html @@ -10,4 +10,4 @@

// returns {errorCodes: [7], valid: false} ibantools.validateIBAN('CH4431999123000889012', { allowQRIBAN: false }); ```

-

Parameters

Returns ValidateIBANResult

Generated using TypeDoc

\ No newline at end of file +

Parameters

Returns ValidateIBANResult

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/ComposeIBANParams.html b/docs/interfaces/ComposeIBANParams.html index db7521d..1b410b2 100644 --- a/docs/interfaces/ComposeIBANParams.html +++ b/docs/interfaces/ComposeIBANParams.html @@ -1,4 +1,4 @@ ComposeIBANParams | IBANTools

Interface ComposeIBANParams

Interface for ComposeIBAN parameteres

-
interface ComposeIBANParams {
    bban?: string;
    countryCode?: string;
}

Properties

interface ComposeIBANParams {
    bban?: string;
    countryCode?: string;
}

Properties

Properties

bban?: string
countryCode?: string

Generated using TypeDoc

\ No newline at end of file +

Properties

bban?: string
countryCode?: string

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/CountryMap.html b/docs/interfaces/CountryMap.html index 9828938..3d84d64 100644 --- a/docs/interfaces/CountryMap.html +++ b/docs/interfaces/CountryMap.html @@ -1,2 +1,2 @@ CountryMap | IBANTools

Generated using TypeDoc

\ No newline at end of file +
interface CountryMap {
    [code: string]: CountrySpec;
}

Indexable

[code: string]: CountrySpec

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/CountrySpec.html b/docs/interfaces/CountrySpec.html index 68d4564..2ad5a7b 100644 --- a/docs/interfaces/CountrySpec.html +++ b/docs/interfaces/CountrySpec.html @@ -1,6 +1,6 @@ CountrySpec | IBANTools

Interface CountrySpec

Interface for IBAN Country Specification

-
interface CountrySpec {
    IBANRegistry: boolean;
    SEPA: boolean;
    bban_regexp: null | string;
    chars: null | number;
}

Properties

interface CountrySpec {
    IBANRegistry: boolean;
    SEPA: boolean;
    bban_regexp: null | string;
    chars: null | number;
}

Properties

IBANRegistry: boolean
SEPA: boolean
bban_regexp: null | string
chars: null | number

Generated using TypeDoc

\ No newline at end of file +

Properties

IBANRegistry: boolean
SEPA: boolean
bban_regexp: null | string
chars: null | number

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/ExtractBICResult.html b/docs/interfaces/ExtractBICResult.html index c7394e2..9cd5d80 100644 --- a/docs/interfaces/ExtractBICResult.html +++ b/docs/interfaces/ExtractBICResult.html @@ -1,8 +1,8 @@ ExtractBICResult | IBANTools

Interface ExtractBICResult

Interface for ExtractBIC result

-
interface ExtractBICResult {
    bankCode?: string;
    branchCode: null | string;
    countryCode?: string;
    locationCode?: string;
    testBIC: boolean;
    valid: boolean;
}

Properties

interface ExtractBICResult {
    bankCode?: string;
    branchCode: null | string;
    countryCode?: string;
    locationCode?: string;
    testBIC: boolean;
    valid: boolean;
}

Properties

bankCode?: string
branchCode: null | string
countryCode?: string
locationCode?: string
testBIC: boolean
valid: boolean

Generated using TypeDoc

\ No newline at end of file +

Properties

bankCode?: string
branchCode: null | string
countryCode?: string
locationCode?: string
testBIC: boolean
valid: boolean

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/ExtractIBANResult.html b/docs/interfaces/ExtractIBANResult.html index a260aa1..299cdef 100644 --- a/docs/interfaces/ExtractIBANResult.html +++ b/docs/interfaces/ExtractIBANResult.html @@ -1,9 +1,9 @@ ExtractIBANResult | IBANTools

Interface ExtractIBANResult

Interface for ExtractIBAN result

-
interface ExtractIBANResult {
    accountNumber?: string;
    bankIdentifier?: string;
    bban?: string;
    branchIdentifier?: string;
    countryCode?: string;
    iban: string;
    valid: boolean;
}

Properties

interface ExtractIBANResult {
    accountNumber?: string;
    bankIdentifier?: string;
    bban?: string;
    branchIdentifier?: string;
    countryCode?: string;
    iban: string;
    valid: boolean;
}

Properties

accountNumber?: string
bankIdentifier?: string
bban?: string
branchIdentifier?: string
countryCode?: string
iban: string
valid: boolean

Generated using TypeDoc

\ No newline at end of file +

Properties

accountNumber?: string
bankIdentifier?: string
bban?: string
branchIdentifier?: string
countryCode?: string
iban: string
valid: boolean

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/ValidateBICResult.html b/docs/interfaces/ValidateBICResult.html index 1e071f7..15aa846 100644 --- a/docs/interfaces/ValidateBICResult.html +++ b/docs/interfaces/ValidateBICResult.html @@ -1,4 +1,4 @@ ValidateBICResult | IBANTools

Interface ValidateBICResult

Interface for ValidateBIC result

-
interface ValidateBICResult {
    errorCodes: ValidationErrorsBIC[];
    valid: boolean;
}

Properties

interface ValidateBICResult {
    errorCodes: ValidationErrorsBIC[];
    valid: boolean;
}

Properties

Properties

errorCodes: ValidationErrorsBIC[]
valid: boolean

Generated using TypeDoc

\ No newline at end of file +

Properties

errorCodes: ValidationErrorsBIC[]
valid: boolean

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/ValidateIBANOptions.html b/docs/interfaces/ValidateIBANOptions.html index a3d9d27..78c9cf5 100644 --- a/docs/interfaces/ValidateIBANOptions.html +++ b/docs/interfaces/ValidateIBANOptions.html @@ -1,3 +1,3 @@ ValidateIBANOptions | IBANTools

Interface ValidateIBANOptions

Interface for validation options

-
interface ValidateIBANOptions {
    allowQRIBAN: boolean;
}

Properties

Properties

allowQRIBAN: boolean

Generated using TypeDoc

\ No newline at end of file +
interface ValidateIBANOptions {
    allowQRIBAN: boolean;
}

Properties

Properties

allowQRIBAN: boolean

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/ValidateIBANResult.html b/docs/interfaces/ValidateIBANResult.html index 11de90f..6fd1297 100644 --- a/docs/interfaces/ValidateIBANResult.html +++ b/docs/interfaces/ValidateIBANResult.html @@ -1,4 +1,4 @@ ValidateIBANResult | IBANTools

Interface ValidateIBANResult

Interface for ValidateIBAN result

-
interface ValidateIBANResult {
    errorCodes: ValidationErrorsIBAN[];
    valid: boolean;
}

Properties

interface ValidateIBANResult {
    errorCodes: ValidationErrorsIBAN[];
    valid: boolean;
}

Properties

Properties

errorCodes: ValidationErrorsIBAN[]
valid: boolean

Generated using TypeDoc

\ No newline at end of file +

Properties

errorCodes: ValidationErrorsIBAN[]
valid: boolean

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/variables/countrySpecs.html b/docs/variables/countrySpecs.html index 4d74ba1..c12fa1d 100644 --- a/docs/variables/countrySpecs.html +++ b/docs/variables/countrySpecs.html @@ -1,2 +1,2 @@ countrySpecs | IBANTools

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file