Class: ThePlaidApi::PartnerEndCustomerOauthInstitutionApplicationStatus
- Inherits:
-
Object
- Object
- ThePlaidApi::PartnerEndCustomerOauthInstitutionApplicationStatus
- Defined in:
- lib/the_plaid_api/models/partner_end_customer_oauth_institution_application_status.rb
Overview
The registration status for the end customer’s application.
Constant Summary collapse
- PARTNER_END_CUSTOMER_OAUTH_INSTITUTION_APPLICATION_STATUS =
[ # TODO: Write general description for NOT_STARTED NOT_STARTED = 'NOT_STARTED'.freeze, # TODO: Write general description for PROCESSING PROCESSING = 'PROCESSING'.freeze, # TODO: Write general description for APPROVED APPROVED = 'APPROVED'.freeze, # TODO: Write general description for ENABLED ENABLED = 'ENABLED'.freeze, # TODO: Write general description for ATTENTION_REQUIRED ATTENTION_REQUIRED = 'ATTENTION_REQUIRED'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = NOT_STARTED) ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/the_plaid_api/models/partner_end_customer_oauth_institution_application_status.rb', line 32 def self.from_value(value, default_value = NOT_STARTED) return default_value if value.nil? str = value.to_s.strip case str.downcase when 'not_started' then NOT_STARTED when 'processing' then PROCESSING when 'approved' then APPROVED when 'enabled' then ENABLED when 'attention_required' then ATTENTION_REQUIRED else default_value end end |
.validate(value) ⇒ Object
26 27 28 29 30 |
# File 'lib/the_plaid_api/models/partner_end_customer_oauth_institution_application_status.rb', line 26 def self.validate(value) return false if value.nil? PARTNER_END_CUSTOMER_OAUTH_INSTITUTION_APPLICATION_STATUS.include?(value) end |