Class: Inttegro::Order::ProductLineItemProduct
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Order::ProductLineItemProduct
- Defined in:
- lib/inttegro/order/product_line_item_product.rb
Overview
Typed representation of the product line item product 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
-
#about ⇒ String?
readonly
Value of the
aboutfield in the Inttegro API payload. -
#category ⇒ String?
readonly
Value of the
categoryfield in the Inttegro API payload. -
#custom_data ⇒ Inttegro::CustomData?
readonly
Merchant-defined string values attached to a resource.
-
#id ⇒ String
readonly
Immutable order-line identifier with the
oli_prefix. -
#name ⇒ String
readonly
Value of the
namefield in the Inttegro API payload. -
#price ⇒ Inttegro::Price
readonly
An inline price returned by the API.
-
#price_id ⇒ String?
readonly
Source catalog price ID when this line snapshots a saved price.
-
#product_id ⇒ String?
readonly
Source catalog product ID when this line snapshots a catalog product.
-
#quantity ⇒ Integer
readonly
Value of the
quantityfield in the Inttegro API payload. -
#reference ⇒ String?
readonly
Value of the
referencefield in the Inttegro API payload. -
#tax_code ⇒ String?
readonly
Value of the
tax_codefield in the Inttegro API payload. -
#type ⇒ String?
readonly
Value of the
typefield in the Inttegro API payload.
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.
92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/inttegro/order/product_line_item_product.rb', line 92 class ProductLineItemProduct < T::Struct const :id, String const :product_id, T.nilable(String), default: nil const :price_id, T.nilable(String), default: nil const :reference, T.nilable(String), default: nil const :about, T.nilable(String), default: nil const :custom_data, T.nilable(Inttegro::CustomData), default: nil const :tax_code, T.nilable(String), default: nil const :name, String const :category, T.nilable(String), default: nil const :type, T.nilable(String), default: nil const :price, Inttegro::Price const :quantity, Integer 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.
92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/inttegro/order/product_line_item_product.rb', line 92 class ProductLineItemProduct < T::Struct const :id, String const :product_id, T.nilable(String), default: nil const :price_id, T.nilable(String), default: nil const :reference, T.nilable(String), default: nil const :about, T.nilable(String), default: nil const :custom_data, T.nilable(Inttegro::CustomData), default: nil const :tax_code, T.nilable(String), default: nil const :name, String const :category, T.nilable(String), default: nil const :type, T.nilable(String), default: nil const :price, Inttegro::Price const :quantity, Integer end |
#custom_data ⇒ Inttegro::CustomData? (readonly)
Merchant-defined string values attached to a resource. SDKs expose this as a semantic collection rather than a raw map.
Optional in the API payload; omitted values default to nil. Wire name: custom_data.
92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/inttegro/order/product_line_item_product.rb', line 92 class ProductLineItemProduct < T::Struct const :id, String const :product_id, T.nilable(String), default: nil const :price_id, T.nilable(String), default: nil const :reference, T.nilable(String), default: nil const :about, T.nilable(String), default: nil const :custom_data, T.nilable(Inttegro::CustomData), default: nil const :tax_code, T.nilable(String), default: nil const :name, String const :category, T.nilable(String), default: nil const :type, T.nilable(String), default: nil const :price, Inttegro::Price const :quantity, Integer end |
#id ⇒ String (readonly)
Immutable order-line identifier with the oli_ prefix.
Required in the API payload. Wire name: id.
92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/inttegro/order/product_line_item_product.rb', line 92 class ProductLineItemProduct < T::Struct const :id, String const :product_id, T.nilable(String), default: nil const :price_id, T.nilable(String), default: nil const :reference, T.nilable(String), default: nil const :about, T.nilable(String), default: nil const :custom_data, T.nilable(Inttegro::CustomData), default: nil const :tax_code, T.nilable(String), default: nil const :name, String const :category, T.nilable(String), default: nil const :type, T.nilable(String), default: nil const :price, Inttegro::Price const :quantity, Integer end |
#name ⇒ String (readonly)
Value of the name field in the Inttegro API payload.
Required in the API payload. Wire name: name.
92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/inttegro/order/product_line_item_product.rb', line 92 class ProductLineItemProduct < T::Struct const :id, String const :product_id, T.nilable(String), default: nil const :price_id, T.nilable(String), default: nil const :reference, T.nilable(String), default: nil const :about, T.nilable(String), default: nil const :custom_data, T.nilable(Inttegro::CustomData), default: nil const :tax_code, T.nilable(String), default: nil const :name, String const :category, T.nilable(String), default: nil const :type, T.nilable(String), default: nil const :price, Inttegro::Price const :quantity, Integer end |
#price ⇒ Inttegro::Price (readonly)
An inline price returned by the API.
Required in the API payload. Wire name: price.
92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/inttegro/order/product_line_item_product.rb', line 92 class ProductLineItemProduct < T::Struct const :id, String const :product_id, T.nilable(String), default: nil const :price_id, T.nilable(String), default: nil const :reference, T.nilable(String), default: nil const :about, T.nilable(String), default: nil const :custom_data, T.nilable(Inttegro::CustomData), default: nil const :tax_code, T.nilable(String), default: nil const :name, String const :category, T.nilable(String), default: nil const :type, T.nilable(String), default: nil const :price, Inttegro::Price const :quantity, Integer end |
#price_id ⇒ String? (readonly)
Source catalog price ID when this line snapshots a saved price.
Optional in the API payload; omitted values default to nil. Wire name: price_id.
92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/inttegro/order/product_line_item_product.rb', line 92 class ProductLineItemProduct < T::Struct const :id, String const :product_id, T.nilable(String), default: nil const :price_id, T.nilable(String), default: nil const :reference, T.nilable(String), default: nil const :about, T.nilable(String), default: nil const :custom_data, T.nilable(Inttegro::CustomData), default: nil const :tax_code, T.nilable(String), default: nil const :name, String const :category, T.nilable(String), default: nil const :type, T.nilable(String), default: nil const :price, Inttegro::Price const :quantity, Integer end |
#product_id ⇒ String? (readonly)
Source catalog product ID when this line snapshots a catalog product.
Optional in the API payload; omitted values default to nil. Wire name: product_id.
92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/inttegro/order/product_line_item_product.rb', line 92 class ProductLineItemProduct < T::Struct const :id, String const :product_id, T.nilable(String), default: nil const :price_id, T.nilable(String), default: nil const :reference, T.nilable(String), default: nil const :about, T.nilable(String), default: nil const :custom_data, T.nilable(Inttegro::CustomData), default: nil const :tax_code, T.nilable(String), default: nil const :name, String const :category, T.nilable(String), default: nil const :type, T.nilable(String), default: nil const :price, Inttegro::Price const :quantity, Integer end |
#quantity ⇒ Integer (readonly)
Value of the quantity field in the Inttegro API payload.
Required in the API payload. Wire name: quantity.
92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/inttegro/order/product_line_item_product.rb', line 92 class ProductLineItemProduct < T::Struct const :id, String const :product_id, T.nilable(String), default: nil const :price_id, T.nilable(String), default: nil const :reference, T.nilable(String), default: nil const :about, T.nilable(String), default: nil const :custom_data, T.nilable(Inttegro::CustomData), default: nil const :tax_code, T.nilable(String), default: nil const :name, String const :category, T.nilable(String), default: nil const :type, T.nilable(String), default: nil const :price, Inttegro::Price const :quantity, Integer 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.
92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/inttegro/order/product_line_item_product.rb', line 92 class ProductLineItemProduct < T::Struct const :id, String const :product_id, T.nilable(String), default: nil const :price_id, T.nilable(String), default: nil const :reference, T.nilable(String), default: nil const :about, T.nilable(String), default: nil const :custom_data, T.nilable(Inttegro::CustomData), default: nil const :tax_code, T.nilable(String), default: nil const :name, String const :category, T.nilable(String), default: nil const :type, T.nilable(String), default: nil const :price, Inttegro::Price const :quantity, Integer end |
#tax_code ⇒ String? (readonly)
Value of the tax_code field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: tax_code.
92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/inttegro/order/product_line_item_product.rb', line 92 class ProductLineItemProduct < T::Struct const :id, String const :product_id, T.nilable(String), default: nil const :price_id, T.nilable(String), default: nil const :reference, T.nilable(String), default: nil const :about, T.nilable(String), default: nil const :custom_data, T.nilable(Inttegro::CustomData), default: nil const :tax_code, T.nilable(String), default: nil const :name, String const :category, T.nilable(String), default: nil const :type, T.nilable(String), default: nil const :price, Inttegro::Price const :quantity, Integer 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.
92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/inttegro/order/product_line_item_product.rb', line 92 class ProductLineItemProduct < T::Struct const :id, String const :product_id, T.nilable(String), default: nil const :price_id, T.nilable(String), default: nil const :reference, T.nilable(String), default: nil const :about, T.nilable(String), default: nil const :custom_data, T.nilable(Inttegro::CustomData), default: nil const :tax_code, T.nilable(String), default: nil const :name, String const :category, T.nilable(String), default: nil const :type, T.nilable(String), default: nil const :price, Inttegro::Price const :quantity, Integer end |