Class: ThePlaidApi::SandboxIncomeWebhookFireRequestWebhookCode
- Inherits:
-
Object
- Object
- ThePlaidApi::SandboxIncomeWebhookFireRequestWebhookCode
- Defined in:
- lib/the_plaid_api/models/sandbox_income_webhook_fire_request_webhook_code.rb
Overview
The webhook codes that can be fired by this test endpoint.
Constant Summary collapse
- SANDBOX_INCOME_WEBHOOK_FIRE_REQUEST_WEBHOOK_CODE =
[ # TODO: Write general description for INCOME_VERIFICATION INCOME_VERIFICATION = 'INCOME_VERIFICATION'.freeze, # TODO: Write general description for INCOME_VERIFICATION_RISK_SIGNALS INCOME_VERIFICATION_RISK_SIGNALS = 'INCOME_VERIFICATION_RISK_SIGNALS'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = INCOME_VERIFICATION) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/the_plaid_api/models/sandbox_income_webhook_fire_request_webhook_code.rb', line 23 def self.from_value(value, default_value = INCOME_VERIFICATION) return default_value if value.nil? str = value.to_s.strip case str.downcase when 'income_verification' then INCOME_VERIFICATION when 'income_verification_risk_signals' then INCOME_VERIFICATION_RISK_SIGNALS else default_value end end |
.validate(value) ⇒ Object
17 18 19 20 21 |
# File 'lib/the_plaid_api/models/sandbox_income_webhook_fire_request_webhook_code.rb', line 17 def self.validate(value) return false if value.nil? SANDBOX_INCOME_WEBHOOK_FIRE_REQUEST_WEBHOOK_CODE.include?(value) end |