// Copyright 2016 The Nomulus Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. {namespace registry.soy.registrar.contactepp autoescape="strict"} /* XXX: Forces first postalInfo type to be "int" and second "loc" if it is * present, for compatibility with the server. */ /** * Contact create request. * @param item * @param clTrid */ {template .create} {$item['contact:id']} {foreach $pi in $item['contact:postalInfo']} {$pi['contact:name']} {$pi['contact:org']} {let $addr: $pi['contact:addr'] /} {$addr['contact:street']} {$addr['contact:city']} {$addr['contact:sp']} {$addr['contact:pc']} {$addr['contact:cc']} {/foreach} {$item['contact:voice']} {$item['contact:fax']} {$item['contact:email']} {$item['contact:authInfo']['contact:pw']} {$clTrid} {/template} /* XXX: Forces first postalInfo type to be "int" and second "loc" if it is * present, for compatibility with the server. */ /** * Contact update request. * @param item * @param clTrid */ {template .update} {$item['contact:id']} {foreach $pi in $item['contact:postalInfo']} {$pi['contact:name']} {$pi['contact:org']} {let $addr: $pi['contact:addr'] /} {$addr['contact:street']} {$addr['contact:city']} {$addr['contact:sp']} {$addr['contact:pc']} {$addr['contact:cc']} {/foreach} {$item['contact:voice']} {$item['contact:fax']} {$item['contact:email']} {$item['contact:authInfo']['contact:pw']} {$clTrid} {/template} /** * Contact info request. * @param id * @param clTrid */ {template .info} {$id} {$clTrid} {/template}