Commit graph

845 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
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
89097bfabe feat: restore company validation for Estonian organizations
- Re-enable company validation logic for Estonian organization contacts
- Update company_register gem to use master branch
- Restore and update company validation tests
- Add additional check for Estonian country code in validation

This change ensures that only registered or liquidated Estonian companies
can be used when creating organizational contacts.
2025-02-03 14:08:18 +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
Timo Võhmar
268b942042
Merge pull request #2741 from internetee/disclose-phone-num-for-org-registrants
Update company_register gem and fix logger dependency
2025-01-31 17:52:57 +02:00
Timo Võhmar
3289851340
Merge pull request #2740 from internetee/add-birthdate-verification
Added birthday ident verification
2025-01-31 17:50:55 +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
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
tsoganov
c87c86ac9b Corrected tests 2025-01-31 12:49:14 +02:00
oleghasjanov
803276d8c8 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.
2025-01-30 12:49:20 +02:00
tsoganov
9f81402d64 Corrected integration test 2025-01-28 10:43:59 +02:00
Timo Võhmar
a9b341ebfe
Merge pull request #2730 from internetee/2702-optional-admin-contact-for-private-registrations
Make admin contacts optional for private registrants
2025-01-28 10:15:33 +02:00
tsoganov
8b872b4a14 Corrected test 2025-01-27 16:43:19 +02:00
tsoganov
5cf18bd9e5 Corrected tests 2025-01-14 15:52:33 +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
oleghasjanov
d0a39bf469 remove company creation validation 2024-11-25 14:48:28 +02:00
tsoganov
0085f99e02 Modified identification request webhook 2024-11-14 08:37:09 +02:00
tsoganov
637cabf95f Handling contact verifications 2024-11-14 08:37:09 +02:00
oleghasjanov
61497deb2a added more tests 2024-11-08 12:45:12 +02:00
Oleg Hasjanov
b5b59026b9 added deadline registration condition during domain registration from auction 2024-01-24 15:17:11 +02:00
Sergei Tsoganov
7db8b5d970 Removed date_from attribute 2023-12-19 09:38:00 +02:00
Sergei Tsoganov
e73faae879 Refactored statistics caclulation 2023-12-14 13:26:31 +02:00
Sergei Tsoganov
7863322c9d Registrar ip restriction on every request 2023-08-04 13:43:02 +03:00
Sergei Tsoganov
b86fac03b5 Corrected integration tests 2023-08-04 12:46:56 +03:00
Sergei Tsoganov
597766dba0 Corrected integration test 2023-07-13 13:12:46 +03:00
Sergei Tsoganov
52b3b3a6cf Added integration tests for user certificate validation 2023-07-13 13:03:10 +03:00
Sergei Tsoganov
684f80891a Corrected integration test 2023-07-13 12:41:38 +03:00
Sergey Tsyganov
3784677af2 Updated white_ips_test.rb integration test 2023-07-11 11:04:35 +03:00
Sergei Tsoganov
fe6015491c Updated base_test 2023-07-10 14:40:18 +03:00
Sergei Tsoganov
52405e1796 Updated admin integration test 2023-07-10 12:14:03 +03:00
Sergei Tsoganov
f5ed46c9a3 Updated admin integration test 2023-07-10 12:07:03 +03:00
Sergei Tsoganov
c5dc81ede9 Updated admin integration test 2023-07-10 11:35:40 +03:00
Sergei Tsoganov
b7f31ea7e2 Updated admin integration test 2023-07-10 10:37:35 +03:00
Sergei Tsoganov
43e088e852 Updated admin integration test 2023-07-10 10:32:38 +03:00
Sergei Tsoganov
f68d8e91c2 Add admin mailers and tests to white_ips 2023-07-10 09:51:56 +03:00
Sergei Tsoganov
e00e44c9b8 Modified white ip form and created mailer 2023-07-05 15:28:43 +03:00
Sergei Tsoganov
c234449dae Modified white ip form 2023-07-03 15:43:30 +03:00
Sergei Tsoganov
c9bd4a3037 Added certificate REPP integration tests 2023-06-29 15:27:47 +03:00
Sergei Tsoganov
66a8ea111f Updated tests 2023-06-29 13:01:57 +03:00
Sergei Tsoganov
a4d28a0ee2 Covered with tests api users and white ips 2023-06-01 16:27:34 +03:00
Sergei Tsoganov
2a2b569bea Corrected failed tests 2023-05-31 16:00:17 +03:00
Sergei Tsoganov
1b7f625c69 Fixed default sorting of epp logs 2023-05-12 11:39:06 +03:00
Timo Võhmar
da514f9a50
Merge pull request #2531 from internetee/68-creating-syncronization-of-invoice-changes
creating sync with billing
2023-04-20 16:08:47 +03:00
Sergei Tsoganov
37c16a067d Updated dependency ransack to v4 2023-03-16 11:28:25 +02:00
olegphenomenon
c9ed31771b fixed tests 2023-02-06 10:44:17 +02:00
olegphenomenon
36d629fe2b fixed status handlers 2023-02-06 10:44:17 +02:00
olegphenomenon
1b377dadcd added more conditions for unpaid and cancelled statuses 2023-02-06 10:44:17 +02:00
olegphenomenon
7b05e1e28a refactoring 2023-02-06 10:44:17 +02:00
olegphenomenon
0a4444b556 creating sync with billing 2023-02-06 10:44:17 +02:00
Sergei Tsoganov
ce7217af4d Corrected test 2023-01-10 13:57:06 +02:00