Response

public enum Response : APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible

Undocumented

  • This call supports two different flows. The Pre Auth flow and the Post Pay flow. This call will notify the user via email with a payment receipt if transaction is finished successfully. Only use after approaching, otherwise returns 403 Forbidden.

    Pre Auth

    This flow is used if a pump is having the status locked. A locked pump requires a Pre Auth to unlock. Only after this Pre Auth the pump and can be used by the user

    • carFuelType may be passed to only unlock a certain nozzle of the pump. Not all pumps support this feature, and some require it. It is advised to always pass the desired fuel type. ### Post Pay You can optionally provide:
    • priceIncludingVAT and currency in the request body to check if the price the user has seen is still correct. If the values don’t match, the status 409 Conflict is returned.
    • carFuelType may be provided but has no effect.
    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 Status403 : 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 Status409 : 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 Status422 : 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
  • Post Pay: Payment successful

    Declaration

    Swift

    case status201(Status201)
  • Pre Auth: Pump unlocked

    Declaration

    Swift

    case status202
  • Bad request

    Declaration

    Swift

    case status400(Status400)
  • OAuth token missing or invalid

    Declaration

    Swift

    case status401(Status401)
  • Forbidden

    Declaration

    Swift

    case status403(Status403)
  • Resource not found

    Declaration

    Swift

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

    Declaration

    Swift

    case status406(Status406)
  • The provided priceIncludingVAT does not match the actual price

    Declaration

    Swift

    case status409(Status409)
  • The specified content type header is invalid

    Declaration

    Swift

    case status415(Status415)
  • The request was well-formed but was unable to be followed due to semantic errors.

    Declaration

    Swift

    case status422(Status422)
  • Internal server error

    Declaration

    Swift

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

    Declaration

    Swift

    case status502(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 }