Current section

Files

Jump to
mollie_api lib mollie_api model status_reason_2.ex
Raw

lib/mollie_api/model/status_reason_2.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.StatusReason2 do
@moduledoc """
A human-readable reason explaining the current status of the transfer. Only populated when the transfer has reached a terminal status of `failed`, `rejected`, or `blocked`. This field is `null` for transfers that have not reached one of these statuses.
"""
@derive JSON.Encoder
defstruct [
:code,
:message
]
@type t :: %__MODULE__{
:code => MollieAPI.Model.StatusReasonCodeResponse.t | nil,
:message => String.t | nil
}
alias MollieAPI.Deserializer
def decode(value) do
value
|> Deserializer.deserialize(:code, :struct, MollieAPI.Model.StatusReasonCodeResponse)
end
end