Receipt class

Annotations
  • @JsonSerializable()

Constructors

Receipt({String? receiptType, int? adamId, int? appItemId, String? bundleId, String? applicationVersion, int? downloadId, int? versionExternalIdentifier, String? receiptCreationDate, String? receiptCreationDateMs, String? receiptCreationDatePst, String? requestDate, String? requestDateMs, String? requestDatePst, String? originalPurchaseDate, String? originalPurchaseDateMs, String? originalPurchaseDatePst, String? originalApplicationVersion, List<ReceiptInfo>? inApp})
Receipt.fromJson(Map<String, dynamic> json)
factory

Properties

adamId int?
final
appItemId int?
Generated by App Store Connect and used by the App Store to uniquely identify the app purchased. Apps are assigned this identifier only in production. Treat this value as a 64-bit long integer.
final
applicationVersion String?
The app’s version number. The app's version number corresponds to the value of CFBundleVersion (in iOS) or CFBundleShortVersionString (in macOS) in the Info.plist. In production, this value is the current version of the app on the device based on the receipt_creation_date_ms. In the sandbox, the value is always "1.0".
final
bundleId String?
The bundle identifier for the app to which the receipt belongs. You provide this string on App Store Connect. This corresponds to the value of CFBundleIdentifier in the Info.plist file of the app.
final
downloadId int?
A unique identifier for the app download transaction.
final
hashCode int
The hash code for this object.
no setterinherited
inApp List<ReceiptInfo>?
An array that contains the in-app purchase receipt fields for all in-app purchase transactions.
final
originalApplicationVersion String?
The version of the app that the user originally purchased. This value does not change, and corresponds to the value of CFBundleVersion (in iOS) or CFBundleShortVersionString (in macOS) in the Info.plist file of the original purchase. In the sandbox environment, the value is always "1.0".
final
originalPurchaseDate String?
The time of the original app purchase, in a date-time format similar to ISO 8601.
final
originalPurchaseDateMs String?
The time of the original app purchase, in UNIX epoch time format, in milliseconds. Use this time format for processing dates.
final
originalPurchaseDatePst String?
The time of the original app purchase, in the Pacific Time zone.
final
receiptCreationDate String?
The time the App Store generated the receipt, in a date-time format similar to ISO 8601.
final
receiptCreationDateMs String?
The time the App Store generated the receipt, in UNIX epoch time format, in milliseconds. Use this time format for processing dates. This value does not change.
final
receiptCreationDatePst String?
The time the user ordered the app available for pre-order, in the Pacific Time zone.
final
receiptType String?
final
requestDate String?
The time the request to the verifyReceipt endpoint was processed and the response was generated, in a date-time format similar to ISO 8601.
final
requestDateMs String?
The time the request to the verifyReceipt endpoint was processed and the response was generated, in UNIX epoch time format, in milliseconds. Use this time format for processing dates.
final
requestDatePst String?
The time the request to the verifyReceipt endpoint was processed and the response was generated, in the Pacific Time zone.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
versionExternalIdentifier int?
An arbitrary number that identifies a revision of your app. In the sandbox, this key's value is “0”.
final

Methods

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

Operators

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