Transaction class

交易信息类

Constructors

Transaction({String? id, String? productID, ProductType? productType, OwnershipType? ownershipType, double? price, String? currency, String? originalID, int? originalPurchaseDate, int? purchaseDate, int? purchasedQuantity, PurchaseReason? purchaseReason, String? subscriptionGroupID, int? expirationDate, bool? isUpgraded, bool? hasRevocation, int? revocationDate, int? revocationReason, String? environment, String? appAccountToken, String? appBundleID, String? appTransactionID, int? signedDate, String? storefrontId, String? storefrontCountryCode, String? storefrontCurrency, String? webOrderLineItemID, String? deviceVerificationNonce, String? deviceVerification, TransactionOffer? offer, bool isSubscribedButFreeTrailCancelled = false})
Transaction.fromMap(Map<String, dynamic> map)
factory

Properties

appAccountToken String?
final
appBundleID String?
final
appTransactionID String?
final
currency String?
final
deviceVerification String?
final
deviceVerificationNonce String?
final
environment String?
final
expirationDate int?
final
hashCode int
The hash code for this object.
no setterinherited
hasRevocation bool?
final
id String?
final
isSubscribedButFreeTrailCancelled bool
final
isUpgraded bool?
final
offer TransactionOffer?
final
originalID String?
final
originalPurchaseDate int?
final
ownershipType OwnershipType?
final
price double?
final
productID String?
final
productType ProductType?
final
purchaseDate int?
final
purchasedQuantity int?
final
purchaseReason PurchaseReason?
final
revocationDate int?
final
revocationReason int?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signedDate int?
final
storefrontCountryCode String?
final
storefrontCurrency String?
final
storefrontId String?
final
subscriptionGroupID String?
final
webOrderLineItemID String?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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