StoreTransaction class

Represents a purchase transaction

Annotations
  • @freezed

Constructors

StoreTransaction(@Deprecated('Use transactionIdentifier instead.') String revenueCatIdentifier, String productIdentifier, String purchaseDate)
factory
StoreTransaction.create(String transactionIdentifier, @Deprecated('Use transactionIdentifier instead.') @JsonKey(readValue: _readRevenueCatIdentifier) String revenueCatIdentifier, String productIdentifier, String purchaseDate)
Experimental. This factory method is subject to changes without a major release.
const
factory
StoreTransaction.fromJson(Map<String, dynamic> json)
factory

Properties

copyWith → $StoreTransactionCopyWith<StoreTransaction>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
productIdentifier String
Product Id associated with the transaction.
no setterinherited
purchaseDate String
Purchase date of the transaction in ISO 8601 format.
no setterinherited
revenueCatIdentifier String
Deprecated: Use transactionIdentifier instead.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transactionIdentifier String
RevenueCat Id associated to the transaction.
no setterinherited

Methods

map<TResult extends Object?>({required TResult create(_StoreTransaction value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? create(_StoreTransaction value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult create(_StoreTransaction value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult create(String transactionIdentifier, String revenueCatIdentifier, String productIdentifier, String purchaseDate)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult create(String transactionIdentifier, String revenueCatIdentifier, String productIdentifier, String purchaseDate)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? create(String transactionIdentifier, String revenueCatIdentifier, String productIdentifier, String purchaseDate)?}) → TResult?
inherited

Operators

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