mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 19:20:37 +02:00
Reorder contact xmls #2681
This commit is contained in:
parent
8d38572984
commit
e924670dc3
2 changed files with 14 additions and 16 deletions
|
@ -24,10 +24,8 @@
|
||||||
-->
|
-->
|
||||||
<complexType name="legalDocAndIdentType">
|
<complexType name="legalDocAndIdentType">
|
||||||
<sequence>
|
<sequence>
|
||||||
<element name="legalDocument" type="eis:legalDocType"
|
<element name="ident" type="eis:identType" minOccurs="0" maxOccurs="1"/>
|
||||||
minOccurs="0" maxOccurs="1"/>
|
<element name="legalDocument" type="eis:legalDocType" minOccurs="0" maxOccurs="1"/>
|
||||||
<element name="ident" type="eis:identType"
|
|
||||||
minOccurs="0" maxOccurs="1"/>
|
|
||||||
</sequence>
|
</sequence>
|
||||||
</complexType>
|
</complexType>
|
||||||
|
|
||||||
|
|
|
@ -15,13 +15,13 @@ describe 'EPP Contact', epp: true do
|
||||||
@contact = Fabricate(:contact, registrar: @registrar1)
|
@contact = Fabricate(:contact, registrar: @registrar1)
|
||||||
|
|
||||||
@extension = {
|
@extension = {
|
||||||
legalDocument: {
|
|
||||||
value: 'dGVzdCBmYWlsCg==',
|
|
||||||
attrs: { type: 'pdf' }
|
|
||||||
},
|
|
||||||
ident: {
|
ident: {
|
||||||
value: '37605030299',
|
value: '37605030299',
|
||||||
attrs: { type: 'priv', cc: 'EE' }
|
attrs: { type: 'priv', cc: 'EE' }
|
||||||
|
},
|
||||||
|
legalDocument: {
|
||||||
|
value: 'dGVzdCBmYWlsCg==',
|
||||||
|
attrs: { type: 'pdf' }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
@ -106,13 +106,13 @@ describe 'EPP Contact', epp: true do
|
||||||
|
|
||||||
it 'successfully saves ident type with legal document' do
|
it 'successfully saves ident type with legal document' do
|
||||||
extension = {
|
extension = {
|
||||||
legalDocument: {
|
|
||||||
value: 'dGVzdCBmYWlsCg==',
|
|
||||||
attrs: { type: 'pdf' }
|
|
||||||
},
|
|
||||||
ident: {
|
ident: {
|
||||||
value: '1990-22-12',
|
value: '1990-22-12',
|
||||||
attrs: { type: 'birthday', cc: 'US' }
|
attrs: { type: 'birthday', cc: 'US' }
|
||||||
|
},
|
||||||
|
legalDocument: {
|
||||||
|
value: 'dGVzdCBmYWlsCg==',
|
||||||
|
attrs: { type: 'pdf' }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
response = create_request({}, extension)
|
response = create_request({}, extension)
|
||||||
|
@ -396,13 +396,13 @@ describe 'EPP Contact', epp: true do
|
||||||
|
|
||||||
it 'should update ident' do
|
it 'should update ident' do
|
||||||
extension = {
|
extension = {
|
||||||
legalDocument: {
|
|
||||||
value: 'dGVzdCBmYWlsCg==',
|
|
||||||
attrs: { type: 'pdf' }
|
|
||||||
},
|
|
||||||
ident: {
|
ident: {
|
||||||
value: '1990-22-12',
|
value: '1990-22-12',
|
||||||
attrs: { type: 'birthday', cc: 'US' }
|
attrs: { type: 'birthday', cc: 'US' }
|
||||||
|
},
|
||||||
|
legalDocument: {
|
||||||
|
value: 'dGVzdCBmYWlsCg==',
|
||||||
|
attrs: { type: 'pdf' }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
response = update_request({ id: { value: 'FIRST0:SH8013' } }, extension)
|
response = update_request({ id: { value: 'FIRST0:SH8013' } }, extension)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue