Class: AdvancedBilling::SubscriptionStateFilter
- Inherits:
-
Object
- Object
- AdvancedBilling::SubscriptionStateFilter
- Defined in:
- lib/advanced_billing/models/subscription_state_filter.rb
Overview
Allowed values for filtering by the current state of the subscription.
Constant Summary collapse
- SUBSCRIPTION_STATE_FILTER =
[ # TODO: Write general description for ACTIVE ACTIVE = 'active'.freeze, # TODO: Write general description for CANCELED CANCELED = 'canceled'.freeze, # TODO: Write general description for EXPIRED EXPIRED = 'expired'.freeze, # TODO: Write general description for EXPIRED_CARDS EXPIRED_CARDS = 'expired_cards'.freeze, # TODO: Write general description for ON_HOLD ON_HOLD = 'on_hold'.freeze, # TODO: Write general description for PAST_DUE PAST_DUE = 'past_due'.freeze, # TODO: Write general description for PENDING_CANCELLATION PENDING_CANCELLATION = 'pending_cancellation'.freeze, # TODO: Write general description for PENDING_RENEWAL PENDING_RENEWAL = 'pending_renewal'.freeze, # TODO: Write general description for SUSPENDED SUSPENDED = 'suspended'.freeze, # TODO: Write general description for TRIAL_ENDED TRIAL_ENDED = 'trial_ended'.freeze, # TODO: Write general description for TRIALING TRIALING = 'trialing'.freeze, # TODO: Write general description for UNPAID UNPAID = 'unpaid'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.validate(value) ⇒ Object
47 48 49 50 51 |
# File 'lib/advanced_billing/models/subscription_state_filter.rb', line 47 def self.validate(value) return false if value.nil? SUBSCRIPTION_STATE_FILTER.include?(value) end |