Class: Inttegro::Customer::SelectedCatalogPrice
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Customer::SelectedCatalogPrice
- Defined in:
- lib/inttegro/customer/selected_catalog_price.rb
Overview
Typed representation of the selected catalog 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
-
#about ⇒ String?
readonly
Longer description for this price.
-
#active ⇒ Boolean
readonly
Whether this price is active and usable in new flows.
-
#archived_at ⇒ Time?
readonly
Archive timestamp (if archived).
-
#created_at ⇒ Time
readonly
Price creation timestamp.
-
#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.
-
#product ⇒ Inttegro::Customer::SelectedCatalogPriceProduct?
readonly
Embedded product details, if this price belongs to a product.
-
#product_id ⇒ String?
readonly
Product ID when the operation returns the relationship by reference.
-
#type ⇒ Inttegro::Customer::SelectedCatalogPriceType
readonly
Value of the
typefield in the Inttegro API payload. -
#updated_at ⇒ Time?
readonly
Last update timestamp.
Instance Attribute Details
#about ⇒ String? (readonly)
Longer description for this price
Optional in the API payload; omitted values default to nil. Wire name: about.
86 87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/inttegro/customer/selected_catalog_price.rb', line 86 class SelectedCatalogPrice < T::Struct const :id, String const :label, T.nilable(String), default: nil const :about, T.nilable(String), default: nil const :active, T::Boolean const :type, Inttegro::Customer::SelectedCatalogPriceType const :customer_selected_amount, Inttegro::Price::CustomerSelectedAmount const :product_id, T.nilable(String), default: nil const :product, T.nilable(Inttegro::Customer::SelectedCatalogPriceProduct), default: nil const :created_at, Time const :updated_at, T.nilable(Time), default: nil const :archived_at, T.nilable(Time), default: nil end |
#active ⇒ Boolean (readonly)
Whether this price is active and usable in new flows
Required in the API payload. Wire name: active.
86 87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/inttegro/customer/selected_catalog_price.rb', line 86 class SelectedCatalogPrice < T::Struct const :id, String const :label, T.nilable(String), default: nil const :about, T.nilable(String), default: nil const :active, T::Boolean const :type, Inttegro::Customer::SelectedCatalogPriceType const :customer_selected_amount, Inttegro::Price::CustomerSelectedAmount const :product_id, T.nilable(String), default: nil const :product, T.nilable(Inttegro::Customer::SelectedCatalogPriceProduct), default: nil const :created_at, Time const :updated_at, T.nilable(Time), default: nil const :archived_at, T.nilable(Time), default: nil end |
#archived_at ⇒ Time? (readonly)
Archive timestamp (if archived). A non-null value means active is false.
Optional in the API payload; omitted values default to nil. Wire name: archived_at.
86 87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/inttegro/customer/selected_catalog_price.rb', line 86 class SelectedCatalogPrice < T::Struct const :id, String const :label, T.nilable(String), default: nil const :about, T.nilable(String), default: nil const :active, T::Boolean const :type, Inttegro::Customer::SelectedCatalogPriceType const :customer_selected_amount, Inttegro::Price::CustomerSelectedAmount const :product_id, T.nilable(String), default: nil const :product, T.nilable(Inttegro::Customer::SelectedCatalogPriceProduct), default: nil const :created_at, Time const :updated_at, T.nilable(Time), default: nil const :archived_at, T.nilable(Time), default: nil end |
#created_at ⇒ Time (readonly)
Price creation timestamp
Required in the API payload. Wire name: created_at.
86 87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/inttegro/customer/selected_catalog_price.rb', line 86 class SelectedCatalogPrice < T::Struct const :id, String const :label, T.nilable(String), default: nil const :about, T.nilable(String), default: nil const :active, T::Boolean const :type, Inttegro::Customer::SelectedCatalogPriceType const :customer_selected_amount, Inttegro::Price::CustomerSelectedAmount const :product_id, T.nilable(String), default: nil const :product, T.nilable(Inttegro::Customer::SelectedCatalogPriceProduct), default: nil const :created_at, Time const :updated_at, T.nilable(Time), default: nil const :archived_at, T.nilable(Time), default: nil 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.
86 87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/inttegro/customer/selected_catalog_price.rb', line 86 class SelectedCatalogPrice < T::Struct const :id, String const :label, T.nilable(String), default: nil const :about, T.nilable(String), default: nil const :active, T::Boolean const :type, Inttegro::Customer::SelectedCatalogPriceType const :customer_selected_amount, Inttegro::Price::CustomerSelectedAmount const :product_id, T.nilable(String), default: nil const :product, T.nilable(Inttegro::Customer::SelectedCatalogPriceProduct), default: nil const :created_at, Time const :updated_at, T.nilable(Time), default: nil const :archived_at, T.nilable(Time), default: nil end |
#id ⇒ String (readonly)
Unique price identifier with pr_ prefix
Required in the API payload. Wire name: id.
86 87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/inttegro/customer/selected_catalog_price.rb', line 86 class SelectedCatalogPrice < T::Struct const :id, String const :label, T.nilable(String), default: nil const :about, T.nilable(String), default: nil const :active, T::Boolean const :type, Inttegro::Customer::SelectedCatalogPriceType const :customer_selected_amount, Inttegro::Price::CustomerSelectedAmount const :product_id, T.nilable(String), default: nil const :product, T.nilable(Inttegro::Customer::SelectedCatalogPriceProduct), default: nil const :created_at, Time const :updated_at, T.nilable(Time), default: nil const :archived_at, T.nilable(Time), default: nil end |
#label ⇒ String? (readonly)
Short label for this price
Optional in the API payload; omitted values default to nil. Wire name: label.
86 87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/inttegro/customer/selected_catalog_price.rb', line 86 class SelectedCatalogPrice < T::Struct const :id, String const :label, T.nilable(String), default: nil const :about, T.nilable(String), default: nil const :active, T::Boolean const :type, Inttegro::Customer::SelectedCatalogPriceType const :customer_selected_amount, Inttegro::Price::CustomerSelectedAmount const :product_id, T.nilable(String), default: nil const :product, T.nilable(Inttegro::Customer::SelectedCatalogPriceProduct), default: nil const :created_at, Time const :updated_at, T.nilable(Time), default: nil const :archived_at, T.nilable(Time), default: nil end |
#product ⇒ Inttegro::Customer::SelectedCatalogPriceProduct? (readonly)
Embedded product details, if this price belongs to a product
Optional in the API payload; omitted values default to nil. Wire name: product.
86 87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/inttegro/customer/selected_catalog_price.rb', line 86 class SelectedCatalogPrice < T::Struct const :id, String const :label, T.nilable(String), default: nil const :about, T.nilable(String), default: nil const :active, T::Boolean const :type, Inttegro::Customer::SelectedCatalogPriceType const :customer_selected_amount, Inttegro::Price::CustomerSelectedAmount const :product_id, T.nilable(String), default: nil const :product, T.nilable(Inttegro::Customer::SelectedCatalogPriceProduct), default: nil const :created_at, Time const :updated_at, T.nilable(Time), default: nil const :archived_at, T.nilable(Time), default: nil end |
#product_id ⇒ String? (readonly)
Product ID when the operation returns the relationship by reference
Optional in the API payload; omitted values default to nil. Wire name: product_id.
86 87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/inttegro/customer/selected_catalog_price.rb', line 86 class SelectedCatalogPrice < T::Struct const :id, String const :label, T.nilable(String), default: nil const :about, T.nilable(String), default: nil const :active, T::Boolean const :type, Inttegro::Customer::SelectedCatalogPriceType const :customer_selected_amount, Inttegro::Price::CustomerSelectedAmount const :product_id, T.nilable(String), default: nil const :product, T.nilable(Inttegro::Customer::SelectedCatalogPriceProduct), default: nil const :created_at, Time const :updated_at, T.nilable(Time), default: nil const :archived_at, T.nilable(Time), default: nil end |
#type ⇒ Inttegro::Customer::SelectedCatalogPriceType (readonly)
Value of the type field in the Inttegro API payload.
Required in the API payload. Wire name: type.
86 87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/inttegro/customer/selected_catalog_price.rb', line 86 class SelectedCatalogPrice < T::Struct const :id, String const :label, T.nilable(String), default: nil const :about, T.nilable(String), default: nil const :active, T::Boolean const :type, Inttegro::Customer::SelectedCatalogPriceType const :customer_selected_amount, Inttegro::Price::CustomerSelectedAmount const :product_id, T.nilable(String), default: nil const :product, T.nilable(Inttegro::Customer::SelectedCatalogPriceProduct), default: nil const :created_at, Time const :updated_at, T.nilable(Time), default: nil const :archived_at, T.nilable(Time), default: nil end |
#updated_at ⇒ Time? (readonly)
Last update timestamp
Optional in the API payload; omitted values default to nil. Wire name: updated_at.
86 87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/inttegro/customer/selected_catalog_price.rb', line 86 class SelectedCatalogPrice < T::Struct const :id, String const :label, T.nilable(String), default: nil const :about, T.nilable(String), default: nil const :active, T::Boolean const :type, Inttegro::Customer::SelectedCatalogPriceType const :customer_selected_amount, Inttegro::Price::CustomerSelectedAmount const :product_id, T.nilable(String), default: nil const :product, T.nilable(Inttegro::Customer::SelectedCatalogPriceProduct), default: nil const :created_at, Time const :updated_at, T.nilable(Time), default: nil const :archived_at, T.nilable(Time), default: nil end |