Class: Inttegro::OTP::VerifyRequest

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

Overview

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

#recipient ⇒ String (readonly)

Phone number or bare email address that received the OTP; must match the stored transaction transport.

Required in the API payload. Wire name: recipient.

Returns:

  • (String)


36
37
38
39
40
# File 'lib/inttegro/otp/verify_request.rb', line 36

class VerifyRequest < T::Struct
  const :transaction_id, String
  const :recipient, String
  const :token, String
end

#token ⇒ String (readonly)

OTP token submitted by the user

Required in the API payload. Wire name: token.

Returns:

  • (String)


36
37
38
39
40
# File 'lib/inttegro/otp/verify_request.rb', line 36

class VerifyRequest < T::Struct
  const :transaction_id, String
  const :recipient, String
  const :token, String
end

#transaction_id ⇒ String (readonly)

ID of the OTP transaction to verify (with ot_ prefix)

Required in the API payload. Wire name: transaction_id.

Returns:

  • (String)


36
37
38
39
40
# File 'lib/inttegro/otp/verify_request.rb', line 36

class VerifyRequest < T::Struct
  const :transaction_id, String
  const :recipient, String
  const :token, String
end