Class: Inttegro::Payment::NextActionConfirmPaymentAttempt

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/payment/next_action_confirm_payment_attempt.rb

Overview

Latest confirmation attempt

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

#confirmed ⇒ Boolean (readonly)

Whether the confirmation has succeeded

Required in the API payload. Wire name: confirmed.

Returns:

  • (Boolean)


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

class NextActionConfirmPaymentAttempt < T::Struct
  const :status, String
  const :confirmed, T::Boolean
  const :reason, String
  const :executed_at, T.nilable(Time), default: nil
  const :created_at, Time
end

#created_at ⇒ Time (readonly)

When the attempt was created

Required in the API payload. Wire name: created_at.

Returns:

  • (Time)


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

class NextActionConfirmPaymentAttempt < T::Struct
  const :status, String
  const :confirmed, T::Boolean
  const :reason, String
  const :executed_at, T.nilable(Time), default: nil
  const :created_at, Time
end

#executed_at ⇒ Time? (readonly)

When the attempt was executed

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

Returns:

  • (Time, nil)


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

class NextActionConfirmPaymentAttempt < T::Struct
  const :status, String
  const :confirmed, T::Boolean
  const :reason, String
  const :executed_at, T.nilable(Time), default: nil
  const :created_at, Time
end

#reason ⇒ String (readonly)

Reason for the current attempt state

Required in the API payload. Wire name: reason.

Returns:

  • (String)


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

class NextActionConfirmPaymentAttempt < T::Struct
  const :status, String
  const :confirmed, T::Boolean
  const :reason, String
  const :executed_at, T.nilable(Time), default: nil
  const :created_at, Time
end

#status ⇒ String (readonly)

Attempt status

Required in the API payload. Wire name: status.

Returns:

  • (String)


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

class NextActionConfirmPaymentAttempt < T::Struct
  const :status, String
  const :confirmed, T::Boolean
  const :reason, String
  const :executed_at, T.nilable(Time), default: nil
  const :created_at, Time
end