Enumerations

The following enumerations are available globally.

  • Payment error code

    • Errors for HTTP status 400 (Bad Request).

      • invalidRequest: The request cannot be processed. The reason may be incorrect query syntax, an error in the required query parameters, their absence or unsupported method.
      • notSupported: The request cannot be processed. The reason may be incorrect query syntax, an error in the required query parameters, their absence or unsupported method.
    • Errors for HTTP status 401 (Unauthorized). Authentication or authorization error.

      • invalidCredentials: Incorrect key is specified in the Authorization header.
    • Errors for HTTP status 403 (Forbidden). Operation not allowed for user.

      • forbidden: Not enough rights to perform the operation.
    • Error for HTTP status 500 (Internal Server Error). Technical Error.

      • internalServerError: Technical error.
    • Common errors.

      • mappingError: Error processing response from server.
    See more

    Declaration

    Swift

    public enum PaymentErrorCode : String, Codable
  • Type of Bank card.

    See more

    Declaration

    Swift

    public enum BankCardType : String, Codable
  • ISO-4217 3-alpha character code of payment currency.

    See more

    Declaration

    Swift

    public enum CurrencyCode : String, Codable
  • Type of the source of funds for the payment.

    See more

    Declaration

    Swift

    public enum PaymentMethodType : String, Codable
  • The type of the source of funds for payments from the Yandex.Money.

    See more

    Declaration

    Swift

    public enum YandexMoneyInstrumentType : String, Codable