Class: AdvancedBilling::InvoicePaymentMethodType

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

Overview

The type of payment method used. Defaults to other.

Constant Summary collapse

INVOICE_PAYMENT_METHOD_TYPE =
[
  # TODO: Write general description for CREDIT_CARD
  CREDIT_CARD = 'credit_card'.freeze,

  # TODO: Write general description for CHECK
  CHECK = 'check'.freeze,

  # TODO: Write general description for CASH
  CASH = 'cash'.freeze,

  # TODO: Write general description for MONEY_ORDER
  MONEY_ORDER = 'money_order'.freeze,

  # TODO: Write general description for ACH
  ACH = 'ach'.freeze,

  # TODO: Write general description for OTHER
  OTHER = 'other'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



29
30
31
32
33
# File 'lib/advanced_billing/models/invoice_payment_method_type.rb', line 29

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

  INVOICE_PAYMENT_METHOD_TYPE.include?(value)
end