Class: AdvancedBilling::InvoiceStatus

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

Overview

The current status of the invoice. See [Invoice Statuses](maxio.zendesk.com/hc/en-us/articles/24252287829645-Advance d-Billing-Invoices-Overview#invoice-statuses) for more.

Constant Summary collapse

INVOICE_STATUS =
[
  # TODO: Write general description for DRAFT
  DRAFT = 'draft'.freeze,

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

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

  # TODO: Write general description for PENDING
  PENDING = 'pending'.freeze,

  # TODO: Write general description for VOIDED
  VOIDED = 'voided'.freeze,

  # TODO: Write general description for CANCELED
  CANCELED = 'canceled'.freeze,

  # TODO: Write general description for PROCESSING
  PROCESSING = 'processing'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



34
35
36
37
38
# File 'lib/advanced_billing/models/invoice_status.rb', line 34

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

  INVOICE_STATUS.include?(value)
end