Class: ThePlaidApi::RerouteToCredentials
- Inherits:
-
Object
- Object
- ThePlaidApi::RerouteToCredentials
- Defined in:
- lib/the_plaid_api/models/reroute_to_credentials.rb
Overview
Specifies what type of [Reroute to Credentials](plaid.com/docs/auth/coverage/flow-options/#removing-man ual-verification-entry-points-with-reroute-to-credentials) pane should be used in the Link session for the Same Day Micro-deposits flow. Default behavior is ‘OPTIONAL`.
Constant Summary collapse
- REROUTE_TO_CREDENTIALS =
[ # TODO: Write general description for OFF OFF = 'OFF'.freeze, # TODO: Write general description for OPTIONAL OPTIONAL = 'OPTIONAL'.freeze, # TODO: Write general description for FORCED FORCED = 'FORCED'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = OFF) ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/the_plaid_api/models/reroute_to_credentials.rb', line 30 def self.from_value(value, default_value = OFF) return default_value if value.nil? str = value.to_s.strip case str.downcase when 'off' then OFF when 'optional' then OPTIONAL when 'forced' then FORCED else default_value end end |
.validate(value) ⇒ Object
24 25 26 27 28 |
# File 'lib/the_plaid_api/models/reroute_to_credentials.rb', line 24 def self.validate(value) return false if value.nil? REROUTE_TO_CREDENTIALS.include?(value) end |