Chore: Remove dead code related to billing (#935)

- remove subscription model
- remove billing-related code
This commit is contained in:
Sojan Jose
2020-06-07 20:31:48 +05:30
committed by GitHub
parent 051871a3cd
commit 52d28105e4
84 changed files with 27 additions and 1240 deletions

View File

@@ -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'])

View File

@@ -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'

View File

@@ -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