Class: Inttegro::Balance::Holds

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/balance/holds.rb

Overview

Live operational commitments read from the canonical balance position.

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

#as_of ⇒ Time (readonly)

When these strongly consistent hold amounts were read.

Required in the API payload. Wire name: as_of.

Returns:

  • (Time)


37
38
39
40
41
# File 'lib/inttegro/balance/holds.rb', line 37

class Holds < T::Struct
  const :as_of, Time
  const :payout, Inttegro::Balance::HoldsPayout
  const :refund, Inttegro::Balance::HoldsRefund
end

#payout ⇒ Inttegro::Balance::HoldsPayout (readonly)

Funds committed to in-flight or unresolved payouts.

Required in the API payload. Wire name: payout.



37
38
39
40
41
# File 'lib/inttegro/balance/holds.rb', line 37

class Holds < T::Struct
  const :as_of, Time
  const :payout, Inttegro::Balance::HoldsPayout
  const :refund, Inttegro::Balance::HoldsRefund
end

#refund ⇒ Inttegro::Balance::HoldsRefund (readonly)

Funds committed to in-flight or unresolved refunds.

Required in the API payload. Wire name: refund.



37
38
39
40
41
# File 'lib/inttegro/balance/holds.rb', line 37

class Holds < T::Struct
  const :as_of, Time
  const :payout, Inttegro::Balance::HoldsPayout
  const :refund, Inttegro::Balance::HoldsRefund
end