This commit is contained in:
Martin Lensment 2014-09-03 14:22:00 +03:00
parent 9b4f0a067e
commit a7e1ee1866
2 changed files with 129 additions and 10 deletions

View file

@ -163,20 +163,29 @@ module Epp
def domain_update_xml(xml_params = {})
defaults = {
name: { value: 'example.ee' },
add: [
{ ns:
[
hostObj: { value: 'ns1.example.com' },
hostObj: { value: 'ns2.example.com' }
]
},
{ contact: { attrs: { type: 'tech' }, value: 'mak21' } },
{ status: { attrs: { s: 'clientUpdateProhibited' }, value: '' } },
{ status: { attrs: { s: 'clientHold', lang: 'en' }, value: 'Payment overdue.' } }
],
rem: [
ns: [
hostObj: { value: 'ns1.example.com' }
],
contact: { attrs: { type: 'tech' }, value: 'sh8013' },
status: { attrs: { s: 'clientUpdateProhibited' }, value: '' }
],
chg: [
registrant: { value: 'mak21' },
authInfo: [
pw: { value: '2BARfoo' }
]
],
add: [
ns: [
hostObj: { value: 'ns1.example.com' },
hostObj: { value: 'ns2.example.com' }
],
status: { attrs: { s: 'clientHold', lang: 'en' }, value: 'Payment overdue.' },
status: { attrs: { s: 'clientUpdateProhibited' }, value: '' },
contact: { attrs: { type: 'tech' }, value: 'mak21' }
]
}