Class: Inttegro::PurchaseIntent::OriginalPrice
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::PurchaseIntent::OriginalPrice
- Defined in:
- lib/inttegro/purchase_intent/original_price.rb
Overview
Typed representation of the original price 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 the resolved comparison price is active.
-
#id ⇒ String?
readonly
Catalog price ID when the comparison price is not inline.
-
#label ⇒ String?
readonly
Catalog price label when available.
-
#nominal ⇒ Inttegro::Money::Amount
readonly
Value of the
nominalfield in the Inttegro API payload.
Instance Attribute Details
#active ⇒ Boolean (readonly)
Whether the resolved comparison price is active
Required in the API payload. Wire name: active.
42 43 44 45 46 47 |
# File 'lib/inttegro/purchase_intent/original_price.rb', line 42 class OriginalPrice < T::Struct const :active, T::Boolean const :id, T.nilable(String), default: nil const :label, T.nilable(String), default: nil const :nominal, Inttegro::Money::Amount end |
#id ⇒ String? (readonly)
Catalog price ID when the comparison price is not inline
Optional in the API payload; omitted values default to nil. Wire name: id.
42 43 44 45 46 47 |
# File 'lib/inttegro/purchase_intent/original_price.rb', line 42 class OriginalPrice < T::Struct const :active, T::Boolean const :id, T.nilable(String), default: nil const :label, T.nilable(String), default: nil const :nominal, Inttegro::Money::Amount end |
#label ⇒ String? (readonly)
Catalog price label when available
Optional in the API payload; omitted values default to nil. Wire name: label.
42 43 44 45 46 47 |
# File 'lib/inttegro/purchase_intent/original_price.rb', line 42 class OriginalPrice < T::Struct const :active, T::Boolean const :id, T.nilable(String), default: nil const :label, T.nilable(String), default: nil const :nominal, Inttegro::Money::Amount end |
#nominal ⇒ Inttegro::Money::Amount (readonly)
Value of the nominal field in the Inttegro API payload.
Required in the API payload. Wire name: nominal.
42 43 44 45 46 47 |
# File 'lib/inttegro/purchase_intent/original_price.rb', line 42 class OriginalPrice < T::Struct const :active, T::Boolean const :id, T.nilable(String), default: nil const :label, T.nilable(String), default: nil const :nominal, Inttegro::Money::Amount end |