1
0
mirror of https://github.com/google/nomulus synced 2026-02-03 19:42:39 +00:00

Move invoice generation to billing bucket and improve emailing

This moves the new pipeline's invoice generation to the billing bucket, under the 'invoices/yyyy-MM' subdirectory.

This also changes the invoice e-mail to use a multipart message that attaches the invoice to the e-mail, to guarantee the correct MIME type and download.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=181746191
This commit is contained in:
larryruili
2018-01-12 08:18:49 -08:00
committed by Ben McIlwain
parent 5726f1dc4e
commit a42f18798e
16 changed files with 477 additions and 133 deletions

View File

@@ -55,7 +55,8 @@ public class InvoicingUtils {
yearMonth ->
FileBasedSink.convertToFileResourceIfPossible(
String.format(
"%s/%s", outputBucket, billingEvent.toFilename(yearMonth)))));
"%s/%s/%s",
outputBucket, yearMonth, billingEvent.toFilename(yearMonth)))));
}
/**