werein/prestashop

View on GitHub
lib/prestashop/mapper/models/tax_rule.rb

Summary

Maintainability
A
0 mins
Test Coverage
using Prestashop::Mapper::Refinement
module Prestashop
  module Mapper
    class TaxRule < Model
      resource :tax_rules
      model :tax_rule

      class << self
        def get_by_id_country id 
          where 'filter[id_country]' => id, display: 'full'
        end
      end
    end
  end
end