Class: ThePlaidApi::PartnerEndCustomerOauthStatusUpdatedValues
- Inherits:
-
Object
- Object
- ThePlaidApi::PartnerEndCustomerOauthStatusUpdatedValues
- Defined in:
- lib/the_plaid_api/models/partner_end_customer_oauth_status_updated_values.rb
Overview
The OAuth status of the update
Constant Summary collapse
- PARTNER_END_CUSTOMER_OAUTH_STATUS_UPDATED_VALUES =
[ # TODO: Write general description for NOTSTARTED NOTSTARTED = '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 ATTENTIONREQUIRED ATTENTIONREQUIRED = 'attention-required'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = NOTSTARTED) ⇒ 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_status_updated_values.rb', line 32 def self.from_value(value, default_value = NOTSTARTED) return default_value if value.nil? str = value.to_s.strip case str.downcase when 'notstarted' then NOTSTARTED when 'processing' then PROCESSING when 'approved' then APPROVED when 'enabled' then ENABLED when 'attentionrequired' then ATTENTIONREQUIRED else default_value end end |
.validate(value) ⇒ Object
26 27 28 29 30 |
# File 'lib/the_plaid_api/models/partner_end_customer_oauth_status_updated_values.rb', line 26 def self.validate(value) return false if value.nil? PARTNER_END_CUSTOMER_OAUTH_STATUS_UPDATED_VALUES.include?(value) end |