Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegPhenomenon committed Nov 25, 2024
1 parent 6d810bb commit 64d9ed4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/interactions/actions/contact_create.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,15 @@ def maybe_company_is_relevant
# company_status = contact.return_company_status
# Rails.logger.info "company_status: #{company_status}"

CompanyRegister.configure do |config|
config.username = ENV['company_register_username']
config.password = ENV['company_register_password']
config.cache_period = ENV['company_register_cache_period_days'].to_i.days
config.test_mode = ENV['company_register_test_mode'] == 'true'
end

Rails.logger.info "CompanyRegister.configure: #{CompanyRegister.configuration.inspect}"

company_register = CompanyRegister::Client.new
res = company_register.simple_data(registration_number: ident.to_s)
Rails.logger.info "res: #{res.inspect}"
Expand Down

0 comments on commit 64d9ed4

Please sign in to comment.