Class: Inttegro::Price::SuggestedAmountParams
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Price::SuggestedAmountParams
- Defined in:
- lib/inttegro/price/suggested_amount_params.rb
Overview
Typed representation of the suggested amount params 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
-
#id ⇒ String
readonly
Stable merchant-defined identifier for this suggestion.
-
#recommended ⇒ Boolean?
readonly
Whether this is the single recommended suggestion.
-
#value ⇒ Integer
readonly
Suggested amount in the currency's smallest unit.
Instance Attribute Details
#id ⇒ String (readonly)
Stable merchant-defined identifier for this suggestion
Required in the API payload. Wire name: id.
35 36 37 38 39 |
# File 'lib/inttegro/price/suggested_amount_params.rb', line 35 class SuggestedAmountParams < T::Struct const :id, String const :value, Integer const :recommended, T.nilable(T::Boolean), default: nil end |
#recommended ⇒ Boolean? (readonly)
Whether this is the single recommended suggestion
Optional in the API payload; omitted values default to nil. Wire name: recommended.
35 36 37 38 39 |
# File 'lib/inttegro/price/suggested_amount_params.rb', line 35 class SuggestedAmountParams < T::Struct const :id, String const :value, Integer const :recommended, T.nilable(T::Boolean), default: nil end |
#value ⇒ Integer (readonly)
Suggested amount in the currency's smallest unit
Required in the API payload. Wire name: value.
35 36 37 38 39 |
# File 'lib/inttegro/price/suggested_amount_params.rb', line 35 class SuggestedAmountParams < T::Struct const :id, String const :value, Integer const :recommended, T.nilable(T::Boolean), default: nil end |