Class: Inttegro::Price::CustomerSelectedAmount
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Price::CustomerSelectedAmount
- Defined in:
- lib/inttegro/price/customer_selected_amount.rb
Overview
Typed representation of the customer selected amount object in the Inttegro API.
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
-
#currency ⇒ Inttegro::Money::Currency
readonly
Currency accepted for customer-selected amounts.
-
#maximum ⇒ Integer?
readonly
Optional maximum selectable amount.
-
#minimum ⇒ Integer
readonly
Minimum selectable amount in the currency's smallest unit.
-
#suggested_amounts ⇒ Array<Inttegro::Price::SuggestedAmount>?
readonly
Convenient choices, not an allow-list.
Instance Attribute Details
#currency ⇒ Inttegro::Money::Currency (readonly)
Currency accepted for customer-selected amounts
Required in the API payload. Wire name: currency.
43 44 45 46 47 48 |
# File 'lib/inttegro/price/customer_selected_amount.rb', line 43 class CustomerSelectedAmount < T::Struct const :currency, Inttegro::Money::Currency const :minimum, Integer const :maximum, T.nilable(Integer), default: nil const :suggested_amounts, T.nilable(T::Array[Inttegro::Price::SuggestedAmount]), default: nil end |
#maximum ⇒ Integer? (readonly)
Optional maximum selectable amount
Optional in the API payload; omitted values default to nil. Wire name: maximum.
43 44 45 46 47 48 |
# File 'lib/inttegro/price/customer_selected_amount.rb', line 43 class CustomerSelectedAmount < T::Struct const :currency, Inttegro::Money::Currency const :minimum, Integer const :maximum, T.nilable(Integer), default: nil const :suggested_amounts, T.nilable(T::Array[Inttegro::Price::SuggestedAmount]), default: nil end |
#minimum ⇒ Integer (readonly)
Minimum selectable amount in the currency's smallest unit
Required in the API payload. Wire name: minimum.
43 44 45 46 47 48 |
# File 'lib/inttegro/price/customer_selected_amount.rb', line 43 class CustomerSelectedAmount < T::Struct const :currency, Inttegro::Money::Currency const :minimum, Integer const :maximum, T.nilable(Integer), default: nil const :suggested_amounts, T.nilable(T::Array[Inttegro::Price::SuggestedAmount]), default: nil end |
#suggested_amounts ⇒ Array<Inttegro::Price::SuggestedAmount>? (readonly)
Convenient choices, not an allow-list
Optional in the API payload; omitted values default to nil. Wire name: suggested_amounts.
43 44 45 46 47 48 |
# File 'lib/inttegro/price/customer_selected_amount.rb', line 43 class CustomerSelectedAmount < T::Struct const :currency, Inttegro::Money::Currency const :minimum, Integer const :maximum, T.nilable(Integer), default: nil const :suggested_amounts, T.nilable(T::Array[Inttegro::Price::SuggestedAmount]), default: nil end |