Nostradamus Predicting Maelstroms

    This package has been deprecated

    Author message:

    Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

    @wealthsimple/canadian-bank-account

    1.0.0 • Public • Published

    canadian-bank-account Build Status

    Validate transit and account numbers of common Canadian banks.

    There are no dependencies.

    Usage

    var tdBankAccount = new CanadianBankAccount({
      institution: "004",
      transit: "12345",
      account: "1234567"
    });
    tdBankAccount.isTransitValid(); // Returns true
    tdBankAccount.isAccountValid(); // Returns true
    
    var invalidAccount = new CanadianBankAccount({
      institution: "001",
      transit: "123",
      account: "123456789"
    });
    invalidAccount.isTransitValid(); // Returns false
    invalidAccount.isAccountValid(); // Returns false
    invalidAccount.transitErrors(); // Returns ["Transit number must be 5 digits long."]
    invalidAccount.accountErrors(); // Returns ["Bank of Montreal account number must be 7 digits long."]

    Acknowledgments

    Validation rules based on the following article: Square - Bank Account Troubleshooting

    License

    MIT

    Keywords

    none

    Install

    npm i @wealthsimple/canadian-bank-account

    DownloadsWeekly Downloads

    70

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • 6
    • abejfehr
    • alexturpin
    • cchawn
    • f3ndot
    • jsuter
    • sdavenportws
    • spollock-ws
    • sterlingwes
    • wealthsimple-ci
    • ws-sumeet