Current section

Files

Jump to
mollie_api lib mollie_api model status_reason.ex
Raw

lib/mollie_api/model/status_reason.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.StatusReason do
@moduledoc """
This object offers details about the status of a payment. Currently it is only available for point-of-sale payments. You can find more information about the possible values of this object on [this page](status-reasons).**
"""
@derive JSON.Encoder
defstruct [
:code,
:message
]
@type t :: %__MODULE__{
:code => MollieAPI.Model.StatusReasonCode.t,
:message => String.t
}
alias MollieAPI.Deserializer
def decode(value) do
value
|> Deserializer.deserialize(:code, :struct, MollieAPI.Model.StatusReasonCode)
end
end