Class: Inttegro::OTP::VerificationAttemptResult

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/otp/verification_attempt_result.rb

Overview

Typed representation of the verification attempt result object in the Inttegro API.

This generated model is immutable. Construct it with .new, or decode a string-keyed API payload with .from_hash. #serialize produces a string-keyed hash using the original wire field names and serialized enum values.

Instance Attribute Summary collapse

Instance Attribute Details

#detail ⇒ String? (readonly)

Omitted when no detail is available.

Optional in the API payload; omitted values default to nil. Wire name: detail.

Returns:

  • (String, nil)


30
31
32
33
# File 'lib/inttegro/otp/verification_attempt_result.rb', line 30

class VerificationAttemptResult < T::Struct
  const :detail, T.nilable(String), default: nil
  const :verdict, Inttegro::OTP::VerificationVerdict
end

#verdict ⇒ Inttegro::OTP::VerificationVerdict (readonly)

Value of the verdict field in the Inttegro API payload.

Required in the API payload. Wire name: verdict.



30
31
32
33
# File 'lib/inttegro/otp/verification_attempt_result.rb', line 30

class VerificationAttemptResult < T::Struct
  const :detail, T.nilable(String), default: nil
  const :verdict, Inttegro::OTP::VerificationVerdict
end