SudoVirtualCardsError

public enum SudoVirtualCardsError : Error, Equatable, LocalizedError

Errors that occur in SudoVirtualCards.

Client

Service

  • The card id supplied could not be found.

    Declaration

    Swift

    case cardNotFound
  • The card used is in a bad/unsupported state.

    Declaration

    Swift

    case cardStateError
  • The transaction id supplied could not be found.

    Declaration

    Swift

    case transactionNotFound
  • There is a currency mismatch between inputs.

    Declaration

    Swift

    case currencyMismatch
  • The velocity for the card is exceeded.

    Declaration

    Swift

    case velocityExceeded
  • The entitlement for the card is exceeded.

    Declaration

    Swift

    case provisionalFundingSourceNotFound
  • The supplied fundingSourceId does not match any recorded funding source.

    Declaration

    Swift

    case fundingSourceNotFound
  • The funding source is not currently active and therefore unavailable to be used.

    Declaration

    Swift

    case fundingSourceNotActive
  • A new funding source was requested to be created but it is using the same credit card (same card number) as an existing active funding source.

    Declaration

    Swift

    case duplicateFundingSource
  • Currency provided is not supported.

    Declaration

    Swift

    case unsupportedCurrency
  • The funding source cannot be completed as its setup has not completed successfully.

    Declaration

    Swift

    case fundingSourceNotSetup
  • The funding source completion data is invalid.

    This can occur when there is a mismatch between the completion data and the recorded setup data.

    Declaration

    Swift

    case fundingSourceCompletionDataInvalid
  • The funding source or provisional funding source is in an invalid state for the requested operation

    Declaration

    Swift

    case fundingSourceStateError
  • The funding source failed attempts to validate e.g. as determined when making an initial authorization. Reasons for being unacceptable include insufficient funds if a preauthorization is performed, the funding source is high risk and other reasons.

    Declaration

    Swift

    case unacceptableFundingSource
  • Indicates the requested operation failed because the user account is locked.

    Declaration

    Swift

    case accountLocked
  • Indicates that the request operation failed due to authorization error. This maybe due to the authentication token being invalid or other security controls that prevent the user from accessing the API.

    Declaration

    Swift

    case notAuthorized
  • Indicates API call failed due to it exceeding some limits imposed for the API. For example, this error can occur if the vault size was too big.

    Declaration

    Swift

    case limitExceeded
  • Indicates that the user does not have sufficient entitlements to perform the requested operation.

    Declaration

    Swift

    case insufficientEntitlements
  • Indicates the version of the vault that is getting updated does not match the current version of the vault stored in the backend. The caller should retrieve the current version of the vault and reconcile the difference.

    Declaration

    Swift

    case versionMismatch
  • Indicates that an internal server error caused the operation to fail. The error is possibly transient and retrying at a later time may cause the operation to complete successfully

    Declaration

    Swift

    case serviceError
  • Indicates that there were too many attempts at sending API requests within a short period of time.

    Declaration

    Swift

    case rateLimitExceeded
  • Operation failed due to an invalid request. This maybe due to the version mismatch between the client and the backend.

    Declaration

    Swift

    case invalidRequest
  • Indicates that the request failed due to connectivity, availability or access error.

    Declaration

    Swift

    case requestFailed(response: HTTPURLResponse?, cause: Error?)
  • Indicates that a GraphQL error was returned by the backend.

    Declaration

    Swift

    case graphQLError(description: String)
  • Indicates that a fatal error occurred. This could be due to coding error, out-of-memory condition or other conditions that is beyond control of SudoIdentityVerificationClient implementation.

    Declaration

    Swift

    case fatalError(description: String)
  • Backend environment error occurred.

    Declaration

    Swift

    case environmentError
  • Returned when JSON web tokens submitted are rejected because they: 1. fail signature verification 2. is not an appropriate token for the invoker user to be submitting (e.g. user id doesn’t match) 3. is a resource reference token for resource type unrecognized by the service to which the token has been submitted

    Declaration

    Swift

    case invalidToken
  • Returned when an operation fails because the user’s level of identity verification is insufficient.

    Declaration

    Swift

    case identityInsufficient
  • Returned when an operation fails due to lack of verification.

    Declaration

    Swift

    case identityNotVerified
  • Returned if specified time zone is not recognized.

    Declaration

    Swift

    case unknownTimezone
  • Returned when the user has no entitlements associated with them

    Declaration

    Swift

    case noEntitlements
  • An internal error has occurred and will need to be resolved by Anonyome.

    Declaration

    Swift

    case internalError(_: String?)
  • Returned if an API argument is not valid or inconsistent with other arguments.

    Declaration

    Swift

    case invalidArgument(_: String?)
  • Returned when the input was not in the expected format.

    Declaration

    Swift

    case decodingError

Conformance: Equatable

  • Service is currently incorrectly generating this error with a Code suffix. Prepare for that to be fixed

    Declaration

    Swift

    public static func == (lhs: SudoVirtualCardsError, rhs: SudoVirtualCardsError) -> Bool

Conformance: LocalizedError

  • Declaration

    Swift

    public var errorDescription: String? { get }