Class: Inttegro::Price::ArchivedResponsePriceVariant2
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Price::ArchivedResponsePriceVariant2
- Defined in:
- lib/inttegro/price/archived_response_price_variant2.rb
Overview
Typed representation of the archived response price variant2 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
Value of the
activefield in the Inttegro API payload. -
#archived_at ⇒ Time
readonly
Value of the
archived_atfield in the Inttegro API payload. -
#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::Price::ArchivedResponsePriceVariant2Type
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/price/archived_response_price_variant2.rb', line 86 class ArchivedResponsePriceVariant2 < 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::Price::ArchivedResponsePriceVariant2Type 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, Time end |
#active ⇒ Boolean (readonly)
Value of the active field in the Inttegro API payload.
Required in the API payload. Wire name: active.
86 87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/inttegro/price/archived_response_price_variant2.rb', line 86 class ArchivedResponsePriceVariant2 < 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::Price::ArchivedResponsePriceVariant2Type 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, Time end |
#archived_at ⇒ Time (readonly)
Value of the archived_at field in the Inttegro API payload.
Required in the API payload. Wire name: archived_at.
86 87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/inttegro/price/archived_response_price_variant2.rb', line 86 class ArchivedResponsePriceVariant2 < 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::Price::ArchivedResponsePriceVariant2Type 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, Time 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/price/archived_response_price_variant2.rb', line 86 class ArchivedResponsePriceVariant2 < 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::Price::ArchivedResponsePriceVariant2Type 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, Time 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/price/archived_response_price_variant2.rb', line 86 class ArchivedResponsePriceVariant2 < 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::Price::ArchivedResponsePriceVariant2Type 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, Time 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/price/archived_response_price_variant2.rb', line 86 class ArchivedResponsePriceVariant2 < 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::Price::ArchivedResponsePriceVariant2Type 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, Time 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/price/archived_response_price_variant2.rb', line 86 class ArchivedResponsePriceVariant2 < 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::Price::ArchivedResponsePriceVariant2Type 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, Time 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/price/archived_response_price_variant2.rb', line 86 class ArchivedResponsePriceVariant2 < 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::Price::ArchivedResponsePriceVariant2Type 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, Time 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/price/archived_response_price_variant2.rb', line 86 class ArchivedResponsePriceVariant2 < 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::Price::ArchivedResponsePriceVariant2Type 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, Time end |
#type ⇒ Inttegro::Price::ArchivedResponsePriceVariant2Type (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/price/archived_response_price_variant2.rb', line 86 class ArchivedResponsePriceVariant2 < 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::Price::ArchivedResponsePriceVariant2Type 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, Time 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/price/archived_response_price_variant2.rb', line 86 class ArchivedResponsePriceVariant2 < 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::Price::ArchivedResponsePriceVariant2Type 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, Time end |