Class: Inttegro::PurchaseIntent::BundleComponent
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::PurchaseIntent::BundleComponent
- Defined in:
- lib/inttegro/purchase_intent/bundle_component.rb
Overview
Typed representation of the bundle component 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. -
#category ⇒ String?
readonly
Value of the
categoryfield in the Inttegro API payload. -
#image_url ⇒ String?
readonly
Value of the
image_urlfield in the Inttegro API payload. -
#name ⇒ String
readonly
Value of the
namefield in the Inttegro API payload. -
#price_id ⇒ String?
readonly
Value of the
price_idfield in the Inttegro API payload. -
#product_id ⇒ String?
readonly
Value of the
product_idfield in the Inttegro API payload. -
#quantity ⇒ Integer
readonly
Value of the
quantityfield in the Inttegro API payload. -
#reference ⇒ String?
readonly
Value of the
referencefield in the Inttegro API payload. -
#type ⇒ String?
readonly
Value of the
typefield 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.
71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/inttegro/purchase_intent/bundle_component.rb', line 71 class BundleComponent < T::Struct const :about, T.nilable(String), default: nil const :category, T.nilable(String), default: nil const :image_url, T.nilable(String), default: nil const :name, String const :price_id, T.nilable(String), default: nil const :product_id, T.nilable(String), default: nil const :quantity, Integer const :reference, T.nilable(String), default: nil const :type, T.nilable(String), default: nil end |
#category ⇒ String? (readonly)
Value of the category field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: category.
71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/inttegro/purchase_intent/bundle_component.rb', line 71 class BundleComponent < T::Struct const :about, T.nilable(String), default: nil const :category, T.nilable(String), default: nil const :image_url, T.nilable(String), default: nil const :name, String const :price_id, T.nilable(String), default: nil const :product_id, T.nilable(String), default: nil const :quantity, Integer const :reference, T.nilable(String), default: nil const :type, T.nilable(String), default: nil end |
#image_url ⇒ String? (readonly)
Value of the image_url field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: image_url.
71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/inttegro/purchase_intent/bundle_component.rb', line 71 class BundleComponent < T::Struct const :about, T.nilable(String), default: nil const :category, T.nilable(String), default: nil const :image_url, T.nilable(String), default: nil const :name, String const :price_id, T.nilable(String), default: nil const :product_id, T.nilable(String), default: nil const :quantity, Integer const :reference, T.nilable(String), default: nil const :type, T.nilable(String), default: nil end |
#name ⇒ String (readonly)
Value of the name field in the Inttegro API payload.
Required in the API payload. Wire name: name.
71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/inttegro/purchase_intent/bundle_component.rb', line 71 class BundleComponent < T::Struct const :about, T.nilable(String), default: nil const :category, T.nilable(String), default: nil const :image_url, T.nilable(String), default: nil const :name, String const :price_id, T.nilable(String), default: nil const :product_id, T.nilable(String), default: nil const :quantity, Integer const :reference, T.nilable(String), default: nil const :type, T.nilable(String), default: nil end |
#price_id ⇒ String? (readonly)
Value of the price_id field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: price_id.
71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/inttegro/purchase_intent/bundle_component.rb', line 71 class BundleComponent < T::Struct const :about, T.nilable(String), default: nil const :category, T.nilable(String), default: nil const :image_url, T.nilable(String), default: nil const :name, String const :price_id, T.nilable(String), default: nil const :product_id, T.nilable(String), default: nil const :quantity, Integer const :reference, T.nilable(String), default: nil const :type, T.nilable(String), default: nil end |
#product_id ⇒ String? (readonly)
Value of the product_id field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: product_id.
71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/inttegro/purchase_intent/bundle_component.rb', line 71 class BundleComponent < T::Struct const :about, T.nilable(String), default: nil const :category, T.nilable(String), default: nil const :image_url, T.nilable(String), default: nil const :name, String const :price_id, T.nilable(String), default: nil const :product_id, T.nilable(String), default: nil const :quantity, Integer const :reference, T.nilable(String), default: nil const :type, T.nilable(String), default: nil end |
#quantity ⇒ Integer (readonly)
Value of the quantity field in the Inttegro API payload.
Required in the API payload. Wire name: quantity.
71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/inttegro/purchase_intent/bundle_component.rb', line 71 class BundleComponent < T::Struct const :about, T.nilable(String), default: nil const :category, T.nilable(String), default: nil const :image_url, T.nilable(String), default: nil const :name, String const :price_id, T.nilable(String), default: nil const :product_id, T.nilable(String), default: nil const :quantity, Integer const :reference, T.nilable(String), default: nil const :type, 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.
71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/inttegro/purchase_intent/bundle_component.rb', line 71 class BundleComponent < T::Struct const :about, T.nilable(String), default: nil const :category, T.nilable(String), default: nil const :image_url, T.nilable(String), default: nil const :name, String const :price_id, T.nilable(String), default: nil const :product_id, T.nilable(String), default: nil const :quantity, Integer const :reference, T.nilable(String), default: nil const :type, T.nilable(String), default: nil end |
#type ⇒ String? (readonly)
Value of the type field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: type.
71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/inttegro/purchase_intent/bundle_component.rb', line 71 class BundleComponent < T::Struct const :about, T.nilable(String), default: nil const :category, T.nilable(String), default: nil const :image_url, T.nilable(String), default: nil const :name, String const :price_id, T.nilable(String), default: nil const :product_id, T.nilable(String), default: nil const :quantity, Integer const :reference, T.nilable(String), default: nil const :type, T.nilable(String), default: nil end |