Class: Inttegro::BalanceTransaction::AvailableAmount

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/balance_transaction/available_amount.rb

Overview

Amount still available for a refund or 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

#currency ⇒ String (readonly)

Currency code as stored on the transaction

Required in the API payload. Wire name: currency.

Returns:

  • (String)


29
30
31
32
# File 'lib/inttegro/balance_transaction/available_amount.rb', line 29

class AvailableAmount < T::Struct
  const :currency, String
  const :value, Integer
end

#value ⇒ Integer (readonly)

Unsigned amount in the currency's smallest unit

Required in the API payload. Wire name: value.

Returns:

  • (Integer)


29
30
31
32
# File 'lib/inttegro/balance_transaction/available_amount.rb', line 29

class AvailableAmount < T::Struct
  const :currency, String
  const :value, Integer
end