UNPKG

@starley/validacao-pix

Version:

Valida se a chavePix inserida tem um formato valido ou nao

57 lines (56 loc) 1.43 kB
import * as i0 from "@angular/core"; /** * Valixar chave pix - passando somente o valor da chave * @author Starley Cazorla */ export declare class ValidacaoPix { constructor(); /** * Validar cpf * @author Starley Cazorla * @param cpf * @returns true if cpf */ validarCPF(cpf: string): boolean; /** * Validar cnpj * @author Starley Cazorla * @param cnpj * @returns true if cnpj */ validarCNPJ(cnpj: string): boolean; /** * Validar ddd de todos os estados brasileiros * @author Starley Cazorla * @param ddd * @returns true if ddd */ validarDDD(ddd: string): boolean; /** * Contems sequencia repetida * @author Starley Cazorla * @param numero * @returns true if sequencia repetida */ private contemSequenciaRepetida; /** * Validar numero telefone * @author Starley Cazorla * @param telefone * @returns true if numero telefone */ private validarNumeroTelefone; /** * Validar chave pix * @author Starley Cazorla * @param inputPix * @returns {chavePix, tipoChave, isValid} */ validarChavePIX(inputPix: string): { chavePIX: string; tipoChave: string; isValid: boolean; }; static ɵfac: i0.ɵɵFactoryDeclaration<ValidacaoPix, never>; static ɵprov: i0.ɵɵInjectableDeclaration<ValidacaoPix>; }