DVPurchaseGrant class

One purchase's standing in the ledger: who holds it and until when.

Server-authored. A device never writes one, because the only evidence that would justify it is a receipt the server validates.

Constructors

DVPurchaseGrant({required DVStore store, required String originalTransactionId, required String transactionId, required String customerKey, required String productId, required String storeProductId, required DateTime purchasedAt, required DateTime? notAfter, required bool acknowledged, required DateTime lastEventAt, DateTime? revokedAt})
const

Properties

acknowledged → bool
Whether the store has been told. False past the store's window is DV-PURCHASE-006.
final
customerKey → String
The holder, as dvBillingCustomerKey names them.
final
hashCode → int
The hash code for this object.
no setterinherited
lastEventAt → DateTime
The store time of the newest answer applied. An older one is stale.
final
notAfter → DateTime?
The end of access, or null for a purchase that does not expire.
final
originalTransactionId → String
final
productId → String
The application's product id.
final
purchasedAt → DateTime
final
revokedAt → DateTime?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
store → DVStore
final
storeProductId → String
final
transactionId → String
final

Methods

activeAt(DateTime now) → bool
Whether this grant gives access at now.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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