Class: AdvancedBilling::ProformaInvoiceRole

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

Overview

‘proforma’ value is deprecated in favor of proforma_adhoc and proforma_automatic

Constant Summary collapse

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

  # TODO: Write general description for PROFORMA
  PROFORMA = 'proforma'.freeze,

  # TODO: Write general description for PROFORMA_ADHOC
  PROFORMA_ADHOC = 'proforma_adhoc'.freeze,

  # TODO: Write general description for PROFORMA_AUTOMATIC
  PROFORMA_AUTOMATIC = 'proforma_automatic'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



24
25
26
27
28
# File 'lib/advanced_billing/models/proforma_invoice_role.rb', line 24

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

  PROFORMA_INVOICE_ROLE.include?(value)
end