Class: Increase::Models::RealTimeDecision::CardAuthentication::MessageCategory::Payment

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/increase/models/real_time_decision.rb

Overview

See Also:

Defined Under Namespace

Modules: TransactionType

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(purchase_amount:, purchase_amount_cardholder_estimated:, purchase_currency:, transaction_type:) ⇒ Object

Some parameter documentations has been truncated, see Increase::Models::RealTimeDecision::CardAuthentication::MessageCategory::Payment for more details.

Fields specific to payment authentication attempts.

Parameters:



# File 'lib/increase/models/real_time_decision.rb', line 727

Instance Attribute Details

#purchase_amountInteger

The purchase amount in minor units.

Returns:

  • (Integer)


701
# File 'lib/increase/models/real_time_decision.rb', line 701

required :purchase_amount, Integer

#purchase_amount_cardholder_estimatedInteger?

The purchase amount in the cardholder’s currency (i.e., USD) estimated using daily conversion rates from the card network.

Returns:

  • (Integer, nil)


708
# File 'lib/increase/models/real_time_decision.rb', line 708

required :purchase_amount_cardholder_estimated, Integer, nil?: true

#purchase_currencyString

The [ISO 4217](en.wikipedia.org/wiki/ISO_4217) code for the authentication attempt’s purchase currency.

Returns:

  • (String)


715
# File 'lib/increase/models/real_time_decision.rb', line 715

required :purchase_currency, String

#transaction_typeSymbol, ...

The type of transaction being authenticated.



721
722
723
724
725
# File 'lib/increase/models/real_time_decision.rb', line 721

required :transaction_type,
enum: -> {
  Increase::RealTimeDecision::CardAuthentication::MessageCategory::Payment::TransactionType
},
nil?: true