# `Worldpay.Schema.Amount`
[🔗](https://github.com/iamkanishka/worldpay/blob/v1.0.0/lib/worldpay/schema.ex#L1)

Monetary amount with currency.

# `t`

```elixir
@type t() :: %Worldpay.Schema.Amount{currency: String.t(), value: non_neg_integer()}
```

# `from_map`

```elixir
@spec from_map(%{required(String.t()) =&gt; term()} | %{required(atom()) =&gt; term()}) ::
  t()
```

Build from a string-keyed or atom-keyed map.

# `to_map`

```elixir
@spec to_map(t()) :: %{required(String.t()) =&gt; term()}
```

Serialize to a string-keyed map.

---

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