Class BulkPricingPackage
java.lang.Object
google.registry.model.ImmutableObject
google.registry.model.domain.token.BulkPricingPackage
@Entity(name="PackagePromotion")
public class BulkPricingPackage
extends ImmutableObject
implements Buildable
An entity representing a bulk pricing promotion. Note that this table is still called
PackagePromotion in Cloud SQL.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder for constructingBulkPricingPackage
objects, since they are immutable.Nested classes/interfaces inherited from class google.registry.model.ImmutableObject
ImmutableObject.DoNotHydrate, ImmutableObject.IgnoredInDiffableMap, ImmutableObject.Insignificant
Nested classes/interfaces inherited from interface google.registry.model.Buildable
Buildable.GenericBuilder<S,
B extends Buildable.GenericBuilder<?, ?>>, Buildable.Overlayable<T> -
Field Summary
Fields inherited from class google.registry.model.ImmutableObject
hashCode
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.joda.money.Money
long
getId()
Optional
<org.joda.time.DateTime> int
int
org.joda.time.DateTime
getToken()
static Optional
<BulkPricingPackage> loadByTokenString
(String tokenString) Loads and returns a BulkPricingPackage entity by its token string directly from Cloud SQL.Methods inherited from class google.registry.model.ImmutableObject
clone, cloneEmptyToNull, equals, getSignificantFields, hashCode, toDiffableFieldMap, toHydratedString, toString, toStringHelper
-
Constructor Details
-
BulkPricingPackage
public BulkPricingPackage()
-
-
Method Details
-
getId
public long getId() -
getToken
-
getMaxDomains
public int getMaxDomains() -
getMaxCreates
public int getMaxCreates() -
getBulkPrice
public org.joda.money.Money getBulkPrice() -
getNextBillingDate
public org.joda.time.DateTime getNextBillingDate() -
getLastNotificationSent
-
loadByTokenString
Loads and returns a BulkPricingPackage entity by its token string directly from Cloud SQL. -
createVKey
- Overrides:
createVKey
in classImmutableObject
-
asBuilder
-