mirror of
https://github.com/google/nomulus.git
synced 2025-06-26 22:34:55 +02:00
Add publish functionality to billing pipeline
This closes the end-to-end billing pipeline, allowing us to share generated detail reports with registrars via Drive and e-mail the invoicing team a link to the generated invoice. This also factors out the email configs from ICANN reporting into the common 'misc' config, since we'll likely need alert e-mails for future periodic tasks. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=180805972
This commit is contained in:
parent
27f12b9390
commit
ab5e16ab67
25 changed files with 721 additions and 95 deletions
|
@ -509,27 +509,15 @@ public final class RegistryConfig {
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns the email address from which we send ICANN reporting email summaries from.
|
||||
* Returns the list of addresses that receive monthly invoicing emails.
|
||||
*
|
||||
* @see google.registry.reporting.ReportingEmailUtils
|
||||
* @see google.registry.billing.BillingEmailUtils
|
||||
*/
|
||||
@Provides
|
||||
@Config("icannReportingSenderEmailAddress")
|
||||
public static String provideIcannReportingEmailSenderAddress(
|
||||
@Config("projectId") String projectId, RegistryConfigSettings config) {
|
||||
return String.format(
|
||||
"%s@%s", projectId, config.icannReporting.icannReportingEmailSenderDomain);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the email address from which we send ICANN reporting email summaries to.
|
||||
*
|
||||
* @see google.registry.reporting.ReportingEmailUtils
|
||||
*/
|
||||
@Provides
|
||||
@Config("icannReportingRecipientEmailAddress")
|
||||
public static String provideIcannReportingEmailRecipientAddress(RegistryConfigSettings config) {
|
||||
return config.icannReporting.icannReportingEmailRecipient;
|
||||
@Config("invoiceEmailRecipients")
|
||||
public static ImmutableList<String> provideInvoiceEmailRecipients(
|
||||
RegistryConfigSettings config) {
|
||||
return ImmutableList.copyOf(config.billing.invoiceEmailRecipients);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -712,6 +700,35 @@ public final class RegistryConfig {
|
|||
return Optional.ofNullable(config.misc.sheetExportId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the email address we send various alert e-mails to.
|
||||
*
|
||||
* <p>This allows us to easily verify the success or failure of periodic tasks by passively
|
||||
* checking e-mail.
|
||||
*
|
||||
* @see google.registry.reporting.ReportingEmailUtils
|
||||
* @see google.registry.billing.BillingEmailUtils
|
||||
*/
|
||||
@Provides
|
||||
@Config("alertRecipientEmailAddress")
|
||||
public static String provideAlertRecipientEmailAddress(RegistryConfigSettings config) {
|
||||
return config.misc.alertRecipientEmailAddress;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the email address we send emails from.
|
||||
*
|
||||
* @see google.registry.reporting.ReportingEmailUtils
|
||||
* @see google.registry.billing.BillingEmailUtils
|
||||
*/
|
||||
|
||||
@Provides
|
||||
@Config("alertSenderEmailAddress")
|
||||
public static String provideAlertSenderEmailAddress(
|
||||
@Config("projectId") String projectId, RegistryConfigSettings config) {
|
||||
return String.format("%s@%s", projectId, config.misc.alertEmailSenderDomain);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns SSH client connection and read timeout.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue