Skip to content

Commit

Permalink
StoreProductDiscount: added description (#2604)
Browse files Browse the repository at this point in the history
  • Loading branch information
NachoSoto authored Jun 9, 2023
1 parent ce47044 commit e6444e2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Sources/Purchasing/StoreKitAbstractions/StoreProductDiscount.swift
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,21 @@ public final class StoreProductDiscount: NSObject, StoreProductDiscountType {
return Data(discount: self).hashValue
}

public override var description: String {
return """
<\(String(describing: StoreProductDiscount.self)):
offerIdentifier: \(self.offerIdentifier ?? "")
currencyCode: \(self.currencyCode ?? "")
price: \(self.price)
localizedPriceString: \(self.localizedPriceString)
paymentMode: \(self.paymentMode)
subscriptionPeriod: \(self.subscriptionPeriod)
numberOfPeriods: \(self.numberOfPeriods)
type: \(self.type)
>
"""
}

}

extension StoreProductDiscount: Sendable {}
Expand Down

0 comments on commit e6444e2

Please sign in to comment.