Class: Inttegro::PurchaseIntent::Bundle
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::PurchaseIntent::Bundle
- Defined in:
- lib/inttegro/purchase_intent/bundle.rb
Overview
Typed representation of the bundle 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
Value of the
aboutfield in the Inttegro API payload. -
#components ⇒ Array<Inttegro::PurchaseIntent::BundleComponent>?
readonly
Value of the
componentsfield in the Inttegro API payload. -
#id ⇒ String
readonly
Current app-owned bundle referenced by the Buy link.
-
#media ⇒ Inttegro::Product::Media?
readonly
Value of the
mediafield in the Inttegro API payload. -
#name ⇒ String?
readonly
Value of the
namefield in the Inttegro API payload. -
#price ⇒ Inttegro::PurchaseIntent::BundlePrice?
readonly
Current bundle catalog price reference.
-
#reference ⇒ String?
readonly
Value of the
referencefield in the Inttegro API payload.
Instance Attribute Details
#about ⇒ String? (readonly)
Value of the about field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: about.
62 63 64 65 66 67 68 69 70 |
# File 'lib/inttegro/purchase_intent/bundle.rb', line 62 class Bundle < T::Struct const :about, T.nilable(String), default: nil const :components, T.nilable(T::Array[Inttegro::PurchaseIntent::BundleComponent]), default: nil const :id, String const :media, T.nilable(Inttegro::Product::Media), default: nil const :name, T.nilable(String), default: nil const :price, T.nilable(Inttegro::PurchaseIntent::BundlePrice), default: nil const :reference, T.nilable(String), default: nil end |
#components ⇒ Array<Inttegro::PurchaseIntent::BundleComponent>? (readonly)
Value of the components field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: components.
62 63 64 65 66 67 68 69 70 |
# File 'lib/inttegro/purchase_intent/bundle.rb', line 62 class Bundle < T::Struct const :about, T.nilable(String), default: nil const :components, T.nilable(T::Array[Inttegro::PurchaseIntent::BundleComponent]), default: nil const :id, String const :media, T.nilable(Inttegro::Product::Media), default: nil const :name, T.nilable(String), default: nil const :price, T.nilable(Inttegro::PurchaseIntent::BundlePrice), default: nil const :reference, T.nilable(String), default: nil end |
#id ⇒ String (readonly)
Current app-owned bundle referenced by the Buy link
Required in the API payload. Wire name: id.
62 63 64 65 66 67 68 69 70 |
# File 'lib/inttegro/purchase_intent/bundle.rb', line 62 class Bundle < T::Struct const :about, T.nilable(String), default: nil const :components, T.nilable(T::Array[Inttegro::PurchaseIntent::BundleComponent]), default: nil const :id, String const :media, T.nilable(Inttegro::Product::Media), default: nil const :name, T.nilable(String), default: nil const :price, T.nilable(Inttegro::PurchaseIntent::BundlePrice), default: nil const :reference, T.nilable(String), default: nil end |
#media ⇒ Inttegro::Product::Media? (readonly)
Value of the media field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: media.
62 63 64 65 66 67 68 69 70 |
# File 'lib/inttegro/purchase_intent/bundle.rb', line 62 class Bundle < T::Struct const :about, T.nilable(String), default: nil const :components, T.nilable(T::Array[Inttegro::PurchaseIntent::BundleComponent]), default: nil const :id, String const :media, T.nilable(Inttegro::Product::Media), default: nil const :name, T.nilable(String), default: nil const :price, T.nilable(Inttegro::PurchaseIntent::BundlePrice), default: nil const :reference, T.nilable(String), default: nil end |
#name ⇒ String? (readonly)
Value of the name field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: name.
62 63 64 65 66 67 68 69 70 |
# File 'lib/inttegro/purchase_intent/bundle.rb', line 62 class Bundle < T::Struct const :about, T.nilable(String), default: nil const :components, T.nilable(T::Array[Inttegro::PurchaseIntent::BundleComponent]), default: nil const :id, String const :media, T.nilable(Inttegro::Product::Media), default: nil const :name, T.nilable(String), default: nil const :price, T.nilable(Inttegro::PurchaseIntent::BundlePrice), default: nil const :reference, T.nilable(String), default: nil end |
#price ⇒ Inttegro::PurchaseIntent::BundlePrice? (readonly)
Current bundle catalog price reference. The top-level price is the effective Buy-link offer.
Optional in the API payload; omitted values default to nil. Wire name: price.
62 63 64 65 66 67 68 69 70 |
# File 'lib/inttegro/purchase_intent/bundle.rb', line 62 class Bundle < T::Struct const :about, T.nilable(String), default: nil const :components, T.nilable(T::Array[Inttegro::PurchaseIntent::BundleComponent]), default: nil const :id, String const :media, T.nilable(Inttegro::Product::Media), default: nil const :name, T.nilable(String), default: nil const :price, T.nilable(Inttegro::PurchaseIntent::BundlePrice), default: nil const :reference, T.nilable(String), default: nil 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.
62 63 64 65 66 67 68 69 70 |
# File 'lib/inttegro/purchase_intent/bundle.rb', line 62 class Bundle < T::Struct const :about, T.nilable(String), default: nil const :components, T.nilable(T::Array[Inttegro::PurchaseIntent::BundleComponent]), default: nil const :id, String const :media, T.nilable(Inttegro::Product::Media), default: nil const :name, T.nilable(String), default: nil const :price, T.nilable(Inttegro::PurchaseIntent::BundlePrice), default: nil const :reference, T.nilable(String), default: nil end |