Allow for no fee extension with free premium domains (#2660)

This isn't a situation we'll encounter often, but if the client has an
allocation token that's valid for premium domains that gives a 0 cost,
we shouldn't require them to include the fee extension when creating the
domain. We already don't require it for standard domains.
This commit is contained in:
gbrodman
2025-02-06 20:40:24 +00:00
committed by GitHub
parent 96a864dbd6
commit 9aaf7ee36a
2 changed files with 22 additions and 1 deletions
@@ -64,7 +64,7 @@ public class FeesAndCredits extends ImmutableObject implements Buildable {
}
public boolean hasAnyPremiumFees() {
return fees.stream().anyMatch(BaseFee::isPremium);
return fees.stream().anyMatch(fee -> fee.isPremium() && !fee.hasZeroCost());
}
/** Returns the create cost for the event. */