refactoring

This commit is contained in:
olegphenomenon 2022-03-29 14:07:36 +03:00
parent 29e7f954f3
commit 9856a2a5c0
10 changed files with 31 additions and 33 deletions

View file

@ -1,4 +1,4 @@
BASE_URL = ENV['eis_billing_system_base_url']
BASE_URL = ENV['eis_billing_system_base_url'] || 'https://st-billing.infra.tld.ee'
INITIATOR = 'registry'.freeze
namespace :eis_billing do
@ -9,7 +9,7 @@ namespace :eis_billing do
parsed_data << {
invoice_number: invoice.number,
initiator: 'registry',
transaction_amount: invoice.total
transaction_amount: invoice.total,
}
end
@ -22,7 +22,7 @@ namespace :eis_billing do
Registrar.all.each do |registrar|
parsed_data << {
reference_number: registrar.reference_no,
initiator: 'registry'
initiator: 'registry',
}
end