File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
Sources/FlareUIMock/Mocks Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ All notable changes to this project will be documented in this file.
10
10
## Updated
11
11
- Update ` codecov ` version
12
12
- Updated in Pull Request [ #59 ] ( https://github.com/space-code/flare/pull/59 )
13
+ - Update mocks
14
+ - Updated in Pull Request [ #60 ] ( https://github.com/space-code/flare/pull/60 )
13
15
14
16
#### 3.x Releases
15
17
- ` 3.0.x ` Releases - [ ` 3.0.0 ` ] ( #300 )
Original file line number Diff line number Diff line change @@ -257,6 +257,17 @@ public final class FlareMock: IFlare {
257
257
258
258
public func restore( _: @escaping ( Result < Void , any Error > ) -> Void ) { }
259
259
260
+ public var invokedReceiptUpdateTransactions = false
261
+ public var invokedReceiptUpdateTransactionsCount = 0
262
+ public var stubbedReceiptUpdateTransactions = " "
263
+ public func receipt( updateTransactions _: Bool ) async throws -> String {
264
+ invokedReceiptUpdateTransactions = true
265
+ invokedReceiptUpdateTransactionsCount += 1
266
+ return stubbedReceiptUpdateTransactions
267
+ }
268
+
269
+ public func receipt( updateTransactions _: Bool , completion _: @escaping ( Result < String , IAPError > ) -> Void ) { }
270
+
260
271
#if os(iOS) || VISION_OS
261
272
public var invokedBeginRefundRequest = false
262
273
public var invokedBeginRefundRequestCount = 0
You can’t perform that action at this time.
0 commit comments