Class: Inttegro::Product::CatalogWithPriceData
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Product::CatalogWithPriceData
- Defined in:
- lib/inttegro/product/catalog_with_price_data.rb
Overview
Typed representation of the catalog with price data 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
-
#price ⇒ Inttegro::Price::PriceParams
readonly
An inline price supplied in a request.
-
#product_id ⇒ String
readonly
Existing catalog product ID to snapshot onto the order line item.
-
#quantity ⇒ Integer
readonly
How many units of the catalog product the customer is purchasing.
Instance Attribute Details
#price ⇒ Inttegro::Price::PriceParams (readonly)
An inline price supplied in a request.
Required in the API payload. Wire name: price.
36 37 38 39 40 |
# File 'lib/inttegro/product/catalog_with_price_data.rb', line 36 class CatalogWithPriceData < T::Struct const :price, Inttegro::Price::PriceParams 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.
36 37 38 39 40 |
# File 'lib/inttegro/product/catalog_with_price_data.rb', line 36 class CatalogWithPriceData < T::Struct const :price, Inttegro::Price::PriceParams 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.
36 37 38 39 40 |
# File 'lib/inttegro/product/catalog_with_price_data.rb', line 36 class CatalogWithPriceData < T::Struct const :price, Inttegro::Price::PriceParams const :product_id, String const :quantity, Integer end |