Class: Inttegro::Refund::FailureInline
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Refund::FailureInline
- Defined in:
- lib/inttegro/refund/failure_inline.rb
Overview
Sanitized terminal failure information. Present only when status is failed. An uncertain
provider outcome remains processing and does not produce this object.
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
-
#detail ⇒ String
readonly
Safe explanation intended for the merchant.
-
#reason ⇒ Inttegro::Refund::FailureReason
readonly
Stable, caller-safe reason that terminal refund processing failed.
-
#retryable ⇒ Boolean
readonly
Whether the underlying condition may be resolved before creating a new, intentional refund request.
Instance Attribute Details
#detail ⇒ String (readonly)
Safe explanation intended for the merchant. Raw provider and internal diagnostic messages are never returned.
Required in the API payload. Wire name: detail.
40 41 42 43 44 |
# File 'lib/inttegro/refund/failure_inline.rb', line 40 class FailureInline < T::Struct const :detail, String const :reason, Inttegro::Refund::FailureReason const :retryable, T::Boolean end |
#reason ⇒ Inttegro::Refund::FailureReason (readonly)
Stable, caller-safe reason that terminal refund processing failed. unknown is the
fail-closed fallback for an unclassified internal failure.
Required in the API payload. Wire name: reason.
40 41 42 43 44 |
# File 'lib/inttegro/refund/failure_inline.rb', line 40 class FailureInline < T::Struct const :detail, String const :reason, Inttegro::Refund::FailureReason const :retryable, T::Boolean end |
#retryable ⇒ Boolean (readonly)
Whether the underlying condition may be resolved before creating a new, intentional refund request. It never instructs clients to repeat an uncertain money movement.
Required in the API payload. Wire name: retryable.
40 41 42 43 44 |
# File 'lib/inttegro/refund/failure_inline.rb', line 40 class FailureInline < T::Struct const :detail, String const :reason, Inttegro::Refund::FailureReason const :retryable, T::Boolean end |