Package google.registry.beam.billing
Record Class BillingEvent
java.lang.Object
java.lang.Record
google.registry.beam.billing.BillingEvent
- Record Components:
id
- The unique ID for theBillingEvent
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 Summary
ConstructorDescriptionBillingEvent
(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 aBillingEvent
record class. -
Method Summary
Modifier and TypeMethodDescriptionaction()
Returns the value of theaction
record component.double
amount()
Returns the value of theamount
record component.Returns the value of thebillingId
record component.org.joda.time.DateTime
Returns the value of thebillingTime
record component.currency()
Returns the value of thecurrency
record component.domain()
Returns the value of thedomain
record component.final boolean
Indicates whether some other object is "equal to" this one.org.joda.time.DateTime
Returns the value of theeventTime
record component.flags()
Returns the value of theflags
record component.final int
hashCode()
Returns a hash code value for this object.long
id()
Returns the value of theid
record component.poNumber()
Returns the value of thepoNumber
record component.Returns the value of theregistrarId
record component.Returns the value of therepositoryId
record component.tld()
Returns the value of thetld
record component.final String
toString()
Returns a string representation of this record class.int
years()
Returns the value of theyears
record component.
-
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 aBillingEvent
record class.- Parameters:
id
- the value for theid
record componentbillingTime
- the value for thebillingTime
record componenteventTime
- the value for theeventTime
record componentregistrarId
- the value for theregistrarId
record componentbillingId
- the value for thebillingId
record componentpoNumber
- the value for thepoNumber
record componenttld
- the value for thetld
record componentaction
- the value for theaction
record componentdomain
- the value for thedomain
record componentrepositoryId
- the value for therepositoryId
record componentyears
- the value for theyears
record componentcurrency
- the value for thecurrency
record componentamount
- the value for theamount
record componentflags
- the value for theflags
record component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
id
public long id()Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
billingTime
public org.joda.time.DateTime billingTime()Returns the value of thebillingTime
record component.- Returns:
- the value of the
billingTime
record component
-
eventTime
public org.joda.time.DateTime eventTime()Returns the value of theeventTime
record component.- Returns:
- the value of the
eventTime
record component
-
registrarId
Returns the value of theregistrarId
record component.- Returns:
- the value of the
registrarId
record component
-
billingId
Returns the value of thebillingId
record component.- Returns:
- the value of the
billingId
record component
-
poNumber
Returns the value of thepoNumber
record component.- Returns:
- the value of the
poNumber
record component
-
tld
Returns the value of thetld
record component.- Returns:
- the value of the
tld
record component
-
action
Returns the value of theaction
record component.- Returns:
- the value of the
action
record component
-
domain
Returns the value of thedomain
record component.- Returns:
- the value of the
domain
record component
-
repositoryId
Returns the value of therepositoryId
record component.- Returns:
- the value of the
repositoryId
record component
-
years
public int years()Returns the value of theyears
record component.- Returns:
- the value of the
years
record component
-
currency
Returns the value of thecurrency
record component.- Returns:
- the value of the
currency
record component
-
amount
public double amount()Returns the value of theamount
record component.- Returns:
- the value of the
amount
record component
-
flags
Returns the value of theflags
record component.- Returns:
- the value of the
flags
record component
-