Class: Inttegro::Customer::SelectedProductPriceSummary
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Customer::SelectedProductPriceSummary
- Defined in:
- lib/inttegro/customer/selected_product_price_summary.rb
Overview
Typed representation of the selected product price summary 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
-
#active ⇒ Boolean
readonly
Whether this price is active and usable in new flows.
-
#customer_selected_amount ⇒ Inttegro::Price::CustomerSelectedAmount
readonly
Value of the
customer_selected_amountfield in the Inttegro API payload. -
#id ⇒ String
readonly
Unique price identifier with pr_ prefix.
-
#label ⇒ String?
readonly
Short label for this price.
-
#type ⇒ Inttegro::Customer::SelectedProductPriceSummaryType
readonly
Value of the
typefield in the Inttegro API payload.
Instance Attribute Details
#active ⇒ Boolean (readonly)
Whether this price is active and usable in new flows
Required in the API payload. Wire name: active.
49 50 51 52 53 54 55 |
# File 'lib/inttegro/customer/selected_product_price_summary.rb', line 49 class SelectedProductPriceSummary < T::Struct const :id, String const :active, T::Boolean const :label, T.nilable(String), default: nil const :type, Inttegro::Customer::SelectedProductPriceSummaryType const :customer_selected_amount, Inttegro::Price::CustomerSelectedAmount end |
#customer_selected_amount ⇒ Inttegro::Price::CustomerSelectedAmount (readonly)
Value of the customer_selected_amount field in the Inttegro API payload.
Required in the API payload. Wire name: customer_selected_amount.
49 50 51 52 53 54 55 |
# File 'lib/inttegro/customer/selected_product_price_summary.rb', line 49 class SelectedProductPriceSummary < T::Struct const :id, String const :active, T::Boolean const :label, T.nilable(String), default: nil const :type, Inttegro::Customer::SelectedProductPriceSummaryType const :customer_selected_amount, Inttegro::Price::CustomerSelectedAmount end |
#id ⇒ String (readonly)
Unique price identifier with pr_ prefix
Required in the API payload. Wire name: id.
49 50 51 52 53 54 55 |
# File 'lib/inttegro/customer/selected_product_price_summary.rb', line 49 class SelectedProductPriceSummary < T::Struct const :id, String const :active, T::Boolean const :label, T.nilable(String), default: nil const :type, Inttegro::Customer::SelectedProductPriceSummaryType const :customer_selected_amount, Inttegro::Price::CustomerSelectedAmount end |
#label ⇒ String? (readonly)
Short label for this price
Optional in the API payload; omitted values default to nil. Wire name: label.
49 50 51 52 53 54 55 |
# File 'lib/inttegro/customer/selected_product_price_summary.rb', line 49 class SelectedProductPriceSummary < T::Struct const :id, String const :active, T::Boolean const :label, T.nilable(String), default: nil const :type, Inttegro::Customer::SelectedProductPriceSummaryType const :customer_selected_amount, Inttegro::Price::CustomerSelectedAmount end |
#type ⇒ Inttegro::Customer::SelectedProductPriceSummaryType (readonly)
Value of the type field in the Inttegro API payload.
Required in the API payload. Wire name: type.
49 50 51 52 53 54 55 |
# File 'lib/inttegro/customer/selected_product_price_summary.rb', line 49 class SelectedProductPriceSummary < T::Struct const :id, String const :active, T::Boolean const :label, T.nilable(String), default: nil const :type, Inttegro::Customer::SelectedProductPriceSummaryType const :customer_selected_amount, Inttegro::Price::CustomerSelectedAmount end |