mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 21:46:24 +02:00
Add phone number validation for Estonian organization contacts
- Add OrgRegistrantPhoneCheckerJob execution for contact creation and update - Rename validate_* methods to maybe_validate_* for consistency - Add tests for phone number validation in REPP API - Fix method naming and add proper job arguments This ensures phone numbers are validated against company register data for Estonian organization contacts after creation or update.
This commit is contained in:
parent
429e2644d6
commit
803276d8c8
6 changed files with 73 additions and 8 deletions
|
@ -94,7 +94,6 @@ module Repp
|
|||
action = Actions::ContactUpdate.new(@contact, contact_params_with_address(required: false),
|
||||
contact_params[:legal_document],
|
||||
contact_ident_params(required: false), current_user)
|
||||
|
||||
unless action.call
|
||||
handle_errors(@contact)
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue