Packages
mollie_api
0.1.0-20260430
0.1.0-20260722
0.1.0-20260721
0.1.0-20260717
0.1.0-20260716
0.1.0-20260708
0.1.0-20260702
0.1.0-20260629
0.1.0-20260625
0.1.0-20260622
0.1.0-20260619
0.1.0-20260617
0.1.0-20260615
0.1.0-20260611
0.1.0-20260609
0.1.0-20260601
0.1.0-20260529
0.1.0-20260527
0.1.0-20260526
0.1.0-20260525
0.1.0-20260521
0.1.0-20260519
0.1.0-20260515
0.1.0-20260513
0.1.0-20260512
0.1.0-20260507
0.1.0-20260505
0.1.0-20260504
0.1.0-20260430
0.1.0-20260429
0.1.0-20260428
0.1.0-20260427
0.1.0-20260423
0.1.0-20260421
0.1.0-20260420
0.1.0-20260415
0.1.0-20260410
0.1.0-20260409
0.1.0-20260408
0.1.0-20260402
0.1.0-20260401
0.1.0-20260331
0.1.0-20260330
0.1.0-20260327
0.1.0-20260317
0.1.0-20260313
0.1.0-20260310
0.1.0-20260309
0.1.0-20260306
0.1.0-20260305
0.1.0-20260303
0.1.0-20260302
0.1.0-20260226
0.1.0-20260218
0.1.0-20260217
0.1.0-20260210
0.1.0-20260206
0.1.0-20260205
0.1.0-20260204
0.1.0-20260203
0.1.0-20260202
0.1.0-20260130
0.1.0-20260129
0.1.0-20260114
0.1.0-20260109
0.1.0-20260107
0.1.0-20251222
0.1.0-20251125
0.1.0-20251121
0.1.0-20251119
0.1.0-20251118
0.1.0-20251113
An autogenerated Elixir client for the Mollie API, generated from the OpenAPI specification.
Current section
Files
Jump to
Current section
Files
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