Class: FdxV660Api::NotificationCategory1
- Inherits:
-
Object
- Object
- FdxV660Api::NotificationCategory1
- Defined in:
- lib/fdx_v660_api/models/notification_category1.rb
Overview
Category of notification
Constant Summary collapse
- NOTIFICATION_CATEGORY1 =
[ # TODO: Write general description for CONSENT CONSENT = 'CONSENT'.freeze, # TODO: Write general description for FRAUD FRAUD = 'FRAUD'.freeze, # TODO: Write general description for MAINTENANCE MAINTENANCE = 'MAINTENANCE'.freeze, # TODO: Write general description for NEW_DATA NEW_DATA = 'NEW_DATA'.freeze, # TODO: Write general description for SECURITY SECURITY = 'SECURITY'.freeze, # TODO: Write general description for TOKENIZED_ACCOUNT_NUMBER TOKENIZED_ACCOUNT_NUMBER = 'TOKENIZED_ACCOUNT_NUMBER'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = CONSENT) ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/fdx_v660_api/models/notification_category1.rb', line 35 def self.from_value(value, default_value = CONSENT) return default_value if value.nil? str = value.to_s.strip case str.downcase when 'consent' then CONSENT when 'fraud' then FRAUD when 'maintenance' then MAINTENANCE when 'new_data' then NEW_DATA when 'security' then SECURITY when 'tokenized_account_number' then TOKENIZED_ACCOUNT_NUMBER else default_value end end |
.validate(value) ⇒ Object
29 30 31 32 33 |
# File 'lib/fdx_v660_api/models/notification_category1.rb', line 29 def self.validate(value) return false if value.nil? true end |