Class: AdvancedBilling::ResumptionCharge

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

Overview

(For calendar billing subscriptions only) The way that the resumed subscription’s charge should be handled

Constant Summary collapse

RESUMPTION_CHARGE =
[
  # 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



21
22
23
24
25
# File 'lib/advanced_billing/models/resumption_charge.rb', line 21

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

  RESUMPTION_CHARGE.include?(value)
end