Enumerations
The following enumerations are available globally.
-
Constants
See moreDeclaration
Swift
public enum Constants
-
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, Equatable
-
Type of custom payment confirmation process. Read more about the scenarios of confirmation of payment by the buyer.
See moreDeclaration
Swift
public enum ConfirmationType : 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
-
Indication of the possibility of saving payment data for repeated payments.
See moreDeclaration
Swift
public enum SavePaymentMethod : RawRepresentable, Codable, Equatable
-
The type of the source of funds for payments from the YooMoney.
See moreDeclaration
Swift
public enum YooMoneyInstrumentType : String, Codable