Class: Inttegro::Price::ArchivedResponsePriceVariant2

Inherits:
T::Struct
  • Object
show all
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

Instance Attribute Details

#about ⇒ String? (readonly)

Longer description for this price

Optional in the API payload; omitted values default to nil. Wire name: about.

Returns:

  • (String, nil)


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.

Returns:

  • (Boolean)


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.

Returns:

  • (Time)


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.

Returns:

  • (Time)


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.

Returns:

  • (String)


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.

Returns:

  • (String, nil)


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.

Returns:

  • (String, nil)


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.

Returns:

  • (Time, nil)


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