Validate on-load that an AllocationToken can be used

Check the timing (that is, whether or not we're in a promotion), the allowed registrar client IDs, and the allowed TLDs.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=246824080
This commit is contained in:
gbrodman 2019-05-06 07:43:39 -07:00 committed by jianglai
parent 208303e694
commit 74b5b407fa
9 changed files with 344 additions and 55 deletions

View file

@ -344,6 +344,7 @@ An EPP flow that creates a new domain resource.
* 2303
* Resource linked to this domain does not exist.
* 2304
* The allocation token is not currently valid.
* The claims period for this TLD has ended.
* Requested domain is reserved.
* Linked resource in pending delete prohibits operation.
@ -355,6 +356,8 @@ An EPP flow that creates a new domain resource.
* Registrant is not whitelisted for this TLD.
* Requested domain does not require a claims notice.
* 2305
* The allocation token is not valid for this registrar.
* The allocation token is not valid for this TLD.
* The allocation token was already redeemed.
* 2306
* Anchor tenant domain create is for the wrong number of years.