Class: AdvancedBilling::InvoiceEventPaymentMethod

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

Overview

Invoice Event Payment Method.

Constant Summary collapse

INVOICE_EVENT_PAYMENT_METHOD =
[
  # TODO: Write general description for APPLE_PAY
  APPLE_PAY = 'apple_pay'.freeze,

  # TODO: Write general description for BANK_ACCOUNT
  BANK_ACCOUNT = 'bank_account'.freeze,

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

  # TODO: Write general description for EXTERNAL
  EXTERNAL = 'external'.freeze,

  # TODO: Write general description for PAYPAL_ACCOUNT
  PAYPAL_ACCOUNT = 'paypal_account'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.validate(value) ⇒ Object



26
27
28
29
30
# File 'lib/advanced_billing/models/invoice_event_payment_method.rb', line 26

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

  INVOICE_EVENT_PAYMENT_METHOD.include?(value)
end