class Dhl::Bcs::V2::Location
a location is one of Address
, Packstation
, Postfiliale
or ParcelShop
they have some properties in common
Constants
- PROPERTIES
Public Instance Methods
to_soap_hash()
click to toggle source
# File lib/dhl/bcs/v2/location.rb, line 11 def to_soap_hash { 'cis:zip' => zip, 'cis:city' => city, 'cis:Origin' => {}.tap { |h| h['cis:country'] = country if country h['cis:countryISOCode'] = country_code if country_code h['cis:state'] = state if state } } end