mirror of
https://github.com/google/nomulus.git
synced 2025-08-02 16:02:10 +02:00
Add @ReportedOn annotation for BigQuery exports
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=142038227
This commit is contained in:
parent
6cdac0462a
commit
b0ebeed5a5
20 changed files with 145 additions and 77 deletions
|
@ -37,6 +37,7 @@ import com.googlecode.objectify.annotation.Parent;
|
|||
import com.googlecode.objectify.condition.IfNull;
|
||||
import google.registry.model.Buildable;
|
||||
import google.registry.model.ImmutableObject;
|
||||
import google.registry.model.annotations.ReportedOn;
|
||||
import google.registry.model.common.TimeOfYear;
|
||||
import google.registry.model.domain.GracePeriod;
|
||||
import google.registry.model.domain.rgp.GracePeriodStatus;
|
||||
|
@ -198,6 +199,7 @@ public abstract class BillingEvent extends ImmutableObject
|
|||
}
|
||||
|
||||
/** A one-time billable event. */
|
||||
@ReportedOn
|
||||
@Entity
|
||||
public static class OneTime extends BillingEvent {
|
||||
|
||||
|
@ -328,6 +330,7 @@ public abstract class BillingEvent extends ImmutableObject
|
|||
* recurring event might change and each time we bill for it we need to bill at the current cost,
|
||||
* not the value that was in use at the time the recurrence was created.
|
||||
*/
|
||||
@ReportedOn
|
||||
@Entity
|
||||
public static class Recurring extends BillingEvent {
|
||||
|
||||
|
@ -400,6 +403,7 @@ public abstract class BillingEvent extends ImmutableObject
|
|||
* <p>This is implemented as a separate event rather than a bit on BillingEvent in order to
|
||||
* preserve the immutability of billing events.
|
||||
*/
|
||||
@ReportedOn
|
||||
@Entity
|
||||
public static class Cancellation extends BillingEvent {
|
||||
|
||||
|
@ -510,6 +514,7 @@ public abstract class BillingEvent extends ImmutableObject
|
|||
/**
|
||||
* An event representing a modification of an existing one-time billing event.
|
||||
*/
|
||||
@ReportedOn
|
||||
@Entity
|
||||
public static class Modification extends BillingEvent {
|
||||
|
||||
|
|
|
@ -31,12 +31,14 @@ import com.googlecode.objectify.annotation.Id;
|
|||
import com.googlecode.objectify.annotation.Parent;
|
||||
import google.registry.model.Buildable;
|
||||
import google.registry.model.ImmutableObject;
|
||||
import google.registry.model.annotations.ReportedOn;
|
||||
import google.registry.model.registrar.Registrar;
|
||||
import google.registry.model.registry.Registry;
|
||||
import org.joda.money.CurrencyUnit;
|
||||
import org.joda.time.DateTime;
|
||||
|
||||
/** A per-registrar billing credit, applied toward future charges for registrar activity. */
|
||||
@ReportedOn
|
||||
@Entity
|
||||
public final class RegistrarCredit extends ImmutableObject implements Buildable {
|
||||
|
||||
|
|
|
@ -32,6 +32,7 @@ import com.googlecode.objectify.annotation.Id;
|
|||
import com.googlecode.objectify.annotation.Parent;
|
||||
import google.registry.model.Buildable;
|
||||
import google.registry.model.ImmutableObject;
|
||||
import google.registry.model.annotations.ReportedOn;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import org.joda.money.CurrencyUnit;
|
||||
|
@ -49,6 +50,7 @@ import org.joda.time.DateTime;
|
|||
* taking the balance object with the latest effective time that is before (before or at) T, and
|
||||
* breaking any ties by choosing the mostly recently written among those balances.
|
||||
*/
|
||||
@ReportedOn
|
||||
@Entity
|
||||
public final class RegistrarCreditBalance extends ImmutableObject implements Buildable {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue