Payment reference information for Swiss QR bills.
Reference types:
:qrr— QR payment reference (27 digits, used with QR-IBAN):scor— Creditor Reference / ISO 11649 (RF prefix, used with regular IBAN):non— No reference
Summary
Functions
Returns the formatted reference for display.
Creates a payment reference.
Returns the QR code data fields.
Returns the reference type as a string per spec ("QRR", "SCOR", "NON").
Types
@type reference_type() :: :qrr | :scor | :non
@type t() :: %SwissQrBill.PaymentReference{ reference: String.t() | nil, type: reference_type() }
Functions
Returns the formatted reference for display.
- QRR: groups of 5 from the right
- SCOR: groups of 4 from the left
- NON: nil
@spec new(reference_type(), String.t() | nil) :: t()
Creates a payment reference.
Returns the QR code data fields.
Returns the reference type as a string per spec ("QRR", "SCOR", "NON").