Class: Lithic::Models::Tokenization::Event

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/lithic/models/tokenization.rb

Defined Under Namespace

Modules: Result, Type

Instance Attribute Summary collapse

Class Method 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(token: nil, created_at: nil, result: nil, rule_results: nil, tokenization_decline_reasons: nil, tokenization_tfa_reasons: nil, type: nil) ⇒ Object

Parameters:



# File 'lib/lithic/models/tokenization.rb', line 264


Instance Attribute Details

#created_atTime?

Date and time when the tokenization event first occurred. UTC time zone.

Returns:

  • (Time, nil)


230
# File 'lib/lithic/models/tokenization.rb', line 230

optional :created_at, Time

#resultSymbol, ...

Enum representing the result of the tokenization event



236
# File 'lib/lithic/models/tokenization.rb', line 236

optional :result, enum: -> { Lithic::Tokenization::Event::Result }

#rule_resultsArray<Lithic::Models::TokenizationRuleResult>?

Results from rules that were evaluated for this tokenization



242
# File 'lib/lithic/models/tokenization.rb', line 242

optional :rule_results, -> { Lithic::Internal::Type::ArrayOf[Lithic::TokenizationRuleResult] }

#tokenString?

Globally unique identifier for a Tokenization Event

Returns:

  • (String, nil)


224
# File 'lib/lithic/models/tokenization.rb', line 224

optional :token, String

#tokenization_decline_reasonsArray<Symbol, Lithic::Models::TokenizationDeclineReason>?

List of reasons why the tokenization was declined

Returns:



248
249
# File 'lib/lithic/models/tokenization.rb', line 248

optional :tokenization_decline_reasons,
-> { Lithic::Internal::Type::ArrayOf[enum: Lithic::TokenizationDeclineReason] }

#tokenization_tfa_reasonsArray<Symbol, Lithic::Models::TokenizationTfaReason>?

List of reasons why two-factor authentication was required

Returns:



255
256
# File 'lib/lithic/models/tokenization.rb', line 255

optional :tokenization_tfa_reasons,
-> { Lithic::Internal::Type::ArrayOf[enum: Lithic::TokenizationTfaReason] }

#typeSymbol, ...

Enum representing the type of tokenization event that occurred



262
# File 'lib/lithic/models/tokenization.rb', line 262

optional :type, enum: -> { Lithic::Tokenization::Event::Type }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/lithic/models/tokenization.rb', line 298