Class: Inttegro::PurchaseIntent::CreateRequestProduct
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::PurchaseIntent::CreateRequestProduct
- Defined in:
- lib/inttegro/purchase_intent/create_request_product.rb
Overview
Product selection with optional variant-set configuration. Use this instead of product_id.
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
-
#id ⇒ String
readonly
Product ID to sell through the Buy link.
-
#variant_set_id ⇒ String?
readonly
Optional variant set ID the hosted checkout may use for sibling product selection.
Instance Attribute Details
#id ⇒ String (readonly)
Product ID to sell through the Buy link
Required in the API payload. Wire name: id.
29 30 31 32 |
# File 'lib/inttegro/purchase_intent/create_request_product.rb', line 29 class CreateRequestProduct < T::Struct const :id, String const :variant_set_id, T.nilable(String), default: nil end |
#variant_set_id ⇒ String? (readonly)
Optional variant set ID the hosted checkout may use for sibling product selection
Optional in the API payload; omitted values default to nil. Wire name: variant_set_id.
29 30 31 32 |
# File 'lib/inttegro/purchase_intent/create_request_product.rb', line 29 class CreateRequestProduct < T::Struct const :id, String const :variant_set_id, T.nilable(String), default: nil end |