Module: Pay24::Errors

Included in:
ResponseHandler, Result
Defined in:
lib/pay24/errors.rb

Constant Summary collapse

SUCCESS =

фатальные ошибки начинаются с ERROR_, остальные - с других символов

:ok
TEMPORARY_ERROR =

non-fatal

:temporary_error
ERROR_INVALID_USER_ID_FORMAT =

non-fatal

:user_id_does_not_match_format
ERROR_USER_NOT_FOUND =

fatal

:user_not_found
ERROR_PAYMENT_DENIED_BY_PROVIDER =

fatal

:payment_denied_by_provider
ERROR_PAYMENT_DENIED_FOR_TECHNICAL_REASON =

fatal

:payment_denied_tech_reason
ERROR_INACTIVE_USER =

fatal

:inactive_user
PAYMENT_PROCESSING_NOT_FINISHED =

fatal

:payment_processing_not_finished
ERROR_SUM_IS_TOO_SMALL =

non-fatal

:sum_is_too_small
ERROR_SUM_IS_TOO_LARGE =

fatal

:sum_is_too_large
ERROR_CANNOT_CHECK_USER_ACCOUNT_STATE =

fatal

:cannot_check_account_state
ERROR_INTERNAL =

fatal

:internal_error

Instance Attribute Summary collapse

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



5
6
7
# File 'lib/pay24/errors.rb', line 5

def code
  @code
end

#messageObject (readonly)

Returns the value of attribute message.



5
6
7
# File 'lib/pay24/errors.rb', line 5

def message
  @message
end

#result_codeObject (readonly)

Returns the value of attribute result_code.



5
6
7
# File 'lib/pay24/errors.rb', line 5

def result_code
  @result_code
end