Mode all the actions to Interactions folder

This commit is contained in:
Alex Sherman 2021-02-08 17:44:15 +05:00 committed by Karl Erik Õunapuu
parent d7f01f24a2
commit fdef27c45e
No known key found for this signature in database
GPG key ID: C9DD647298A34764
18 changed files with 20 additions and 20 deletions

View file

@ -23,7 +23,7 @@ module Epp
@contact = Epp::Contact.new(params[:parsed_frame], current_user.registrar)
collected_data = ::Deserializers::Xml::ContactCreate.new(params[:parsed_frame])
action = ::Actions::ContactCreate.new(@contact, collected_data.legal_document,
action = Actions::ContactCreate.new(@contact, collected_data.legal_document,
collected_data.ident)
action_call_response(action: action)
@ -33,7 +33,7 @@ module Epp
authorize! :update, @contact, @password
collected_data = ::Deserializers::Xml::ContactUpdate.new(params[:parsed_frame])
action = ::Actions::ContactUpdate.new(@contact,
action = Actions::ContactUpdate.new(@contact,
collected_data.contact,
collected_data.legal_document,
collected_data.ident,
@ -44,7 +44,7 @@ module Epp
def delete
authorize! :delete, @contact, @password
action = ::Actions::ContactDelete.new(@contact, params[:legal_document])
action = Actions::ContactDelete.new(@contact, params[:legal_document])
unless action.call
handle_errors(@contact)
return

View file

@ -32,7 +32,7 @@ module Epp
registrar_id = current_user.registrar.id
@domain = Epp::Domain.new
data = ::Deserializers::Xml::DomainCreate.new(params[:parsed_frame], registrar_id).call
action = ::Actions::DomainCreate.new(@domain, data)
action = Actions::DomainCreate.new(@domain, data)
action.call ? render_epp_response('/epp/domains/create') : handle_errors(@domain)
end
@ -43,7 +43,7 @@ module Epp
registrar_id = current_user.registrar.id
update_params = ::Deserializers::Xml::DomainUpdate.new(params[:parsed_frame],
registrar_id).call
action = ::Actions::DomainUpdate.new(@domain, update_params, false)
action = Actions::DomainUpdate.new(@domain, update_params, false)
(handle_errors(@domain) and return) unless action.call
pending = @domain.epp_pending_update.present?
@ -54,7 +54,7 @@ module Epp
authorize!(:delete, @domain, @password)
frame = params[:parsed_frame]
delete_params = ::Deserializers::Xml::DomainDelete.new(frame).call
action = ::Actions::DomainDelete.new(@domain, delete_params, current_user.registrar)
action = Actions::DomainDelete.new(@domain, delete_params, current_user.registrar)
(handle_errors(@domain) and return) unless action.call
@ -77,7 +77,7 @@ module Epp
registrar_id = current_user.registrar.id
renew_params = ::Deserializers::Xml::Domain.new(params[:parsed_frame],
registrar_id).call
action = ::Actions::DomainRenew.new(@domain, renew_params, current_user.registrar)
action = Actions::DomainRenew.new(@domain, renew_params, current_user.registrar)
if action.call
render_epp_response '/epp/domains/renew'
else