Current section

Files

Jump to
mollie_api lib mollie_api model transfer_party.ex
Raw

lib/mollie_api/model/transfer_party.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.TransferParty do
@moduledoc """
A party involved in the transfer, representing either the debtor (sender) or creditor (recipient). Contains the party's name and account details.
"""
@derive JSON.Encoder
defstruct [
:fullName,
:account
]
@type t :: %__MODULE__{
:fullName => String.t,
:account => MollieAPI.Model.TransferPartyAccount.t
}
alias MollieAPI.Deserializer
def decode(value) do
value
|> Deserializer.deserialize(:account, :struct, MollieAPI.Model.TransferPartyAccount)
end
end