class Pohoda::Parsers::Typ::ShipToAddressType

Public Instance Methods

action_type() click to toggle source
# File lib/pohoda/parsers/typ/ship_to_address_type.rb, line 7
def action_type
  submodel_at(Typ::ActionTypeItem, 'typ:actionType')
end
city() click to toggle source
# File lib/pohoda/parsers/typ/ship_to_address_type.rb, line 51
def city
  at 'typ:city'
end
city_attributes() click to toggle source
# File lib/pohoda/parsers/typ/ship_to_address_type.rb, line 55
def city_attributes
  attributes_at 'typ:city'
end
company() click to toggle source
# File lib/pohoda/parsers/typ/ship_to_address_type.rb, line 27
def company
  at 'typ:company'
end
company_attributes() click to toggle source
# File lib/pohoda/parsers/typ/ship_to_address_type.rb, line 31
def company_attributes
  attributes_at 'typ:company'
end
country() click to toggle source
# File lib/pohoda/parsers/typ/ship_to_address_type.rb, line 75
def country
  submodel_at(Typ::RefType, 'typ:country')
end
default_ship_address() click to toggle source
# File lib/pohoda/parsers/typ/ship_to_address_type.rb, line 95
def default_ship_address
  at 'typ:defaultShipAddress'
end
default_ship_address_attributes() click to toggle source
# File lib/pohoda/parsers/typ/ship_to_address_type.rb, line 99
def default_ship_address_attributes
  attributes_at 'typ:defaultShipAddress'
end
division() click to toggle source
# File lib/pohoda/parsers/typ/ship_to_address_type.rb, line 35
def division
  at 'typ:division'
end
division_attributes() click to toggle source
# File lib/pohoda/parsers/typ/ship_to_address_type.rb, line 39
def division_attributes
  attributes_at 'typ:division'
end
email() click to toggle source
# File lib/pohoda/parsers/typ/ship_to_address_type.rb, line 87
def email
  at 'typ:email'
end
email_attributes() click to toggle source
# File lib/pohoda/parsers/typ/ship_to_address_type.rb, line 91
def email_attributes
  attributes_at 'typ:email'
end
ext_id() click to toggle source
# File lib/pohoda/parsers/typ/ship_to_address_type.rb, line 19
def ext_id
  at 'typ:extId'
end
ext_id_attributes() click to toggle source
# File lib/pohoda/parsers/typ/ship_to_address_type.rb, line 23
def ext_id_attributes
  attributes_at 'typ:extId'
end
id() click to toggle source
# File lib/pohoda/parsers/typ/ship_to_address_type.rb, line 11
def id
  at 'typ:id'
end
id_attributes() click to toggle source
# File lib/pohoda/parsers/typ/ship_to_address_type.rb, line 15
def id_attributes
  attributes_at 'typ:id'
end
name() click to toggle source
# File lib/pohoda/parsers/typ/ship_to_address_type.rb, line 43
def name
  at 'typ:name'
end
name_attributes() click to toggle source
# File lib/pohoda/parsers/typ/ship_to_address_type.rb, line 47
def name_attributes
  attributes_at 'typ:name'
end
phone() click to toggle source
# File lib/pohoda/parsers/typ/ship_to_address_type.rb, line 79
def phone
  at 'typ:phone'
end
phone_attributes() click to toggle source
# File lib/pohoda/parsers/typ/ship_to_address_type.rb, line 83
def phone_attributes
  attributes_at 'typ:phone'
end
street() click to toggle source
# File lib/pohoda/parsers/typ/ship_to_address_type.rb, line 59
def street
  at 'typ:street'
end
street_attributes() click to toggle source
# File lib/pohoda/parsers/typ/ship_to_address_type.rb, line 63
def street_attributes
  attributes_at 'typ:street'
end
to_h() click to toggle source
# File lib/pohoda/parsers/typ/ship_to_address_type.rb, line 103
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:action_type] = action_type.to_h if has? 'typ:actionType'
  hash[:id] = id if has? 'typ:id'
  hash[:id_attributes] = id_attributes if has? 'typ:id'
  hash[:ext_id] = ext_id if has? 'typ:extId'
  hash[:ext_id_attributes] = ext_id_attributes if has? 'typ:extId'
  hash[:company] = company if has? 'typ:company'
  hash[:company_attributes] = company_attributes if has? 'typ:company'
  hash[:division] = division if has? 'typ:division'
  hash[:division_attributes] = division_attributes if has? 'typ:division'
  hash[:name] = name if has? 'typ:name'
  hash[:name_attributes] = name_attributes if has? 'typ:name'
  hash[:city] = city if has? 'typ:city'
  hash[:city_attributes] = city_attributes if has? 'typ:city'
  hash[:street] = street if has? 'typ:street'
  hash[:street_attributes] = street_attributes if has? 'typ:street'
  hash[:zip] = zip if has? 'typ:zip'
  hash[:zip_attributes] = zip_attributes if has? 'typ:zip'
  hash[:country] = country.to_h if has? 'typ:country'
  hash[:phone] = phone if has? 'typ:phone'
  hash[:phone_attributes] = phone_attributes if has? 'typ:phone'
  hash[:email] = email if has? 'typ:email'
  hash[:email_attributes] = email_attributes if has? 'typ:email'
  hash[:default_ship_address] = default_ship_address if has? 'typ:defaultShipAddress'
  hash[:default_ship_address_attributes] = default_ship_address_attributes if has? 'typ:defaultShipAddress'

  hash
end
zip() click to toggle source
# File lib/pohoda/parsers/typ/ship_to_address_type.rb, line 67
def zip
  at 'typ:zip'
end
zip_attributes() click to toggle source
# File lib/pohoda/parsers/typ/ship_to_address_type.rb, line 71
def zip_attributes
  attributes_at 'typ:zip'
end