Class: AdvancedBilling::InvoicePaymentType
- Inherits:
-
Object
- Object
- AdvancedBilling::InvoicePaymentType
- Defined in:
- lib/advanced_billing/models/invoice_payment_type.rb
Overview
The type of payment to be applied to an Invoice. Defaults to external.
Constant Summary collapse
- INVOICE_PAYMENT_TYPE =
[ # TODO: Write general description for EXTERNAL EXTERNAL = 'external'.freeze, # TODO: Write general description for PREPAYMENT PREPAYMENT = 'prepayment'.freeze, # TODO: Write general description for SERVICE_CREDIT SERVICE_CREDIT = 'service_credit'.freeze, # TODO: Write general description for PAYMENT PAYMENT = 'payment'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.validate(value) ⇒ Object
23 24 25 26 27 |
# File 'lib/advanced_billing/models/invoice_payment_type.rb', line 23 def self.validate(value) return false if value.nil? INVOICE_PAYMENT_TYPE.include?(value) end |