Response

public enum Response : APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible

Undocumented

  • Returns filterable values around the current location on the map, within a certain radius. For the latitude and longitude values used in the request, returns the available and unavailable values for the following fields:

    • brand
    • payment methods
    • amenities
    See more

    Declaration

    Swift

    public class Status200 : APIModel
  • Undocumented

    Declaration

    Swift

    public typealias SuccessType = Status200
  • OK

    Declaration

    Swift

    case status200(Status200)
  • The server cannot or will not process the request due to an apparent client error

    Declaration

    Swift

    case status400(PCErrors)
  • OAuth token missing or invalid

    Declaration

    Swift

    case status401(PCErrors)
  • The specified Accept header is not valid

    Declaration

    Swift

    case status406(PCErrors)
  • A generic error message, given when an unexpected condition was encountered and no more specific message is suitable.

    Declaration

    Swift

    case status500(PCErrors)
  • Undocumented

    Declaration

    Swift

    public var success: Status200? { get }
  • Undocumented

    Declaration

    Swift

    public var failure: PCErrors? { get }
  • either success or failure value. Success is anything in the 200..<300 status code range

    Declaration

    Swift

    public var responseResult: APIResponseResult<Status200, PCErrors> { 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 }