google-nomulus/java/google/registry/model/domain
jianglai 82ded21b9e Make EAP fee description check more flexible
Currently we determine fee type from the fee extension description by checking if the format string of the FeeType contains the description we received. The formatting string for EAP is "Early Access Period, fee expires: %s", so the fee description generated by a domain check command, like "Early Access Period, fee expires: 2022-03-01T00:00:00.000Z", is not recognized as EAP.

This CL adds the ability to add arbitrary extra description strings to the FeeType for a description to match against. It also changes the match to "the given description contains any of the strings from the list of format string plus extra description strings".

For EAP, we added an extra description string "Early Access Period", so any fee description that contains "Early Access Period" will be matched to EAP FeeType, including the specific description (that contains the expiry time) that we send in a domain check.

Also improved error message on multiple fee type matching.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=194149162
2018-05-05 23:26:33 -04:00
..
allocate Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
fee Make EAP fee description check more flexible 2018-05-05 23:26:33 -04:00
fee06 Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
fee11 Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
fee12 Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
launch Allow the same LaunchPhase to be used for both start-date and end-date sunrise 2018-03-06 19:12:56 -05:00
metadata Format some imports using fix_imports.py 2017-10-24 16:53:47 -04:00
rgp Format some imports using fix_imports.py 2017-10-24 16:53:47 -04:00
secdns Format some imports using fix_imports.py 2017-10-24 16:53:47 -04:00
superuser Add support for a domain delete superuser EPP extension 2017-09-12 15:51:50 -04:00
token Add basic AllocationToken validation/redemption for domain creates 2018-01-19 14:28:26 -05:00
AllocationToken.java Add basic AllocationToken validation/redemption for domain creates 2018-01-19 14:28:26 -05:00
DesignatedContact.java Fix stale documentation on {ForeignKeyed,}DesignatedContact 2017-03-21 15:28:58 -04:00
DomainApplication.java Remove temporary @OnLoad used for setting period in DomainApplication 2017-06-21 09:51:28 -04:00
DomainAuthInfo.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
DomainBase.java Replace Stream.concat with Streams.concat 2017-12-27 11:35:47 -05:00
DomainCommand.java Add short-term host/contact caching for high-QPS domain mutations 2018-03-06 19:05:20 -05:00
DomainInfoData.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
DomainObjectSpec.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
DomainRenewData.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
DomainResource.java Remove unnecessary generic type arguments 2017-11-21 18:17:31 -05:00
ForeignKeyedDesignatedContact.java Fix stale documentation on {ForeignKeyed,}DesignatedContact 2017-03-21 15:28:58 -04:00
GracePeriod.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
LrpTokenEntity.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
package-info.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
Period.java Format some imports using fix_imports.py 2017-10-24 16:53:47 -04:00