Class: Inttegro::Refund::OrderFeeLineItem

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

Overview

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

#fee ⇒ Inttegro::Refund::OrderFeeLineItemFee (readonly)

Value of the fee field in the Inttegro API payload.

Required in the API payload. Wire name: fee.



37
38
39
40
41
# File 'lib/inttegro/refund/order_fee_line_item.rb', line 37

class OrderFeeLineItem < T::Struct
  const :id, String
  const :type, Inttegro::Refund::OrderFeeLineItemType
  const :fee, Inttegro::Refund::OrderFeeLineItemFee
end

#id ⇒ String (readonly)

Immutable order-line identifier with the oli_ prefix.

Required in the API payload. Wire name: id.

Returns:

  • (String)


37
38
39
40
41
# File 'lib/inttegro/refund/order_fee_line_item.rb', line 37

class OrderFeeLineItem < T::Struct
  const :id, String
  const :type, Inttegro::Refund::OrderFeeLineItemType
  const :fee, Inttegro::Refund::OrderFeeLineItemFee
end

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

Value of the type field in the Inttegro API payload.

Required in the API payload. Wire name: type.



37
38
39
40
41
# File 'lib/inttegro/refund/order_fee_line_item.rb', line 37

class OrderFeeLineItem < T::Struct
  const :id, String
  const :type, Inttegro::Refund::OrderFeeLineItemType
  const :fee, Inttegro::Refund::OrderFeeLineItemFee
end