-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added liquidation email template and tests
- Loading branch information
1 parent
89d5850
commit 6d73a34
Showing
7 changed files
with
133 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
app/views/mailers/contact_inform_mailer/company_liquidation.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<p>Lugupeetud ettevõtte <%= @registrant.name %> esindaja,</p> | ||
|
||
<p>Eesti Interneti Sihtasutusele (EIS) on äriregistri vahendusel teatavaks saanud, et ettevõtte <%= @registrant.name %> äriregistrikoodiga <%= @registrant.ident %> suhtes käib likvideerimismenetlus. Tuletame teile meelde, et tulenevalt .ee domeenireeglitest peab domeeni registreerijaks olema eksisteeriv era- või juriidiline isik. Seega käivitame ettevõtte likvideerimise järel sellele kuuluvate registreeringute kustutusmenetluse. Kustutusmenetluse tulemusena eemaldatakse .ee domeeninimi registrist ning vabaneb kõigile soovijatele taaskord registreerimiseks.</p> | ||
<p>Kui soovite ettevõttele kuuluvaid registreeritud domeene ka edaspidi kasutada, soovitame teil ette valmistada registreeringute üleandmine uuele omanikule enne praeguse omaniku likvideerimist. Lähemalt leiate selle kohta infot meie kodulehelt.</p> | ||
|
||
<p>.ee domeeni registris kuuluvad ettevõttele <%= @registrant.ident %> järgmised registreeringud:</p> | ||
<ul> | ||
<% @registrant.domains.each do |domain| %> | ||
<li><%= domain.name %></li> | ||
<% end %> | ||
</ul> | ||
|
||
<p>Lisaküsimuste korral võtke palun ühendust oma registripidajaga:</p> | ||
<%= render 'mailers/shared/registrar/registrar.et.html', registrar: @registrant.registrar %> | ||
|
||
<%= render 'mailers/shared/signatures/signature.et.html' %> | ||
|
||
<hr> | ||
|
||
<p>Dear representative of <%= @registrant.name %>,</p> | ||
|
||
<p>The Estonian Internet Foundation (EIS) has found through the Estonian business register that the company <%= @registrant.name %> with the business registry code <%= @registrant.ident %> is in liquidation proceedings. Please note that according to the .ee domain regulation, the registrant of the domain must be an existing private or legal entity. Therefore, the registry will start the registration deletion procedure once the liquidation of the company has been finalized. After the registration deletion procedure, the domain name will be open to register again for everyone.</p> | ||
<p>If you want to continue to use the registered domains belonging to your company, we recommend you to prepare the transfer of the registrations to the new owner before the liquidation of the current owner will be finalized. Learn more on our website.</p> | ||
|
||
<p>The following registrations belong to the company <%= @registrant.ident %> in the .ee domain register:</p> | ||
<ul> | ||
<% @registrant.domains.each do |domain| %> | ||
<li><%= domain.name %></li> | ||
<% end %> | ||
</ul> | ||
|
||
<p>Should you have additional questions, please contact your registrar:</p> | ||
<%= render 'mailers/shared/registrar/registrar.en.html', registrar: @registrant.registrar %> | ||
|
||
<%= render 'mailers/shared/signatures/signature.en.html' %> | ||
<hr> |
35 changes: 35 additions & 0 deletions
35
app/views/mailers/contact_inform_mailer/company_liquidation.text.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
Lugupeetud ettevõtte <%= @registrant.name %> esindaja | ||
|
||
Eesti Interneti Sihtasutusele (EIS) on äriregistri vahendusel teatavaks saanud, et ettevõtte <%= @registrant.name %> äriregistrikoodiga <%= @registrant.ident %> suhtes käib likvideerimismenetlus. Tuletame teile meelde, et tulenevalt .ee domeenireeglitest peab domeeni registreerijaks olema eksisteeriv era- või juriidiline isik. Seega käivitame ettevõtte likvideerimise järel sellele kuuluvate registreeringute kustutusmenetluse. Kustutusmenetluse tulemusena eemaldatakse .ee domeeninimi registrist ning vabaneb kõigile soovijatele taaskord registreerimiseks. | ||
Kui soovite ettevõttele kuuluvaid registreeritud domeene ka edaspidi kasutada, soovitame teil ette valmistada registreeringute üleandmine uuele omanikule enne praeguse omaniku likvideerimist. Lähemalt leiate selle kohta infot meie kodulehelt. | ||
|
||
.ee domeeni registris kuuluvad ettevõttele <%= @registrant.ident %> järgmised registreeringud: | ||
|
||
<% @registrant.domains.each do |domain| %> | ||
<%= domain.name %> | ||
<% end %> | ||
|
||
|
||
Lisaküsimuste korral võtke palun ühendust oma registripidajaga: | ||
<%= render 'mailers/shared/registrar/registrar.et.html', registrar: @registrant.registrar %> | ||
|
||
<%= render 'mailers/shared/signatures/signature.et.html' %> | ||
|
||
--- | ||
|
||
Dear representative of <%= @registrant.name %>, | ||
|
||
The Estonian Internet Foundation (EIS) has found through the Estonian business register that the company <%= @registrant.name %> with the business registry code <%= @registrant.ident %> is in liquidation proceedings. Please note that according to the .ee domain regulation, the registrant of the domain must be an existing private or legal entity. Therefore, the registry will start the registration deletion procedure once the liquidation of the company has been finalized. After the registration deletion procedure, the domain name will be open to register again for everyone. | ||
If you want to continue to use the registered domains belonging to your company, we recommend you to prepare the transfer of the registrations to the new owner before the liquidation of the current owner will be finalized. Learn more on our website. | ||
|
||
The following registrations belong to the company <%= @registrant.ident %> in the .ee domain register: | ||
|
||
<% @registrant.domains.each do |domain| %> | ||
<%= domain.name %> | ||
<% end %> | ||
|
||
Should you have additional questions, please contact your registrar: | ||
<%= render 'mailers/shared/registrar/registrar.en.html', registrar: @registrant.registrar %> | ||
|
||
<%= render 'mailers/shared/signatures/signature.en.html' %> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
require 'test_helper' | ||
|
||
class ContactInformMailerTest < ActionMailer::TestCase | ||
setup do | ||
@contact = contacts(:john) | ||
end | ||
|
||
def test_liquidation_email | ||
assert_equal 'john-001', @contact.code | ||
assert_equal '[email protected]', @contact.email | ||
|
||
email = ContactInformMailer.company_liquidation(contact: @contact).deliver_now | ||
|
||
assert_emails 1 | ||
|
||
assert_equal %w[[email protected]], email.to | ||
assert_equal 'Kas soovite oma .ee domeeni säilitada? / Do you wish to preserve your .ee registration?', email.subject | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters