google-nomulus/java/google/registry/flows/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
..
token Add DateTime as extensibility param for allocation token logic 2018-02-20 15:27:42 -05:00
DomainAllocateFlow.java Make EppInput.getSingleExtension() return Optional, not @Nullable 2018-01-19 14:40:10 -05:00
DomainApplicationCreateFlow.java Return more informative errors when signed mark is invalid at this time 2018-04-02 16:29:24 -04:00
DomainApplicationDeleteFlow.java Allow the same LaunchPhase to be used for both start-date and end-date sunrise 2018-03-06 19:12:56 -05:00
DomainApplicationInfoFlow.java Make EppInput.getSingleExtension() return Optional, not @Nullable 2018-01-19 14:40:10 -05:00
DomainApplicationUpdateFlow.java Add the ability to require premium fee acking for a registrar 2018-02-01 22:07:11 -05:00
DomainCheckFlow.java Make domain check return availability regardless of fee extensions 2018-04-23 14:36:02 -04:00
DomainClaimsCheckFlow.java Make return value of ClaimsListShard.getClaimKey() Optional 2018-03-06 19:15:52 -05:00
DomainCreateFlow.java Enforce anchor tenant domain create period 2018-04-23 15:11:37 -04:00
DomainDeleteFlow.java Add extensibility framework for allocation tokens 2018-02-01 21:54:29 -05:00
DomainFlowTmchUtils.java Return more informative errors when signed mark is invalid at this time 2018-04-02 16:29:24 -04:00
DomainFlowUtils.java Make EAP fee description check more flexible 2018-05-05 23:26:33 -04:00
DomainInfoFlow.java Add extensibility framework for allocation tokens 2018-02-01 21:54:29 -05:00
DomainPricingLogic.java Add test to confirm fee validation when creating/checking a premium domain during EAP 2018-02-20 15:26:13 -05:00
DomainRenewFlow.java Add the ability to require premium fee acking for a registrar 2018-02-01 22:07:11 -05:00
DomainRestoreRequestFlow.java Change RESTORE BillingEvents to have 1-year periods 2018-03-06 19:25:05 -05:00
DomainTransferApproveFlow.java Clean up some code quality issues 2017-12-01 22:14:06 -05:00
DomainTransferCancelFlow.java Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
DomainTransferQueryFlow.java Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
DomainTransferRejectFlow.java Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
DomainTransferRequestFlow.java Add the ability to require premium fee acking for a registrar 2018-02-01 22:07:11 -05:00
DomainTransferUtils.java Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
DomainUpdateFlow.java Add the ability to require premium fee acking for a registrar 2018-02-01 22:07:11 -05:00
FeesAndCredits.java Replace Stream.concat with Streams.concat 2017-12-27 11:35:47 -05:00