Response
public enum Response : APIResponseValue, CustomStringConvertible, CustomDebugStringConvertibleUndocumented
- 
                  
                  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 AuthThis flow is used if a pump is having the status locked. Alockedpump requires a Pre Auth to unlock. Only after this Pre Auth the pump and can be used by the user- carFuelTypemay 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:
- priceIncludingVATand- currencyin the request body to check if the price the user has seen is still correct. If the values don’t match, the status- 409 Conflictis returned.
- carFuelTypemay be provided but has no effect.
 DeclarationSwift 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 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 providerDeclarationSwift 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 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 providerDeclarationSwift 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 providerDeclarationSwift 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 providerDeclarationSwift 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 providerDeclarationSwift 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 providerDeclarationSwift 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 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 providerDeclarationSwift 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 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 providerDeclarationSwift 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 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 providerDeclarationSwift public class Status500 : APIModel
- 
                  
                  Undocumented DeclarationSwift public typealias SuccessType = Status201
- 
                  
                  Post Pay: Payment successful DeclarationSwift case status201(Status201)
- 
                  
                  Pre Auth: Pump unlocked DeclarationSwift case status202
- 
                  
                  Bad request DeclarationSwift case status400(Status400)
- 
                  
                  OAuth token missing or invalid DeclarationSwift case status401(Status401)
- 
                  
                  Forbidden DeclarationSwift case status403(Status403)
- 
                  
                  Resource not found DeclarationSwift case status404(Status404)
- 
                  
                  The specified accept header is invalid DeclarationSwift case status406(Status406)
- 
                  
                  The provided priceIncludingVAT does not match the actual price DeclarationSwift case status409(Status409)
- 
                  
                  The specified content type header is invalid DeclarationSwift case status415(Status415)
- 
                  
                  The request was well-formed but was unable to be followed due to semantic errors. DeclarationSwift case status422(Status422)
- 
                  
                  Internal server error DeclarationSwift case status500(Status500)
- 
                  
                  Error occurred while communicating with PACE services DeclarationSwift case status502(PCFuelingErrors)
- 
                  
                  Undocumented DeclarationSwift public var success: Status201? { get }
- 
                  
                  Undocumented DeclarationSwift public var response: Any { get }
- 
                  
                  Undocumented DeclarationSwift public var statusCode: Int { get }
- 
                  
                  Undocumented DeclarationSwift public var successful: Bool { get }
- 
                  
                  Undocumented DeclarationSwift public init(statusCode: Int, data: Data, decoder: ResponseDecoder) throws
- 
                  
                  DeclarationSwift public var description: String { get }
- 
                  
                  DeclarationSwift public var debugDescription: String { get }
 View on GitHub
View on GitHub Response Enumeration Reference
        Response Enumeration Reference