mirror of
https://github.com/google/nomulus.git
synced 2025-05-27 14:40:08 +02:00
Support creation of EPP fee objects using custom descriptions
This is a reasonable thing that custom code might want to do (Donuts already has a use case). ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=144216929
This commit is contained in:
parent
3ee98988c5
commit
a5d5c9e2fd
3 changed files with 32 additions and 16 deletions
|
@ -133,11 +133,6 @@ public abstract class BaseFee extends ImmutableObject {
|
|||
return validDateRange;
|
||||
}
|
||||
|
||||
protected void generateDescription(Object... args) {
|
||||
checkState(type != null);
|
||||
description = type.renderDescription(args);
|
||||
}
|
||||
|
||||
public boolean hasZeroCost() {
|
||||
return cost.signum() == 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue