Chore: Remove dead code related to billing (#935)
- remove subscription model - remove billing-related code
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
PLAN_CONFIG = YAML.load_file(File.join(Rails.root, 'config', 'plans.yml'))
|
||||
$chargebee = ChargeBee.configure(site: ENV['CHARGEBEE_SITE'], api_key: ENV['CHARGEBEE_API_KEY'])
|
||||
@@ -1,17 +0,0 @@
|
||||
active:
|
||||
v1:
|
||||
paid:
|
||||
name: 'Platinum'
|
||||
id: 'v1-platinum'
|
||||
price: 29
|
||||
trial:
|
||||
name: 'Trial'
|
||||
id: 'v1Trial'
|
||||
price: 0
|
||||
inactive:
|
||||
v0:
|
||||
free:
|
||||
name: 'Free'
|
||||
price: 0
|
||||
trial_period: 365
|
||||
default_pricing_version: 'v1'
|
||||
@@ -83,13 +83,6 @@ Rails.application.routes.draw do
|
||||
resources :notifications, only: [:index, :update]
|
||||
resource :notification_settings, only: [:show, :update]
|
||||
|
||||
# this block is only required if subscription via chargebee is enabled
|
||||
resources :subscriptions, only: [:index] do
|
||||
collection do
|
||||
get :summary
|
||||
end
|
||||
end
|
||||
|
||||
resources :webhooks, except: [:show]
|
||||
end
|
||||
end
|
||||
@@ -114,12 +107,6 @@ Rails.application.routes.draw do
|
||||
resources :inbox_members, only: [:index]
|
||||
resources :labels, only: [:create, :destroy]
|
||||
end
|
||||
|
||||
resources :webhooks, only: [] do
|
||||
collection do
|
||||
post :chargebee
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
namespace :v2 do
|
||||
|
||||
Reference in New Issue
Block a user