Class: PaypalServerSdk::PaResStatus
- Inherits:
-
Object
- Object
- PaypalServerSdk::PaResStatus
- Defined in:
- lib/paypal_server_sdk/models/pa_res_status.rb
Overview
Transactions status result identifier. The outcome of the issuer’s authentication.
Constant Summary collapse
- PA_RES_STATUS =
[ # Successful authentication. SUCCESSFULAUTHENTICATION = 'Y'.freeze, # Failed authentication / account not verified / transaction denied. FAILEDAUTHENTICATION = 'N'.freeze, # Unable to complete authentication. UNABLETOCOMPLETEAUTHENTICATION = 'U'.freeze, # Successful attempts transaction. SUCCESSFULATTEMPTSTRANSACTION = 'A'.freeze, # Challenge required for authentication. CHALLENGEREQUIRED = 'C'.freeze, # Authentication rejected (merchant must not submit for authorization). AUTHENTICATIONREJECTED = 'R'.freeze, # Challenge required; decoupled authentication confirmed. DECOUPLEDAUTHENTICATION = 'D'.freeze, # Informational only; 3DS requestor challenge preference acknowledged. INFORMATIONALONLY = 'I'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = SUCCESSFULAUTHENTICATION) ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/paypal_server_sdk/models/pa_res_status.rb', line 42 def self.from_value(value, default_value = SUCCESSFULAUTHENTICATION) return default_value if value.nil? str = value.to_s.strip case str.downcase when 'successfulauthentication' then SUCCESSFULAUTHENTICATION when 'failedauthentication' then FAILEDAUTHENTICATION when 'unabletocompleteauthentication' then UNABLETOCOMPLETEAUTHENTICATION when 'successfulattemptstransaction' then SUCCESSFULATTEMPTSTRANSACTION when 'challengerequired' then CHALLENGEREQUIRED when 'authenticationrejected' then AUTHENTICATIONREJECTED when 'decoupledauthentication' then DECOUPLEDAUTHENTICATION when 'informationalonly' then INFORMATIONALONLY else default_value end end |
.validate(value) ⇒ Object
36 37 38 39 40 |
# File 'lib/paypal_server_sdk/models/pa_res_status.rb', line 36 def self.validate(value) return false if value.nil? true end |