mirror of
https://github.com/google/nomulus.git
synced 2025-05-15 17:07:15 +02:00
Add a RESERVED billing event flag for creates of reserved domains
This is an additional signal we can use for the billing/invoicing pipeline that will be helfpul in targeting invoice rows that may need adjustment. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=217524250
This commit is contained in:
parent
3cfde5d4a1
commit
f43125bb04
5 changed files with 26 additions and 4 deletions
|
@ -453,7 +453,7 @@ public class DomainFlowUtils {
|
|||
private static final ImmutableSet<ReservationType> RESERVED_TYPES =
|
||||
ImmutableSet.of(RESERVED_FOR_SPECIFIC_USE, RESERVED_FOR_ANCHOR_TENANT, FULLY_BLOCKED);
|
||||
|
||||
private static boolean isReserved(InternetDomainName domainName, boolean isSunrise) {
|
||||
static boolean isReserved(InternetDomainName domainName, boolean isSunrise) {
|
||||
ImmutableSet<ReservationType> types = getReservationTypes(domainName);
|
||||
return !Sets.intersection(types, RESERVED_TYPES).isEmpty()
|
||||
|| !(isSunrise || intersection(TYPES_ALLOWED_FOR_CREATE_ONLY_IN_SUNRISE, types).isEmpty());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue