Class: Inttegro::PurchaseIntent::VariantSet
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::PurchaseIntent::VariantSet
- Defined in:
- lib/inttegro/purchase_intent/variant_set.rb
Overview
Typed representation of the variant set 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
Value of the
activefield in the Inttegro API payload. -
#default_product_id ⇒ String?
readonly
Value of the
default_product_idfield in the Inttegro API payload. -
#description ⇒ String?
readonly
Value of the
descriptionfield in the Inttegro API payload. -
#id ⇒ String
readonly
Value of the
idfield in the Inttegro API payload. -
#name ⇒ String
readonly
Value of the
namefield in the Inttegro API payload. -
#reference ⇒ String?
readonly
Value of the
referencefield in the Inttegro API payload. -
#variant_axes ⇒ Array<Inttegro::PurchaseIntent::VariantAxis>
readonly
Value of the
variant_axesfield in the Inttegro API payload. -
#variants ⇒ Array<Inttegro::PurchaseIntent::Variant>
readonly
Value of the
variantsfield in the Inttegro API payload.
Instance Attribute Details
#active ⇒ Boolean (readonly)
Value of the active field in the Inttegro API payload.
Required in the API payload. Wire name: active.
67 68 69 70 71 72 73 74 75 76 |
# File 'lib/inttegro/purchase_intent/variant_set.rb', line 67 class VariantSet < T::Struct const :active, T::Boolean const :default_product_id, T.nilable(String), default: nil const :description, T.nilable(String), default: nil const :id, String const :name, String const :reference, T.nilable(String), default: nil const :variant_axes, T::Array[Inttegro::PurchaseIntent::VariantAxis] const :variants, T::Array[Inttegro::PurchaseIntent::Variant] end |
#default_product_id ⇒ String? (readonly)
Value of the default_product_id field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: default_product_id.
67 68 69 70 71 72 73 74 75 76 |
# File 'lib/inttegro/purchase_intent/variant_set.rb', line 67 class VariantSet < T::Struct const :active, T::Boolean const :default_product_id, T.nilable(String), default: nil const :description, T.nilable(String), default: nil const :id, String const :name, String const :reference, T.nilable(String), default: nil const :variant_axes, T::Array[Inttegro::PurchaseIntent::VariantAxis] const :variants, T::Array[Inttegro::PurchaseIntent::Variant] end |
#description ⇒ String? (readonly)
Value of the description field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: description.
67 68 69 70 71 72 73 74 75 76 |
# File 'lib/inttegro/purchase_intent/variant_set.rb', line 67 class VariantSet < T::Struct const :active, T::Boolean const :default_product_id, T.nilable(String), default: nil const :description, T.nilable(String), default: nil const :id, String const :name, String const :reference, T.nilable(String), default: nil const :variant_axes, T::Array[Inttegro::PurchaseIntent::VariantAxis] const :variants, T::Array[Inttegro::PurchaseIntent::Variant] end |
#id ⇒ String (readonly)
Value of the id field in the Inttegro API payload.
Required in the API payload. Wire name: id.
67 68 69 70 71 72 73 74 75 76 |
# File 'lib/inttegro/purchase_intent/variant_set.rb', line 67 class VariantSet < T::Struct const :active, T::Boolean const :default_product_id, T.nilable(String), default: nil const :description, T.nilable(String), default: nil const :id, String const :name, String const :reference, T.nilable(String), default: nil const :variant_axes, T::Array[Inttegro::PurchaseIntent::VariantAxis] const :variants, T::Array[Inttegro::PurchaseIntent::Variant] end |
#name ⇒ String (readonly)
Value of the name field in the Inttegro API payload.
Required in the API payload. Wire name: name.
67 68 69 70 71 72 73 74 75 76 |
# File 'lib/inttegro/purchase_intent/variant_set.rb', line 67 class VariantSet < T::Struct const :active, T::Boolean const :default_product_id, T.nilable(String), default: nil const :description, T.nilable(String), default: nil const :id, String const :name, String const :reference, T.nilable(String), default: nil const :variant_axes, T::Array[Inttegro::PurchaseIntent::VariantAxis] const :variants, T::Array[Inttegro::PurchaseIntent::Variant] end |
#reference ⇒ String? (readonly)
Value of the reference field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: reference.
67 68 69 70 71 72 73 74 75 76 |
# File 'lib/inttegro/purchase_intent/variant_set.rb', line 67 class VariantSet < T::Struct const :active, T::Boolean const :default_product_id, T.nilable(String), default: nil const :description, T.nilable(String), default: nil const :id, String const :name, String const :reference, T.nilable(String), default: nil const :variant_axes, T::Array[Inttegro::PurchaseIntent::VariantAxis] const :variants, T::Array[Inttegro::PurchaseIntent::Variant] end |
#variant_axes ⇒ Array<Inttegro::PurchaseIntent::VariantAxis> (readonly)
Value of the variant_axes field in the Inttegro API payload.
Required in the API payload. Wire name: variant_axes.
67 68 69 70 71 72 73 74 75 76 |
# File 'lib/inttegro/purchase_intent/variant_set.rb', line 67 class VariantSet < T::Struct const :active, T::Boolean const :default_product_id, T.nilable(String), default: nil const :description, T.nilable(String), default: nil const :id, String const :name, String const :reference, T.nilable(String), default: nil const :variant_axes, T::Array[Inttegro::PurchaseIntent::VariantAxis] const :variants, T::Array[Inttegro::PurchaseIntent::Variant] end |
#variants ⇒ Array<Inttegro::PurchaseIntent::Variant> (readonly)
Value of the variants field in the Inttegro API payload.
Required in the API payload. Wire name: variants.
67 68 69 70 71 72 73 74 75 76 |
# File 'lib/inttegro/purchase_intent/variant_set.rb', line 67 class VariantSet < T::Struct const :active, T::Boolean const :default_product_id, T.nilable(String), default: nil const :description, T.nilable(String), default: nil const :id, String const :name, String const :reference, T.nilable(String), default: nil const :variant_axes, T::Array[Inttegro::PurchaseIntent::VariantAxis] const :variants, T::Array[Inttegro::PurchaseIntent::Variant] end |