Class: Inttegro::Product::CatalogWithCustomerSelectedPrice

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/product/catalog_with_customer_selected_price.rb

Overview

Typed representation of the catalog with customer selected price 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

#customer_selected_price ⇒ Inttegro::Product::CustomerSelectedPriceInput (readonly)

Available only to Commerce internal services and Upper private beta organizations and applications.

Required in the API payload. Wire name: customer_selected_price.



37
38
39
40
41
# File 'lib/inttegro/product/catalog_with_customer_selected_price.rb', line 37

class CatalogWithCustomerSelectedPrice < T::Struct
  const :customer_selected_price, Inttegro::Product::CustomerSelectedPriceInput
  const :product_id, String
  const :quantity, Integer
end

#product_id ⇒ String (readonly)

Existing catalog product ID to snapshot onto the order line item

Required in the API payload. Wire name: product_id.

Returns:

  • (String)


37
38
39
40
41
# File 'lib/inttegro/product/catalog_with_customer_selected_price.rb', line 37

class CatalogWithCustomerSelectedPrice < T::Struct
  const :customer_selected_price, Inttegro::Product::CustomerSelectedPriceInput
  const :product_id, String
  const :quantity, Integer
end

#quantity ⇒ Integer (readonly)

How many units of the catalog product the customer is purchasing

Required in the API payload. Wire name: quantity.

Returns:

  • (Integer)


37
38
39
40
41
# File 'lib/inttegro/product/catalog_with_customer_selected_price.rb', line 37

class CatalogWithCustomerSelectedPrice < T::Struct
  const :customer_selected_price, Inttegro::Product::CustomerSelectedPriceInput
  const :product_id, String
  const :quantity, Integer
end