Class: AdvancedBilling::DebitNoteStatus

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

Overview

Current status of the debit note.

Constant Summary collapse

DEBIT_NOTE_STATUS =
[
  # TODO: Write general description for OPEN
  OPEN = 'open'.freeze,

  # TODO: Write general description for APPLIED
  APPLIED = 'applied'.freeze,

  # TODO: Write general description for BANISHED
  BANISHED = 'banished'.freeze,

  # TODO: Write general description for PAID
  PAID = 'paid'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



23
24
25
26
27
# File 'lib/advanced_billing/models/debit_note_status.rb', line 23

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

  DEBIT_NOTE_STATUS.include?(value)
end