Class: Portage::Ucp::UnavailableReorderItem

Inherits:
Data
  • Object
show all
Defined in:
lib/portage/ucp/value_objects.rb

Overview

Portage extension (see Adapter#reorder / Capabilities::REORDER) — no schemas/ counterpart to cite, since it isn't part of the UCP spec. reason is a short adapter-chosen string (e.g. "out_of_stock", "discontinued"), not a closed enum — same posture as Adapter#cancel_order's reason:.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#item_id ⇒ Object (readonly)

Returns the value of attribute item_id

Returns:

  • (Object) —

    the current value of item_id



529
530
531
# File 'lib/portage/ucp/value_objects.rb', line 529

def item_id
  @item_id
end

#reason ⇒ Object (readonly)

Returns the value of attribute reason

Returns:

  • (Object) —

    the current value of reason



529
530
531
# File 'lib/portage/ucp/value_objects.rb', line 529

def reason
  @reason
end

#title ⇒ Object (readonly)

Returns the value of attribute title

Returns:

  • (Object) —

    the current value of title



529
530
531
# File 'lib/portage/ucp/value_objects.rb', line 529

def title
  @title
end

Instance Method Details

#to_wire_h ⇒ Object



530
# File 'lib/portage/ucp/value_objects.rb', line 530

def to_wire_h = { "item_id" => item_id, "title" => title, "reason" => reason }