InAppPurchaseReceipt
@objc(DTInAppPurchaseReceipt)
@objcMembers
public final class InAppPurchaseReceipt : NSObject
A purchase receipt for an In-App-Purchase.
-
The number of items purchased. This value corresponds to the quantity property of the SKPayment object stored in the transaction’s payment property.
Declaration
Swift
fileprivate(set) public var quantity: Int? { get }
-
ObjectiveC support of quantity. To retrieve the value specify
quantityNumber.integerValue
.The number of items purchased. This value corresponds to the quantity property of the SKPayment object stored in the transaction’s payment property.
Declaration
Swift
public var quantityNumber: NSNumber? { get }
-
The product identifier of the item that was purchased. This value corresponds to the productIdentifier property of the
SKPayment
object stored in the transaction’s payment property.Declaration
Swift
fileprivate(set) public var productIdentifier: String? { get }
-
The transaction identifier of the item that was purchased. This value corresponds to the transaction’s transactionIdentifier property.
Declaration
Swift
fileprivate(set) public var transactionIdentifier: String? { get }
-
For a transaction that restores a previous transaction, the transaction identifier of the original transaction. Otherwise, identical to the transaction identifier. This value corresponds to the original transaction’s transactionIdentifier property.
All receipts in a chain of renewals for an auto-renewable subscription have the same value for this field.
Declaration
Swift
fileprivate(set) public var originalTransactionIdentifier: String? { get }
-
The date and time that the item was purchased. This value corresponds to the transaction’s transactionDate property.
For a transaction that restores a previous transaction, the purchase date is the date of the restoration. Use Original Purchase Date to get the date of the original transaction.
In an auto-renewable subscription receipt, this is always the date when the subscription was purchased or renewed, regardless of whether the transaction has been restored.
Declaration
Swift
fileprivate(set) public var purchaseDate: Date? { get }
-
For a transaction that restores a previous transaction, the date of the original transaction. This value corresponds to the original transaction’s transactionDate property.
In an auto-renewable subscription receipt, this indicates the beginning of the subscription period, even if the subscription has been renewed.
Declaration
Swift
fileprivate(set) public var originalPurchaseDate: Date? { get }
-
The expiration date for the subscription. This key is only present for auto-renewable subscription receipts.
Declaration
Swift
fileprivate(set) public var subscriptionExpirationDate: Date? { get }
-
For a transaction that was canceled by Apple customer support, the time and date of the cancellation. Treat a canceled receipt the same as if no purchase had ever been made.
Declaration
Swift
fileprivate(set) public var cancellationDate: Date? { get }
-
The primary key for identifying subscription purchases.
Declaration
Swift
fileprivate(set) public var webOrderLineItemIdentifier: Int? { get }
-
ObjectiveC support of webOrderLineItemIdentifier. Retrieve the value with
webOrderLineItemIdentifierNumber.integerValue
. The primary key for identifying subscription purchases.Declaration
Swift
public var webOrderLineItemIdentifierNumber: NSNumber? { get }
-
The designated initializer
Declaration
Swift
public init?(data: Data)