Commit graph

45 commits

Author SHA1 Message Date
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
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
Sergei Tsoganov
ce7217af4d Corrected test 2023-01-10 13:57:06 +02:00
olegphenomenon
8916bcd0d6 transfer code change during registrant change 2023-01-03 11:54:04 +02: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
Sergei Tsõganov
b502c2779e Added additional tests to REPP API 2022-07-12 15:48:43 +03:00
Sergei Tsõganov
a5ffce290d Updated REPP API for new registrar portal 2022-07-12 15:47:25 +03:00
olegphenomenon
58db467229 update validation of email when domain contacts are updated 2022-03-21 11:31:32 +02:00
Alex Sherman
85475f46df Fix possible transaction retries by setting idempotency 2021-08-31 12:37:59 +05:00
Alex Sherman
d6310d6b15 Add new algos & test 2021-06-21 12:57:38 +05:00
Alex Sherman
79351d50d9 Add epp errors support to bulk renew 2021-05-06 12:15:15 +05:00
Alex Sherman
c613de1a11 Refactor epp error due to Rails 6.1 changes 2021-05-06 12:14:35 +05:00
Karl Erik Õunapuu
546330b178
REPP: Add renew exp_date sanity check 2021-03-23 13:14:31 +02:00
Karl Erik Õunapuu
117b682990
Rename auth_info / authorization_code to transfer_code 2021-03-22 16:29:40 +02:00
Karl Erik Õunapuu
d6b266459b
REPP: Ditch _id from registrant / registrar attributes 2021-03-22 15:28:23 +02:00
Karl Erik Õunapuu
83bfc493bb
Rename admin_domain_contacts_attributes to admin_contacts 2021-03-22 15:13:48 +02:00
Karl Erik Õunapuu
e2f377f1c2
Merge remote-tracking branch 'origin/master' into repp-domains 2021-03-22 14:05:42 +02:00
Oleg Hasjanov
9161e4caa5 Test: added test for bulk renew ehrn domain has renew prohibited status 2021-03-16 14:21:52 +02:00
Oleg Hasjanov
50d1838854 added test for renew specif domains if domain renew before expire has small value 2021-02-15 15:11:54 +02:00
Alex Sherman
47d143e6cc Undo removing serverUpdateProhibited status on domain renew 2021-02-11 15:20:57 +05:00
Karl Erik Õunapuu
115cefc0cf
Fix some CC issues 2021-02-08 12:41:10 +02:00
Karl Erik Õunapuu
24c3962517
REPP: Domain delete test 2021-02-02 11:55:09 +02:00
Karl Erik Õunapuu
1461d2a566
REPP: Domain registrant change test 2021-02-02 11:26:52 +02:00
Karl Erik Õunapuu
92db43db18
REPP: Domain list test 2021-02-02 10:36:03 +02:00
Karl Erik Õunapuu
095da29e98
REPP: Domain create test 2021-02-01 17:24:41 +02:00
Karl Erik Õunapuu
6a8eaaf131
REPP: Scoped domain transfer test 2021-02-01 16:47:05 +02:00
Karl Erik Õunapuu
8bb70fb005
REPP: Domain DNSSEC key manipulation tests 2021-02-01 16:07:49 +02:00
Karl Erik Õunapuu
d838e56112
REPP: Domain renew tests 2021-02-01 15:49:59 +02:00
Karl Erik Õunapuu
b3cf665ed5
REPP: Domain contacts test 2021-02-01 14:47:09 +02:00
Karl Erik Õunapuu
4c7f9709ad
REPP: Test domain nameserver actions 2021-02-01 13:16:39 +02:00
Karl Erik Õunapuu
bad06307b6
REPP: Test domain status editing 2021-02-01 12:35:20 +02:00
Karl Erik Õunapuu
43e5b74668
Merge remote-tracking branch 'origin/master' into repp-domains 2021-01-29 13:35:34 +02:00
Karl Erik Õunapuu
97abe3fb9e
Test puny domain for transfer info 2021-01-14 12:16:13 +02:00
Karl Erik Õunapuu
221e4ba578
Merge remote-tracking branch 'origin/master' into repp-domains 2020-12-29 12:47:50 +02:00
Karl Erik Õunapuu
04944b8ac4
Improve bulk renew tests 2020-12-21 14:33:35 +02:00
Karl Erik Õunapuu
66114aa648
Create tests for REPP bulk renew, fix lingvistic issues with errors 2020-12-21 13:30:30 +02:00
Karl Erik Õunapuu
ad2ccdba7d
Improve DomainCreate wrapper for EPP 2020-12-08 18:11:32 +02:00
Karl Erik Õunapuu
8790d1415a
REPP: Extend domain transfer test 2020-10-22 16:39:52 +03:00
Karl Erik Õunapuu
03d940a695
REPP: Fix bulk domain transfer 2020-10-22 15:25:02 +03:00
Karl Erik Õunapuu
06ad8c8c77
REPP: Domain tech contact replace test 2020-10-21 15:21:54 +03:00
Karl Erik Õunapuu
774ada6ebb
REPP: Domain transfer test 2020-10-21 14:00:16 +03:00
Karl Erik Õunapuu
9a36b0403c
REPP: Domain transfer info test 2020-10-21 13:10:28 +03:00
Karl Erik Õunapuu
2a1967918c
REPP: Domains list test 2020-10-21 12:31:51 +03:00