QRNBU (NBU payment QR v0.2.1)

Summary

Types

Amount

Currency

Encoding

IBAN 'like UA303348510000026206114040874'

Purpose

Recipient

t()

NBU QR

Tax ID or ID Card Number

NBU QR Version

Types

@type amount() :: Decimal.t() | nil

Amount

@type currency() :: String.t() | nil

Currency

@type encoding() :: pos_integer()

Encoding

@type encodings() :: :utf8 | :cp1251
@type iban() :: String.t()

IBAN 'like UA303348510000026206114040874'

@type options() :: [{:encoding, encodings()}]
@type purpose() :: String.t() | nil

Purpose

@type recipient() :: String.t()

Recipient

@type t() :: %QRNBU{
  amount: amount(),
  currency: currency(),
  encoding: encoding(),
  iban: iban(),
  purpose: purpose(),
  recipient: recipient(),
  tax_id: tax_id(),
  version: version()
}

NBU QR

@type tax_id() :: String.t() | nil

Tax ID or ID Card Number

@type version() :: pos_integer()

NBU QR Version

Functions

@spec base_url() :: URI.t()
Link to this function

to_string(data, options \\ [encoding: :utf8])

@spec to_string(t(), options()) :: <<_::64, _::_*8>> | {:error, <<_::64, _::_*8>>}
Link to this function

to_uri(data, options \\ [encoding: :utf8])