QRNBUGenerator (NBU payment QR v0.2.1)

Summary

Functions

Link to this function

generate(data, opts \\ [error_correction: :medium, format: :svg, settings: [svg: %{__struct__: QRCode.Render.SvgSettings, background_color: "#ffffff", background_opacity: nil, image: nil, qrcode_color: "#000000", scale: 10, structure: :minify}, png: %{__struct__: QRCode.Render.PngSettings, background_color: "#ffffff", qrcode_color: "#000000", scale: 10}][:svg]])

@spec generate(
  binary(),
  nil
  | [
      {:error_correction, :high | :low | :medium | :quartile}
      | {:format, :png | :svg}
      | {:settings, map()},
      ...
    ]
) :: {:error, binary()} | {:ok, binary()}