Class: Inttegro::OTP::VerifyRequest
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::OTP::VerifyRequest
- 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
-
#recipient ⇒ String
readonly
Phone number or bare email address that received the OTP; must match the stored transaction transport.
-
#token ⇒ String
readonly
OTP token submitted by the user.
-
#transaction_id ⇒ String
readonly
ID of the OTP transaction to verify (with ot_ prefix).
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.
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.
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.
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 |