mirror of
https://github.com/google/nomulus.git
synced 2025-06-28 15:23:34 +02:00
Change RESTORE BillingEvents to have 1-year periods
This simplifies calculating the overall invoice by giving RESTORE fees a period equal to the period of the associated RENEW (1 year). Older BillingEvents will not be backfilled, and will have periodYears = null. Invoicing and business both agree this is a valid representation, since RESTORE fees are intrinsically tied to the 1-year RENEW it's associated with. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=188041777
This commit is contained in:
parent
84eab90000
commit
b39e6c0d7e
3 changed files with 5 additions and 2 deletions
|
@ -183,6 +183,7 @@ public class DomainRestoreRequestFlowTest
|
|||
.setTargetId("example.tld")
|
||||
.setClientId("TheRegistrar")
|
||||
.setCost(Money.of(USD, 17))
|
||||
.setPeriodYears(1)
|
||||
.setEventTime(clock.nowUtc())
|
||||
.setBillingTime(clock.nowUtc())
|
||||
.setParent(historyEntryDomainRestore)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue