Current section

Files

Jump to
mollie_api lib mollie_api model entity_subscription_application_fee.ex
Raw

lib/mollie_api/model/entity_subscription_application_fee.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.EntitySubscriptionApplicationFee do
@moduledoc """
With Mollie Connect you can charge fees on payments that your app is processing on behalf of other Mollie merchants. Setting an application fee on the subscription will ensure this fee is charged on each individual payment. Refer to the `applicationFee` parameter on the [Get payment endpoint](get-payment) documentation for more information.
"""
@derive JSON.Encoder
defstruct [
:amount,
:description
]
@type t :: %__MODULE__{
:amount => MollieAPI.Model.Amount.t,
:description => String.t
}
alias MollieAPI.Deserializer
def decode(value) do
value
|> Deserializer.deserialize(:amount, :struct, MollieAPI.Model.Amount)
end
end