mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 17:01:44 +02:00
Merge branch 'master' of github.com:internetee/registry
This commit is contained in:
commit
a0c9c303db
25 changed files with 440 additions and 174 deletions
9
app/views/epp/domains/partials/_transfer.xml.builder
Normal file
9
app/views/epp/domains/partials/_transfer.xml.builder
Normal file
|
@ -0,0 +1,9 @@
|
|||
builder.tag!('domain:trnData', 'xmlns:domain' => 'urn:ietf:params:xml:ns:domain-1.0') do
|
||||
builder.tag!('domain:name', dt.domain_name)
|
||||
builder.tag!('domain:trStatus', dt.status)
|
||||
builder.tag!('domain:reID', dt.transfer_to.reg_no)
|
||||
builder.tag!('domain:reDate', dt.transfer_requested_at)
|
||||
builder.tag!('domain:acID', dt.transfer_from.reg_no)
|
||||
builder.tag!('domain:acDate', dt.transferred_at || dt.wait_until)
|
||||
builder.tag!('domain:exDate', dt.domain_valid_to)
|
||||
end
|
|
@ -5,16 +5,7 @@ xml.epp_head do
|
|||
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)
|
||||
ldt = @domain.domain_transfers.last
|
||||
xml.tag!('domain:trStatus', ldt.status)
|
||||
xml.tag!('domain:reID', ldt.transfer_to.reg_no)
|
||||
xml.tag!('domain:reDate', ldt.transfer_requested_at)
|
||||
xml.tag!('domain:acID', ldt.transfer_from.reg_no)
|
||||
xml.tag!('domain:acDate', ldt.transferred_at || ldt.wait_until)
|
||||
xml.tag!('domain:exDate', @domain.valid_to)
|
||||
end
|
||||
xml << render('epp/domains/partials/transfer', builder: xml, dt: @domain_transfer)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
11
app/views/epp/poll/poll_ack.xml.builder
Normal file
11
app/views/epp/poll/poll_ack.xml.builder
Normal file
|
@ -0,0 +1,11 @@
|
|||
xml.epp_head do
|
||||
xml.response do
|
||||
xml.result('code' => '1000') do
|
||||
xml.msg 'Command completed successfully'
|
||||
end
|
||||
|
||||
xml.tag!('msgQ', 'count' => current_epp_user.queued_messages.count, 'id' => @message.id)
|
||||
|
||||
xml << render('/epp/shared/trID')
|
||||
end
|
||||
end
|
9
app/views/epp/poll/poll_no_messages.xml.builder
Normal file
9
app/views/epp/poll/poll_no_messages.xml.builder
Normal file
|
@ -0,0 +1,9 @@
|
|||
xml.epp_head do
|
||||
xml.response do
|
||||
xml.result('code' => '1300') do
|
||||
xml.msg 'Command completed successfully; no messages'
|
||||
end
|
||||
|
||||
xml << render('/epp/shared/trID')
|
||||
end
|
||||
end
|
20
app/views/epp/poll/poll_req.xml.builder
Normal file
20
app/views/epp/poll/poll_req.xml.builder
Normal file
|
@ -0,0 +1,20 @@
|
|||
xml.epp_head do
|
||||
xml.response do
|
||||
xml.result('code' => '1301') do
|
||||
xml.msg 'Command completed successfully; ack to dequeue'
|
||||
end
|
||||
|
||||
xml.tag!('msgQ', 'count' => current_epp_user.queued_messages.count, 'id' => @message.id) do
|
||||
xml.qDate @message.created_at
|
||||
xml.msg @message.body
|
||||
end
|
||||
|
||||
xml.resData do
|
||||
if @message.attached_obj_type == 'DomainTransfer'
|
||||
xml << render('epp/domains/partials/transfer', builder: xml, dt: @object)
|
||||
end
|
||||
end if @object
|
||||
|
||||
xml << render('/epp/shared/trID')
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue