Class: PaypalServerSdk::AuthorizationIncompleteReason
- Inherits:
-
Object
- Object
- PaypalServerSdk::AuthorizationIncompleteReason
- Defined in:
- lib/paypal_server_sdk/models/authorization_incomplete_reason.rb
Overview
The reason why the authorized status is ‘PENDING`.
Constant Summary collapse
- AUTHORIZATION_INCOMPLETE_REASON =
[ # Authorization is pending manual review. PENDING_REVIEW = 'PENDING_REVIEW'.freeze, # Risk Filter set by the payee failed for the transaction. DECLINED_BY_RISK_FRAUD_FILTERS = 'DECLINED_BY_RISK_FRAUD_FILTERS'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = PENDING_REVIEW) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/paypal_server_sdk/models/authorization_incomplete_reason.rb', line 23 def self.from_value(value, default_value = PENDING_REVIEW) return default_value if value.nil? str = value.to_s.strip case str.downcase when 'pending_review' then PENDING_REVIEW when 'declined_by_risk_fraud_filters' then DECLINED_BY_RISK_FRAUD_FILTERS else default_value end end |
.validate(value) ⇒ Object
17 18 19 20 21 |
# File 'lib/paypal_server_sdk/models/authorization_incomplete_reason.rb', line 17 def self.validate(value) return false if value.nil? true end |