google-nomulus/docs
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
..
operational-procedures Clarify diff display of MutatingCommand 2017-10-04 16:16:45 -04:00
admin-tool.md Add information to doc on which app the nomulus tool connects to 2016-11-10 11:12:23 -05:00
architecture.md Add more explanation to architecture document 2017-10-04 16:16:45 -04:00
authentication-framework.md Add details on how admins can access the registry console 2017-08-29 15:44:59 -04:00
code-structure.md Update generate_workspace link 2017-11-21 18:28:43 -05:00
coding-faq.md Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
configuration.md Add more explanation to architecture document 2017-10-04 16:16:45 -04:00
developing.md Add link to final ReferenceUnion migration commit in Developing doc 2016-11-15 15:15:55 -05:00
first-steps-tutorial.md Update create_domain command documentation 2017-08-01 16:53:32 -04:00
flows.md Validate individual fee types 2018-03-06 18:48:39 -05:00
install.md Update bazel version to 0.10.1 2018-03-06 18:45:37 -05:00
operational-procedures.md Clarify diff display of MutatingCommand 2017-10-04 16:16:45 -04:00
rdap.md Add RDAP search support for only contacts or only registrars 2018-01-19 14:29:54 -05:00
rde-import-architecture.md Document TLD import architecture 2017-03-13 11:22:38 -04:00
rde-import-usage.md Add more explanation to architecture document 2017-10-04 16:16:45 -04:00
registrar-faq.md Add Registrar FAQ document 2016-10-24 10:55:37 -04:00