Class: ApiReference::BillingCycleAlignment
- Inherits:
-
Object
- Object
- ApiReference::BillingCycleAlignment
- Defined in:
- lib/api_reference/models/billing_cycle_alignment.rb
Overview
Billing Cycle Alignment.
Constant Summary collapse
- BILLING_CYCLE_ALIGNMENT =
[ # TODO: Write general description for UNCHANGED UNCHANGED = 'unchanged'.freeze, # TODO: Write general description for PLAN_CHANGE_DATE PLAN_CHANGE_DATE = 'plan_change_date'.freeze, # TODO: Write general description for START_OF_MONTH START_OF_MONTH = 'start_of_month'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = UNCHANGED) ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/api_reference/models/billing_cycle_alignment.rb', line 26 def self.from_value(value, default_value = UNCHANGED) return default_value if value.nil? str = value.to_s.strip case str.downcase when 'unchanged' then UNCHANGED when 'plan_change_date' then PLAN_CHANGE_DATE when 'start_of_month' then START_OF_MONTH else default_value end end |
.validate(value) ⇒ Object
20 21 22 23 24 |
# File 'lib/api_reference/models/billing_cycle_alignment.rb', line 20 def self.validate(value) return false if value.nil? true end |