mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 18:26:06 +02:00
Basic transfer command for domain
This commit is contained in:
parent
bb78c0f581
commit
707c60b36e
8 changed files with 76 additions and 2 deletions
21
app/views/epp/domains/transfer.xml.builder
Normal file
21
app/views/epp/domains/transfer.xml.builder
Normal file
|
@ -0,0 +1,21 @@
|
|||
xml.epp_head do
|
||||
xml.response do
|
||||
xml.result('code' => '1000') do
|
||||
xml.msg 'Command completed successfully'
|
||||
end
|
||||
|
||||
xml.resData do
|
||||
xml.tag!('domain:trnData', 'xmlns:domain' => 'urn:ietf:params:xml:ns:domain-1.0') do
|
||||
xml.tag!('domain:name', @domain.name)
|
||||
xml.tag!('domain:trStatus', 'serverApproved')
|
||||
xml.tag!('domain:reID', current_epp_user.username)
|
||||
xml.tag!('domain:reDate', @domain.transfer_requested_at)
|
||||
xml.tag!('domain:acID', current_epp_user.username)
|
||||
xml.tag!('domain:acDate', @domain.transferred_at)
|
||||
xml.tag!('domain:exDate', @domain.valid_to)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
xml << render('/epp/shared/trID')
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue