Mauricio Araujo před 2 roky
rodič
revize
190fd7a314
2 změnil soubory, kde provedl 6 přidání a 1 odebrání
  1. 1 1
      api/types/billing.go
  2. 5 0
      internal/billing/billing.go

+ 1 - 1
api/types/billing.go

@@ -2,7 +2,7 @@ package types
 
 import "github.com/stripe/stripe-go/v76"
 
-// AddProjectBillingRequest is a request for creating a new billing customer.
+// CreateBillingCustomerRequest is a request for creating a new billing customer.
 type CreateBillingCustomerRequest struct {
 	UserEmail string `json:"user_email" form:"required"`
 }

+ 5 - 0
internal/billing/billing.go

@@ -9,7 +9,12 @@ import (
 
 // BillingManager contains methods for managing billing for a project
 type BillingManager interface {
+	// CreateTeam creates the concept of a billing "team". This is currently a one-to-one
+	// mapping with projects, but this may change in the future (i.e. multiple projects
+	// per same team)
 	CreateTeam(user *models.User, proj *models.Project) (teamID string, err error)
+
+	// DeleteTeam deletes a billing team.
 	DeleteTeam(user *models.User, proj *models.Project) (err error)
 
 	// CreateCustomer registers a project in the billing provider. This is currently a one-to-one