Class: FdxV660Api::AccountCategoryType2
- Inherits:
-
Object
- Object
- FdxV660Api::AccountCategoryType2
- Defined in:
- lib/fdx_v660_api/models/account_category_type2.rb
Overview
The entity type of the account of this Transaction
Constant Summary collapse
- ACCOUNT_CATEGORY_TYPE2 =
[ # TODO: Write general description for ANNUITY_ACCOUNT ANNUITY_ACCOUNT = 'ANNUITY_ACCOUNT'.freeze, # TODO: Write general description for BNPL_ACCOUNT BNPL_ACCOUNT = 'BNPL_ACCOUNT'.freeze, # TODO: Write general description for COMMERCIAL_ACCOUNT COMMERCIAL_ACCOUNT = 'COMMERCIAL_ACCOUNT'.freeze, # TODO: Write general description for DEPOSIT_ACCOUNT DEPOSIT_ACCOUNT = 'DEPOSIT_ACCOUNT'.freeze, # TODO: Write general description for DIGITAL_WALLET DIGITAL_WALLET = 'DIGITAL_WALLET'.freeze, # TODO: Write general description for INSURANCE_ACCOUNT INSURANCE_ACCOUNT = 'INSURANCE_ACCOUNT'.freeze, # TODO: Write general description for INVESTMENT_ACCOUNT INVESTMENT_ACCOUNT = 'INVESTMENT_ACCOUNT'.freeze, # TODO: Write general description for LOAN_ACCOUNT LOAN_ACCOUNT = 'LOAN_ACCOUNT'.freeze, # TODO: Write general description for LOC_ACCOUNT LOC_ACCOUNT = 'LOC_ACCOUNT'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = ANNUITY_ACCOUNT) ⇒ Object
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/fdx_v660_api/models/account_category_type2.rb', line 44 def self.from_value(value, default_value = ANNUITY_ACCOUNT) return default_value if value.nil? str = value.to_s.strip case str.downcase when 'annuity_account' then ANNUITY_ACCOUNT when 'bnpl_account' then BNPL_ACCOUNT when 'commercial_account' then COMMERCIAL_ACCOUNT when 'deposit_account' then DEPOSIT_ACCOUNT when 'digital_wallet' then DIGITAL_WALLET when 'insurance_account' then INSURANCE_ACCOUNT when 'investment_account' then INVESTMENT_ACCOUNT when 'loan_account' then LOAN_ACCOUNT when 'loc_account' then LOC_ACCOUNT else default_value end end |
.validate(value) ⇒ Object
38 39 40 41 42 |
# File 'lib/fdx_v660_api/models/account_category_type2.rb', line 38 def self.validate(value) return false if value.nil? true end |