Class: Inttegro::Checkout::OrderLineItemAmountSelection

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/checkout/order_line_item_amount_selection.rb

Overview

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

Product line-item ID whose amount should be changed.

Required in the API payload. Wire name: id.

Returns:

  • (String)


30
31
32
33
# File 'lib/inttegro/checkout/order_line_item_amount_selection.rb', line 30

class OrderLineItemAmountSelection < T::Struct
  const :id, String
  const :selected_amount, Inttegro::Checkout::SelectedAmount
end

#selected_amount ⇒ Inttegro::Checkout::SelectedAmount (readonly)

Value of the selected_amount field in the Inttegro API payload.

Required in the API payload. Wire name: selected_amount.



30
31
32
33
# File 'lib/inttegro/checkout/order_line_item_amount_selection.rb', line 30

class OrderLineItemAmountSelection < T::Struct
  const :id, String
  const :selected_amount, Inttegro::Checkout::SelectedAmount
end