DVDatabasePurchaseLedger class
- Implemented types
Constructors
- DVDatabasePurchaseLedger(DVDatabaseAdapter db, {String grantsTable = 'dv_purchase_grants', String notificationsTable = 'dv_purchase_notifications'})
Properties
- db → DVDatabaseAdapter
-
final
- grantsTable → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- notificationsTable → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
claimNotification(
DVStore store, String notificationId) → Future< bool> -
Records that
notificationIdis being applied. False when it already was: a replay.override -
find(
DVStore store, String originalTransactionId) → Future< DVPurchaseGrant?> -
override
-
forCustomer(
String customerKey) → Future< List< DVPurchaseGrant> > -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
put(
DVPurchaseGrant grant) → Future< void> -
Writes
grant, replacing any grant for the same purchase.override -
releaseNotification(
DVStore store, String notificationId) → Future< void> -
Undoes a claim whose application failed, so the store's retry applies.
override
-
remove(
DVStore store, String originalTransactionId) → Future< void> -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
unacknowledged(
) → Future< List< DVPurchaseGrant> > -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited