Class: Inttegro::OTP::Verification

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

Overview

Typed representation of the verification 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

#transaction ⇒ Inttegro::OTP::Transaction (readonly)

OTP transaction object returned by initiate, verify, and lookup endpoints

Required in the API payload. Wire name: transaction.



31
32
33
34
# File 'lib/inttegro/otp/verification.rb', line 31

class Verification < T::Struct
  const :transaction, Inttegro::OTP::Transaction
  const :verification_attempt, Inttegro::OTP::VerificationAttempt
end

#verification_attempt ⇒ Inttegro::OTP::VerificationAttempt (readonly)

Details of a verification attempt

Required in the API payload. Wire name: verification_attempt.



31
32
33
34
# File 'lib/inttegro/otp/verification.rb', line 31

class Verification < T::Struct
  const :transaction, Inttegro::OTP::Transaction
  const :verification_attempt, Inttegro::OTP::VerificationAttempt
end