# 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.EntityWebhookEventEmbeddedEntity do @moduledoc """ """ @derive JSON.Encoder defstruct [ :resource, :id, :mode, :description, :amount, :minimumAmount, :archived, :redirectUrl, :webhookUrl, :lines, :billingAddress, :shippingAddress, :profileId, :reusable, :createdAt, :paidAt, :expiresAt, :allowedMethods, :applicationFee, :sequenceType, :customerId, :testmode, :_links, :name, :website, :email, :phone, :countriesOfActivity, :businessCategory, :status, :review ] @type t :: %__MODULE__{ :resource => any(), :id => any(), :mode => MollieAPI.Model.Mode.t, :description => any(), :amount => MollieAPI.Model.AmountNullable.t, :minimumAmount => MollieAPI.Model.AmountNullable.t | nil, :archived => any(), :redirectUrl => any(), :webhookUrl => any(), :lines => [MollieAPI.Model.PaymentLineItemResponse.t] | nil, :billingAddress => MollieAPI.Model.PaymentAddress.t | nil, :shippingAddress => MollieAPI.Model.PaymentAddress.t | nil, :profileId => any(), :reusable => any(), :createdAt => any(), :paidAt => any(), :expiresAt => any(), :allowedMethods => [MollieAPI.Model.PaymentLinkMethodResponse.t], :applicationFee => MollieAPI.Model.CreatePaymentLinkRequestApplicationFee.t | nil, :sequenceType => MollieAPI.Model.PaymentLinkSequenceTypeResponse.t | nil, :customerId => any() | nil, :testmode => any() | nil, :_links => MollieAPI.Model.EntityProfileLinks.t, :name => any() | nil, :website => any() | nil, :email => any() | nil, :phone => any() | nil, :countriesOfActivity => [any()] | nil, :businessCategory => String.t, :status => MollieAPI.Model.ProfileStatusResponse.t | nil, :review => MollieAPI.Model.ListEntityProfileReview.t | nil } alias MollieAPI.Deserializer def decode(value) do value |> Deserializer.deserialize(:mode, :struct, MollieAPI.Model.Mode) |> Deserializer.deserialize(:amount, :struct, MollieAPI.Model.AmountNullable) |> Deserializer.deserialize(:minimumAmount, :struct, MollieAPI.Model.AmountNullable) |> Deserializer.deserialize(:lines, :list, MollieAPI.Model.PaymentLineItemResponse) |> Deserializer.deserialize(:billingAddress, :struct, MollieAPI.Model.PaymentAddress) |> Deserializer.deserialize(:shippingAddress, :struct, MollieAPI.Model.PaymentAddress) |> Deserializer.deserialize(:allowedMethods, :list, MollieAPI.Model.PaymentLinkMethodResponse) |> Deserializer.deserialize(:applicationFee, :struct, MollieAPI.Model.CreatePaymentLinkRequestApplicationFee) |> Deserializer.deserialize(:sequenceType, :struct, MollieAPI.Model.PaymentLinkSequenceTypeResponse) |> Deserializer.deserialize(:_links, :struct, MollieAPI.Model.EntityProfileLinks) |> Deserializer.deserialize(:status, :struct, MollieAPI.Model.ProfileStatusResponse) |> Deserializer.deserialize(:review, :struct, MollieAPI.Model.ListEntityProfileReview) end end