Class: Inttegro::Payout::Cancellation

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

Overview

Stable, caller-safe information and guidance for a canceled payout.

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)


36
37
38
39
40
# File 'lib/inttegro/payout/cancellation.rb', line 36

class Cancellation < T::Struct
  const :detail, String
  const :reason, Inttegro::Payout::CancellationReason
  const :remediation, String
end

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

Stable category describing why the payout was canceled.

Required in the API payload. Wire name: reason.



36
37
38
39
40
# File 'lib/inttegro/payout/cancellation.rb', line 36

class Cancellation < T::Struct
  const :detail, String
  const :reason, Inttegro::Payout::CancellationReason
  const :remediation, String
end

#remediation ⇒ String (readonly)

Recommended next step safe to show to an operator.

Required in the API payload. Wire name: remediation.

Returns:

  • (String)


36
37
38
39
40
# File 'lib/inttegro/payout/cancellation.rb', line 36

class Cancellation < T::Struct
  const :detail, String
  const :reason, Inttegro::Payout::CancellationReason
  const :remediation, String
end