appTransactionID
TypeScriptget appTransactionID(): stringSwift declaration@backDeployed(before: iOS 18.4, macOS 15.4, tvOS 18.4, watchOS 11.4, visionOS 2.4)
var appTransactionID: String { get }struct · iOS 16.0+ · SDK 27.1
struct AppTransactionRepresents signed transaction information for an app purchase.
get appTransactionID(): stringSwift declaration@backDeployed(before: iOS 18.4, macOS 15.4, tvOS 18.4, watchOS 11.4, visionOS 2.4)
var appTransactionID: String { get }get originalAppVersion(): stringSwift declarationlet originalAppVersion: StringThe version of the app originally purchased.
get appVersion(): stringSwift declarationlet appVersion: StringThe application version the transaction is for.
get signedDate(): globalThis.DateSwift declarationlet signedDate: DateThe date this transaction was generated and signed.
get environment(): AppStore_EnvironmentSwift declarationlet environment: AppStore.EnvironmentThe server environment this transaction was created in.
get appVersionID(): (number) | nullSwift declarationlet appVersionID: UInt64?A number the App Store uses to uniquely identify the version of the application.
get preorderDate(): (globalThis.Date) | nullSwift declarationlet preorderDate: Date?The date this app was preordered.
get revocationDate(): (globalThis.Date) | nullSwift declaration@backDeployed(before: iOS 27.0, macOS 27.0, tvOS 27.0, watchOS 27.0, visionOS 27.0)
var revocationDate: Date? { get }The revocation date of the app purchase.
get debugDescription(): stringSwift declarationvar debugDescription: String { get }A textual representation of this instance, suitable for debugging. Calling this property directly is discouraged. Instead, convert an instance of any type to a string by using the `String(reflecting:)` initializer. This initializer works with any type, and uses the custom `debugDescription` property for types that conform to `CustomDebugStringConvertible`: struct Point: CustomDebugStringConvertible { let x: Int, y: Int var debugDescription: String { return "(\(x), \(y))" } } let p = Point(x: 21, y: 30) let s = String(reflecting: p) print(s) // Prints "(21, 30)" The conversion of `p` to a string in the assignment to `s` uses the `Point` type's `debugDescription` property.
get originalPlatform(): AppStore_PlatformSwift declarationlet originalPlatform: AppStore.PlatformThe platform where the original purchase of the app.
get deviceVerification(): ArrayBufferSwift declarationlet deviceVerification: DataA SHA-384 hash of `AppStore.deviceVerificationID` appended after `deviceVerificationNonce` (both lowercased UUID strings).
get jsonRepresentation(): ArrayBufferSwift declarationvar jsonRepresentation: Data { get }The JSON representation of the transaction.
get originalPurchaseDate(): globalThis.DateSwift declarationlet originalPurchaseDate: DateThe date this original app purchase occurred on.
get deviceVerificationNonce(): stringSwift declarationlet deviceVerificationNonce: UUIDThe nonce used when computing `deviceVerification`. - SeeAlso: `AppStore.deviceVerificationID`
get storeTypeStringRepresentation(): stringSwift declaration@backDeployed(before: iOS 27.0, macOS 27.0, tvOS 27.0, watchOS 27.0, visionOS 27.0)
var storeTypeStringRepresentation: String { get }The string representation of the store where the original purchase of the app was made. @DeprecationSummary { Use the ``storeType`` property instead.}
get originalPlatformStringRepresentation(): stringSwift declaration@backDeployed(before: iOS 18.4, macOS 15.4, tvOS 18.4, watchOS 11.4, visionOS 2.4)
var originalPlatformStringRepresentation: String { get }The string representation of the platform where the original purchase of the app was made. @DeprecationSummary { Use the ``originalPlatform`` property instead.}
static get all(): AppTransaction_AppTransactionsSwift declarationstatic var all: AppTransaction.AppTransactions { get }Returns all the `AppTransaction`s for this version of the app.
get appID(): (number) | nullSwift declarationlet appID: UInt64?A number the App Store uses to uniquely identify the application.
static get shared(): Promise<VerificationResult<AppTransaction>>Swift declarationstatic var shared: VerificationResult<AppTransaction> { get async throws }Get the cached `AppTransaction` for this version of the app or make a request to get one from the App Store server if one has not been cached yet.
static refresh(): Promise<VerificationResult<AppTransaction>>Swift declarationstatic func refresh() async throws -> VerificationResult<AppTransaction>Refreshes the shared `AppTransaction` from the App Store server. Calling this function will force an authentication dialog to display to the user.
get bundleID(): stringSwift declarationlet bundleID: StringIdentifies the application the transaction is for.
get storeType(): AppTransaction_StoreTypeSwift declarationlet storeType: AppTransaction.StoreTypeThe store where the original purchase of the app was made.
No declarations were skipped in this snapshot.