Преглед на файлове

Merge pull request #316 from bizz84/feature/payment-transaction-date

Add transactionDate to PaymentTransaction
Andrea Bizzotto преди 7 години
родител
ревизия
b7d77e5ba4
променени са 2 файла, в които са добавени 5 реда и са изтрити 0 реда
  1. 4 0
      CHANGELOG.md
  2. 1 0
      SwiftyStoreKit/SwiftyStoreKit+Types.swift

+ 4 - 0
CHANGELOG.md

@@ -2,6 +2,10 @@
 
 All notable changes to this project will be documented in this file.
 
+## [0.11.1](https://github.com/bizz84/SwiftyStoreKit/releases/tag/0.11.1) Add `transactionDate` to `PaymentTransaction`
+
+* Add `transactionDate` to `PaymentTransaction` ([#316](https://github.com/bizz84/SwiftyStoreKit/pull/316), see [#312](https://github.com/bizz84/SwiftyStoreKit/issues/312)).
+
 ## [0.11.0](https://github.com/bizz84/SwiftyStoreKit/releases/tag/0.11.0) Add `fetchReceipt` method + update `verifyReceipt` and `ReceiptValidator` protocol
 
 * Add `fetchReceipt` method. Update `verifyReceipt` to use it ([#278](https://github.com/bizz84/SwiftyStoreKit/pull/278), related issues: [#272](https://github.com/bizz84/SwiftyStoreKit/issues/272), [#223](https://github.com/bizz84/SwiftyStoreKit/issues/223)).

+ 1 - 0
SwiftyStoreKit/SwiftyStoreKit+Types.swift

@@ -50,6 +50,7 @@ public protocol ReceiptValidator {
 
 // Payment transaction
 public protocol PaymentTransaction {
+    var transactionDate: Date? { get }
     var transactionState: SKPaymentTransactionState { get }
     var transactionIdentifier: String? { get }
 }