Class: Increase::Models::CardPayment::Element::CardAuthentication::MessageCategory::Payment

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

Overview

See Also:

  • Increase::Models::CardPayment::Element::CardAuthentication::MessageCategory#payment

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

Fields specific to payment authentication attempts.



# File 'lib/increase/models/card_payment.rb', line 1207


Instance Attribute Details

#purchase_amountInteger

The purchase amount in minor units.



1181
# File 'lib/increase/models/card_payment.rb', line 1181

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.



1188
# File 'lib/increase/models/card_payment.rb', line 1188

required :purchase_amount_cardholder_estimated, Integer, nil?: true

#purchase_currencyString

The ISO 4217 code for the authentication attempt's purchase currency.



1195
# File 'lib/increase/models/card_payment.rb', line 1195

required :purchase_currency, String

#transaction_typeSymbol, ...

The type of transaction being authenticated.



1201
1202
1203
1204
1205
# File 'lib/increase/models/card_payment.rb', line 1201

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

Instance Method Details

#to_hash{



807
# File 'sig/increase/models/card_payment.rbs', line 807

def to_hash: -> {