class Object
Public Instance Methods
address_structure()
click to toggle source
# File lib/dhl/examples.rb, line 158 def address_structure { street_lines: 'Loc Bellocchi 68B', city: 'Fano', postal_code: '61032', country_code: 'IT', street_name: 'Loc Bellocchi', # Optional street_number: '68B', # Optional # street_lines_2: '', # Optional # street_lines_3: '', # Optional state_or_province_code: 'PU' # Optional } end
contact_structure()
click to toggle source
# File lib/dhl/examples.rb, line 187 def contact_structure { contact: { person_name: 'Alessandro Mencarini', company_name: 'freego', phone_number: '+391234567890', email_address: 'a.mencarini@freegoweb.it' # Optional }, address: address_structure } end
recipient_address_structure()
click to toggle source
# File lib/dhl/examples.rb, line 172 def recipient_address_structure { street_lines: 'via Stephenson 48', city: 'Milano', postal_code: '20028', country_code: 'IT', street_name: 'via Stephenson', # Optional street_number: '48', # Optional # street_lines_2: '', # Optional # street_lines_3: '', # Optional state_or_province_code: 'MI' # Optional } end
recipient_contact_structure()
click to toggle source
# File lib/dhl/examples.rb, line 198 def recipient_contact_structure { contact: { person_name: 'Maurizio de Magnis', company_name: 'Momit', phone_number: '+390987654321', email_address: 'maurizio.demagnis@momit.it' # Optional }, address: recipient_address_structure } end