class Prestashop::Mapper::Tax
Public Class Methods
get_by_country(iso_code)
click to toggle source
# File lib/prestashop/mapper/models/tax.rb, line 17 def get_by_country iso_code id_country = Country.find_by iso_code: iso_code get_by_id_country id_country end
get_by_id_country(id)
click to toggle source
# File lib/prestashop/mapper/models/tax.rb, line 9 def get_by_id_country id taxes = {} TaxRule.get_by_id_country(id).each do |value| taxes[find(value[:id_tax])[:rate].to_i.to_s] = value[:id_tax_rules_group] end taxes end