Response
public enum Response : APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible
Undocumented
-
Undocumented
Declaration
Swift
public typealias SuccessType = Void -
Goto frontend
Declaration
Swift
case status303 -
Resource not found
Declaration
Swift
case status404(PCPayErrors) -
Internal server error
Declaration
Swift
case status500(PCPayErrors) -
Undocumented
Declaration
Swift
public var success: Void? { get } -
Undocumented
Declaration
Swift
public var failure: PCPayErrors? { get } -
either success or failure value. Success is anything in the 200..<300 status code range
Declaration
Swift
public var responseResult: APIResponseResult<Void, PCPayErrors> { get } -
Undocumented
Declaration
Swift
public var response: Any { get } -
Undocumented
Declaration
Swift
public var statusCode: Int { get } -
Undocumented
Declaration
Swift
public var successful: Bool { get } -
Undocumented
Declaration
Swift
public init(statusCode: Int, data: Data, decoder: ResponseDecoder) throws -
Declaration
Swift
public var description: String { get } -
Declaration
Swift
public var debugDescription: String { get }
View on GitHub
Response Enumeration Reference