mirror of
https://github.com/google/nomulus
synced 2026-02-05 04:21:07 +00:00
Set EAP billing event to one-year period
This is consistent with how we treat RESTORE billing events as well- in general, fees are considered to be amortized over the course of a year (by the invoicing team). ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=199684843
This commit is contained in:
@@ -304,13 +304,14 @@ public abstract class BillingEvent extends ImmutableObject
|
||||
ImmutableSet<Reason> reasonsWithPeriods =
|
||||
Sets.immutableEnumSet(
|
||||
Reason.CREATE,
|
||||
Reason.FEE_EARLY_ACCESS,
|
||||
Reason.RENEW,
|
||||
Reason.RESTORE,
|
||||
Reason.TRANSFER);
|
||||
checkState(
|
||||
reasonsWithPeriods.contains(instance.reason) == (instance.periodYears != null),
|
||||
"Period years must be set if and only if reason is "
|
||||
+ "CREATE, RENEW, RESTORE or TRANSFER.");
|
||||
+ "CREATE, FEE_EARLY_ACCESS, RENEW, RESTORE or TRANSFER.");
|
||||
checkState(
|
||||
instance.getFlags().contains(Flag.SYNTHETIC)
|
||||
== (instance.syntheticCreationTime != null),
|
||||
|
||||
Reference in New Issue
Block a user