Commit graph

321 commits

Author SHA1 Message Date
oleghasjanov
98f0bb283e fix path to localize issue 2025-03-21 13:45:07 +02:00
oleghasjanov
f79f32fb5d added condition for underage 2025-03-21 12:09:47 +02:00
oleghasjanov
9fa14c0c07 added condition 2025-03-20 16:45:25 +02:00
oleghasjanov
e6cb30b599 added check 2025-03-20 16:39:20 +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
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
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
Alex Sherman
dbe1678430 Add current limits to the error message 2022-10-28 14:00:18 +03:00
olegphenomenon
9c90fd4b91 refactored condition and added tests 2021-10-21 10:30:19 +03:00
olegphenomenon
b2a830981b refactored 2021-10-20 16:01:41 +03:00
olegphenomenon
b066b144e0 added condition for remove hold status if domain are renew 2021-10-20 15:49:00 +03:00
dinsmol
788af6cc5f fixed codeclimate errors 2021-09-09 21:34:56 +03:00
dinsmol
e0c47cdb35 fixed codeclimate errors 2021-09-09 14:05:29 +03:00
dinsmol
e7e3278267 fixed codeclimate errors 2021-09-09 13:06:51 +03:00
dinsmol
f4e0084895 fixed codeclimate errors (partically) 2021-09-09 09:19:09 +03:00
dinsmol
62d1ba45a2 fixed ArgumentError 2021-09-03 16:12:16 +03:00
Alex Sherman
85475f46df Fix possible transaction retries by setting idempotency 2021-08-31 12:37:59 +05:00
Karl Erik Õunapuu
e2f377f1c2
Merge remote-tracking branch 'origin/master' into repp-domains 2021-03-22 14:05:42 +02:00
Alex Sherman
aae9e39d35 Add check if UpdateProhibited for domain update 2021-02-26 18:12:38 +05:00
Timo Võhmar
8bef5be869
Merge pull request #1855 from internetee/1852-no-any-confirmation-for-objects-with-identical-data
Added test for check domain status UpdatePending if registrants have …
2021-02-19 18:02:57 +02:00
Alex Sherman
69562ec2a2 Fix checking if verification needed 2021-02-15 18:27:04 +05:00
Karl Erik Õunapuu
44226aa5d6
Fix domain renew erros 2021-02-11 12:37:39 +02:00
Alex Sherman
47d143e6cc Undo removing serverUpdateProhibited status on domain renew 2021-02-11 15:20:57 +05:00
Karl Erik Õunapuu
43e5b74668
Merge remote-tracking branch 'origin/master' into repp-domains 2021-01-29 13:35:34 +02:00
Alex Sherman
3dfb22d79d Return epp error 2306 is tech are admin contacts are duplicated 2021-01-28 16:52:21 +05:00
Alex Sherman
db729d2421 Add check if key is Base64-encoded 2021-01-27 15:37:28 +05:00
Karl Erik Õunapuu
1e1ade3def
Fix legal document assigning 2021-01-19 14:35:39 +02:00
Karl Erik Õunapuu
2b3634b048
REPP domains: Nameserver actions 2021-01-18 13:24:16 +02:00
Karl Erik Õunapuu
d4b84a58df
Fix disclosable scope when copying registrant to admin/tech 2021-01-11 16:16:07 +02:00
Karl Erik Õunapuu
e2ff5d4506
REPP: Add Domain Create endpoint 2021-01-11 15:57:23 +02:00
Karl Erik Õunapuu
d53622ebc8
Merge remote-tracking branch 'origin/master' into repp-domains 2021-01-06 11:13:38 +02:00
Karl Erik Õunapuu
b534827dc5
Fix ok/inactive state, get disclosable fields strictly from Contact class 2021-01-05 15:59:00 +02:00
Karl Erik Õunapuu
50bf708b6a
Use central method for appending legaldocs to domains/contacts 2020-12-29 16:10:17 +02:00
Karl Erik Õunapuu
7caa544c83
Fix some CC issues 2020-12-29 14:19:02 +02:00
Karl Erik Õunapuu
1fca6d907b
Fix domain update confirm tests 2020-12-18 11:27:39 +02:00
Karl Erik Õunapuu
b44ce9f752
Port domain registrant confirmation post logic to DomainUpdate action 2020-12-17 17:17:06 +02:00
Karl Erik Õunapuu
766d843597
Improve DomainUpdate logic 2020-12-16 13:11:25 +02:00
Karl Erik Õunapuu
ad2ccdba7d
Improve DomainCreate wrapper for EPP 2020-12-08 18:11:32 +02:00
Karl Erik Õunapuu
ccef1053d9
Create DomainCreate action 2020-12-08 12:00:04 +02:00
Alex Sherman
8ef748fc7d Move apply_pending_update! method from model to interactor 2020-12-08 13:15:24 +05:00
Karl Erik Õunapuu
e5a2a6cf0f
Fix CC issues 2020-11-30 17:10:04 +02:00
Karl Erik Õunapuu
dc5bbb587f
EPP: Show error when trying to remove unassigned domain status 2020-11-30 16:52:28 +02:00
Karl Erik Õunapuu
7459d7e0c5
Nameserver deserializer 2020-11-26 11:27:54 +02:00
Karl Erik Õunapuu
a13b336f54
Allow renewal regardless of pendingDelete status flag 2020-10-05 14:55:09 +03:00
Karl Erik Õunapuu
29897043b0
Renew: Attach uneligibility reason 2020-09-28 16:16:50 +03:00
Alex Sherman
2ef430a877 Fix typo in setting key 2020-09-11 15:58:07 +05:00
Artur Beljajev
41fee1d098 Remove redundant database column domains.registered_at
Alias `Domain#registered_at` to `created_at`

Closes #1442
2020-09-04 13:25:27 +05:00
Karl Erik Õunapuu
58443f23aa Don't create new legaldoc if it's already persistent 2020-07-07 15:23:23 +03:00