RedeemResult class

Constructors

RedeemResult({bool? alreadyRedeemed, int? chargeCents, int? discountCents, Redemption? redemption})
Returns a new RedeemResult instance.

Properties

alreadyRedeemed ↔ bool?
AlreadyRedeemed is true when this org had already taken the promo and the call was an idempotent replay.
getter/setter pair
chargeCents ↔ int?
ChargeCents is what month one costs after the discount, DiscountCents the discount that produced it. Both are quoted figures against the org's derived plan — NOTHING WAS CREDITED and no wallet moved.
getter/setter pair
discountCents ↔ int?
DiscountCents is the discount claimed for month one, in USD cents, at the single-seat floor. It is the same figure recorded on the Redemption, and it is evidence an admin may later grant against — not a balance.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
redemption ↔ Redemption?
Redemption is the row that was recorded — the org's claim on this promo, with the server-derived plan and seat count. On a replay it is the ORIGINAL row, so its redeemedAt is when the org first took the promo, not now.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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

Static Methods

fromJson(dynamic value) → RedeemResult?
Returns a new RedeemResult instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<RedeemResult>
mapFromJson(dynamic json) → Map<String, RedeemResult>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<RedeemResult>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.