mirror of
https://github.com/google/nomulus.git
synced 2025-04-30 03:57:51 +02:00
This CL cleans up some old crufy logic in GracePeriod that overloaded methods to accept either OneTime or Recurring billing events refs, despite storing them in separate fields in the entity (since BillingEvent is not a polymorphic superclass, just a Java-only one, you can't store them as refs to BillingEvent). That overloading was ultimately only there as a convenience/hack from when we added Recurring events and didn't want to go back and change everything. It obfuscates what's really going on, requires extra casting/loss of type-safety, and relies on indirect signals (e.g. the grace period type being AUTO_RENEW) to guess what the right billing event type is. That latter aspect will likely no longer work in a monthly billing world, and was brittle in any case. A coming CL will rip the same logic out of Cancellation. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=117164286 |
||
---|---|---|
.. | ||
backup | ||
bigquery | ||
config | ||
cron | ||
dns | ||
export | ||
flows | ||
groups | ||
mapreduce | ||
model | ||
module | ||
monitoring/whitebox | ||
rdap | ||
rde | ||
request | ||
security | ||
server | ||
storage/drive | ||
testing | ||
tldconfig/idn | ||
tmch | ||
tools | ||
ui | ||
util | ||
whois | ||
xjc | ||
xml |