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.
Declaration
Swift
public enum PaymentErrorCode : String, Codable
-
Payment error type
See moreDeclaration
Swift
public enum PaymentErrorType : String, Codable
-
Type of Bank card.
See moreDeclaration
Swift
public enum BankCardType : String, Codable
-
ISO-4217 3-alpha character code of payment currency.
See moreDeclaration
Swift
public enum CurrencyCode : String, Codable
-
Required type of user identification.
See moreDeclaration
Swift
public enum IdentificationRequirement : String, Codable
-
Type of the source of funds for the payment.
See moreDeclaration
Swift
public enum PaymentMethodType : String, Codable
-
The type of the source of funds for payments from the Yandex.Money.
See moreDeclaration
Swift
public enum YandexMoneyInstrumentType : String, Codable