Current section

Files

Jump to
mollie_api lib mollie_api model entity_route.ex
Raw

lib/mollie_api/model/entity_route.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.EntityRoute do
@moduledoc """
"""
@derive JSON.Encoder
defstruct [
:resource,
:id,
:paymentId,
:amount,
:description,
:destination,
:testmode,
:createdAt,
:_links
]
@type t :: %__MODULE__{
:resource => String.t | nil,
:id => String.t | nil,
:paymentId => String.t | nil,
:amount => MollieAPI.Model.Amount.t | nil,
:description => String.t | nil,
:destination => MollieAPI.Model.EntityRouteDestination.t | nil,
:testmode => boolean() | nil,
:createdAt => String.t | nil,
:_links => MollieAPI.Model.EntityRouteLinks.t | nil
}
alias MollieAPI.Deserializer
def decode(value) do
value
|> Deserializer.deserialize(:amount, :struct, MollieAPI.Model.Amount)
|> Deserializer.deserialize(:destination, :struct, MollieAPI.Model.EntityRouteDestination)
|> Deserializer.deserialize(:_links, :struct, MollieAPI.Model.EntityRouteLinks)
end
end