Response
public enum Response : APIResponseValue, CustomStringConvertible, CustomDebugStringConvertible
Undocumented
-
Returns the current pump status (free, inUse, readyToPay, outOfOrder, locked) and identifier. If the status is readyToPay, the result also contains fuelType, productName, fuelAmount, VAT (amount & rate), priceWithoutVAT, priceIncludingVAT, currency.
See more
Only use after approaching, otherwise returns403 Forbidden
.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
See more1000
: generic error * code1001
: payment processing temporarily unavailable * code1002
: requested amount exceeds the authorized amount of the provided token * code1003
: implicit payment methods cannot be modified * code1004
: payment method rejected by providerDeclaration
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
See more1000
: generic error * code1001
: payment processing temporarily unavailable * code1002
: requested amount exceeds the authorized amount of the provided token * code1003
: implicit payment methods cannot be modified * code1004
: payment method rejected by providerDeclaration
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
See more1000
: generic error * code1001
: payment processing temporarily unavailable * code1002
: requested amount exceeds the authorized amount of the provided token * code1003
: implicit payment methods cannot be modified * code1004
: payment method rejected by providerDeclaration
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
See more1000
: generic error * code1001
: payment processing temporarily unavailable * code1002
: requested amount exceeds the authorized amount of the provided token * code1003
: implicit payment methods cannot be modified * code1004
: payment method rejected by providerDeclaration
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
See more1000
: generic error * code1001
: payment processing temporarily unavailable * code1002
: requested amount exceeds the authorized amount of the provided token * code1003
: implicit payment methods cannot be modified * code1004
: payment method rejected by providerDeclaration
Swift
public class Status500 : APIModel
-
Undocumented
Declaration
Swift
public typealias SuccessType = Status200
-
OK
Declaration
Swift
case status200(Status200)
-
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)
-
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 }