# `ISO20022`
[🔗](https://github.com/ARTARNA/ex_iso20022/blob/main/lib/iso_20022.ex#L1)

ISO 20022 message parsing for Elixir.

Currently supported message types:

- `ISO20022.Camt053` — Bank to Customer Statement (camt.053.001.02 through .014)

## Example

    {:ok, doc} = ISO20022.Camt053.parse(xml_string)
    [statement | _] = doc.statements
    IO.inspect(statement.account.iban)

# `parse`

```elixir
@spec parse(binary()) :: {:ok, ISO20022.Camt053.Document.t()} | {:error, term()}
```

Dispatches parsing to the correct module based on the XML namespace found in the
document root. Returns an error tuple for unsupported message types.

Currently only camt.053 is supported. More message types will be added in future releases.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
