Take anchor tenant tokens into account in domain check flows (#1868)

These were always properly reflected in the actual creations, but when
running a check flow it would still show a non-zero cost even when using
an ANCHOR_TENANT allocation token. This changes it so that we accurately
show the $0.00 cost.
This commit is contained in:
gbrodman
2022-12-05 16:14:53 -05:00
committed by GitHub
parent 6dc1ca0279
commit 9bf1bf47dd
3 changed files with 78 additions and 1 deletions
@@ -682,7 +682,13 @@ public class DomainFlowUtils {
builder.setAvailIfSupported(true);
fees =
pricingLogic
.getCreatePrice(registry, domainNameString, now, years, false, allocationToken)
.getCreatePrice(
registry,
domainNameString,
now,
years,
isAnchorTenant(domainName, allocationToken, Optional.empty()),
allocationToken)
.getFees();
}
break;