Class: Inttegro::Product::CatalogWithPriceReference
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Product::CatalogWithPriceReference
- Defined in:
- lib/inttegro/product/catalog_with_price_reference.rb
Overview
Typed representation of the catalog with price reference 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_id ⇒ String
readonly
Existing product price to snapshot onto the order line item.
-
#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_id ⇒ String (readonly)
Existing product price to snapshot onto the order line item. It must belong to the same application and product.
Required in the API payload. Wire name: price_id.
36 37 38 39 40 |
# File 'lib/inttegro/product/catalog_with_price_reference.rb', line 36 class CatalogWithPriceReference < T::Struct const :price_id, String 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_reference.rb', line 36 class CatalogWithPriceReference < T::Struct const :price_id, String 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_reference.rb', line 36 class CatalogWithPriceReference < T::Struct const :price_id, String const :product_id, String const :quantity, Integer end |