Class: Inttegro::Payout::BalanceTransaction
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Payout::BalanceTransaction
- Defined in:
- lib/inttegro/payout/balance_transaction.rb
Overview
A historical view of one balance transaction's contribution to a payout. Released contributions remain present so clients can inspect the payout's original composition.
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
-
#allocated_amount ⇒ Inttegro::Money::Amount
readonly
Value of the
allocated_amountfield in the Inttegro API payload. -
#amount ⇒ Inttegro::Money::Amount
readonly
Value of the
amountfield in the Inttegro API payload. -
#id ⇒ String
readonly
Unique balance transaction identifier.
-
#status ⇒ Inttegro::Payout::BalanceTransactionStatus
readonly
Whether this contribution is still reserved for the payout, was consumed by a successful payout, or was released after the payout did not complete.
Instance Attribute Details
#allocated_amount ⇒ Inttegro::Money::Amount (readonly)
Value of the allocated_amount field in the Inttegro API payload.
Required in the API payload. Wire name: allocated_amount.
45 46 47 48 49 50 |
# File 'lib/inttegro/payout/balance_transaction.rb', line 45 class BalanceTransaction < T::Struct const :allocated_amount, Inttegro::Money::Amount const :amount, Inttegro::Money::Amount const :id, String const :status, Inttegro::Payout::BalanceTransactionStatus end |
#amount ⇒ Inttegro::Money::Amount (readonly)
Value of the amount field in the Inttegro API payload.
Required in the API payload. Wire name: amount.
45 46 47 48 49 50 |
# File 'lib/inttegro/payout/balance_transaction.rb', line 45 class BalanceTransaction < T::Struct const :allocated_amount, Inttegro::Money::Amount const :amount, Inttegro::Money::Amount const :id, String const :status, Inttegro::Payout::BalanceTransactionStatus end |
#id ⇒ String (readonly)
Unique balance transaction identifier.
Required in the API payload. Wire name: id.
45 46 47 48 49 50 |
# File 'lib/inttegro/payout/balance_transaction.rb', line 45 class BalanceTransaction < T::Struct const :allocated_amount, Inttegro::Money::Amount const :amount, Inttegro::Money::Amount const :id, String const :status, Inttegro::Payout::BalanceTransactionStatus end |
#status ⇒ Inttegro::Payout::BalanceTransactionStatus (readonly)
Whether this contribution is still reserved for the payout, was consumed by a successful payout, or was released after the payout did not complete.
Required in the API payload. Wire name: status.
45 46 47 48 49 50 |
# File 'lib/inttegro/payout/balance_transaction.rb', line 45 class BalanceTransaction < T::Struct const :allocated_amount, Inttegro::Money::Amount const :amount, Inttegro::Money::Amount const :id, String const :status, Inttegro::Payout::BalanceTransactionStatus end |