Class: PreludeSDK::Models::VerificationCheckParams::Psd2

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/prelude_sdk/models/verification_check_params.rb,
sig/prelude_sdk/models/verification_check_params.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(amount:, currency:, recipient:) ⇒ Object

Required when checking a code issued under the prelude:psd2 template. The submitted variables must match those provided at issuance; any mismatch invalidates the code (PSD2 SCA RTS Article 5 dynamic linking). Ignored on non-PSD2 verifications.

Parameters:

  • amount (String)

    Decimal amount of the transaction.

  • currency (String)

    ISO 4217 currency code.

  • recipient (String)

    Payee name displayed to the payer.



# File 'lib/prelude_sdk/models/verification_check_params.rb', line 98

Instance Attribute Details

#amountString

Decimal amount of the transaction.

Parameters:

  • value (String)

Returns:

  • (String)


84
# File 'lib/prelude_sdk/models/verification_check_params.rb', line 84

required :amount, String

#currencyString

ISO 4217 currency code.

Parameters:

  • value (String)

Returns:

  • (String)


90
# File 'lib/prelude_sdk/models/verification_check_params.rb', line 90

required :currency, String

#recipientString

Payee name displayed to the payer.

Parameters:

  • value (String)

Returns:

  • (String)


96
# File 'lib/prelude_sdk/models/verification_check_params.rb', line 96

required :recipient, String

Instance Method Details

#to_hash{ amount: String, currency: String, recipient: String }

Returns:

  • ({ amount: String, currency: String, recipient: String })


87
# File 'sig/prelude_sdk/models/verification_check_params.rbs', line 87

def to_hash: -> { amount: String, currency: String, recipient: String }