StoreTransaction.create constructor

const StoreTransaction.create(
  1. @JsonKey(readValue: _readTransactionIdentifier) String transactionIdentifier,
  2. @Deprecated('Use transactionIdentifier instead.') @JsonKey(readValue: _readTransactionIdentifier) String revenueCatIdentifier,
  3. String productIdentifier,
  4. String purchaseDate,
)

Experimental. This factory method is subject to changes without a major release.

Implementation

const factory StoreTransaction.create(
  /// RevenueCat Id associated to the transaction. Empty for Amazon.
  // ignore: invalid_annotation_target
  @JsonKey(readValue: _readTransactionIdentifier)
  String transactionIdentifier,

  /// Deprecated: Use transactionIdentifier instead. Empty for Amazon.
  @Deprecated('Use transactionIdentifier instead.')
  // ignore: invalid_annotation_target
  @JsonKey(readValue: _readTransactionIdentifier)
      String revenueCatIdentifier,

  /// Product Id associated with the transaction.
  String productIdentifier,

  /// Purchase date of the transaction in ISO 8601 format.
  String purchaseDate,
) = _StoreTransaction;