mirror of
https://github.com/google/nomulus.git
synced 2025-06-26 22:34:55 +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
|
@ -171,6 +171,15 @@ abstract class CreateOrUpdateTldCommand extends MutatingCommand {
|
|||
ImmutableSortedMap<DateTime, Money> renewBillingCostTransitions =
|
||||
ImmutableSortedMap.of();
|
||||
|
||||
@Parameter(
|
||||
names = "--eap_fee_schedule",
|
||||
converter = BillingCostTransitions.class,
|
||||
validateWith = BillingCostTransitions.class,
|
||||
description = "Comma-delimited list of EAP fees effective on specific dates, of the form "
|
||||
+ "<time>=<money-amount>[,<time>=<money-amount>]* where each amount represents the "
|
||||
+ "EAP fee for creating a new domain under the TLD.")
|
||||
ImmutableSortedMap<DateTime, Money> eapFeeSchedule = ImmutableSortedMap.of();
|
||||
|
||||
@Nullable
|
||||
@Parameter(
|
||||
names = "--reserved_lists",
|
||||
|
@ -271,6 +280,10 @@ abstract class CreateOrUpdateTldCommand extends MutatingCommand {
|
|||
builder.setRenewBillingCostTransitions(renewBillingCostTransitions);
|
||||
}
|
||||
|
||||
if (!eapFeeSchedule.isEmpty()) {
|
||||
builder.setEapFeeSchedule(eapFeeSchedule);
|
||||
}
|
||||
|
||||
if (addGracePeriod != null) {
|
||||
builder.setAddGracePeriodLength(addGracePeriod);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue