Class: Inttegro::Customer::SelectedCatalogPriceParamsCustomerSelectedAmount
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Customer::SelectedCatalogPriceParamsCustomerSelectedAmount
- Defined in:
- lib/inttegro/customer/selected_catalog_price_params_customer_selected_amount.rb
Overview
Available only to Commerce internal services and Upper private beta organizations and applications.
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; it must be at least minimum.
-
#minimum ⇒ Integer
readonly
Minimum selectable amount in the currency's smallest unit.
-
#suggested_amounts ⇒ Array<Inttegro::Price::SuggestedAmountParams>?
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.
45 46 47 48 49 50 |
# File 'lib/inttegro/customer/selected_catalog_price_params_customer_selected_amount.rb', line 45 class SelectedCatalogPriceParamsCustomerSelectedAmount < 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::SuggestedAmountParams]), default: nil end |
#maximum ⇒ Integer? (readonly)
Optional maximum selectable amount; it must be at least minimum
Optional in the API payload; omitted values default to nil. Wire name: maximum.
45 46 47 48 49 50 |
# File 'lib/inttegro/customer/selected_catalog_price_params_customer_selected_amount.rb', line 45 class SelectedCatalogPriceParamsCustomerSelectedAmount < 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::SuggestedAmountParams]), default: nil end |
#minimum ⇒ Integer (readonly)
Minimum selectable amount in the currency's smallest unit
Required in the API payload. Wire name: minimum.
45 46 47 48 49 50 |
# File 'lib/inttegro/customer/selected_catalog_price_params_customer_selected_amount.rb', line 45 class SelectedCatalogPriceParamsCustomerSelectedAmount < 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::SuggestedAmountParams]), default: nil end |
#suggested_amounts ⇒ Array<Inttegro::Price::SuggestedAmountParams>? (readonly)
Convenient choices, not an allow-list. IDs and values must be unique and at most one can be recommended.
Optional in the API payload; omitted values default to nil. Wire name: suggested_amounts.
45 46 47 48 49 50 |
# File 'lib/inttegro/customer/selected_catalog_price_params_customer_selected_amount.rb', line 45 class SelectedCatalogPriceParamsCustomerSelectedAmount < 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::SuggestedAmountParams]), default: nil end |