jianglai
ff221fba96
Validate individual fee types
...
Currently we validate the fee extension by summing up all fees present in the extension and comparing it against the total fee to be charged. While this works in most cases, we'd like the ability to individually validate each fee. This is especially useful during EAP when two fees are charged, a regular "create" fee that would also be amount we charge during renewal, and a one time "EAP" fee.
Because we can only distinguish fees by their descriptions, we try to match the description to the format string of the fee type enums. We also only require individual fee matches when we are charging more than one type of fees, which makes the change compatible with most existing use cases where only one fees is charged and the description field is ignored in the extension.
We expect the workflow to be that a registrar sends a domain check, and we reply with exactly what fees we are expecting, and then it will use the descriptions in the response to send us a domain create with the correct fees.
Note that we aggregate fees within the same FeeType together. Normally there will only be one fee per type, but in case of custom logic there could be more than one fee for the same type. There is no way to distinguish them as they both use the same description. So it is simpler to just aggregate them.
This CL also includes some reformatting that conforms to google-java-format output.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=186530316
2018-03-06 18:48:39 -05:00
..
2017-02-14 12:14:04 -05:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-11-10 12:30:44 -05:00
2018-01-19 14:32:48 -05:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2018-01-19 14:32:48 -05:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2018-01-19 14:32:48 -05:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2018-01-19 14:32:48 -05:00
2016-05-13 18:55:08 -04:00
2016-09-26 13:24:57 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-09-26 13:24:57 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:55:08 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:55:08 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:55:08 -04:00
2016-09-19 12:08:46 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:55:08 -04:00
2016-09-14 15:26:36 -04:00
2016-09-14 15:26:36 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:55:08 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:55:08 -04:00
2017-03-21 15:33:29 -04:00
2017-03-21 15:33:29 -04:00
2017-03-21 15:33:29 -04:00
2016-05-13 18:55:08 -04:00
2018-02-20 15:26:13 -05:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-09-14 15:26:36 -04:00
2016-09-14 15:26:36 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:55:08 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:55:08 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:55:08 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:55:08 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:55:08 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:55:08 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-09-19 12:08:46 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2018-01-19 14:32:48 -05:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2017-02-14 12:14:04 -05:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2018-01-19 14:23:59 -05:00
2016-05-13 18:55:08 -04:00
2016-08-22 14:30:19 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2018-03-06 18:48:39 -05:00
2018-03-06 18:48:39 -05:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-05-13 18:55:08 -04:00
2017-02-14 12:14:04 -05:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-08-22 14:30:19 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-08-22 14:30:19 -04:00
2016-11-02 15:19:34 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-08-15 17:13:29 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2018-03-06 18:48:39 -05:00
2016-05-13 18:55:08 -04:00
2017-01-25 12:25:34 -05:00
2016-12-06 11:52:46 -05:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2018-02-20 15:45:27 -05:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2018-02-20 15:45:27 -05:00
2018-02-20 15:45:27 -05:00
2018-02-20 15:45:27 -05:00
2018-02-20 15:45:27 -05:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-07-21 14:53:50 -04:00
2016-05-13 18:55:08 -04:00
2016-07-21 14:53:50 -04:00
2016-05-13 18:55:08 -04:00
2018-02-20 15:26:13 -05:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-12-06 11:52:46 -05:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 23:20:27 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2017-01-09 11:59:04 -05:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2018-01-19 14:23:59 -05:00
2016-11-10 11:24:32 -05:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-09-14 15:26:36 -04:00
2016-05-13 18:55:08 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2017-09-12 15:51:50 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2017-03-21 15:33:29 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2017-03-21 15:33:29 -04:00
2017-03-21 15:33:29 -04:00
2016-08-15 16:51:26 -04:00
2016-08-15 16:51:26 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-27 12:38:21 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-11-10 12:30:44 -05:00
2016-11-10 12:30:44 -05:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-07-21 14:53:50 -04:00
2016-05-13 18:55:08 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2016-12-19 11:09:20 -05:00
2016-07-21 14:53:50 -04:00
2016-11-02 15:19:34 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-12-19 11:09:20 -05:00
2016-07-21 14:53:50 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-11-15 13:52:01 -05:00
2016-05-13 18:55:08 -04:00
2017-03-21 15:35:00 -04:00
2016-05-13 18:55:08 -04:00
2017-10-04 16:16:45 -04:00
2017-09-12 15:51:50 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-11-15 13:52:01 -05:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-09-22 14:30:05 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-11-15 13:52:01 -05:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2017-09-12 15:51:50 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-07-21 14:53:50 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-12-22 16:09:14 -05:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2017-03-21 15:11:07 -04:00
2016-05-13 18:55:08 -04:00
2017-03-07 13:39:15 -05:00
2017-03-07 13:39:15 -05:00
2017-03-07 13:39:15 -05:00
2016-07-21 14:53:50 -04:00
2017-03-21 15:11:07 -04:00
2017-09-12 15:51:50 -04:00
2017-10-04 16:16:45 -04:00
2017-09-12 15:51:50 -04:00
2017-09-12 15:51:50 -04:00
2016-05-13 18:55:08 -04:00
2018-03-06 18:48:39 -05:00
2017-09-12 15:51:50 -04:00
2016-12-22 16:07:39 -05:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2017-11-21 18:54:42 -05:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-12-19 11:09:20 -05:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-07-13 16:01:10 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-07-13 16:01:10 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2018-03-06 18:48:39 -05:00
2016-07-21 14:53:50 -04:00
2016-07-21 14:53:50 -04:00
2018-03-06 18:48:39 -05:00
2016-11-02 15:19:34 -04:00
2016-05-13 18:55:08 -04:00
2016-07-21 14:53:50 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-10-11 11:27:53 -04:00
2016-05-13 18:55:08 -04:00
2016-10-11 11:27:53 -04:00
2016-10-11 11:27:53 -04:00
2016-10-11 11:27:53 -04:00
2016-10-11 11:27:53 -04:00
2016-10-11 11:27:53 -04:00
2016-10-11 11:27:53 -04:00
2016-10-11 11:27:53 -04:00
2016-10-11 11:27:53 -04:00
2016-10-11 11:27:53 -04:00
2016-05-13 18:55:08 -04:00
2016-12-19 11:09:20 -05:00
2016-10-11 11:27:53 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-10-11 11:27:53 -04:00
2016-10-11 11:27:53 -04:00
2016-05-13 18:55:08 -04:00
2016-10-11 11:27:53 -04:00
2017-03-27 12:58:19 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00
2016-12-19 11:09:20 -05:00
2016-05-13 18:55:08 -04:00
2016-05-13 18:55:08 -04:00