InAppPurchaseSummary
public struct InAppPurchaseSummary : Equatable
Represents a user’s in-app purchase summary, including total amount spent, currency, and number of purchases
-
The total amount the user has spent on in-app purchases. Value is optional and may be nil if unknown
Declaration
Swift
public let totalAmountSpent: Double? -
The currency code (ISO 4217) for the total spent amount. Value is optional and may be nil if unknown
Declaration
Swift
public let currencyCode: String? -
The total number of in-app purchases the user has made. Value is optional and may be nil if unknown
Declaration
Swift
public let numberOfPurchases: Int? -
Initializes a new instance of
InAppPurchaseSummary.Declaration
Swift
public init(totalAmountSpent: Double? = nil, currencyCode: String? = nil, numberOfPurchases: Int? = nil)Parameters
totalAmountSpentThe total amount the user has spent on in-app purchases. Optional, defaults to nil if unknown.
currencyCodeThe currency code (ISO 4217) for the total spent amount. Optional, defaults to nil if unknown.
numberOfPurchasesThe total number of in-app purchases the user has made. Optional, defaults to nil if unknown.