Class: Portage::Ucp::ShippingDestination

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

Overview

schemas/shopping/types/shipping_destination.json — postal_address plus a destination id (one of fulfillment.json's two FulfillmentDestination shapes, alongside RetailLocation below).

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#addressObject (readonly)

Returns the value of attribute address

Returns:

  • (Object)

    the current value of address



257
258
259
# File 'lib/portage/ucp/value_objects.rb', line 257

def address
  @address
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



257
258
259
# File 'lib/portage/ucp/value_objects.rb', line 257

def id
  @id
end

Instance Method Details

#to_wire_hObject



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

def to_wire_h = address.to_wire_h.merge("id" => id)