mirror of
https://github.com/google/nomulus.git
synced 2025-05-12 22:38:16 +02:00
Add a flag to registry_tool for EAP
Add a flag to CreateTldCommand to allow us to set the EAP fee schedule for the registry. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=125068579
This commit is contained in:
parent
a277e7c040
commit
4f91d03704
3 changed files with 48 additions and 3 deletions
|
@ -80,9 +80,9 @@ class CreateTldCommand extends CreateOrUpdateTldCommand {
|
|||
|
||||
builder.setCurrency(currency);
|
||||
|
||||
// If this is a non-default currency, set the EAP fee schedule to a matching currency.
|
||||
// TODO(b/29089413): once we have a flag for this, don't do this check if the flag is set.
|
||||
if (currency != Registry.DEFAULT_CURRENCY) {
|
||||
// If this is a non-default currency and the user hasn't specified an EAP fee schedule, set the
|
||||
// EAP fee schedule to a matching currency.
|
||||
if (currency != Registry.DEFAULT_CURRENCY && eapFeeSchedule.isEmpty()) {
|
||||
builder.setEapFeeSchedule(ImmutableSortedMap.of(START_OF_TIME, Money.zero(currency)));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue