-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
1d669f8 (HEAD -> refs/heads/master, refs/remotes/origin/master) Extended format on the plus giro format
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import * as types from './types'; | ||
import { ValidationInput } from "./types"; | ||
export declare class BankAccountValidation { | ||
_config: types.BankAccountValidationConfig; | ||
_validationRules: types.IValidation[]; | ||
constructor(config: Partial<types.BankAccountValidationConfig>); | ||
add(validationRule: types.IValidation): void; | ||
validate(input: string | ValidationInput): types.ValidationResult[]; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import * as types from './types'; | ||
import { IValidation, ValidationInput } from './types'; | ||
export declare class IbanValidation implements IValidation { | ||
_config: types.BankAccountValidationConfig; | ||
_validationRules: types.IValidation[]; | ||
private _ibanTester; | ||
constructor(config: Partial<types.BankAccountValidationConfig>); | ||
canValidate(input: string | ValidationInput): Boolean; | ||
validate(input: string | ValidationInput): { | ||
valid: boolean; | ||
}; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { BankAccountValidation } from '../src'; | ||
import * as types from "./types"; | ||
export declare function createValidationWithAllAvailableValidators(config: Partial<types.BankAccountValidationConfig>): BankAccountValidation; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
declare const _default: {}; | ||
export default _default; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { BankAccountValidation } from './BankAccountValidation'; | ||
export { createValidationWithAllAvailableValidators } from './createBankAccountValidation'; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export interface BankAccountValidationConfig { | ||
} | ||
export interface ValidationInput { | ||
accountNumber: string; | ||
countryCode?: string; | ||
type?: string; | ||
} | ||
export interface ValidationResult { | ||
valid: Boolean; | ||
} | ||
export interface IValidation { | ||
validate(input: any): ValidationResult; | ||
canValidate(input: any): Boolean; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
declare const _default: { | ||
"bank": string; | ||
"clearingFrom": number; | ||
"n": string; | ||
"clearingTo": number; | ||
"format": string; | ||
"type": number; | ||
"comment": number; | ||
}[]; | ||
export = _default; |