Class: Inttegro::PurchaseIntent::Bundle

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

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.

Returns:

  • (String, nil)


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.

Returns:

  • (String)


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.

Returns:



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.

Returns:

  • (String, nil)


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.

Returns:

  • (String, nil)


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