Current section

Files

Jump to
mollie_api lib mollie_api model amount.ex
Raw

lib/mollie_api/model/amount.ex

# NOTE: This file is auto generated by OpenAPI Generator 7.17.0 (https://openapi-generator.tech).
# Do not edit this file manually.
defmodule MollieAPI.Model.Amount do
@moduledoc """
In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
"""
@derive JSON.Encoder
defstruct [
:currency,
:value
]
@type t :: %__MODULE__{
:currency => String.t,
:value => String.t
}
def decode(value) do
value
end
end