Response
public enum Response : APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible
Undocumented
-
When successful, returns a paymentToken value. Requires the caller to interact with Apple Pay to create the
See moreapplePay
section. Clients need to call/payment-method-kinds/applepay/session
beforehand to obtain a Apple Pay PaymentSession that can be used to obtain the applePay payload.Declaration
Swift
public class Status201 : APIModel
-
Undocumented
Declaration
Swift
public typealias SuccessType = Status201
-
Created
Declaration
Swift
case status201(Status201)
-
OAuth token missing or invalid
Declaration
Swift
case status401(PCPayErrors)
-
Amount cannot be authorized
Declaration
Swift
case status403(PCPayErrors)
-
Payment information cannot be resolved with Apple Pay.
Declaration
Swift
case status404(PCPayErrors)
-
The specified accept header is invalid
Declaration
Swift
case status406(PCPayErrors)
-
Resource conflicts
Declaration
Swift
case status409(PCPayErrors)
-
Resource is gone
Declaration
Swift
case status410(PCPayErrors)
-
The specified content type header is invalid
Declaration
Swift
case status415(PCPayErrors)
-
Internal server error
Declaration
Swift
case status500(PCPayErrors)
-
Error occurred while communicating with upstream services
Declaration
Swift
case status502(PCPayErrors)
-
Undocumented
Declaration
Swift
public var success: Status201? { 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<Status201, 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 }