From e01edf261d196e5465bd40816ced044b94d9699f Mon Sep 17 00:00:00 2001 From: ctingue Date: Mon, 11 Apr 2016 12:39:39 -0700 Subject: [PATCH] Add a SYNTHETIC flag for BillingEvent ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=119559193 --- .../google/domain/registry/model/billing/BillingEvent.java | 7 ++++++- javatests/com/google/domain/registry/model/schema.txt | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/java/com/google/domain/registry/model/billing/BillingEvent.java b/java/com/google/domain/registry/model/billing/BillingEvent.java index 39162ac24..bf7334edf 100644 --- a/java/com/google/domain/registry/model/billing/BillingEvent.java +++ b/java/com/google/domain/registry/model/billing/BillingEvent.java @@ -70,7 +70,12 @@ public abstract class BillingEvent extends ImmutableObject ANCHOR_TENANT, AUTO_RENEW, LANDRUSH, - SUNRISE + SUNRISE, + /** + * This flag will be added to any {@link OneTime} events that are created via, e.g., an + * automated process to expand {@link Recurring} events. + */ + SYNTHETIC } /** Entity id. */ diff --git a/javatests/com/google/domain/registry/model/schema.txt b/javatests/com/google/domain/registry/model/schema.txt index 4f26ac519..6953ee8de 100644 --- a/javatests/com/google/domain/registry/model/schema.txt +++ b/javatests/com/google/domain/registry/model/schema.txt @@ -26,6 +26,7 @@ enum com.google.domain.registry.model.billing.BillingEvent$Flag { AUTO_RENEW; LANDRUSH; SUNRISE; + SYNTHETIC; } class com.google.domain.registry.model.billing.BillingEvent$Modification { @Id long id;