Current section

Files

Jump to
mollie_api lib mollie_api model entity_payment_response_details.ex
Raw

lib/mollie_api/model/entity_payment_response_details.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.EntityPaymentResponseDetails do
@moduledoc """
An object containing payment details collected during the payment process. For example, details may include the customer's card or bank details and a payment reference. For the full list of details, please refer to the [method-specific parameters](extra-payment-parameters) guide.
"""
@derive JSON.Encoder
defstruct [
:consumerName,
:consumerAccount,
:consumerBic,
:shippingAddress,
:cardNumber,
:bankName,
:bankAccount,
:bankBic,
:transferReference,
:cardFingerprint,
:cardHolder,
:cardAudition,
:cardLabel,
:cardCountryCode,
:cardExpiryDate,
:cardFunding,
:cardSecurity,
:feeRegion,
:cardMaskedNumber,
:card3dsEci,
:cardBin,
:cardIssuer,
:failureReason,
:failureMessage,
:wallet,
:paypalReference,
:paypalPayerId,
:sellerProtection,
:paypalFee,
:customerReference,
:terminalId,
:maskedNumber,
:receipt,
:creditorIdentifier,
:dueDate,
:signatureDate,
:bankReasonCode,
:bankReason,
:endToEndIdentifier,
:mandateReference,
:batchReference,
:fileReference,
:qrCode,
:voucherNumber,
:giftcards,
:issuer,
:vouchers,
:remainderAmount,
:remainderMethod,
:remainderDetails,
:multibancoReference,
:multibancoEntity
]
@type t :: %__MODULE__{
:consumerName => String.t | nil,
:consumerAccount => String.t | nil,
:consumerBic => String.t | nil,
:shippingAddress => %{optional(String.t) => any()} | nil,
:cardNumber => String.t | nil,
:bankName => String.t | nil,
:bankAccount => String.t | nil,
:bankBic => String.t | nil,
:transferReference => String.t | nil,
:cardFingerprint => String.t | nil,
:cardHolder => String.t | nil,
:cardAudition => MollieAPI.Model.PaymentDetailsCardAuditionResponse.t | nil,
:cardLabel => MollieAPI.Model.PaymentDetailsCardLabelResponse.t | nil,
:cardCountryCode => String.t | nil,
:cardExpiryDate => String.t | nil,
:cardFunding => MollieAPI.Model.PaymentDetailsCardFundingResponse.t | nil,
:cardSecurity => MollieAPI.Model.PaymentDetailsCardSecurityResponse.t | nil,
:feeRegion => MollieAPI.Model.PaymentDetailsFeeRegionResponse.t | nil,
:cardMaskedNumber => String.t | nil,
:card3dsEci => String.t | nil,
:cardBin => String.t | nil,
:cardIssuer => String.t | nil,
:failureReason => MollieAPI.Model.PaymentDetailsFailureReasonResponse.t | nil,
:failureMessage => String.t | nil,
:wallet => MollieAPI.Model.PaymentDetailsWalletResponse.t | nil,
:paypalReference => String.t | nil,
:paypalPayerId => String.t | nil,
:sellerProtection => MollieAPI.Model.PaymentDetailsSellerProtectionResponse.t | nil,
:paypalFee => MollieAPI.Model.AmountNullable.t | nil,
:customerReference => String.t | nil,
:terminalId => String.t | nil,
:maskedNumber => String.t | nil,
:receipt => MollieAPI.Model.EntityPaymentResponseDetailsReceipt.t | nil,
:creditorIdentifier => String.t | nil,
:dueDate => Date.t | nil,
:signatureDate => Date.t | nil,
:bankReasonCode => String.t | nil,
:bankReason => String.t | nil,
:endToEndIdentifier => String.t | nil,
:mandateReference => String.t | nil,
:batchReference => String.t | nil,
:fileReference => String.t | nil,
:qrCode => MollieAPI.Model.EntityPaymentDetailsQrCode.t | nil,
:voucherNumber => String.t | nil,
:giftcards => [%{optional(String.t) => any()}] | nil,
:issuer => String.t | nil,
:vouchers => [%{optional(String.t) => any()}] | nil,
:remainderAmount => MollieAPI.Model.Amount.t | nil,
:remainderMethod => String.t | nil,
:remainderDetails => %{optional(String.t) => any()} | nil,
:multibancoReference => String.t | nil,
:multibancoEntity => String.t | nil
}
alias MollieAPI.Deserializer
def decode(value) do
value
|> Deserializer.deserialize(:cardAudition, :struct, MollieAPI.Model.PaymentDetailsCardAuditionResponse)
|> Deserializer.deserialize(:cardLabel, :struct, MollieAPI.Model.PaymentDetailsCardLabelResponse)
|> Deserializer.deserialize(:cardFunding, :struct, MollieAPI.Model.PaymentDetailsCardFundingResponse)
|> Deserializer.deserialize(:cardSecurity, :struct, MollieAPI.Model.PaymentDetailsCardSecurityResponse)
|> Deserializer.deserialize(:feeRegion, :struct, MollieAPI.Model.PaymentDetailsFeeRegionResponse)
|> Deserializer.deserialize(:failureReason, :struct, MollieAPI.Model.PaymentDetailsFailureReasonResponse)
|> Deserializer.deserialize(:wallet, :struct, MollieAPI.Model.PaymentDetailsWalletResponse)
|> Deserializer.deserialize(:sellerProtection, :struct, MollieAPI.Model.PaymentDetailsSellerProtectionResponse)
|> Deserializer.deserialize(:paypalFee, :struct, MollieAPI.Model.AmountNullable)
|> Deserializer.deserialize(:receipt, :struct, MollieAPI.Model.EntityPaymentResponseDetailsReceipt)
|> Deserializer.deserialize(:qrCode, :struct, MollieAPI.Model.EntityPaymentDetailsQrCode)
|> Deserializer.deserialize(:remainderAmount, :struct, MollieAPI.Model.Amount)
end
end