Class: Dhl::Bcs::V2::Address

Inherits:
Location show all
Defined in:
lib/dhl/bcs/v2/address.rb

Constant Summary collapse

ADD_PROPS =
%i(company company_addition street_name street_number address_addition dispatching_information).freeze
PROPERTIES =
Location::PROPERTIES + ADD_PROPS

Instance Method Summary collapse

Methods included from Buildable

included, #initialize

Instance Method Details

#to_soap_hashObject



8
9
10
11
12
13
14
15
16
17
# File 'lib/dhl/bcs/v2/address.rb', line 8

def to_soap_hash
  h = {}
  h['cis:name2'] = company if company
  h['cis:name3'] = company_addition if company_addition
  h['cis:streetName'] = street_name
  h['cis:streetNumber'] = street_number
  h['cis:addressAddition'] = address_addition if address_addition
  h['cis:dispatchingInformation'] = dispatching_information if dispatching_information
  h.merge(super)
end