Aggiunge pagamento con bonifico e importo concordato per società.
Il piano si attiva solo dopo la conferma admin; Stripe resta a listino se non c'è un prezzo commerciale. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -93,11 +93,15 @@ Rails.application.routes.draw do
|
||||
end
|
||||
get "billing", to: "billing#index", as: :billing
|
||||
post "billing/payments/:payment_id/attach_pdf", to: "billing#attach_pdf", as: :billing_payment_attach_pdf
|
||||
post "billing/transfers/:id/confirm", to: "billing#confirm_transfer", as: :billing_transfer_confirm
|
||||
post "billing/transfers/:id/cancel", to: "billing#cancel_transfer", as: :billing_transfer_cancel
|
||||
resources :teams, only: %i[show]
|
||||
resources :clubs, only: %i[index show] do
|
||||
member do
|
||||
post :grant_comped
|
||||
delete :revoke_comped
|
||||
post :set_quote
|
||||
delete :revoke_quote
|
||||
end
|
||||
resources :billing_invoices, only: %i[index new create edit update], controller: "billing_invoices"
|
||||
resources :club_recordings, only: %i[index update destroy], path: "replays", as: :recordings do
|
||||
@@ -198,6 +202,7 @@ Rails.application.routes.draw do
|
||||
get "clubs/:id/billing/profile", to: "club_billing#profile", as: :club_billing_profile
|
||||
patch "clubs/:id/billing/profile", to: "club_billing#update_profile"
|
||||
post "clubs/:id/billing/cancel_subscription", to: "club_billing#cancel_subscription", as: :club_billing_cancel_subscription
|
||||
post "clubs/:id/billing/bank_transfer", to: "club_billing#request_bank_transfer", as: :club_billing_bank_transfer
|
||||
get "clubs/:id/billing/invoices/:invoice_id", to: "club_billing#download_invoice", as: :club_billing_invoice
|
||||
get "clubs/:id/checkout", to: "clubs#checkout", as: :club_checkout
|
||||
post "clubs/:id/portal", to: "clubs#portal", as: :club_portal
|
||||
|
||||
Reference in New Issue
Block a user