DVStoreTransaction class
A purchase as the store's server describes it.
Produced only by a DVStoreAdapter from a verified answer. Nothing a device sends becomes one of these without passing through the store.
Constructors
- DVStoreTransaction({required DVStore store, required String originalTransactionId, required String transactionId, required String storeProductId, required DateTime purchasedAt, required DateTime signedAt, DateTime? expiresAt, DateTime? graceEndsAt, DateTime? revokedAt, String? appAccountToken, bool acknowledged = false, DVMoney? price})
-
const
Properties
- acknowledged → bool
-
Whether the store has recorded an acknowledgement.
final
- appAccountToken → String?
-
The application account the purchase was made for: Apple's
appAccountToken, Play's obfuscated account id. The client sets it from DVPurchases.accountTokenFor when it opens the purchase sheet.final - expiresAt → DateTime?
-
The end of the paid period, or null for a purchase that does not expire.
final
- graceEndsAt → DateTime?
-
The end of the store's billing grace period, when it is in one.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- notAfter → DateTime?
-
The end of access: the paid period with the store's grace added.
no setter
- originalTransactionId → String
-
What stays the same across renewals: Apple's
originalTransactionId, Play's purchase token. The ledger keeps one grant per value.final - price → DVMoney?
-
What the customer paid, in integer minor units, when the store says.
final
- purchasedAt → DateTime
-
final
- revokedAt → DateTime?
-
When the store took the purchase back: a refund, a chargeback, a family
sharing revocation. Null while it stands.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- signedAt → DateTime
-
When the store produced this answer. Orders the answers about one
purchase, since neither store delivers them in order.
final
- store → DVStore
-
final
- storeProductId → String
-
The store's product identifier, not the application's.
final
- transactionId → String
-
This period's transaction: Apple's
transactionId, Play's order id.final
Methods
-
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