server_payments_dummy.go 1.2 KB

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