Class: ThePlaidApi::IncomeVerificationPayrollFlowType
- Inherits:
-
Object
- Object
- ThePlaidApi::IncomeVerificationPayrollFlowType
- Defined in:
- lib/the_plaid_api/models/income_verification_payroll_flow_type.rb
Overview
Flow types to retrieve payroll income data
Constant Summary collapse
- INCOME_VERIFICATION_PAYROLL_FLOW_TYPE =
[ # TODO: Write general description for PAYROLL_DIGITAL_INCOME PAYROLL_DIGITAL_INCOME = 'payroll_digital_income'.freeze, # TODO: Write general description for PAYROLL_DOCUMENT_INCOME PAYROLL_DOCUMENT_INCOME = 'payroll_document_income'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = PAYROLL_DIGITAL_INCOME) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/the_plaid_api/models/income_verification_payroll_flow_type.rb', line 23 def self.from_value(value, default_value = PAYROLL_DIGITAL_INCOME) return default_value if value.nil? str = value.to_s.strip case str.downcase when 'payroll_digital_income' then PAYROLL_DIGITAL_INCOME when 'payroll_document_income' then PAYROLL_DOCUMENT_INCOME else default_value end end |
.validate(value) ⇒ Object
17 18 19 20 21 |
# File 'lib/the_plaid_api/models/income_verification_payroll_flow_type.rb', line 17 def self.validate(value) return false if value.nil? INCOME_VERIFICATION_PAYROLL_FLOW_TYPE.include?(value) end |