Record Class BillingEvent

java.lang.Object
java.lang.Record
google.registry.beam.billing.BillingEvent
Record Components:
id - The unique ID for the BillingEvent associated with this event.
billingTime - The DateTime (in UTC) this event becomes billable.
eventTime - The DateTime (in UTC) this event was generated.
registrarId - The billed registrar's name.
billingId - The billed registrar's billing account key.
poNumber - The Purchase Order number.
tld - The TLD this event was generated for.
action - The billable action this event was generated for (CREATE, RENEW, TRANSFER...).
domain - The fully qualified domain name this event was generated for.
repositoryId - The unique RepoID associated with the billed domain.
years - The number of years this billing event is made out for.
currency - The 3-letter currency code for the billing event (USD or JPY).
amount - The total cost associated with this billing event.
flags - A list of space-delimited flags associated with the event.

public record BillingEvent(long id, org.joda.time.DateTime billingTime, org.joda.time.DateTime eventTime, String registrarId, String billingId, String poNumber, String tld, String action, String domain, String repositoryId, int years, String currency, double amount, String flags) extends Record
A record representing a single billable event, parsed from a SchemaAndRecord.
  • Constructor Details

    • BillingEvent

      public BillingEvent(long id, org.joda.time.DateTime billingTime, org.joda.time.DateTime eventTime, String registrarId, String billingId, String poNumber, String tld, String action, String domain, String repositoryId, int years, String currency, double amount, String flags)
      Creates an instance of a BillingEvent record class.
      Parameters:
      id - the value for the id record component
      billingTime - the value for the billingTime record component
      eventTime - the value for the eventTime record component
      registrarId - the value for the registrarId record component
      billingId - the value for the billingId record component
      poNumber - the value for the poNumber record component
      tld - the value for the tld record component
      action - the value for the action record component
      domain - the value for the domain record component
      repositoryId - the value for the repositoryId record component
      years - the value for the years record component
      currency - the value for the currency record component
      amount - the value for the amount record component
      flags - the value for the flags record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public long id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • billingTime

      public org.joda.time.DateTime billingTime()
      Returns the value of the billingTime record component.
      Returns:
      the value of the billingTime record component
    • eventTime

      public org.joda.time.DateTime eventTime()
      Returns the value of the eventTime record component.
      Returns:
      the value of the eventTime record component
    • registrarId

      public String registrarId()
      Returns the value of the registrarId record component.
      Returns:
      the value of the registrarId record component
    • billingId

      public String billingId()
      Returns the value of the billingId record component.
      Returns:
      the value of the billingId record component
    • poNumber

      public String poNumber()
      Returns the value of the poNumber record component.
      Returns:
      the value of the poNumber record component
    • tld

      public String tld()
      Returns the value of the tld record component.
      Returns:
      the value of the tld record component
    • action

      public String action()
      Returns the value of the action record component.
      Returns:
      the value of the action record component
    • domain

      public String domain()
      Returns the value of the domain record component.
      Returns:
      the value of the domain record component
    • repositoryId

      public String repositoryId()
      Returns the value of the repositoryId record component.
      Returns:
      the value of the repositoryId record component
    • years

      public int years()
      Returns the value of the years record component.
      Returns:
      the value of the years record component
    • currency

      public String currency()
      Returns the value of the currency record component.
      Returns:
      the value of the currency record component
    • amount

      public double amount()
      Returns the value of the amount record component.
      Returns:
      the value of the amount record component
    • flags

      public String flags()
      Returns the value of the flags record component.
      Returns:
      the value of the flags record component