Class: AdvancedBilling::BillingManifestLineItemKind

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

Overview

A handle for the billing manifest line item kind

Constant Summary collapse

BILLING_MANIFEST_LINE_ITEM_KIND =
[
  # TODO: Write general description for BASELINE
  BASELINE = 'baseline'.freeze,

  # TODO: Write general description for INITIAL
  INITIAL = 'initial'.freeze,

  # TODO: Write general description for TRIAL
  TRIAL = 'trial'.freeze,

  # TODO: Write general description for COUPON
  COUPON = 'coupon'.freeze,

  # TODO: Write general description for COMPONENT
  COMPONENT = 'component'.freeze,

  # TODO: Write general description for TAX
  TAX = 'tax'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



29
30
31
32
33
# File 'lib/advanced_billing/models/billing_manifest_line_item_kind.rb', line 29

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

  BILLING_MANIFEST_LINE_ITEM_KIND.include?(value)
end