Class: Inttegro::Payment::LatestAttempt
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Payment::LatestAttempt
- Defined in:
- lib/inttegro/payment/latest_attempt.rb
Overview
Most recent payment attempt details
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
-
#error ⇒ Inttegro::Payment::LatestAttemptError?
readonly
Value of the
errorfield in the Inttegro API payload. -
#initiated_at ⇒ Time
readonly
Value of the
initiated_atfield in the Inttegro API payload. -
#payment_method_id ⇒ String?
readonly
Value of the
payment_method_idfield in the Inttegro API payload. -
#payment_method_type ⇒ String?
readonly
Value of the
payment_method_typefield in the Inttegro API payload. -
#reference ⇒ String?
readonly
External payment reference.
-
#status ⇒ Inttegro::Payment::AttemptStatus
readonly
Value of the
statusfield in the Inttegro API payload. -
#succeeded_at ⇒ Time?
readonly
Value of the
succeeded_atfield in the Inttegro API payload.
Instance Attribute Details
#error ⇒ Inttegro::Payment::LatestAttemptError? (readonly)
Value of the error field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: error.
61 62 63 64 65 66 67 68 69 |
# File 'lib/inttegro/payment/latest_attempt.rb', line 61 class LatestAttempt < T::Struct const :payment_method_type, T.nilable(String), default: nil const :payment_method_id, T.nilable(String), default: nil const :error, T.nilable(Inttegro::Payment::LatestAttemptError), default: nil const :reference, T.nilable(String), default: nil const :status, Inttegro::Payment::AttemptStatus const :initiated_at, Time const :succeeded_at, T.nilable(Time), default: nil end |
#initiated_at ⇒ Time (readonly)
Value of the initiated_at field in the Inttegro API payload.
Required in the API payload. Wire name: initiated_at.
61 62 63 64 65 66 67 68 69 |
# File 'lib/inttegro/payment/latest_attempt.rb', line 61 class LatestAttempt < T::Struct const :payment_method_type, T.nilable(String), default: nil const :payment_method_id, T.nilable(String), default: nil const :error, T.nilable(Inttegro::Payment::LatestAttemptError), default: nil const :reference, T.nilable(String), default: nil const :status, Inttegro::Payment::AttemptStatus const :initiated_at, Time const :succeeded_at, T.nilable(Time), default: nil end |
#payment_method_id ⇒ String? (readonly)
Value of the payment_method_id field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: payment_method_id.
61 62 63 64 65 66 67 68 69 |
# File 'lib/inttegro/payment/latest_attempt.rb', line 61 class LatestAttempt < T::Struct const :payment_method_type, T.nilable(String), default: nil const :payment_method_id, T.nilable(String), default: nil const :error, T.nilable(Inttegro::Payment::LatestAttemptError), default: nil const :reference, T.nilable(String), default: nil const :status, Inttegro::Payment::AttemptStatus const :initiated_at, Time const :succeeded_at, T.nilable(Time), default: nil end |
#payment_method_type ⇒ String? (readonly)
Value of the payment_method_type field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: payment_method_type.
61 62 63 64 65 66 67 68 69 |
# File 'lib/inttegro/payment/latest_attempt.rb', line 61 class LatestAttempt < T::Struct const :payment_method_type, T.nilable(String), default: nil const :payment_method_id, T.nilable(String), default: nil const :error, T.nilable(Inttegro::Payment::LatestAttemptError), default: nil const :reference, T.nilable(String), default: nil const :status, Inttegro::Payment::AttemptStatus const :initiated_at, Time const :succeeded_at, T.nilable(Time), default: nil end |
#reference ⇒ String? (readonly)
External payment reference
Optional in the API payload; omitted values default to nil. Wire name: reference.
61 62 63 64 65 66 67 68 69 |
# File 'lib/inttegro/payment/latest_attempt.rb', line 61 class LatestAttempt < T::Struct const :payment_method_type, T.nilable(String), default: nil const :payment_method_id, T.nilable(String), default: nil const :error, T.nilable(Inttegro::Payment::LatestAttemptError), default: nil const :reference, T.nilable(String), default: nil const :status, Inttegro::Payment::AttemptStatus const :initiated_at, Time const :succeeded_at, T.nilable(Time), default: nil end |
#status ⇒ Inttegro::Payment::AttemptStatus (readonly)
Value of the status field in the Inttegro API payload.
Required in the API payload. Wire name: status.
61 62 63 64 65 66 67 68 69 |
# File 'lib/inttegro/payment/latest_attempt.rb', line 61 class LatestAttempt < T::Struct const :payment_method_type, T.nilable(String), default: nil const :payment_method_id, T.nilable(String), default: nil const :error, T.nilable(Inttegro::Payment::LatestAttemptError), default: nil const :reference, T.nilable(String), default: nil const :status, Inttegro::Payment::AttemptStatus const :initiated_at, Time const :succeeded_at, T.nilable(Time), default: nil end |
#succeeded_at ⇒ Time? (readonly)
Value of the succeeded_at field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: succeeded_at.
61 62 63 64 65 66 67 68 69 |
# File 'lib/inttegro/payment/latest_attempt.rb', line 61 class LatestAttempt < T::Struct const :payment_method_type, T.nilable(String), default: nil const :payment_method_id, T.nilable(String), default: nil const :error, T.nilable(Inttegro::Payment::LatestAttemptError), default: nil const :reference, T.nilable(String), default: nil const :status, Inttegro::Payment::AttemptStatus const :initiated_at, Time const :succeeded_at, T.nilable(Time), default: nil end |