Class: Inttegro::Refund::OrderProductLineItemProduct

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/refund/order_product_line_item_product.rb

Overview

Typed representation of the order 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

Instance Attribute Details

#id ⇒ String? (readonly)

Source catalog product identifier. Omitted for inline products.

Optional in the API payload; omitted values default to nil. Wire name: id.

Returns:

  • (String, nil)


29
30
31
32
# File 'lib/inttegro/refund/order_product_line_item_product.rb', line 29

class OrderProductLineItemProduct < T::Struct
  const :id, T.nilable(String), default: nil
  const :name, String
end

#name ⇒ String (readonly)

Product name captured on the order.

Required in the API payload. Wire name: name.

Returns:

  • (String)


29
30
31
32
# File 'lib/inttegro/refund/order_product_line_item_product.rb', line 29

class OrderProductLineItemProduct < T::Struct
  const :id, T.nilable(String), default: nil
  const :name, String
end