Current section

Files

Jump to
mollie_api lib mollie_api model entity_webhook__links.ex
Raw

lib/mollie_api/model/entity_webhook__links.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.EntityWebhookLinks do
@moduledoc """
An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
"""
@derive JSON.Encoder
defstruct [
:self,
:documentation
]
@type t :: %__MODULE__{
:self => MollieAPI.Model.Url.t,
:documentation => MollieAPI.Model.Url.t
}
alias MollieAPI.Deserializer
def decode(value) do
value
|> Deserializer.deserialize(:self, :struct, MollieAPI.Model.Url)
|> Deserializer.deserialize(:documentation, :struct, MollieAPI.Model.Url)
end
end