Class: NewStoreApi::FtFrSignatureTypeEnum
- Inherits:
-
Object
- Object
- NewStoreApi::FtFrSignatureTypeEnum
- Defined in:
- lib/new_store_api/models/ft_fr_signature_type_enum.rb
Overview
Signature data type.
Constant Summary collapse
- FT_FR_SIGNATURE_TYPE_ENUM =
[ # TODO: Write general description for UNKNOWN UNKNOWN = 'UNKNOWN'.freeze, # TODO: Write general description for JWT JWT = 'JWT'.freeze, # TODO: Write general description for SHIFT_CLOSING_SUM SHIFT_CLOSING_SUM = 'SHIFT_CLOSING_SUM'.freeze, # TODO: Write general description for DAY_CLOSING_SUM DAY_CLOSING_SUM = 'DAY_CLOSING_SUM'.freeze, # TODO: Write general description for MONTH_CLOSING_SUM MONTH_CLOSING_SUM = 'MONTH_CLOSING_SUM'.freeze, # TODO: Write general description for YEAR_CLOSING_SUM YEAR_CLOSING_SUM = 'YEAR_CLOSING_SUM'.freeze, # TODO: Write general description for ARCHIVE_TOTALS_SUM ARCHIVE_TOTALS_SUM = 'ARCHIVE_TOTALS_SUM'.freeze, # TODO: Write general description for PERPETUAL_TOTAL_SUM PERPETUAL_TOTAL_SUM = 'PERPETUAL_TOTAL_SUM'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = UNKNOWN) ⇒ Object
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/new_store_api/models/ft_fr_signature_type_enum.rb', line 41 def self.from_value(value, default_value = UNKNOWN) return default_value if value.nil? str = value.to_s.strip case str.downcase when 'unknown' then UNKNOWN when 'jwt' then JWT when 'shift_closing_sum' then SHIFT_CLOSING_SUM when 'day_closing_sum' then DAY_CLOSING_SUM when 'month_closing_sum' then MONTH_CLOSING_SUM when 'year_closing_sum' then YEAR_CLOSING_SUM when 'archive_totals_sum' then ARCHIVE_TOTALS_SUM when 'perpetual_total_sum' then PERPETUAL_TOTAL_SUM else default_value end end |
.validate(value) ⇒ Object
35 36 37 38 39 |
# File 'lib/new_store_api/models/ft_fr_signature_type_enum.rb', line 35 def self.validate(value) return false if value.nil? FT_FR_SIGNATURE_TYPE_ENUM.include?(value) end |