Platoniq/decidim-module-odoo

View on GitHub
lib/decidim/odoo/api/find_partner_by_vat.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Decidim
  module Odoo
    module Api
      class FindPartnerByVat < Base::BaseQuery
        def initialize(vat)
          @request = Base::Request.get("partner", params: { vat: vat })

          store_result
        end

        protected

        def parsed_response
          response
        end
      end
    end
  end
end