Class: AdvancedBilling::PaymentType
- Inherits:
-
Object
- Object
- AdvancedBilling::PaymentType
- Defined in:
- lib/advanced_billing/models/payment_type.rb
Overview
Payment Type.
Constant Summary collapse
- PAYMENT_TYPE =
[ # TODO: Write general description for CREDIT_CARD CREDIT_CARD = 'credit_card'.freeze, # TODO: Write general description for BANK_ACCOUNT BANK_ACCOUNT = 'bank_account'.freeze, # TODO: Write general description for PAYPAL_ACCOUNT PAYPAL_ACCOUNT = 'paypal_account'.freeze, # TODO: Write general description for APPLE_PAY APPLE_PAY = 'apple_pay'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.validate(value) ⇒ Object
23 24 25 26 27 |
# File 'lib/advanced_billing/models/payment_type.rb', line 23 def self.validate(value) return false if value.nil? PAYMENT_TYPE.include?(value) end |