@@ -35,9 +31,6 @@
- <%#= component 'form/text_input', form: form, attribute: :phone_code, heroicon_name: 'phone', placeholder: '+372' %>
- <%#= component 'form/text_input', form: form, attribute: :phone, heroicon_name: 'phone', placeholder: '56722123' %>
-
<%= component 'form/phone_input', form: form, phone_attribute: :phone, code_attribute: :phone_code,
code_placeholder: '372', phone_placeholder: '56722123' %>
diff --git a/app/views/registrant/domains/_form.html.erb b/app/views/registrant/domains/_form.html.erb
index ba1827f..fc303d1 100644
--- a/app/views/registrant/domains/_form.html.erb
+++ b/app/views/registrant/domains/_form.html.erb
@@ -33,8 +33,8 @@
<%= component 'divider', label: t('.contacts') %>
- <%= component 'form_domain_contact', contact_type: 'tech_domain_contact', form: form, domain: @domain %>
<%= component 'form_domain_contact', contact_type: 'admin_domain_contact', form: form, domain: @domain %>
+ <%= component 'form_domain_contact', contact_type: 'tech_domain_contact', form: form, domain: @domain %>
<%#= Nameservers %>
diff --git a/config/application.yml.example b/config/application.yml.example
index 0ca4fb8..a3fb229 100644
--- a/config/application.yml.example
+++ b/config/application.yml.example
@@ -36,4 +36,9 @@ tara_jwks_uri: '/.well-known/jwks.json'
tara_token_endpoint: '/oauth2/token'
tara_auth_endpoint: '/oauth2/auth'
tara_base_redirect_url: 'https://st-eedirekt.infra.tld.ee'
-tara_redirect_path: '/tara/callback'
\ No newline at end of file
+tara_redirect_path: '/tara/callback'
+
+everypay_key: ""
+api_username: ''
+everypay_base: https://igw-demo.every-pay.com/api/v4
+account_name: 'EUR3D1'
diff --git a/config/routes.rb b/config/routes.rb
index 9a631bd..193bc62 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -13,6 +13,10 @@
resources :registrar_users, param: :uuid
resources :domain_prices, param: :uuid, except: %i[show]
+
+ namespace :contacts do
+ resource :searches, only: %i[show]
+ end
end
resource :sessions, only: %i[new]
diff --git a/db/seeds.rb b/db/seeds.rb
index a3b081c..1b1a273 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -13,7 +13,7 @@
.first_or_create.update(code: 'invoice_number_max', value: '199999', format: 'integer', group: 'invoice', description: 'Maximum invoice number')
Setting.where(code: 'vat')
- .first_or_create.update(code: 'vat', value: '20.0', format: 'float', group: 'invoice', description: 'VAT rate')
+ .first_or_create.update(code: 'vat', value: '22.0', format: 'float', group: 'invoice', description: 'VAT rate')
# BILLING GROUP:
@@ -25,6 +25,10 @@
Setting.where(code: 'show_address_customer')
.first_or_create.update(code: 'show_address_customer', value: 'false', format: 'boolean', group: 'contacts', description: 'Show and create address on customer page')
+# Setting.where(code: 'code_of_technical_contact')
+# .first_or_create.update(code: 'code_of_technical_contact', value: nil, format: 'string', group: 'registrar', description: 'Code of technical contact')
+Setting.where(code: 'code_of_technical_contact')
+ .first_or_create.update(code: 'code_of_technical_contact', value: [], format: 'array', group: 'contacts', description: 'Code of technical contact')
# REGISTRAR GROUP:
@@ -41,7 +45,7 @@
}
Setting.where(code: 'default_nameserver_records')
.first_or_create.update(
- code: 'default_nameserver_records', value: [json_value_1.to_json, json_value_2.to_json],
+ code: 'default_nameserver_records', value: [json_value_1, json_value_2],
format: 'array', group: 'registrar', description: 'Default nameserver records')
dns_sec_default_value = {
@@ -63,8 +67,5 @@
Setting.where(code: 'opt_out')
.first_or_create.update(code: 'opt_out', value: 'false', format: 'boolean', group: 'registrar', description: 'Enable opt-out')
-Setting.where(code: 'code_of_technical_contact')
- .first_or_create.update(code: 'code_of_technical_contact', value: nil, format: 'string', group: 'registrar', description: 'Code of technical contact')
-
Setting.where(code: 'default_registration_and_renewal_period')
.first_or_create.update(code: 'default_registration_and_renewal_period', value: '1y', format: 'integer', group: 'registrar', description: 'Default registration and renewal period')
diff --git a/tmp/.keep b/tmp/.keep
deleted file mode 100644
index e69de29..0000000
diff --git a/tmp/pids/.keep b/tmp/pids/.keep
deleted file mode 100644
index e69de29..0000000
diff --git a/tmp/storage/.keep b/tmp/storage/.keep
deleted file mode 100644
index e69de29..0000000