Class: AdvancedBilling::InvoiceRole

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

Overview

Invoice Role.

Constant Summary collapse

INVOICE_ROLE =
[
  # TODO: Write general description for UNSET
  UNSET = 'unset'.freeze,

  # TODO: Write general description for SIGNUP
  SIGNUP = 'signup'.freeze,

  # TODO: Write general description for RENEWAL
  RENEWAL = 'renewal'.freeze,

  # TODO: Write general description for USAGE
  USAGE = 'usage'.freeze,

  # TODO: Write general description for REACTIVATION
  REACTIVATION = 'reactivation'.freeze,

  # TODO: Write general description for PRORATION
  PRORATION = 'proration'.freeze,

  # TODO: Write general description for MIGRATION
  MIGRATION = 'migration'.freeze,

  # TODO: Write general description for ADHOC
  ADHOC = 'adhoc'.freeze,

  # TODO: Write general description for BACKPORT
  BACKPORT = 'backport'.freeze,

  # TODO: Write general description for BACKPORTBALANCERECONCILIATION
  BACKPORTBALANCERECONCILIATION = 'backport-balance-reconciliation'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



41
42
43
44
45
# File 'lib/advanced_billing/models/invoice_role.rb', line 41

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

  INVOICE_ROLE.include?(value)
end