PurchasesCredits class final

freeRefillsAt: the 1st of next month (UTC), when the free credits start again; null when there are none.

Constructors

PurchasesCredits({required String name, required String singular, required String plural, required int balance, required int bought, required int free, required int freeEachMonth, String? freeRefillsAt})
const
PurchasesCredits.fromJson(Map<String, Object?> json)
factory

Properties

balance → int
What the end user can spend now: bought plus this month’s free. Below zero after a refund of credits already spent; spending waits until it is above.
final
bought → int
Bought and given credits left. They never expire.
final
free → int
This month’s free credits left. They are spent first, and don’t carry over.
final
freeEachMonth → int
Free credits everyone gets each month.
final
freeRefillsAt → String?
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
The credits’ name in the payments config, such as "vetQuestions".
final
plural → String
More than one: "vet questions".
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
singular → String
One, as people see it: "vet question".
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited