Class: Inttegro::Refund::OrderProductLineItem

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

Overview

Typed representation of the order product line item 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)

Immutable order-line identifier with the oli_ prefix.

Required in the API payload. Wire name: id.

Returns:

  • (String)


43
44
45
46
47
48
# File 'lib/inttegro/refund/order_product_line_item.rb', line 43

class OrderProductLineItem < T::Struct
  const :id, String
  const :type, Inttegro::Refund::OrderProductLineItemType
  const :quantity, Integer
  const :product, Inttegro::Refund::OrderProductLineItemProduct
end

#product ⇒ Inttegro::Refund::OrderProductLineItemProduct (readonly)

Value of the product field in the Inttegro API payload.

Required in the API payload. Wire name: product.



43
44
45
46
47
48
# File 'lib/inttegro/refund/order_product_line_item.rb', line 43

class OrderProductLineItem < T::Struct
  const :id, String
  const :type, Inttegro::Refund::OrderProductLineItemType
  const :quantity, Integer
  const :product, Inttegro::Refund::OrderProductLineItemProduct
end

#quantity ⇒ Integer (readonly)

Value of the quantity field in the Inttegro API payload.

Required in the API payload. Wire name: quantity.

Returns:

  • (Integer)


43
44
45
46
47
48
# File 'lib/inttegro/refund/order_product_line_item.rb', line 43

class OrderProductLineItem < T::Struct
  const :id, String
  const :type, Inttegro::Refund::OrderProductLineItemType
  const :quantity, Integer
  const :product, Inttegro::Refund::OrderProductLineItemProduct
end

#type ⇒ Inttegro::Refund::OrderProductLineItemType (readonly)

Value of the type field in the Inttegro API payload.

Required in the API payload. Wire name: type.



43
44
45
46
47
48
# File 'lib/inttegro/refund/order_product_line_item.rb', line 43

class OrderProductLineItem < T::Struct
  const :id, String
  const :type, Inttegro::Refund::OrderProductLineItemType
  const :quantity, Integer
  const :product, Inttegro::Refund::OrderProductLineItemProduct
end