mirror of
https://github.com/google/nomulus.git
synced 2025-06-27 06:44:51 +02:00
Add ability to expand TimeOfYear into instances
Utilizing this function in the recurring billing event [], in order to abstract a lot of the expansion logic out of the MR itself. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=121579246
This commit is contained in:
parent
16cfd76ac9
commit
b435e20cbe
3 changed files with 81 additions and 10 deletions
|
@ -138,7 +138,7 @@ public class DomainDeleteFlow extends ResourceSyncDeleteFlow<DomainResource, Bui
|
|||
if (gracePeriod.getType() == GracePeriodStatus.AUTO_RENEW) {
|
||||
TimeOfYear recurrenceTimeOfYear =
|
||||
checkNotNull(gracePeriod.getRecurringBillingEvent()).get().getRecurrenceTimeOfYear();
|
||||
DateTime autoRenewTime = recurrenceTimeOfYear.beforeOrAt(now);
|
||||
DateTime autoRenewTime = recurrenceTimeOfYear.getLastInstanceBeforeOrAt(now);
|
||||
cost = Registry.get(existingResource.getTld())
|
||||
.getDomainRenewCost(targetId, 1, autoRenewTime);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue