Class: Inttegro::PurchaseIntent::BundleComponent

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

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)


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.

Returns:

  • (String, nil)


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.

Returns:

  • (String, nil)


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.

Returns:

  • (String)


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.

Returns:

  • (String, nil)


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.

Returns:

  • (String, nil)


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.

Returns:

  • (Integer)


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.

Returns:

  • (String, nil)


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.

Returns:

  • (String, nil)


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