Class: FdxV660Api::AccountStatus1
- Inherits:
-
Object
- Object
- FdxV660Api::AccountStatus1
- Defined in:
- lib/fdx_v660_api/models/account_status1.rb
Overview
Buy Now, Pay Later item status. One of: OPEN, CLOSED, PENDINGOPEN,
PENDINGCLOSE, PAID, DELINQUENT, NEGATIVECURRENTBALANCE, RESTRICTED
Constant Summary collapse
- ACCOUNT_STATUS1 =
[ # TODO: Write general description for CLOSED CLOSED = 'CLOSED'.freeze, # TODO: Write general description for DELINQUENT DELINQUENT = 'DELINQUENT'.freeze, # TODO: Write general description for NEGATIVECURRENTBALANCE NEGATIVECURRENTBALANCE = 'NEGATIVECURRENTBALANCE'.freeze, # TODO: Write general description for OPEN OPEN = 'OPEN'.freeze, # TODO: Write general description for PAID PAID = 'PAID'.freeze, # TODO: Write general description for PENDINGCLOSE PENDINGCLOSE = 'PENDINGCLOSE'.freeze, # TODO: Write general description for PENDINGOPEN PENDINGOPEN = 'PENDINGOPEN'.freeze, # TODO: Write general description for RESTRICTED RESTRICTED = 'RESTRICTED'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = CLOSED) ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/fdx_v660_api/models/account_status1.rb', line 42 def self.from_value(value, default_value = CLOSED) return default_value if value.nil? str = value.to_s.strip case str.downcase when 'closed' then CLOSED when 'delinquent' then DELINQUENT when 'negativecurrentbalance' then NEGATIVECURRENTBALANCE when 'open' then OPEN when 'paid' then PAID when 'pendingclose' then PENDINGCLOSE when 'pendingopen' then PENDINGOPEN when 'restricted' then RESTRICTED else default_value end end |
.validate(value) ⇒ Object
36 37 38 39 40 |
# File 'lib/fdx_v660_api/models/account_status1.rb', line 36 def self.validate(value) return false if value.nil? true end |