mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 06:34:46 +02:00
Mode all the actions to Interactions folder
This commit is contained in:
parent
d7f01f24a2
commit
fdef27c45e
18 changed files with 20 additions and 20 deletions
|
@ -35,7 +35,7 @@ module Repp
|
|||
desc 'Create a new contact'
|
||||
def create
|
||||
@contact = Epp::Contact.new(contact_params_with_address, current_user.registrar, epp: false)
|
||||
action = ::Actions::ContactCreate.new(@contact, params[:legal_document],
|
||||
action = Actions::ContactCreate.new(@contact, params[:legal_document],
|
||||
contact_ident_params)
|
||||
|
||||
unless action.call
|
||||
|
@ -49,7 +49,7 @@ module Repp
|
|||
api :PUT, '/repp/v1/contacts/:contact_code'
|
||||
desc 'Update existing contact'
|
||||
def update
|
||||
action = ::Actions::ContactUpdate.new(@contact, contact_params_with_address(required: false),
|
||||
action = Actions::ContactUpdate.new(@contact, contact_params_with_address(required: false),
|
||||
params[:legal_document],
|
||||
contact_ident_params(required: false), current_user)
|
||||
|
||||
|
@ -64,7 +64,7 @@ module Repp
|
|||
api :DELETE, '/repp/v1/contacts/:contact_code'
|
||||
desc 'Delete a specific contact'
|
||||
def destroy
|
||||
action = ::Actions::ContactDelete.new(@contact, params[:legal_document])
|
||||
action = Actions::ContactDelete.new(@contact, params[:legal_document])
|
||||
unless action.call
|
||||
handle_errors(@contact)
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue