Эх сурвалжийг харах

Update code documentation

Andrea Bizzotto 7 жил өмнө
parent
commit
03d3f61540

+ 5 - 0
SwiftyStoreKit/AppleReceiptValidator.swift

@@ -37,6 +37,11 @@ public struct AppleReceiptValidator: ReceiptValidator {
     private let service: VerifyReceiptURLType
     private let sharedSecret: String?
 
+    /**
+     * Reference Apple Receipt Validator
+     *  - Parameter service: Either .production or .sandbox
+     *  - Parameter sharedSecret: Only used for receipts that contain auto-renewable subscriptions. Your app’s shared secret (a hexadecimal string).
+     */
     public init(service: VerifyReceiptURLType = .production, sharedSecret: String? = nil) {
 		self.service = service
         self.sharedSecret = sharedSecret

+ 0 - 1
SwiftyStoreKit/InAppReceiptVerificator.swift

@@ -45,7 +45,6 @@ class InAppReceiptVerificator: NSObject {
     /**
      *  Verify application receipt.
      *  - Parameter validator: Validator to check the encrypted receipt and return the receipt in readable format
-     *  - Parameter password: Your app’s shared secret (a hexadecimal string). Only used for receipts that contain auto-renewable subscriptions.
      *  - Parameter forceRefresh: If true, refreshes the receipt even if one already exists.
      *  - Parameter refresh: closure to perform receipt refresh (this is made explicit for testability)
      *  - Parameter completion: handler for result

+ 0 - 1
SwiftyStoreKit/SwiftyStoreKit.swift

@@ -229,7 +229,6 @@ extension SwiftyStoreKit {
     /**
      *  Verify application receipt
      *  - Parameter validator: receipt validator to use
-     *  - Parameter password: Only used for receipts that contain auto-renewable subscriptions. Your app’s shared secret (a hexadecimal string).
      *  - Parameter forceRefresh: If true, refreshes the receipt even if one already exists.
      *  - Parameter completion: handler for result
      */