<commit_before>//
//  InAppPurchaseReceipt.swift
//  Kvitto
//
//  Created by <NAME> on 07/10/15.
//  Copyright © 2015 <NAME>. All rights reserved.
//

import Foundation
import DTFoundation

/**
 A purchase receipt for an In-App-Purchase.
*/
@objc(DTInAppPurchaseReceipt) @objcMembers public final class InAppPurchaseReceipt: NSObject
{
    /**
    The number of items purchased. This value corresponds to the quantity property of the SKPayment object stored in the transaction’s payment property.
    */
    fileprivate(set) public var quantity: Int?
    
    /**
     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.
     */
    public var quantityNumber : NSNumber? {
        get {
            return quantity as NSNumber?
        }
    }
    
    /**
    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.
    */
    fileprivate(set) public var productIdentifier: String?
    
    /**
    The transaction identifier of the item that was purchased. This value corresponds to the transaction’s transactionIdentifier property.
    */
    fileprivate(set) public var transactionIdentifier: String?
    
    /**
    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.
    */
    fileprivate(set) public var originalTransactionIdentifier: String?
    
    /**
    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.
    */
    fileprivate(set) public var purchaseDate: Date?
    
    /**
    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.
    */
    fileprivate(set) public var originalPurchaseDate: Date?
    
    /**
    The expiration date for the subscription. This key is only present for auto-renewable subscription receipts.
    */
    fileprivate(set) public var subscriptionExpirationDate: Date?
    
    /**
    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.
    */
    fileprivate(set) public var cancellationDate: Date?
    
	/**
	For an auto-renewable subscription, whether or not it is in the introductory price period.
	*/
	fileprivate(set) public var isSubscriptionIntroductoryPricePeriod: Bool?
	
    /**
    The primary key for identifying subscription purchases.
    */
    fileprivate(set) public var webOrderLineItemIdentifier: Int?
    
    /**
     ObjectiveC support of webOrderLineItemIdentifier. Retrieve the value with `webOrderLineItemIdentifierNumber.integerValue`.
     The primary key for identifying subscription purchases.
     */
    public var webOrderLineItemIdentifierNumber : NSNumber? {
        get {<commit_msg>make isSubscriptionIntroductoryPricePeriod compatible with objc<commit_after>//
//  InAppPurchaseReceipt.swift
//  Kvitto
//
//  Created by <NAME> on 07/10/15.
//  Copyright © 2015 <NAME>. All rights reserved.
//

import Foundation
import DTFoundation

/**
 A purchase receipt for an In-App-Purchase.
*/
@objc(DTInAppPurchaseReceipt) @objcMembers public final class InAppPurchaseReceipt: NSObject
{
    /**
    The number of items purchased. This value corresponds to the quantity property of the SKPayment object stored in the transaction’s payment property.
    */
    fileprivate(set) public var quantity: Int?
    
    /**
     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.
     */
    public var quantityNumber : NSNumber? {
        get {
            return quantity as NSNumber?
        }
    }
    
    /**
    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.
    */
    fileprivate(set) public var productIdentifier: String?
    
    /**
    The transaction identifier of the item that was purchased. This value corresponds to the transaction’s transactionIdentifier property.
    */
    fileprivate(set) public var transactionIdentifier: String?
    
    /**
    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.
    */
    fileprivate(set) public var originalTransactionIdentifier: String?
    
    /**
    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.
    */
    fileprivate(set) public var purchaseDate: Date?
    
    /**
    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.
    */
    fileprivate(set) public var originalPurchaseDate: Date?
    
    /**
    The expiration date for the subscription. This key is only present for auto-renewable subscription receipts.
    */
    fileprivate(set) public var subscriptionExpirationDate: Date?
    
    /**
    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.
    */
    fileprivate(set) public var cancellationDate: Date?
    
	/**
	For an auto-renewable subscription, whether or not it is in the introductory price period.
	*/
	fileprivate(set) public var isSubscriptionIntroductoryPricePeriod: Bool = false
	
    /**
    The primary key for identifying subscription purchases.
    */
    fileprivate(set) public var webOrderLineItemIdentifier: Int?
    
    /**
     ObjectiveC support of webOrderLineItemIdentifier. Retrieve the value with `webOrderLineItemIdentifierNumber.integerValue`.
     The primary key for identifying subscription purchases.
     */
    public var webOrderLineItemIdentifierNumber : NSNumber? {
        get {
{'fraction_non_alphanumeric': 0.0540199419411839, 'fraction_numerical': 0.002524296352391771, 'mean_word_length': 3.404669260700389, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6524715', 'n_tokens_mistral': 1896, 'n_tokens_neox': 1819, 'n_words': 881}