Debian Codegraph @

server/server_payments_dummy.go

raw
1 //go:build nopayments
2
3 package server
4
5 import (
6 "net/http"
7 )
8
9 type stripeAPI interface {
10 CancelSubscription(id string) (string, error)
11 }
12
13 func newStripeAPI() stripeAPI {
14 return nil
15 }
16
17 func (s *Server) fetchStripePrices() (map[string]int64, error) {
18 return nil, errHTTPNotFound
19 }
20
21 func (s *Server) handleBillingTiersGet(w http.ResponseWriter, _ *http.Request, _ *visitor) error {
22 return errHTTPNotFound
23 }
24
25 func (s *Server) handleAccountBillingSubscriptionCreate(w http.ResponseWriter, r *http.Request, v *visitor) error {
26 return errHTTPNotFound
27 }
28
29 func (s *Server) handleAccountBillingSubscriptionCreateSuccess(w http.ResponseWriter, r *http.Request, v *visitor) error {
30 return errHTTPNotFound
31 }
32
33 func (s *Server) handleAccountBillingSubscriptionUpdate(w http.ResponseWriter, r *http.Request, v *visitor) error {
34 return errHTTPNotFound
35 }
36
37 func (s *Server) handleAccountBillingSubscriptionDelete(w http.ResponseWriter, r *http.Request, v *visitor) error {
38 return errHTTPNotFound
39 }
40
41 func (s *Server) handleAccountBillingPortalSessionCreate(w http.ResponseWriter, r *http.Request, v *visitor) error {
42 return errHTTPNotFound
43 }
44
45 func (s *Server) handleAccountBillingWebhook(_ http.ResponseWriter, r *http.Request, v *visitor) error {
46 return errHTTPNotFound
47 }