Skip to content

Commit

Permalink
NonSubscriptionTransaction: expose storeTransactionIdentifier
Browse files Browse the repository at this point in the history
Fixes #3636.

This was added in #3009.
It was not made `public` because it was only used for #2841, but as explained in #3636 it can be useful as `public`.
  • Loading branch information
NachoSoto committed Feb 6, 2024
1 parent 019be12 commit 897b5a3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Purchasing/NonSubscriptionTransaction.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public final class NonSubscriptionTransaction: NSObject {
@objc public let transactionIdentifier: String

/// The unique identifier for the transaction created by the Store.
@objc internal let storeTransactionIdentifier: String
@objc public let storeTransactionIdentifier: String

init?(with transaction: CustomerInfoResponse.Transaction, productID: String) {
guard let transactionIdentifier = transaction.transactionIdentifier,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ + (void)checkAPI {
NSString *pid __unused = transaction.productIdentifier;
NSDate *pd __unused = transaction.purchaseDate;
NSString *tid __unused = transaction.transactionIdentifier;
NSString *stid __unused = transaction.storeTransactionIdentifier;
}

@end
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ func checkNonSubscriptionTransactionAPI() {
let _: String = transaction.productIdentifier
let _: Date = transaction.purchaseDate
let _: String = transaction.transactionIdentifier
let _: String = transaction.storeTransactionIdentifier
}

0 comments on commit 897b5a3

Please sign in to comment.