DVPurchaseResult class
What a verification or notification did.
Constructors
-
DVPurchaseResult({bool handled = false, bool replayed = false, bool stale = false, bool undeclared = false, bool unattributed = false, bool refused = false, bool ignored = false, String? reason, String? code, String? customerKey, Set<
Entitlement> granted = const <Entitlement>{}, Set<Entitlement> revoked = const <Entitlement>{}, Set<String> consumed = const <String>{}, Set<String> refunded = const <String>{}}) -
const
Properties
- code → String?
-
The diagnostic code of a refusal, when it has one.
final
-
consumed
→ Set<
String> -
Consumable product ids this credited. See DVPurchaseChange.consumed.
final
- customerKey → String?
-
final
-
granted
→ Set<
Entitlement> -
final
- handled → bool
-
Whether the ledger was written.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- ignored → bool
-
The notification verified and carried no purchase
(DVStoreNothingToApply). Acknowledged; nothing written.
final
- reason → String?
-
final
-
refunded
→ Set<
String> -
Consumable product ids this reversed. See DVPurchaseChange.refunded.
final
- refused → bool
-
Refused, with reason. Only restore reports refusals as results.
final
- replayed → bool
-
The notification was already applied.
final
-
revoked
→ Set<
Entitlement> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stale → bool
-
The answer is older than one already applied to the same purchase.
final
- unattributed → bool
-
A notification for a purchase no application user has presented yet.
Nothing is granted; the purchase is granted when its receipt is
verified, from the store's state at that moment.
final
- undeclared → bool
-
The store named a product the project does not declare:
DV-PURCHASE-004.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> - What reaches the device. The customer key stays on the server.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
Map< String, Object?> json) → DVPurchaseResult