Response

public enum Response : APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible

Undocumented

  • This request will:

    • Return a list of paymentMethods of the user which can be used at the gas station.
    • Return up-to-date price information (price structure) at the gas station.
    • Return a list of pumps available at the gas station together with the current status (free, inUse, readyToPay, outOfOrder). No pumps might be returned if the list of payment methods is empty.
    • Create payment tokens for the paymentMethods of the user that are also supported at the gas station and pre-authorize the calculated maximum amount of money (background task). The approaching is a necessary first api call for connected fueling. Without a valid approaching the get pump and wait for status change calls may be answered with a 403 Forbidden status code. An approaching is valid for one fueling only and can’t be reused. If a long (not further disclosed time) has passed, the approaching is also invalidated. So if the client is receiving a 403 Forbidden on the above mentioned calls, a new approaching has to be issued, this can be done transparent to the user.
    See more

    Declaration

    Swift

    public class Status201 : APIModel
  • Error objects provide additional information about problems encountered while performing an operation. Errors also contain codes besides title and message which can be used for checks even if the detailed messages might change. * code 1000: generic error * code 1001: payment processing temporarily unavailable * code 1002: requested amount exceeds the authorized amount of the provided token * code 1003: implicit payment methods cannot be modified * code 1004: payment method rejected by provider

    See more

    Declaration

    Swift

    public class Status400 : APIModel
  • Error objects provide additional information about problems encountered while performing an operation. Errors also contain codes besides title and message which can be used for checks even if the detailed messages might change. * code 1000: generic error * code 1001: payment processing temporarily unavailable * code 1002: requested amount exceeds the authorized amount of the provided token * code 1003: implicit payment methods cannot be modified * code 1004: payment method rejected by provider

    See more

    Declaration

    Swift

    public class Status401 : APIModel
  • Error objects provide additional information about problems encountered while performing an operation. Errors also contain codes besides title and message which can be used for checks even if the detailed messages might change. * code 1000: generic error * code 1001: payment processing temporarily unavailable * code 1002: requested amount exceeds the authorized amount of the provided token * code 1003: implicit payment methods cannot be modified * code 1004: payment method rejected by provider

    See more

    Declaration

    Swift

    public class Status404 : APIModel
  • Error objects provide additional information about problems encountered while performing an operation. Errors also contain codes besides title and message which can be used for checks even if the detailed messages might change. * code 1000: generic error * code 1001: payment processing temporarily unavailable * code 1002: requested amount exceeds the authorized amount of the provided token * code 1003: implicit payment methods cannot be modified * code 1004: payment method rejected by provider

    See more

    Declaration

    Swift

    public class Status406 : APIModel
  • Error objects provide additional information about problems encountered while performing an operation. Errors also contain codes besides title and message which can be used for checks even if the detailed messages might change. * code 1000: generic error * code 1001: payment processing temporarily unavailable * code 1002: requested amount exceeds the authorized amount of the provided token * code 1003: implicit payment methods cannot be modified * code 1004: payment method rejected by provider

    See more

    Declaration

    Swift

    public class Status415 : APIModel
  • Error objects provide additional information about problems encountered while performing an operation. Errors also contain codes besides title and message which can be used for checks even if the detailed messages might change. * code 1000: generic error * code 1001: payment processing temporarily unavailable * code 1002: requested amount exceeds the authorized amount of the provided token * code 1003: implicit payment methods cannot be modified * code 1004: payment method rejected by provider

    See more

    Declaration

    Swift

    public class Status500 : APIModel
  • Undocumented

    Declaration

    Swift

    public typealias SuccessType = Status201
  • Created

    Declaration

    Swift

    case status201(Status201)
  • Bad request

    Declaration

    Swift

    case status400(Status400)
  • OAuth token missing or invalid

    Declaration

    Swift

    case status401(Status401)
  • Resource not found

    Declaration

    Swift

    case status404(Status404)
  • The specified accept header is invalid

    Declaration

    Swift

    case status406(Status406)
  • The specified content type header is invalid

    Declaration

    Swift

    case status415(Status415)
  • Internal server error

    Declaration

    Swift

    case status500(Status500)
  • Error occurred while communicating with PACE services

    Declaration

    Swift

    case status502(PCFuelingErrors)
  • Error occurred while communicating with gas station network

    Declaration

    Swift

    case status503(PCFuelingErrors)
  • Undocumented

    Declaration

    Swift

    public var success: Status201? { 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 }