This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Assuming you have a class called API for all your API stuff | |
extension API { | |
enum PaidStatus: String { | |
case Paid | |
case Scheduled | |
} | |
} | |
if let paidStatus = API.PaidStatus(rawValue: paystubData.status.capitilzedString) { | |
switch paidStatus { |