Class: AdvancedBilling::FirstChargeType

Inherits:
Object
  • Object
show all
Defined in:
lib/advanced_billing/models/first_charge_type.rb

Overview

First Charge Type.

Constant Summary collapse

FIRST_CHARGE_TYPE =
[
  # TODO: Write general description for PRORATED
  PRORATED = 'prorated'.freeze,

  # TODO: Write general description for IMMEDIATE
  IMMEDIATE = 'immediate'.freeze,

  # TODO: Write general description for DELAYED
  DELAYED = 'delayed'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



20
21
22
23
24
# File 'lib/advanced_billing/models/first_charge_type.rb', line 20

def self.validate(value)
  return false if value.nil?

  FIRST_CHARGE_TYPE.include?(value)
end