Skip to content

Commit

Permalink
Merge pull request #409 from bizz84/fix-in-app-receipt-tests
Browse files Browse the repository at this point in the history
Fix InAppReceiptTests
  • Loading branch information
bizz84 authored Oct 16, 2018
2 parents ca9d3ff + d968057 commit d4614b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SwiftyStoreKitTests/InAppReceiptTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ private extension TimeInterval {

extension ReceiptItem: Equatable {

init(productId: String, purchaseDate: Date, subscriptionExpirationDate: Date? = nil, cancellationDate: Date? = nil, isTrialPeriod: Bool = false) {
init(productId: String, purchaseDate: Date, subscriptionExpirationDate: Date? = nil, cancellationDate: Date? = nil, isTrialPeriod: Bool = false, isInIntroOfferPeriod: Bool = false) {
self.productId = productId
self.quantity = 1
self.purchaseDate = purchaseDate
Expand All @@ -46,6 +46,7 @@ extension ReceiptItem: Equatable {
self.originalTransactionId = UUID().uuidString
self.webOrderLineItemId = UUID().uuidString
self.isTrialPeriod = isTrialPeriod
self.isInIntroOfferPeriod = isInIntroOfferPeriod
}

var receiptInfo: NSDictionary {
Expand Down

0 comments on commit d4614b5

Please sign in to comment.