Class: AdvancedBilling::ProformaInvoiceDiscountSourceType

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

Overview

Proforma Invoice Discount Source Type.

Constant Summary collapse

PROFORMA_INVOICE_DISCOUNT_SOURCE_TYPE =
[
  # TODO: Write general description for COUPON
  COUPON = 'Coupon'.freeze,

  # TODO: Write general description for REFERRAL
  REFERRAL = 'Referral'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



17
18
19
20
21
# File 'lib/advanced_billing/models/proforma_invoice_discount_source_type.rb', line 17

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

  PROFORMA_INVOICE_DISCOUNT_SOURCE_TYPE.include?(value)
end