module Epages::REST::Legal

implements the calls in developer.epages.com/apps/api-reference/resource-legal.html

Public Instance Methods

contact_info(options = {}) click to toggle source

implements the call developer.epages.com/apps/api-reference/get-shops-shopid-legal-contact-information.html

# File lib/epages/rest/legal.rb, line 16
def contact_info(options = {})
  response = perform_get_request('/legal/contact-information', options)
  underscorize_keys(response)
end
privacy_policy(options = {}) click to toggle source

implements the call developer.epages.com/apps/api-reference/get-shops-shopid-legal-privacy-policy.html

# File lib/epages/rest/legal.rb, line 29
def privacy_policy(options = {})
  response = perform_get_request('/legal/privacy-policy', options)
  underscorize_keys(response)
end
rights_of_withdrawal(options = {}) click to toggle source

implements the call developer.epages.com/apps/api-reference/get-shops-shopid-legal-rights-of-withdrawal.html

# File lib/epages/rest/legal.rb, line 55
def rights_of_withdrawal(options = {})
  response = perform_get_request('/legal/rights-of-withdrawal', options)
  underscorize_keys(response)
end
shipping_info(options = {}) click to toggle source

implements the call developer.epages.com/apps/api-reference/get-shops-shopid-legal-shipping-information.html

# File lib/epages/rest/legal.rb, line 68
def shipping_info(options = {})
  response = perform_get_request('/legal/shipping-information', options)
  underscorize_keys(response)
end
terms_and_conditions(options = {}) click to toggle source

implements the call developer.epages.com/apps/api-reference/get-shops-shopid-legal-terms-and-conditions.html

# File lib/epages/rest/legal.rb, line 42
def terms_and_conditions(options = {})
  response = perform_get_request('/legal/terms-and-conditions', options)
  underscorize_keys(response)
end
update_contact_info(options, locale = 'en_GB') click to toggle source

implements the call developer.epages.com/apps/api-reference/put-shops-shopid-legal-contact-information.html

# File lib/epages/rest/legal.rb, line 22
def update_contact_info(options, locale = 'en_GB')
  old_data = contact_info(locale: locale)
  response = perform_put_request("/legal/contact-information?locale=#{locale}", old_data.merge(options))
  underscorize_keys(response)
end
update_privacy_policy(options, locale = 'en_GB') click to toggle source

implements the call developer.epages.com/apps/api-reference/put-shops-shopid-legal-privacy-policy.html

# File lib/epages/rest/legal.rb, line 35
def update_privacy_policy(options, locale = 'en_GB')
  old_data = privacy_policy(locale: locale)
  response = perform_put_request("/legal/privacy-policy?locale=#{locale}", old_data.merge(options))
  underscorize_keys(response)
end
update_rights_of_withdrawal(options, locale = 'en_GB') click to toggle source

implements the call developer.epages.com/apps/api-reference/put-shops-shopid-legal-rights-of-withdrawal.html

# File lib/epages/rest/legal.rb, line 61
def update_rights_of_withdrawal(options, locale = 'en_GB')
  old_data = rights_of_withdrawal(locale: locale)
  response = perform_put_request("/legal/rights-of-withdrawal?locale=#{locale}", old_data.merge(options))
  underscorize_keys(response)
end
update_shipping_info(options, locale = 'en_GB') click to toggle source

implements the call developer.epages.com/apps/api-reference/put-shops-shopid-legal-shipping-information.html

# File lib/epages/rest/legal.rb, line 74
def update_shipping_info(options, locale = 'en_GB')
  old_data = shipping_info(locale: locale)
  response = perform_put_request("/legal/shipping-information?locale=#{locale}", old_data.merge(options))
  underscorize_keys(response)
end
update_terms_and_conditions(options, locale = 'en_GB') click to toggle source

implements the call developer.epages.com/apps/api-reference/put-shops-shopid-legal-terms-and-conditions.html

# File lib/epages/rest/legal.rb, line 48
def update_terms_and_conditions(options, locale = 'en_GB')
  old_data = terms_and_conditions(locale: locale)
  response = perform_put_request("/legal/terms-and-conditions?locale=#{locale}", old_data.merge(options))
  underscorize_keys(response)
end