Current section

Files

Jump to
mollie_api lib mollie_api model entity_balance_transaction_context.ex
Raw

lib/mollie_api/model/entity_balance_transaction_context.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.EntityBalanceTransactionContext do
@moduledoc """
Depending on the type of the balance transaction, we will try to give more context about the specific event that triggered it. For example, the context object for a payment transaction will look like `{\"paymentId\": \"tr_5B8cwPMGnU6qLbRvo7qEZo\", \"paymentDescription\": \"Description\"}`. Below is a complete list of the context values that each type of transaction will have. * Type `payment`: `paymentId`, `paymentDescription` * Type `capture`: `paymentId` `captureId`, `paymentDescription`, `captureDescription` * Type `capture-commission`: `paymentId`, `paymentDescription`, `organizationId` * Type `capture-rolling-reserve-release`: `paymentId`, `paymentDescription`, `captureId`, `captureDescription` * Type `unauthorized-direct-debit`: `paymentId`, `paymentDescription` * Type `failed-payment`: `paymentId`, `paymentDescription` * Type `refund`: `paymentId` `refundId`, `paymentDescription`, `refundDescription` * Type `refund-compensation`: `paymentId` `refundId`, `paymentDescription`, `refundDescription` * Type `returned-refund`: `paymentId` `refundId`, `paymentDescription`, `refundDescription` * Type `returned-refund-compensation`: `paymentId` `refundId`, `paymentDescription`, `refundDescription` * Type `chargeback`: `paymentId` `chargebackId`, `paymentDescription`, `chargebackDescription` * Type `chargeback-reversal`: `paymentId`, `chargebackId`, `paymentDescription`, `chargebackDescription` * Type `chargeback-compensation`: `paymentId`, `chargebackId`, `paymentDescription`, `chargebackDescription` * Type `reversed-chargeback-compensation`: `paymentId`, `chargebackId`, `paymentDescription`, `chargebackDescription` * Type `outgoing-transfer`: `settlementId` `transferId` * Type `canceled-outgoing-transfer`: `settlementId` `transferId` * Type `returned-transfer`: `settlementId` `transferId` * Type `invoice-compensation`: `invoiceId` * Type `balance-correction`: none * Type `application-fee`: `paymentId`, `paymentDescription`, `payingOwner` * Type `split-payment`: `paymentId`, `paymentDescription`, `paymentOwner` * Type `platform-payment-refund`: `paymentId` `refundId`, `paymentDescription`, `refundDescription` * Type `returned-platform-payment-refund`: `paymentId` `refundId`, `paymentDescription`, `refundDescription` * Type `platform-payment-chargeback`: `paymentId` `chargebackId`, `paymentDescription`, `chargebackDescription` * Type `reversed-platform-payment-chargeback`: `paymentId` `chargebackId`, `paymentDescription`, `chargebackDescription` * Type `payment-commission`: `paymentId`, `paymentDescription`, `organizationId` * Type `reimbursement-fee`: `paymentId`, `paymentDescription` * Type `failed-payment-fee`: `paymentId`, `paymentDescription` * Type `payment-fee`: `paymentId`, `paymentDescription` * Type `cash-advance-loan`: none * Type `platform-connected-organizations-fee`: none * Type `managed-fee`: `feeType`, `<name of the fee>Id` * Type `returned-managed-fee`: `feeType`, `<name of the fee>Id` * Type `topup`: none * Type `balance-reserve`: none * Type `balance-reserve-return`: none * Type `movement`: none * Type `post-payment-split-payment`: `paymentId` * Type `cash-collateral-issuance`: none * Type `cash-collateral-release`: none
"""
@derive JSON.Encoder
defstruct [
:payment,
:capture,
:"capture-commision",
:"capture-rolling-reserve-release",
:"unauthorized-direct-debit",
:"failed-payment",
:refund,
:"refund-compensation",
:"returned-refund",
:"returned-refund-compensation",
:chargeback,
:"chargeback-reversal",
:"chargeback-compensation",
:"reversed-chargeback-compensation",
:"outgoing-transfer",
:"canceled-outgoing-transfer",
:"returned-transfer",
:"invoice-compensation",
:"application-fee",
:"split-payment",
:"platform-payment-refund",
:"returned-platform-payment-refund",
:"platform-payment-chargeback",
:"reversed-platform-payment-chargeback",
:"payment-commission",
:"reimbursement-fee",
:"failed-payment-fee",
:"payment-fee",
:"managed-fee",
:"returned-managed-fee",
:"post-payment-split-payment"
]
@type t :: %__MODULE__{
:payment => MollieAPI.Model.EntityBalanceTransactionContextPayment.t | nil,
:capture => MollieAPI.Model.EntityBalanceTransactionContextCapture.t | nil,
:"capture-commision" => MollieAPI.Model.EntityBalanceTransactionContextCapture.t | nil,
:"capture-rolling-reserve-release" => MollieAPI.Model.EntityBalanceTransactionContextCapture.t | nil,
:"unauthorized-direct-debit" => MollieAPI.Model.EntityBalanceTransactionContextPayment.t | nil,
:"failed-payment" => MollieAPI.Model.EntityBalanceTransactionContextPayment.t | nil,
:refund => MollieAPI.Model.EntityBalanceTransactionContextRefund.t | nil,
:"refund-compensation" => MollieAPI.Model.EntityBalanceTransactionContextRefund.t | nil,
:"returned-refund" => MollieAPI.Model.EntityBalanceTransactionContextRefund.t | nil,
:"returned-refund-compensation" => MollieAPI.Model.EntityBalanceTransactionContextRefund.t | nil,
:chargeback => MollieAPI.Model.EntityBalanceTransactionContextChargeback.t | nil,
:"chargeback-reversal" => MollieAPI.Model.EntityBalanceTransactionContextChargeback.t | nil,
:"chargeback-compensation" => MollieAPI.Model.EntityBalanceTransactionContextChargeback.t | nil,
:"reversed-chargeback-compensation" => MollieAPI.Model.EntityBalanceTransactionContextChargeback.t | nil,
:"outgoing-transfer" => MollieAPI.Model.EntityBalanceTransactionContextOutgoingTransfer.t | nil,
:"canceled-outgoing-transfer" => MollieAPI.Model.EntityBalanceTransactionContextOutgoingTransfer.t | nil,
:"returned-transfer" => MollieAPI.Model.EntityBalanceTransactionContextReturnedTransfer.t | nil,
:"invoice-compensation" => MollieAPI.Model.EntityBalanceTransactionContextInvoiceCompensation.t | nil,
:"application-fee" => MollieAPI.Model.EntityBalanceTransactionContextApplicationFee.t | nil,
:"split-payment" => MollieAPI.Model.EntityBalanceTransactionContextSplitPayment.t | nil,
:"platform-payment-refund" => MollieAPI.Model.EntityBalanceTransactionContextRefund.t | nil,
:"returned-platform-payment-refund" => MollieAPI.Model.EntityBalanceTransactionContextRefund.t | nil,
:"platform-payment-chargeback" => MollieAPI.Model.EntityBalanceTransactionContextChargeback.t | nil,
:"reversed-platform-payment-chargeback" => MollieAPI.Model.EntityBalanceTransactionContextChargeback.t | nil,
:"payment-commission" => MollieAPI.Model.EntityBalanceTransactionContextPaymentCommission.t | nil,
:"reimbursement-fee" => MollieAPI.Model.EntityBalanceTransactionContextPayment.t | nil,
:"failed-payment-fee" => MollieAPI.Model.EntityBalanceTransactionContextPayment.t | nil,
:"payment-fee" => MollieAPI.Model.EntityBalanceTransactionContextPayment.t | nil,
:"managed-fee" => MollieAPI.Model.EntityBalanceTransactionContextManagedFee.t | nil,
:"returned-managed-fee" => MollieAPI.Model.EntityBalanceTransactionContextManagedFee.t | nil,
:"post-payment-split-payment" => MollieAPI.Model.EntityBalanceTransactionContextPostPaymentSplitPayment.t | nil
}
alias MollieAPI.Deserializer
def decode(value) do
value
|> Deserializer.deserialize(:payment, :struct, MollieAPI.Model.EntityBalanceTransactionContextPayment)
|> Deserializer.deserialize(:capture, :struct, MollieAPI.Model.EntityBalanceTransactionContextCapture)
|> Deserializer.deserialize(:"capture-commision", :struct, MollieAPI.Model.EntityBalanceTransactionContextCapture)
|> Deserializer.deserialize(:"capture-rolling-reserve-release", :struct, MollieAPI.Model.EntityBalanceTransactionContextCapture)
|> Deserializer.deserialize(:"unauthorized-direct-debit", :struct, MollieAPI.Model.EntityBalanceTransactionContextPayment)
|> Deserializer.deserialize(:"failed-payment", :struct, MollieAPI.Model.EntityBalanceTransactionContextPayment)
|> Deserializer.deserialize(:refund, :struct, MollieAPI.Model.EntityBalanceTransactionContextRefund)
|> Deserializer.deserialize(:"refund-compensation", :struct, MollieAPI.Model.EntityBalanceTransactionContextRefund)
|> Deserializer.deserialize(:"returned-refund", :struct, MollieAPI.Model.EntityBalanceTransactionContextRefund)
|> Deserializer.deserialize(:"returned-refund-compensation", :struct, MollieAPI.Model.EntityBalanceTransactionContextRefund)
|> Deserializer.deserialize(:chargeback, :struct, MollieAPI.Model.EntityBalanceTransactionContextChargeback)
|> Deserializer.deserialize(:"chargeback-reversal", :struct, MollieAPI.Model.EntityBalanceTransactionContextChargeback)
|> Deserializer.deserialize(:"chargeback-compensation", :struct, MollieAPI.Model.EntityBalanceTransactionContextChargeback)
|> Deserializer.deserialize(:"reversed-chargeback-compensation", :struct, MollieAPI.Model.EntityBalanceTransactionContextChargeback)
|> Deserializer.deserialize(:"outgoing-transfer", :struct, MollieAPI.Model.EntityBalanceTransactionContextOutgoingTransfer)
|> Deserializer.deserialize(:"canceled-outgoing-transfer", :struct, MollieAPI.Model.EntityBalanceTransactionContextOutgoingTransfer)
|> Deserializer.deserialize(:"returned-transfer", :struct, MollieAPI.Model.EntityBalanceTransactionContextReturnedTransfer)
|> Deserializer.deserialize(:"invoice-compensation", :struct, MollieAPI.Model.EntityBalanceTransactionContextInvoiceCompensation)
|> Deserializer.deserialize(:"application-fee", :struct, MollieAPI.Model.EntityBalanceTransactionContextApplicationFee)
|> Deserializer.deserialize(:"split-payment", :struct, MollieAPI.Model.EntityBalanceTransactionContextSplitPayment)
|> Deserializer.deserialize(:"platform-payment-refund", :struct, MollieAPI.Model.EntityBalanceTransactionContextRefund)
|> Deserializer.deserialize(:"returned-platform-payment-refund", :struct, MollieAPI.Model.EntityBalanceTransactionContextRefund)
|> Deserializer.deserialize(:"platform-payment-chargeback", :struct, MollieAPI.Model.EntityBalanceTransactionContextChargeback)
|> Deserializer.deserialize(:"reversed-platform-payment-chargeback", :struct, MollieAPI.Model.EntityBalanceTransactionContextChargeback)
|> Deserializer.deserialize(:"payment-commission", :struct, MollieAPI.Model.EntityBalanceTransactionContextPaymentCommission)
|> Deserializer.deserialize(:"reimbursement-fee", :struct, MollieAPI.Model.EntityBalanceTransactionContextPayment)
|> Deserializer.deserialize(:"failed-payment-fee", :struct, MollieAPI.Model.EntityBalanceTransactionContextPayment)
|> Deserializer.deserialize(:"payment-fee", :struct, MollieAPI.Model.EntityBalanceTransactionContextPayment)
|> Deserializer.deserialize(:"managed-fee", :struct, MollieAPI.Model.EntityBalanceTransactionContextManagedFee)
|> Deserializer.deserialize(:"returned-managed-fee", :struct, MollieAPI.Model.EntityBalanceTransactionContextManagedFee)
|> Deserializer.deserialize(:"post-payment-split-payment", :struct, MollieAPI.Model.EntityBalanceTransactionContextPostPaymentSplitPayment)
end
end