module QiwiPay::MessagesForCodes
Модуль содержит константы и методы для получения расшифровок кодов
Constants
- ERROR_MESSAGES
Error messages for codes @see developer.qiwi.com/ru/qiwipay/index.html?json#errors
- TXN_STATUS_MESSAGES
Transaction status messages for codes @see developer.qiwi.com/ru/qiwipay/index.html?json#txn_status
- TXN_TYPE_MESSAGES
Transaction type messages for codes @see developer.qiwi.com/ru/qiwipay/index.html?json#txn_type
Public Instance Methods
error_message()
click to toggle source
Error description for code @return [String]
# File lib/qiwi-pay/messages_for_codes.rb, line 90 def error_message return unless error_code ERROR_MESSAGES[error_code.to_i] || 'Unknown error' end
txn_status_message()
click to toggle source
Transaction status description @return [String]
# File lib/qiwi-pay/messages_for_codes.rb, line 76 def txn_status_message return unless txn_status TXN_STATUS_MESSAGES[txn_status.to_i] || 'Unknown status' end
txn_type_message()
click to toggle source
Transaction type description @return [String]
# File lib/qiwi-pay/messages_for_codes.rb, line 83 def txn_type_message return unless txn_type TXN_TYPE_MESSAGES[txn_type.to_i] || 'Unknown type' end