Skip to content

Commit

Permalink
Move error enum place
Browse files Browse the repository at this point in the history
  • Loading branch information
jlejoux committed Jan 19, 2018
1 parent f67f7ae commit e95662a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ProcessOut/Classes/ProcessOut.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ import Foundation

public class ProcessOut {


public enum POError {
case NetworkError
case MissingProjectId
case BadRequest(error: String)
case InternalError
}

public struct Card {
var CardNumber: String
var ExpMonth: Int
Expand Down Expand Up @@ -95,14 +103,6 @@ public class ProcessOut {
completion(nil, POError.MissingProjectId)
}
}

public enum POError: Error {
case NetworkError
case MissingProjectId
case BadRequest(error: String)
case InternalError
}


}

0 comments on commit e95662a

Please sign in to comment.