Response

public enum Response : APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible

Undocumented

  • Uses long polling to wait for a status change on a given pump. Returns as soon as the status has changed or after the number of seconds provided by the optional timeout query parameter (default timeout is 30 seconds). In case of timeout (408 status code) you’re safe to start the request again. Instantaneously returns if lastStatus was given and already changed between request. If successful, it returns the same structure as the normal status call

    Only use after approaching, otherwise returns 403 Forbidden.

    See more

    Declaration

    Swift

    public class Status200 : 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 Status408 : 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 = Status200
  • OK

    Declaration

    Swift

    case status200(Status200)
  • 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)
  • Your request timed out

    Declaration

    Swift

    case status408(Status408)
  • 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: Status200? { 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 }