mirror of
https://github.com/google/nomulus
synced 2026-09-21 07:24:26 +00:00
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:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user