bran v0.2.0 BRAN.Banks.Nubank View Source

Documentation BRAN.Banks.Nubank

Link to this section Summary

Functions

Returns a tuple, after checking if the combination of agency_number, account_number and digit is valid

Link to this section Functions

Link to this function

validate(agency_code, account_number, digit)

View Source

Specs

validate([Integer.t()], [Integer.t()], Integer.t() | String.t()) ::
  {:error,
   :invalid_account_number_length | :invalid_agency_code_length | :not_valid}
  | {:ok, :valid}

Returns a tuple, after checking if the combination of agency_number, account_number and digit is valid

##Examples iex> BRAN.Banks.Nubank.validate([0,0,0,1], [5,2,1,6,1,2,5], 0)