Liking cljdoc? Tell your friends :D

brazilian-utils.cnpj.validation


CNPJAlfanumericFormattedclj/s

Schema for formatted alphanumeric CNPJ: XX.XXX.XXX/XXXX-XX (with letters)

Schema for formatted alphanumeric CNPJ: XX.XXX.XXX/XXXX-XX (with letters)
sourceraw docstring

CNPJAlfanumericStrictclj/s

Schema for unformatted alphanumeric CNPJ: 12 chars (A-Z or 0-9) + 2 numeric DVs

Schema for unformatted alphanumeric CNPJ: 12 chars (A-Z or 0-9) + 2 numeric DVs
sourceraw docstring

CNPJFormattedclj/s

Schema for formatted numeric CNPJ: XX.XXX.XXX/XXXX-XX

Schema for formatted numeric CNPJ: XX.XXX.XXX/XXXX-XX
sourceraw docstring

CNPJNumericclj/s

Schema for numeric CNPJ: exactly 14 digits

Schema for numeric CNPJ: exactly 14 digits
sourceraw docstring

is-alfanumeric?clj/s

(is-alfanumeric? cnpj)

Returns true if the cleaned CNPJ is alphanumeric (length 14, last two digits numeric, contains a letter).

Args: cnpj - The CNPJ string to check

Returns: true if alphanumeric with required shape, false otherwise

Returns true if the cleaned CNPJ is alphanumeric (length 14, last two digits numeric, contains a letter).

Args:
  cnpj - The CNPJ string to check
  
Returns:
  true if alphanumeric with required shape, false otherwise
sourceraw docstring

is-formatted-alfanumeric?clj/s

(is-formatted-alfanumeric? cnpj)

Checks if CNPJ is formatted (alphanumeric with mask).

Args: cnpj - The CNPJ string to check

Returns: true if formatted with alphanumeric mask, false otherwise

Checks if CNPJ is formatted (alphanumeric with mask).

Args:
  cnpj - The CNPJ string to check
  
Returns:
  true if formatted with alphanumeric mask, false otherwise
sourceraw docstring

is-formatted?clj/s

(is-formatted? cnpj)

Checks if CNPJ is formatted (numeric with mask).

Args: cnpj - The CNPJ string to check

Returns: true if formatted with numeric mask, false otherwise

Checks if CNPJ is formatted (numeric with mask).

Args:
  cnpj - The CNPJ string to check
  
Returns:
  true if formatted with numeric mask, false otherwise
sourceraw docstring

is-numeric?clj/s

(is-numeric? cnpj)

Returns true if the CNPJ (cleaned) is numeric with 14 digits.

Args: cnpj - The CNPJ string to check

Returns: true if numeric with 14 digits, false otherwise

Returns true if the CNPJ (cleaned) is numeric with 14 digits.

Args:
  cnpj - The CNPJ string to check
  
Returns:
  true if numeric with 14 digits, false otherwise
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close