Class: Inttegro::Payout::Error

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

Overview

Deprecated compatibility projection of PayoutFailure.

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

#cause ⇒ String (readonly)

Public explanation of the underlying failure cause.

Required in the API payload. Wire name: cause.

Returns:

  • (String)


41
42
43
44
45
46
# File 'lib/inttegro/payout/error.rb', line 41

class Error < T::Struct
  const :cause, String
  const :message, String
  const :occurred_at, Time
  const :type, String
end

#message ⇒ String (readonly)

Human-readable failure message.

Required in the API payload. Wire name: message.

Returns:

  • (String)


41
42
43
44
45
46
# File 'lib/inttegro/payout/error.rb', line 41

class Error < T::Struct
  const :cause, String
  const :message, String
  const :occurred_at, Time
  const :type, String
end

#occurred_at ⇒ Time (readonly)

When the failure occurred.

Required in the API payload. Wire name: occurred_at.

Returns:

  • (Time)


41
42
43
44
45
46
# File 'lib/inttegro/payout/error.rb', line 41

class Error < T::Struct
  const :cause, String
  const :message, String
  const :occurred_at, Time
  const :type, String
end

#type ⇒ String (readonly)

Stable machine-readable failure category.

Required in the API payload. Wire name: type.

Returns:

  • (String)


41
42
43
44
45
46
# File 'lib/inttegro/payout/error.rb', line 41

class Error < T::Struct
  const :cause, String
  const :message, String
  const :occurred_at, Time
  const :type, String
end