Skip to content

Commit

Permalink
Offering: improved description (#2912)
Browse files Browse the repository at this point in the history
  • Loading branch information
NachoSoto committed Aug 3, 2023
1 parent d9258b9 commit ccab8dc
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions Sources/Purchasing/Offering.swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,19 @@ import Foundation

public override var description: String {
return """
<Offering {\n\tidentifier=\(identifier)\n\tserverDescription=\(serverDescription)\n"
\tavailablePackages=\(valueOrEmpty(availablePackages))\n\tlifetime=\(valueOrEmpty(lifetime))\n
\tannual=\(valueOrEmpty(annual))\n\tsixMonth=\(valueOrEmpty(sixMonth))\n
\tthreeMonth=\(valueOrEmpty(threeMonth))\n\ttwoMonth=\(valueOrEmpty(twoMonth))\n
\tmonthly=\(valueOrEmpty(monthly))\n\tweekly=\(valueOrEmpty(weekly))\n}>
<Offering {
identifier=\(self.identifier)
serverDescription=\(self.serverDescription)"
availablePackages=\(valueOrEmpty(self.availablePackages))
lifetime=\(valueOrEmpty(self.lifetime))
annual=\(valueOrEmpty(self.annual))
sixMonth=\(valueOrEmpty(self.sixMonth))
threeMonth=\(valueOrEmpty(self.threeMonth))
twoMonth=\(valueOrEmpty(self.twoMonth))
monthly=\(valueOrEmpty(self.monthly))
weekly=\(valueOrEmpty(self.weekly))
paywall=\(self.paywall.map { "\($0)" } ?? "nil")
}>
"""
}

Expand Down

0 comments on commit ccab8dc

Please sign in to comment.