One Logo Pool Ball
StoreKit · IOS API REFERENCE

AdvancedCommerceProduct

struct · iOS 18.4+ · SDK 27.1

struct AdvancedCommerceProduct

Members (8)

get · iOS 18.4+

allTransactions

TypeScript
get allTransactions(): Transaction_Transactions
Swift declaration
var allTransactions: Transaction.Transactions { get }
get · iOS 18.4+

debugDescription

TypeScript
get debugDescription(): string
Swift declaration
var 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 · iOS 18.4+

latestTransaction

TypeScript
get latestTransaction(): Promise<(VerificationResult<Transaction>) | null>
Swift declaration
var latestTransaction: VerificationResult<Transaction>? { get async }
get · iOS 18.4+

currentEntitlements

TypeScript
get currentEntitlements(): Transaction_Transactions
Swift declaration
var currentEntitlements: Transaction.Transactions { get }
init · iOS 18.4+

init

TypeScript
static init(id: string): Promise<AdvancedCommerceProduct>
Swift declaration
init(id: AdvancedCommerceProduct.ID) async throws
get · iOS 18.4+

id

TypeScript
get id(): string
Swift declaration
let id: AdvancedCommerceProduct.ID

The product identifier that represents the generic product ID used with the Advanced Commerce API.

get · iOS 18.4+

type

TypeScript
get type(): Product_ProductType
Swift declaration
let type: AdvancedCommerceProduct.ProductType
method · iOS 18.4+

purchase

TypeScript
purchase(compactJWS: string, viewController: _UIKit_UIViewController, options?: Array<AdvancedCommerceProduct_PurchaseOption>): Promise<Product_PurchaseResult>
Swift declaration
func purchase(compactJWS: String, confirmIn viewController: UIViewController, options: Set<AdvancedCommerceProduct.PurchaseOption> = []) async throws -> AdvancedCommerceProduct.PurchaseResult

Skipped declarations

No declarations were skipped in this snapshot.

All StoreKit types →