mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
Modifications for updating business and private contacts
This commit is contained in:
parent
4afd32ebff
commit
eb64b3aca4
10 changed files with 159 additions and 163 deletions
18
app/views/epp/poll/_extension.xml.builder
Normal file
18
app/views/epp/poll/_extension.xml.builder
Normal file
|
@ -0,0 +1,18 @@
|
|||
builder.extension do
|
||||
builder.tag!('changePoll:changeData',
|
||||
'xmlns:changePoll' => Xsd::Schema.filename(for_prefix: 'changePoll',
|
||||
for_version: '1.0')) do
|
||||
case type
|
||||
when 'action'
|
||||
builder.tag!('changePoll:operation', obj.operation)
|
||||
builder.tag!('changePoll:date', obj.created_at.utc.xmlschema)
|
||||
builder.tag!('changePoll:svTRID', obj.id)
|
||||
builder.tag!('changePoll:who', obj.user)
|
||||
if obj.bulk_action?
|
||||
builder.tag!('changePoll:reason', 'Auto-update according to official data')
|
||||
end
|
||||
when 'state'
|
||||
builder.tag!('changePoll:operation', obj)
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue