mirror of
https://github.com/RevenueCat/purchases-ios
synced 2026-11-11 22:55:55 +05:45
For [CSDK-626]. [CSDK-626]: https://revenuecats.atlassian.net/browse/CSDK-626?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
38 lines
749 B
Swift
38 lines
749 B
Swift
//
|
|
// Package+Extensions.swift
|
|
// PurchaseTester (iOS)
|
|
//
|
|
// Created by Josh Holtz on 6/22/22.
|
|
//
|
|
|
|
import RevenueCat
|
|
|
|
extension Package {
|
|
|
|
var display: String {
|
|
switch self.packageType {
|
|
case .unknown:
|
|
return "unknown"
|
|
case .custom:
|
|
return "custom"
|
|
case .lifetime:
|
|
return "lifetime"
|
|
case .annual:
|
|
return "annual"
|
|
case .sixMonth:
|
|
return "six month"
|
|
case .threeMonth:
|
|
return "three month"
|
|
case .twoMonth:
|
|
return "two month"
|
|
case .monthly:
|
|
return "monthly"
|
|
case .weekly:
|
|
return "weekly"
|
|
@unknown default:
|
|
fatalError()
|
|
}
|
|
}
|
|
|
|
}
|