PurchaseObservation class
Sanitized input. Never pass a receipt, purchase token or account identifier.
Constructors
- PurchaseObservation({required String productId, required String source, int? observedAt, String? transactionRef, String state = 'unknown', String verification = 'unknown', bool? entitled, int? deliveryCount, bool? finished, bool? acknowledged, bool? consumed, int? expiresAt, int? gracePeriodExpiresAt, String environment = 'unknown', String productType = 'unknown'})
-
const
Properties
- acknowledged → bool?
-
final
- consumed → bool?
-
final
- deliveryCount → int?
-
final
- entitled → bool?
-
final
- environment → String
-
final
- expiresAt → int?
-
final
- finished → bool?
-
final
- gracePeriodExpiresAt → int?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- observedAt → int?
-
final
- productId → String
-
final
- productType → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → String
-
final
- state → String
-
final
- transactionRef → String?
-
final
- verification → String
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → AnsightJson -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited