StoreTransaction.create constructor

const StoreTransaction.create(
  1. @JsonKey(name: 'transactionIdentifier') String transactionIdentifier,
  2. @Deprecated('Use transactionIdentifier instead.') @JsonKey(readValue: _readRevenueCatIdentifier) String revenueCatIdentifier,
  3. @JsonKey(name: 'productIdentifier') String productIdentifier,
  4. @JsonKey(name: 'purchaseDate') 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.
  @JsonKey(name: 'transactionIdentifier') String transactionIdentifier,

  /// Deprecated: Use transactionIdentifier instead.
  @Deprecated('Use transactionIdentifier instead.')
  @JsonKey(readValue: _readRevenueCatIdentifier)
      String revenueCatIdentifier,

  /// Product Id associated with the transaction.
  @JsonKey(name: 'productIdentifier') String productIdentifier,

  /// Purchase date of the transaction in ISO 8601 format.
  @JsonKey(name: 'purchaseDate') String purchaseDate,
) = _StoreTransaction;