Class: Inttegro::Payout::AmountLimits

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

Overview

Inclusive payout amount range. Values use the currency's smallest unit.

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

#max ⇒ Inttegro::Payout::LimitValue (readonly)

A payout limit in the currency's smallest unit. The enclosing map key identifies the currency.

Required in the API payload. Wire name: max.



32
33
34
35
# File 'lib/inttegro/payout/amount_limits.rb', line 32

class AmountLimits < T::Struct
  const :min, Inttegro::Payout::LimitValue
  const :max, Inttegro::Payout::LimitValue
end

#min ⇒ Inttegro::Payout::LimitValue (readonly)

A payout limit in the currency's smallest unit. The enclosing map key identifies the currency.

Required in the API payload. Wire name: min.



32
33
34
35
# File 'lib/inttegro/payout/amount_limits.rb', line 32

class AmountLimits < T::Struct
  const :min, Inttegro::Payout::LimitValue
  const :max, Inttegro::Payout::LimitValue
end