mirror of
https://github.com/google/nomulus.git
synced 2025-06-01 18:18:42 +02:00
Support date and notAfter in fee extension response v12
When custom effective date is passed in the check command, the response should contain that date as an acknowledgemant that the check is performed at a time different from now. Also when the fee(s) returned contains a validDateRange (i. e. EAP fees that are only valid during a certain period), the response will contain a notAfter field which is the date after which the quoted fee(s) are no longer valid. (i. e. the earliest of the end dates of all fees that would expire. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=133989775
This commit is contained in:
parent
863eac3b11
commit
b783acfcc6
13 changed files with 139 additions and 25 deletions
|
@ -27,6 +27,7 @@ import google.registry.model.domain.fee.FeeQueryCommandExtensionItem.CommandName
|
|||
import java.util.List;
|
||||
import javax.xml.bind.annotation.XmlType;
|
||||
import org.joda.money.CurrencyUnit;
|
||||
import org.joda.time.DateTime;
|
||||
|
||||
/**
|
||||
* The version 0.12 response for a domain check on a single resource.
|
||||
|
@ -111,5 +112,17 @@ public class FeeCheckResponseExtensionItemV12
|
|||
getInstance().command = commandBuilder.build();
|
||||
return super.build();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Builder setEffectiveDateIfSupported(DateTime effectiveDate) {
|
||||
commandBuilder.setEffectiveDate(effectiveDate);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Builder setNotAfterDateIfSupported(DateTime notAfterDate) {
|
||||
commandBuilder.setNotAfterDate(notAfterDate);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue