Invoicex v1.0.0-rc.17 Invoicex.Extra View Source

A helper module for Extra context.

Link to this section Summary

Functions

Parses number string with country and type check

Link to this section Functions

Link to this function parse_number(number, country_iso, type \\ :mobile) View Source
parse_number(String.t(), atom(), atom()) ::
  {:ok, Ecto.Schema.t()} | {:error, String.t()}

Parses number string with country and type check.

Link to this function valid_currency?(country_code, currency, date \\ Date.utc_today(), require_tender \\ true) View Source
valid_currency?(atom(), atom(), Date.t(), boolean()) :: boolean()

Checks if currency is valid in country at date.