Commit graph

3122 commits

Author SHA1 Message Date
Timo Võhmar
38dc5466e9
Merge pull request #2723 from internetee/company-validator-during-creation
feat: restore company validation for Estonian organizations
2025-02-12 10:33:28 +02:00
oleghasjanov
2d103bda99 fix: improve admin contact validation messages
- Update error message for missing admin contact to be more concise
- Standardize admin contact validation message for invalid ident type
- Remove redundant error message formatting

The changes make admin contact validation messages more consistent
throughout the application, using "Admin contact" terminology instead
of "Administrative contact" for better clarity and consistency.
2025-02-05 11:53:56 +02:00
oleghasjanov
a56237c84f fix: update admin contact validation error code
- Change error code from 2004 to 2306 for admin contact validation
- Add explicit validation check for required admin contacts
- Update tests to expect new error code

The error code 2306 better reflects the EPP standard for policy-based
validation failures. This change makes the error handling more consistent
with EPP specifications when validating admin contact requirements.
2025-02-05 10:54:21 +02:00
oleghasjanov
9d036f9af3 added virtual attribute for skip whois update 2025-02-03 14:08:50 +02:00
oleghasjanov
38fdc35496 Remove extra update 2025-02-03 14:08:50 +02:00
oleghasjanov
2ec545b3aa feat: add status notes to force delete notifications
- Add notes parameter to force delete interactions to provide more context
- Include company registry status in force delete notifications
- Add status mapping constants for better readability
- Move status note assignment before save in force delete process

Technical details:
- Add notes field to Domains::ForceDelete::Base interaction
- Update force delete notifications to include status notes
- Add REGISTRY_STATUSES mapping in CompanyRegisterStatusJob
- Update tests to verify new notification format
2025-02-03 14:08:50 +02:00
oleghasjanov
45c77f7052 fix: improve company registry data processing
- Switch company_register branch to issues-with-upcoming-data
- Convert ident to string when querying company data
- Add extended logging in CompanyRegisterStatusJob
- Disable automatic merging in renovate.json

Technical changes:
- Update dependencies: date, net-protocol, net-smtp, timeout
2025-02-03 14:08:48 +02:00
oleghasjanov
f2978599b4 feat: add admin contact ident type validation
- Add new setting for allowed admin contact ident types
- Add validation for admin contact ident types on domain create/update
- Add UI controls for managing allowed ident types
- Add tests for new validation rules
- Update domain model to respect new settings

The changes allow configuring which identification types (private person,
organization, birthday) are allowed for administrative contacts. This is
enforced when creating new domains or adding new admin contacts.
2025-02-03 13:59:03 +02:00
oleghasjanov
cd5de3bd14 commit
feat: make technical contacts optional for all domains

- Remove automatic tech contact assignment from admin contacts
- Set minimum tech contacts to 0 for all registrant types
- Update tests to reflect optional tech contacts
- Keep max tech contacts limit from settings

This change implements the requirement to make technical contacts optional
for all domain types while maintaining the maximum limit from settings.
Previously tech contacts were required for organizations and automatically
copied from admin contacts.
2025-01-31 15:49:35 +02:00
oleghasjanov
c2affb393f Refactor domain admin contact validation logic
- Remove validate_admin_contact_type validation
- Extract age calculation logic into separate methods
- Add helper methods for Estonian ID and birthday age checks
- Improve code organization and readability
- Split complex require_admin_contacts? method into smaller methods
2025-01-31 13:01:00 +02:00
oleghasjanov
863dcce647 Add admin contact validation rules based on registrant type and age
- Add validation requiring admin contacts for legal entity registrants
- Add validation requiring admin contacts for underage private registrants:
  - Under 18 years old for birthday-based identification
  - Under 18 years old for Estonian ID numbers
- Make admin contacts optional for:
  - Adult private registrants (18+ years)
  - Adult Estonian ID holders
  - Non-Estonian private registrants
- Add tests covering all new validation scenarios
- Add helper methods to calculate age and parse Estonian ID birth dates
2025-01-31 12:49:14 +02:00
oleghasjanov
3c169bb00b Make admin contacts optional for private registrants
This change makes admin contacts optional for private registrants while keeping them mandatory for organizations. The changes include:

- Updated Domain model validations to make admin and tech contacts optional (min=0) for private registrants
- Added validation rules methods to handle different requirements based on registrant type
- Modified EPP domain creation to support domains without admin contacts for private registrants
- Updated attach_default_contacts to skip adding contacts for private registrants
- Added comprehensive test coverage for:
  - Domain model validations with private/org registrants
  - EPP domain creation without admin contacts for private registrants
  - REPP API contact management for private registrants

This implements the requirement to make admin contacts optional for private registrations of .ee domains while maintaining the existing validation rules for organizations.
2025-01-07 12:24:57 +02:00
Timo Võhmar
1a063fb1ae
Merge pull request #2666 from internetee/2665-fix-expired-status
Manage domain auto expiry status
2024-12-31 10:52:11 +02:00
oleghasjanov
d0a39bf469 remove company creation validation 2024-11-25 14:48:28 +02:00
oleghasjanov
7f6c4f24a6 added more logs 2024-11-25 12:46:46 +02:00
oleghasjanov
88d7689295 changed ident to string 2024-11-25 12:44:01 +02:00
oleghasjanov
95f5acb2b0 change test mode directly 2024-11-25 12:40:09 +02:00
oleghasjanov
cded813955 added details to error message 2024-11-25 12:29:20 +02:00
oleghasjanov
1dd0d29635 added retries 2024-11-25 12:27:13 +02:00
oleghasjanov
748a146fe5 added logs to exception 2024-11-25 12:18:56 +02:00
oleghasjanov
959ac0a9b2 mock method 2024-11-25 12:15:50 +02:00
oleghasjanov
025eb26f3b added logs to company register 2024-11-25 12:11:24 +02:00
tsoganov
637cabf95f Handling contact verifications 2024-11-14 08:37:09 +02:00
oleghasjanov
ba9aeb437d remove logs, fixed company register status job 2024-11-08 12:46:17 +02:00
oleghasjanov
b3ac165bd3 added logs 2024-11-08 12:46:17 +02:00
oleghasjanov
6ff5e55a24 business contact validation + tests 2024-11-08 12:45:12 +02:00
Timo Võhmar
88b49561d2
Merge pull request #2700 from internetee/update-whois-dns-zone-record
dns zone domain names whois handling
2024-10-21 16:24:58 +03:00
oleghasjanov
4e6865332e update status 2024-10-21 14:25:12 +03:00
oleghasjanov
08ce8dbbb3 updated zone domain status 2024-10-21 14:05:52 +03:00
tsoganov
ce01b0847c Fix poll messages crashing 2024-10-15 15:13:46 +03:00
Timo Võhmar
6c9ce3a7a1
Merge pull request #2647 from internetee/change-count-of-validation-contacts
changed count of contact validations
2024-09-04 16:19:35 +03:00
tsoganov
c7d3788a36 Updated contact name data type in schemas 2024-08-22 11:25:54 +03:00
tsoganov
8f878c3573 Manage domain auto expiry status 2024-06-11 14:01:02 +03:00
Oleg Hasjanov
7e6dee7f10 added filter for domains with fd 2024-02-08 15:12:15 +02:00
Oleg Hasjanov
34c14e5bef changed count of contact validations 2024-02-08 15:00:41 +02:00
Timo Võhmar
d47b3f233e
Merge pull request #2625 from internetee/reference-data-get-update
updated request for get reference user data
2024-02-06 15:26:31 +02:00
Oleg Hasjanov
8eee65579b move validator from callback to action interactor and to the api controller 2024-02-02 09:08:04 +02:00
Oleg Hasjanov
f4d276fc44 comment out not relevant tests 2024-02-02 09:08:04 +02:00
Oleg Hasjanov
736d935e3e added test 2024-02-02 09:08:04 +02:00
Oleg Hasjanov
1b8640966c added callback force delete check after email update 2024-02-02 09:08:02 +02:00
Oleg Hasjanov
b5b59026b9 added deadline registration condition during domain registration from auction 2024-01-24 15:17:11 +02:00
Oleg Hasjanov
209bfb6715 new vat rate overwrite olds one in e-invoice 2024-01-12 09:45:19 +02:00
Oleg Hasjanov
6c7abf1123 updated request for get reference user data 2023-10-31 12:42:40 +02:00
Sergei Tsoganov
fe6015491c Updated base_test 2023-07-10 14:40:18 +03:00
Sergei Tsoganov
e00e44c9b8 Modified white ip form and created mailer 2023-07-05 15:28:43 +03:00
Sergei Tsoganov
311834c085 Fixed codeclimate issues 2023-07-04 12:35:31 +03:00
Sergei Tsoganov
5716a536ca Corrected ip addresses comparison 2023-07-04 12:31:36 +03:00
Sergei Tsoganov
537315a8a9 Fixed codeclimate issues 2023-07-04 11:36:26 +03:00
Sergei Tsoganov
97c11f5dfd Added error messages translations to white ips 2023-07-04 11:33:06 +03:00
Sergei Tsoganov
289159bff2 Fixed codeclimate issue 2023-07-03 15:47:45 +03:00