Commit graph

313 commits

Author SHA1 Message Date
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
Maciej Szlosarczyk
043037225b
Extract legal doc parsing away from Epp::Domain class 2020-06-05 09:56:30 +03:00
Karl Erik Õunapuu
e06596551c Prevent verification email from being sent when registrantChange w/ disputed pw 2020-05-25 16:02:59 +03:00
Karl Erik Õunapuu
5a951dd958 Fix some CC issues 2020-05-21 17:36:38 +03:00
Karl Erik Õunapuu
f25b7a3b7f Check whether registrant element exists before determining registrant change 2020-05-21 15:49:43 +03:00
Karl Erik Õunapuu
be14ede8b6 Refactor some dispute logic 2020-05-14 11:38:26 +03:00
Karl Erik Õunapuu
4870dab8af Autoaccept registrant change if valid dispute password present 2020-05-07 16:40:37 +03:00
Karl Erik Õunapuu
fabcdf9b7e Use reserved>pw element as disputed password 2020-05-07 16:20:09 +03:00
Karl Erik Õunapuu
39791f5755 Fix styling issues 2020-04-27 14:39:07 +03:00