added billing staging endpoint

This commit is contained in:
olegphenomenon 2022-02-07 11:16:43 +02:00
parent 5e0d1ff619
commit 61c90b73ca
4 changed files with 26 additions and 4 deletions

View file

@ -1,5 +1,10 @@
TOKEN = ENV['eis_token']
BASE_URL = ENV['eis_billing_system_base_url']
BASE_URL = ""
if Rails.env.staging?
BASE_URL = ENV['eis_billing_system_base_url_staging']
else
BASE_URL = ENV['eis_billing_system_base_url_dev']
end
namespace :eis_billing do
desc 'One time task to export invoice data to billing system'