mirror of
https://github.com/internetee/registry.git
synced 2025-07-30 22:46:22 +02:00
refactoring
This commit is contained in:
parent
8812f8da22
commit
363dd8370f
4 changed files with 7 additions and 2 deletions
|
@ -11,7 +11,11 @@ module EisBilling
|
||||||
registrar = invoice.buyer
|
registrar = invoice.buyer
|
||||||
bank.create_activity(registrar, invoice)
|
bank.create_activity(registrar, invoice)
|
||||||
|
|
||||||
render status: :ok
|
respond_to do |format|
|
||||||
|
format.json do
|
||||||
|
render status: :ok, content_type: 'application/json', layout: false, json: { message: 'ok' }
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
|
@ -21,6 +21,7 @@ class DirectoInvoiceForwardTwoJob < ApplicationJob
|
||||||
Rails.logger.info "[DIRECTO] Invoice #{invoice.number} has been skipped"
|
Rails.logger.info "[DIRECTO] Invoice #{invoice.number} has been skipped"
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
|
|
||||||
collected_data << invoice.as_directo_json
|
collected_data << invoice.as_directo_json
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
0
app/views/eis_billing/update.json.erb
Normal file
0
app/views/eis_billing/update.json.erb
Normal file
|
@ -12,7 +12,7 @@ Rails.application.routes.draw do
|
||||||
end
|
end
|
||||||
|
|
||||||
namespace :eis_billing do
|
namespace :eis_billing do
|
||||||
put '/payment_status', to: 'payment_status#update', as: 'payment_status'
|
put '/payment_status', to: 'payment_status#update', as: 'payment_status', :format => false, :defaults => { :format => 'json' }
|
||||||
put '/directo_response', to: 'directo_response#update', as: 'directo_response'
|
put '/directo_response', to: 'directo_response#update', as: 'directo_response'
|
||||||
put '/e_invoice_response', to: 'e_invoice_response#update', as: 'e_invoice_response'
|
put '/e_invoice_response', to: 'e_invoice_response#update', as: 'e_invoice_response'
|
||||||
post '/lhv_connect_transactions', to: 'lhv_connect_transactions#create', as: 'lhv_connect_transactions'
|
post '/lhv_connect_transactions', to: 'lhv_connect_transactions#create', as: 'lhv_connect_transactions'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue