VirtualCurrencyGrant class
One credit grant a package's product pays: amount of the virtual
currency code, on grantOn ("PURCHASE", "RENEWAL" or "BOTH"
today; newer values pass through verbatim). The same rule the server
grants by. Mirrors RvVirtualCurrencyGrant / VirtualCurrencyGrantDTO.
- Annotations
Constructors
Properties
- amount → int
-
How much of the currency one grant pays.
final
- code → String
-
The virtual currency's code, as configured in the dashboard (e.g.
"GOLD").final - expiresAtPeriodEnd → bool
-
Whether credits granted by this rule expire at the end of the period
they were granted for: the billing period, the N-day period for a
periodic rule, or the trial.
final
- grantOn → String
-
When the grant fires. An open string so a newer server value never fails decoding.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- intervalDays → int?
-
Days between grants for a periodic trigger; null for every lifecycle trigger.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- trialAmount → int
-
Credits paid once, when a trial starts, for each subscription chain and
currency. Never clawed back.
0means no trial grant.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override