Class: Inttegro::PaymentMethod::Verification

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

Overview

Most recent verification record when the payment method has entered a verification flow.

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

#completed_at ⇒ Time? (readonly)

When verification was completed

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

Returns:

  • (Time, nil)


47
48
49
50
51
52
53
# File 'lib/inttegro/payment_method/verification.rb', line 47

class Verification < T::Struct
  const :completed_at, T.nilable(Time), default: nil
  const :initiated_at, Time
  const :mechanism, T.nilable(String), default: nil
  const :request_id, String
  const :type, String
end

#initiated_at ⇒ Time (readonly)

When verification was initiated

Required in the API payload. Wire name: initiated_at.

Returns:

  • (Time)


47
48
49
50
51
52
53
# File 'lib/inttegro/payment_method/verification.rb', line 47

class Verification < T::Struct
  const :completed_at, T.nilable(Time), default: nil
  const :initiated_at, Time
  const :mechanism, T.nilable(String), default: nil
  const :request_id, String
  const :type, String
end

#mechanism ⇒ String? (readonly)

Verification mechanism used

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

Returns:

  • (String, nil)


47
48
49
50
51
52
53
# File 'lib/inttegro/payment_method/verification.rb', line 47

class Verification < T::Struct
  const :completed_at, T.nilable(Time), default: nil
  const :initiated_at, Time
  const :mechanism, T.nilable(String), default: nil
  const :request_id, String
  const :type, String
end

#request_id ⇒ String (readonly)

ID of the verification request

Required in the API payload. Wire name: request_id.

Returns:

  • (String)


47
48
49
50
51
52
53
# File 'lib/inttegro/payment_method/verification.rb', line 47

class Verification < T::Struct
  const :completed_at, T.nilable(Time), default: nil
  const :initiated_at, Time
  const :mechanism, T.nilable(String), default: nil
  const :request_id, String
  const :type, String
end

#type ⇒ String (readonly)

Verification type

Required in the API payload. Wire name: type.

Returns:

  • (String)


47
48
49
50
51
52
53
# File 'lib/inttegro/payment_method/verification.rb', line 47

class Verification < T::Struct
  const :completed_at, T.nilable(Time), default: nil
  const :initiated_at, Time
  const :mechanism, T.nilable(String), default: nil
  const :request_id, String
  const :type, String
end