Current section

Files

Jump to
mollie_api lib mollie_api model entity_payment_application_fee.ex
Raw

lib/mollie_api/model/entity_payment_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.EntityPaymentApplicationFee do
@moduledoc """
With Mollie Connect you can charge fees on payments that your app is processing on behalf of other Mollie merchants. If you use OAuth to create payments on a connected merchant's account, you can charge a fee using this `applicationFee` parameter. If the payment succeeds, the fee will be deducted from the merchant's balance and sent to your own account balance. If instead you want to split a payment on your own account between yourself and a connected merchant, refer to the `routing` parameter.
"""
@derive JSON.Encoder
defstruct [
:amount,
:description
]
@type t :: %__MODULE__{
:amount => MollieAPI.Model.Amount.t | nil,
:description => String.t | nil
}
alias MollieAPI.Deserializer
def decode(value) do
value
|> Deserializer.deserialize(:amount, :struct, MollieAPI.Model.Amount)
end
end