bran v0.1.2 BRAN.Banks.Santander View Source

Documentation BRAN.Banks.Santander

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_account_type
   | :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.Santander.validate([2,5,4,5], [0,2,3,6,6,0,2,3], 1) :true