Class: Inttegro::Product::PriceSummary
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Product::PriceSummary
- Defined in:
- lib/inttegro/product/price_summary.rb
Overview
Typed representation of the 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
Customer-selected amount configuration.
-
#fixed_amount ⇒ Inttegro::Money::Amount?
readonly
Fixed price amount.
-
#id ⇒ String
readonly
Unique price identifier with pr_ prefix.
-
#label ⇒ String?
readonly
Short label for this price.
-
#nominal ⇒ Inttegro::Money::Amount?
readonly
Legacy fixed price amount.
-
#type ⇒ Inttegro::Price::Type
readonly
Price definition discriminator.
Instance Attribute Details
#active ⇒ Boolean (readonly)
Whether this price is active and usable in new flows
Required in the API payload. Wire name: active.
62 63 64 65 66 67 68 69 70 |
# File 'lib/inttegro/product/price_summary.rb', line 62 class PriceSummary < T::Struct const :id, String const :active, T::Boolean const :label, T.nilable(String), default: nil const :type, Inttegro::Price::Type const :nominal, T.nilable(Inttegro::Money::Amount), default: nil const :fixed_amount, T.nilable(Inttegro::Money::Amount), default: nil const :customer_selected_amount, T.nilable(Inttegro::Price::CustomerSelectedAmount), default: nil end |
#customer_selected_amount ⇒ Inttegro::Price::CustomerSelectedAmount? (readonly)
Customer-selected amount configuration. Present only for customer_selected_amount prices.
Optional in the API payload; omitted values default to nil. Wire name: customer_selected_amount.
62 63 64 65 66 67 68 69 70 |
# File 'lib/inttegro/product/price_summary.rb', line 62 class PriceSummary < T::Struct const :id, String const :active, T::Boolean const :label, T.nilable(String), default: nil const :type, Inttegro::Price::Type const :nominal, T.nilable(Inttegro::Money::Amount), default: nil const :fixed_amount, T.nilable(Inttegro::Money::Amount), default: nil const :customer_selected_amount, T.nilable(Inttegro::Price::CustomerSelectedAmount), default: nil end |
#fixed_amount ⇒ Inttegro::Money::Amount? (readonly)
Fixed price amount. Present only for fixed_amount prices.
Optional in the API payload; omitted values default to nil. Wire name: fixed_amount.
62 63 64 65 66 67 68 69 70 |
# File 'lib/inttegro/product/price_summary.rb', line 62 class PriceSummary < T::Struct const :id, String const :active, T::Boolean const :label, T.nilable(String), default: nil const :type, Inttegro::Price::Type const :nominal, T.nilable(Inttegro::Money::Amount), default: nil const :fixed_amount, T.nilable(Inttegro::Money::Amount), default: nil const :customer_selected_amount, T.nilable(Inttegro::Price::CustomerSelectedAmount), default: nil end |
#id ⇒ String (readonly)
Unique price identifier with pr_ prefix
Required in the API payload. Wire name: id.
62 63 64 65 66 67 68 69 70 |
# File 'lib/inttegro/product/price_summary.rb', line 62 class PriceSummary < T::Struct const :id, String const :active, T::Boolean const :label, T.nilable(String), default: nil const :type, Inttegro::Price::Type const :nominal, T.nilable(Inttegro::Money::Amount), default: nil const :fixed_amount, T.nilable(Inttegro::Money::Amount), default: nil const :customer_selected_amount, T.nilable(Inttegro::Price::CustomerSelectedAmount), default: nil end |
#label ⇒ String? (readonly)
Short label for this price
Optional in the API payload; omitted values default to nil. Wire name: label.
62 63 64 65 66 67 68 69 70 |
# File 'lib/inttegro/product/price_summary.rb', line 62 class PriceSummary < T::Struct const :id, String const :active, T::Boolean const :label, T.nilable(String), default: nil const :type, Inttegro::Price::Type const :nominal, T.nilable(Inttegro::Money::Amount), default: nil const :fixed_amount, T.nilable(Inttegro::Money::Amount), default: nil const :customer_selected_amount, T.nilable(Inttegro::Price::CustomerSelectedAmount), default: nil end |
#nominal ⇒ Inttegro::Money::Amount? (readonly)
Legacy fixed price amount. Present only for fixed_amount prices.
Optional in the API payload; omitted values default to nil. Wire name: nominal.
62 63 64 65 66 67 68 69 70 |
# File 'lib/inttegro/product/price_summary.rb', line 62 class PriceSummary < T::Struct const :id, String const :active, T::Boolean const :label, T.nilable(String), default: nil const :type, Inttegro::Price::Type const :nominal, T.nilable(Inttegro::Money::Amount), default: nil const :fixed_amount, T.nilable(Inttegro::Money::Amount), default: nil const :customer_selected_amount, T.nilable(Inttegro::Price::CustomerSelectedAmount), default: nil end |
#type ⇒ Inttegro::Price::Type (readonly)
Price definition discriminator
Required in the API payload. Wire name: type.
62 63 64 65 66 67 68 69 70 |
# File 'lib/inttegro/product/price_summary.rb', line 62 class PriceSummary < T::Struct const :id, String const :active, T::Boolean const :label, T.nilable(String), default: nil const :type, Inttegro::Price::Type const :nominal, T.nilable(Inttegro::Money::Amount), default: nil const :fixed_amount, T.nilable(Inttegro::Money::Amount), default: nil const :customer_selected_amount, T.nilable(Inttegro::Price::CustomerSelectedAmount), default: nil end |