Allow usage of allocation tokens in nomulus create_domain (#1756)

Useful when doing internal registrations like get.boo
This commit is contained in:
gbrodman
2022-08-24 13:18:53 -04:00
committed by GitHub
parent 8b02f76ae9
commit 02af277148
4 changed files with 55 additions and 2 deletions
@@ -29,6 +29,7 @@
{@param dsRecords: list<[keyTag:int, alg:int, digestType:int, digest:string]>}
{@param? reason: string}
{@param? requestedByRegistrar: string}
{@param? allocationToken: string}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
@@ -56,7 +57,7 @@
</domain:authInfo>
</domain:create>
</create>
{if length($dsRecords) > 0 or $price != null or $reason or $requestedByRegistrar}
{if length($dsRecords) > 0 or $price != null or $reason or $requestedByRegistrar or $allocationToken}
<extension>
{if $price != null}
<fee:create xmlns:fee="urn:ietf:params:xml:ns:fee-0.12">
@@ -86,6 +87,13 @@
{/if}
</metadata:metadata>
{/if}
{if $allocationToken}
<allocationToken:allocationToken
xmlns:allocationToken=
"urn:ietf:params:xml:ns:allocationToken-1.0">
{$allocationToken}
</allocationToken:allocationToken>
{/if}
</extension>
{/if}
<clTRID>RegistryTool</clTRID>