Class: Portage::Ucp::ShippingDestination
- Inherits:
-
Data
- Object
- Data
- Portage::Ucp::ShippingDestination
- 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
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address
257 258 259 |
# File 'lib/portage/ucp/value_objects.rb', line 257 def address @address end |
#id ⇒ Object (readonly)
Returns the value of attribute id
257 258 259 |
# File 'lib/portage/ucp/value_objects.rb', line 257 def id @id end |
Instance Method Details
#to_wire_h ⇒ Object
258 |
# File 'lib/portage/ucp/value_objects.rb', line 258 def to_wire_h = address.to_wire_h.merge("id" => id) |