Commit graph

132 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
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
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
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
d3d8db2713 fixed shared market test 2024-01-24 15:05:06 +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
Sergei Tsoganov
fe6015491c Updated base_test 2023-07-10 14:40:18 +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
a4d28a0ee2 Covered with tests api users and white ips 2023-06-01 16:27:34 +03:00
Sergei Tsoganov
37c16a067d Updated dependency ransack to v4 2023-03-16 11:28:25 +02:00
Sergei Tsoganov
ce7217af4d Corrected test 2023-01-10 13:57:06 +02:00
Timo Võhmar
ca5dea905e
Merge pull request #2518 from internetee/reverse-log-domains-json-data
Created migration files for log_domains table json columns
2023-01-09 10:56:22 +02:00
Sergei Tsoganov
09d4fa3ff6 Corrected stats test 2023-01-03 12:55:25 +02:00
olegphenomenon
8916bcd0d6 transfer code change during registrant change 2023-01-03 11:54:04 +02:00
dependabot[bot]
f9d4b1e9b4 Bump rails-html-sanitizer from 1.4.3 to 1.4.4
Bumps [rails-html-sanitizer](https://github.com/rails/rails-html-sanitizer) from 1.4.3 to 1.4.4.
- [Release notes](https://github.com/rails/rails-html-sanitizer/releases)
- [Changelog](https://github.com/rails/rails-html-sanitizer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rails/rails-html-sanitizer/compare/v1.4.3...v1.4.4)

---
updated-dependencies:
- dependency-name: rails-html-sanitizer
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-16 13:31:47 +02:00
Sergei Tsoganov
045c74b7e2 Fixed test 2022-12-07 11:45:31 +02:00
Sergei Tsoganov
2471836797 Commented out failed test 2022-11-23 16:57:20 +02:00
Sergei Tsoganov
a55a2f922a Refactored EppRequestable module 2022-11-23 16:09:14 +02:00
Sergei Tsoganov
1fba3a731c Added tests 2022-11-23 14:55:34 +02:00
Thiago Youssef
e65d55765a Fix tests 2022-10-28 14:00:18 +03:00
Thiago Youssef
2a58bf3849 Add rate limiting to all repp actions 2022-10-28 14:00:18 +03:00
Sergei Tsõganov
04b55068df Removed and updated additional files 2022-10-13 14:06:33 +03:00
olegphenomenon
f384520cbf fixed zeitwerk load file issue 2022-09-30 14:21:01 +03:00
Sergei Tsõganov
dc4c3cf616 Added market share growth rate data endpoint 2022-09-16 21:35:26 +03:00
Sergei Tsõganov
261e2d3162 Add test 2022-09-16 21:35:26 +03:00
olegphenomenon
cd81e58ff6 updated tests 2022-09-02 14:58:50 +03:00
olegphenomenon
c52da86865 remove eis-billing feature toggle 2022-09-02 13:32:02 +03:00
Sergei Tsõganov
26cb791586 Fixes after repp-apidoc update 2022-07-12 15:48:43 +03:00
Sergei Tsõganov
363a9a7357 Updated tests after summary endpoint update 2022-07-12 15:48:43 +03:00