Class: AdvancedBilling::PaymentCollectionMethod1
- Inherits:
-
Object
- Object
- AdvancedBilling::PaymentCollectionMethod1
- Defined in:
- lib/advanced_billing/models/payment_collection_method1.rb
Overview
(Optional) If not passed, the allocation(s) will use the payment collection method on the subscription
Constant Summary collapse
- PAYMENT_COLLECTION_METHOD1 =
[ # TODO: Write general description for AUTOMATIC AUTOMATIC = 'automatic'.freeze, # TODO: Write general description for REMITTANCE REMITTANCE = 'remittance'.freeze, # TODO: Write general description for PREPAID PREPAID = 'prepaid'.freeze, # TODO: Write general description for INVOICE INVOICE = 'invoice'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.validate(value) ⇒ Object
24 25 26 27 28 |
# File 'lib/advanced_billing/models/payment_collection_method1.rb', line 24 def self.validate(value) return false if value.nil? PAYMENT_COLLECTION_METHOD1.include?(value) end |