mirror of
https://github.com/google/nomulus
synced 2026-01-08 23:23:32 +00:00
Support custom effective date for fee check command
Added support to specify custom effective date to run the fee check command. Such functionality is useful for TLDs with creation price as a function of time, such as those with EAP. However the implementation is not limited EAP or create price check. Any fee check can specify a date, as long as its XML schema supports a date. Currently conforming to fee extension v12, subject to schema changes. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=133420255
This commit is contained in:
@@ -169,7 +169,9 @@ public class DomainCheckFlow extends BaseDomainCheckFlow {
|
||||
domainNames.get(domainName),
|
||||
getClientId(),
|
||||
feeCheck.getCurrency(),
|
||||
now,
|
||||
feeCheckItem.getEffectiveDate().isPresent()
|
||||
? feeCheckItem.getEffectiveDate().get()
|
||||
: now,
|
||||
eppInput);
|
||||
feeCheckResponseItemsBuilder
|
||||
.add(builder.setDomainNameIfSupported(domainName).build());
|
||||
|
||||
@@ -101,7 +101,7 @@ public class DomainInfoFlow extends BaseDomainInfoFlow<DomainResource, Builder>
|
||||
InternetDomainName.from(getTargetId()),
|
||||
getClientId(),
|
||||
null,
|
||||
now,
|
||||
feeInfo.getEffectiveDate().isPresent() ? feeInfo.getEffectiveDate().get() : now,
|
||||
eppInput);
|
||||
extensions.add(builder.build());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user