Class: Inttegro::Payout::FailureInline

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/payout/failure_inline.rb

Overview

Caller-safe failure information. Present only when status is failed.

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

#detail ⇒ String (readonly)

Human-readable explanation safe to show to an operator.

Required in the API payload. Wire name: detail.

Returns:

  • (String)


37
38
39
40
41
# File 'lib/inttegro/payout/failure_inline.rb', line 37

class FailureInline < T::Struct
  const :detail, String
  const :reason, Inttegro::Payout::FailureInlineReason
  const :retryable, T::Boolean
end

#reason ⇒ Inttegro::Payout::FailureInlineReason (readonly)

Stable category describing why the payout failed.

Required in the API payload. Wire name: reason.



37
38
39
40
41
# File 'lib/inttegro/payout/failure_inline.rb', line 37

class FailureInline < T::Struct
  const :detail, String
  const :reason, Inttegro::Payout::FailureInlineReason
  const :retryable, T::Boolean
end

#retryable ⇒ Boolean (readonly)

Whether creating a new payout attempt may succeed without changing the destination or request.

Required in the API payload. Wire name: retryable.

Returns:

  • (Boolean)


37
38
39
40
41
# File 'lib/inttegro/payout/failure_inline.rb', line 37

class FailureInline < T::Struct
  const :detail, String
  const :reason, Inttegro::Payout::FailureInlineReason
  const :retryable, T::Boolean
end