PixBrcode.Payload (pix_brcode v0.1.0)

Copy Markdown View Source

A decoded Pix payload.

:type is :static (has a :key) or :dynamic (has a :url). :amount is kept as the string found in the payload, e.g. "10.50".

Summary

Types

t()

@type t() :: %PixBrcode.Payload{
  amount: String.t() | nil,
  description: String.t() | nil,
  key: String.t() | nil,
  merchant_city: String.t() | nil,
  merchant_name: String.t() | nil,
  txid: String.t() | nil,
  type: :static | :dynamic,
  url: String.t() | nil
}