Class: Lithic::Models::TokenizationRuleResult

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

Defined Under Namespace

Modules: Result

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(auth_rule_token:, explanation:, name:, result:) ⇒ Object

Some parameter documentations has been truncated, see Lithic::Models::TokenizationRuleResult for more details.

Parameters:

  • auth_rule_token (String, nil)

    The Auth Rule Token associated with the rule. If this is set to null, then the r

  • explanation (String, nil)

    A human-readable explanation outlining the motivation for the rule’s result

  • name (String, nil)

    The name for the rule, if any was configured

  • result (Symbol, Lithic::Models::TokenizationRuleResult::Result)

    The result associated with this rule



# File 'lib/lithic/models/tokenization_rule_result.rb', line 33

Instance Attribute Details

#auth_rule_tokenString?

The Auth Rule Token associated with the rule. If this is set to null, then the result was not associated with a customer-configured rule. This may happen in cases where a tokenization is declined or requires TFA due to a Lithic-configured security or compliance rule, for example.

Returns:

  • (String, nil)


13
# File 'lib/lithic/models/tokenization_rule_result.rb', line 13

required :auth_rule_token, String, nil?: true

#explanationString?

A human-readable explanation outlining the motivation for the rule’s result

Returns:

  • (String, nil)


19
# File 'lib/lithic/models/tokenization_rule_result.rb', line 19

required :explanation, String, nil?: true

#nameString?

The name for the rule, if any was configured

Returns:

  • (String, nil)


25
# File 'lib/lithic/models/tokenization_rule_result.rb', line 25

required :name, String, nil?: true

#resultSymbol, Lithic::Models::TokenizationRuleResult::Result

The result associated with this rule



31
# File 'lib/lithic/models/tokenization_rule_result.rb', line 31

required :result, enum: -> { Lithic::TokenizationRuleResult::Result }