billingv1alpha4connect

package
v1.8.25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BillingServiceApplyBillingPlanDraftProcedure is the fully-qualified name of the BillingService's
	// ApplyBillingPlanDraft RPC.
	BillingServiceApplyBillingPlanDraftProcedure = "/services.billing.v1alpha4.BillingService/ApplyBillingPlanDraft"
	// BillingServiceCloneBillingPlanProcedure is the fully-qualified name of the BillingService's
	// CloneBillingPlan RPC.
	BillingServiceCloneBillingPlanProcedure = "/services.billing.v1alpha4.BillingService/CloneBillingPlan"
	// BillingServiceCreateBillingPlanProcedure is the fully-qualified name of the BillingService's
	// CreateBillingPlan RPC.
	BillingServiceCreateBillingPlanProcedure = "/services.billing.v1alpha4.BillingService/CreateBillingPlan"
	// BillingServiceDeleteBillingPlanProcedure is the fully-qualified name of the BillingService's
	// DeleteBillingPlan RPC.
	BillingServiceDeleteBillingPlanProcedure = "/services.billing.v1alpha4.BillingService/DeleteBillingPlan"
	// BillingServiceGetBillingPlanProcedure is the fully-qualified name of the BillingService's
	// GetBillingPlan RPC.
	BillingServiceGetBillingPlanProcedure = "/services.billing.v1alpha4.BillingService/GetBillingPlan"
	// BillingServiceListBillingPlansProcedure is the fully-qualified name of the BillingService's
	// ListBillingPlans RPC.
	BillingServiceListBillingPlansProcedure = "/services.billing.v1alpha4.BillingService/ListBillingPlans"
	// BillingServiceUpdateBillingPlanProcedure is the fully-qualified name of the BillingService's
	// UpdateBillingPlan RPC.
	BillingServiceUpdateBillingPlanProcedure = "/services.billing.v1alpha4.BillingService/UpdateBillingPlan"
	// BillingServiceApplyDefaultBillingPlanDraftProcedure is the fully-qualified name of the
	// BillingService's ApplyDefaultBillingPlanDraft RPC.
	BillingServiceApplyDefaultBillingPlanDraftProcedure = "/services.billing.v1alpha4.BillingService/ApplyDefaultBillingPlanDraft"
	// BillingServiceCloneDefaultBillingPlanProcedure is the fully-qualified name of the
	// BillingService's CloneDefaultBillingPlan RPC.
	BillingServiceCloneDefaultBillingPlanProcedure = "/services.billing.v1alpha4.BillingService/CloneDefaultBillingPlan"
	// BillingServiceCreateDefaultBillingPlanProcedure is the fully-qualified name of the
	// BillingService's CreateDefaultBillingPlan RPC.
	BillingServiceCreateDefaultBillingPlanProcedure = "/services.billing.v1alpha4.BillingService/CreateDefaultBillingPlan"
	// BillingServiceDeleteDefaultBillingPlanProcedure is the fully-qualified name of the
	// BillingService's DeleteDefaultBillingPlan RPC.
	BillingServiceDeleteDefaultBillingPlanProcedure = "/services.billing.v1alpha4.BillingService/DeleteDefaultBillingPlan"
	// BillingServiceGetDefaultBillingPlanProcedure is the fully-qualified name of the BillingService's
	// GetDefaultBillingPlan RPC.
	BillingServiceGetDefaultBillingPlanProcedure = "/services.billing.v1alpha4.BillingService/GetDefaultBillingPlan"
	// BillingServiceListDefaultBillingPlansProcedure is the fully-qualified name of the
	// BillingService's ListDefaultBillingPlans RPC.
	BillingServiceListDefaultBillingPlansProcedure = "/services.billing.v1alpha4.BillingService/ListDefaultBillingPlans"
	// BillingServiceUpdateDefaultBillingPlanProcedure is the fully-qualified name of the
	// BillingService's UpdateDefaultBillingPlan RPC.
	BillingServiceUpdateDefaultBillingPlanProcedure = "/services.billing.v1alpha4.BillingService/UpdateDefaultBillingPlan"
	// BillingServiceCreateRateDefinitionProcedure is the fully-qualified name of the BillingService's
	// CreateRateDefinition RPC.
	BillingServiceCreateRateDefinitionProcedure = "/services.billing.v1alpha4.BillingService/CreateRateDefinition"
	// BillingServiceDeleteRateDefinitionProcedure is the fully-qualified name of the BillingService's
	// DeleteRateDefinition RPC.
	BillingServiceDeleteRateDefinitionProcedure = "/services.billing.v1alpha4.BillingService/DeleteRateDefinition"
	// BillingServiceGetRateDefinitionProcedure is the fully-qualified name of the BillingService's
	// GetRateDefinition RPC.
	BillingServiceGetRateDefinitionProcedure = "/services.billing.v1alpha4.BillingService/GetRateDefinition"
	// BillingServiceListRateDefinitionsProcedure is the fully-qualified name of the BillingService's
	// ListRateDefinitions RPC.
	BillingServiceListRateDefinitionsProcedure = "/services.billing.v1alpha4.BillingService/ListRateDefinitions"
	// BillingServiceUpdateRateDefinitionProcedure is the fully-qualified name of the BillingService's
	// UpdateRateDefinition RPC.
	BillingServiceUpdateRateDefinitionProcedure = "/services.billing.v1alpha4.BillingService/UpdateRateDefinition"
	// BillingServiceCreateDefaultRateDefinitionProcedure is the fully-qualified name of the
	// BillingService's CreateDefaultRateDefinition RPC.
	BillingServiceCreateDefaultRateDefinitionProcedure = "/services.billing.v1alpha4.BillingService/CreateDefaultRateDefinition"
	// BillingServiceDeleteDefaultRateDefinitionProcedure is the fully-qualified name of the
	// BillingService's DeleteDefaultRateDefinition RPC.
	BillingServiceDeleteDefaultRateDefinitionProcedure = "/services.billing.v1alpha4.BillingService/DeleteDefaultRateDefinition"
	// BillingServiceGetDefaultRateDefinitionProcedure is the fully-qualified name of the
	// BillingService's GetDefaultRateDefinition RPC.
	BillingServiceGetDefaultRateDefinitionProcedure = "/services.billing.v1alpha4.BillingService/GetDefaultRateDefinition"
	// BillingServiceListDefaultRateDefinitionsProcedure is the fully-qualified name of the
	// BillingService's ListDefaultRateDefinitions RPC.
	BillingServiceListDefaultRateDefinitionsProcedure = "/services.billing.v1alpha4.BillingService/ListDefaultRateDefinitions"
	// BillingServiceUpdateDefaultRateDefinitionProcedure is the fully-qualified name of the
	// BillingService's UpdateDefaultRateDefinition RPC.
	BillingServiceUpdateDefaultRateDefinitionProcedure = "/services.billing.v1alpha4.BillingService/UpdateDefaultRateDefinition"
	// BillingServiceCreateMatchingRuleProcedure is the fully-qualified name of the BillingService's
	// CreateMatchingRule RPC.
	BillingServiceCreateMatchingRuleProcedure = "/services.billing.v1alpha4.BillingService/CreateMatchingRule"
	// BillingServiceDeleteMatchingRuleProcedure is the fully-qualified name of the BillingService's
	// DeleteMatchingRule RPC.
	BillingServiceDeleteMatchingRuleProcedure = "/services.billing.v1alpha4.BillingService/DeleteMatchingRule"
	// BillingServiceGetMatchingRuleProcedure is the fully-qualified name of the BillingService's
	// GetMatchingRule RPC.
	BillingServiceGetMatchingRuleProcedure = "/services.billing.v1alpha4.BillingService/GetMatchingRule"
	// BillingServiceListMatchingRulesProcedure is the fully-qualified name of the BillingService's
	// ListMatchingRules RPC.
	BillingServiceListMatchingRulesProcedure = "/services.billing.v1alpha4.BillingService/ListMatchingRules"
	// BillingServiceUpdateMatchingRuleProcedure is the fully-qualified name of the BillingService's
	// UpdateMatchingRule RPC.
	BillingServiceUpdateMatchingRuleProcedure = "/services.billing.v1alpha4.BillingService/UpdateMatchingRule"
	// BillingServiceCreateBillingTagProcedure is the fully-qualified name of the BillingService's
	// CreateBillingTag RPC.
	BillingServiceCreateBillingTagProcedure = "/services.billing.v1alpha4.BillingService/CreateBillingTag"
	// BillingServiceDeleteBillingTagProcedure is the fully-qualified name of the BillingService's
	// DeleteBillingTag RPC.
	BillingServiceDeleteBillingTagProcedure = "/services.billing.v1alpha4.BillingService/DeleteBillingTag"
	// BillingServiceGetBillingTagProcedure is the fully-qualified name of the BillingService's
	// GetBillingTag RPC.
	BillingServiceGetBillingTagProcedure = "/services.billing.v1alpha4.BillingService/GetBillingTag"
	// BillingServiceListBillingTagsProcedure is the fully-qualified name of the BillingService's
	// ListBillingTags RPC.
	BillingServiceListBillingTagsProcedure = "/services.billing.v1alpha4.BillingService/ListBillingTags"
	// BillingServiceUpdateBillingTagProcedure is the fully-qualified name of the BillingService's
	// UpdateBillingTag RPC.
	BillingServiceUpdateBillingTagProcedure = "/services.billing.v1alpha4.BillingService/UpdateBillingTag"
	// BillingServiceExportInvoiceProcedure is the fully-qualified name of the BillingService's
	// ExportInvoice RPC.
	BillingServiceExportInvoiceProcedure = "/services.billing.v1alpha4.BillingService/ExportInvoice"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// BillingServiceName is the fully-qualified name of the BillingService service.
	BillingServiceName = "services.billing.v1alpha4.BillingService"
)

Variables

This section is empty.

Functions

func NewBillingServiceHandler

func NewBillingServiceHandler(svc BillingServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)

NewBillingServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

Types

type BillingServiceClient

type BillingServiceClient interface {
	// Applies a draft billing plan.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The draft billing plan was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	ApplyBillingPlanDraft(context.Context, *connect_go.Request[v1alpha4.ApplyBillingPlanDraftRequest]) (*connect_go.Response[v1alpha4.ApplyBillingPlanDraftResponse], error)
	// Clones a billing plan
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The billing plan was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	CloneBillingPlan(context.Context, *connect_go.Request[v1alpha4.CloneBillingPlanRequest]) (*connect_go.Response[v1alpha4.CloneBillingPlanResponse], error)
	// Creates a new billing plan.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	CreateBillingPlan(context.Context, *connect_go.Request[v1alpha4.CreateBillingPlanRequest]) (*connect_go.Response[v1alpha4.CreateBillingPlanResponse], error)
	// Deletes a billing plan.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The billing plan was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	DeleteBillingPlan(context.Context, *connect_go.Request[v1alpha4.DeleteBillingPlanRequest]) (*connect_go.Response[v1alpha4.DeleteBillingPlanResponse], error)
	// Gets a billing plan.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The billing plan was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	GetBillingPlan(context.Context, *connect_go.Request[v1alpha4.GetBillingPlanRequest]) (*connect_go.Response[v1alpha4.GetBillingPlanResponse], error)
	// Lists billing plans.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	ListBillingPlans(context.Context, *connect_go.Request[v1alpha4.ListBillingPlansRequest]) (*connect_go.Response[v1alpha4.ListBillingPlansResponse], error)
	// Updates a billing plan.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The billing plan was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	UpdateBillingPlan(context.Context, *connect_go.Request[v1alpha4.UpdateBillingPlanRequest]) (*connect_go.Response[v1alpha4.UpdateBillingPlanResponse], error)
	// Applies a default draft billing plan.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The draft billing plan was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	ApplyDefaultBillingPlanDraft(context.Context, *connect_go.Request[v1alpha4.ApplyDefaultBillingPlanDraftRequest]) (*connect_go.Response[v1alpha4.ApplyDefaultBillingPlanDraftResponse], error)
	// Clones a default billing plan.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The billing plan was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	CloneDefaultBillingPlan(context.Context, *connect_go.Request[v1alpha4.CloneDefaultBillingPlanRequest]) (*connect_go.Response[v1alpha4.CloneDefaultBillingPlanResponse], error)
	// Creates a new default billing plan.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	CreateDefaultBillingPlan(context.Context, *connect_go.Request[v1alpha4.CreateDefaultBillingPlanRequest]) (*connect_go.Response[v1alpha4.CreateDefaultBillingPlanResponse], error)
	// Deletes a default billing plan.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The billing plan was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	DeleteDefaultBillingPlan(context.Context, *connect_go.Request[v1alpha4.DeleteDefaultBillingPlanRequest]) (*connect_go.Response[v1alpha4.DeleteDefaultBillingPlanResponse], error)
	// Gets a default billing plan.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The default billing plan was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	GetDefaultBillingPlan(context.Context, *connect_go.Request[v1alpha4.GetDefaultBillingPlanRequest]) (*connect_go.Response[v1alpha4.GetDefaultBillingPlanResponse], error)
	// Lists default billing plans.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	ListDefaultBillingPlans(context.Context, *connect_go.Request[v1alpha4.ListDefaultBillingPlansRequest]) (*connect_go.Response[v1alpha4.ListDefaultBillingPlansResponse], error)
	// Updates a default billing plan.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The billing plan was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	UpdateDefaultBillingPlan(context.Context, *connect_go.Request[v1alpha4.UpdateDefaultBillingPlanRequest]) (*connect_go.Response[v1alpha4.UpdateDefaultBillingPlanResponse], error)
	// Creates a new rate definition.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The billing plan was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	CreateRateDefinition(context.Context, *connect_go.Request[v1alpha4.CreateRateDefinitionRequest]) (*connect_go.Response[v1alpha4.CreateRateDefinitionResponse], error)
	// Deletes a rate definition.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The rate definition was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	DeleteRateDefinition(context.Context, *connect_go.Request[v1alpha4.DeleteRateDefinitionRequest]) (*connect_go.Response[v1alpha4.DeleteRateDefinitionResponse], error)
	// Gets a rate definition.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The rate definition was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	GetRateDefinition(context.Context, *connect_go.Request[v1alpha4.GetRateDefinitionRequest]) (*connect_go.Response[v1alpha4.GetRateDefinitionResponse], error)
	// Lists rate definitions.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The rate definition was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	ListRateDefinitions(context.Context, *connect_go.Request[v1alpha4.ListRateDefinitionsRequest]) (*connect_go.Response[v1alpha4.ListRateDefinitionsResponse], error)
	// Updates a rate definition.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The rate definition was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	UpdateRateDefinition(context.Context, *connect_go.Request[v1alpha4.UpdateRateDefinitionRequest]) (*connect_go.Response[v1alpha4.UpdateRateDefinitionResponse], error)
	// Creates a new rate definition for a default plan.
	//   - Creating a rate definition on an existing SKU: the sku_id must be provided.
	//   - Creating a rate definition on a new SKU: the product must be provided and the sku_id omitted.
	//
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The billing plan was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	CreateDefaultRateDefinition(context.Context, *connect_go.Request[v1alpha4.CreateDefaultRateDefinitionRequest]) (*connect_go.Response[v1alpha4.CreateDefaultRateDefinitionResponse], error)
	// Deletes a rate definition for a default billing plan.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The rate definition was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	DeleteDefaultRateDefinition(context.Context, *connect_go.Request[v1alpha4.DeleteDefaultRateDefinitionRequest]) (*connect_go.Response[v1alpha4.DeleteDefaultRateDefinitionResponse], error)
	// Gets a rate definition for a default billing plan.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The rate definition was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	GetDefaultRateDefinition(context.Context, *connect_go.Request[v1alpha4.GetDefaultRateDefinitionRequest]) (*connect_go.Response[v1alpha4.GetDefaultRateDefinitionResponse], error)
	// Lists rate definitions for a default billing plan.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The rate definition was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	ListDefaultRateDefinitions(context.Context, *connect_go.Request[v1alpha4.ListDefaultRateDefinitionsRequest]) (*connect_go.Response[v1alpha4.ListDefaultRateDefinitionsResponse], error)
	// Updates a rate definition for a default billing plan.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The rate definition was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	UpdateDefaultRateDefinition(context.Context, *connect_go.Request[v1alpha4.UpdateDefaultRateDefinitionRequest]) (*connect_go.Response[v1alpha4.UpdateDefaultRateDefinitionResponse], error)
	// Creates a new matching rule.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	CreateMatchingRule(context.Context, *connect_go.Request[v1alpha4.CreateMatchingRuleRequest]) (*connect_go.Response[v1alpha4.CreateMatchingRuleResponse], error)
	// Deletes a matching rule.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The matching rule was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	DeleteMatchingRule(context.Context, *connect_go.Request[v1alpha4.DeleteMatchingRuleRequest]) (*connect_go.Response[v1alpha4.DeleteMatchingRuleResponse], error)
	// Gets a matching rule.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The matching rule was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	GetMatchingRule(context.Context, *connect_go.Request[v1alpha4.GetMatchingRuleRequest]) (*connect_go.Response[v1alpha4.GetMatchingRuleResponse], error)
	// Lists matching rules.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	ListMatchingRules(context.Context, *connect_go.Request[v1alpha4.ListMatchingRulesRequest]) (*connect_go.Response[v1alpha4.ListMatchingRulesResponse], error)
	// Updates a matching rule.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The matching rule was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	UpdateMatchingRule(context.Context, *connect_go.Request[v1alpha4.UpdateMatchingRuleRequest]) (*connect_go.Response[v1alpha4.UpdateMatchingRuleResponse], error)
	// Creates a new billing tag.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	CreateBillingTag(context.Context, *connect_go.Request[v1alpha4.CreateBillingTagRequest]) (*connect_go.Response[v1alpha4.CreateBillingTagResponse], error)
	// Deletes a billing tag.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The billing tag was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	DeleteBillingTag(context.Context, *connect_go.Request[v1alpha4.DeleteBillingTagRequest]) (*connect_go.Response[v1alpha4.DeleteBillingTagResponse], error)
	// Gets a billing tag.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The billing tag was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	GetBillingTag(context.Context, *connect_go.Request[v1alpha4.GetBillingTagRequest]) (*connect_go.Response[v1alpha4.GetBillingTagResponse], error)
	// Lists billing tags.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	ListBillingTags(context.Context, *connect_go.Request[v1alpha4.ListBillingTagsRequest]) (*connect_go.Response[v1alpha4.ListBillingTagsResponse], error)
	// Updates a billing tag.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The billing tag was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	UpdateBillingTag(context.Context, *connect_go.Request[v1alpha4.UpdateBillingTagRequest]) (*connect_go.Response[v1alpha4.UpdateBillingTagResponse], error)
	// Exports an invoice.
	// Required permissions:
	//
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.PermissionDenied: Caller doesn't have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable. Likely a transient issue with a downstream service.
	ExportInvoice(context.Context, *connect_go.Request[v1alpha4.ExportInvoiceRequest]) (*connect_go.Response[v1alpha4.ExportInvoiceResponse], error)
}

BillingServiceClient is a client for the services.billing.v1alpha4.BillingService service.

func NewBillingServiceClient

func NewBillingServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) BillingServiceClient

NewBillingServiceClient constructs a client for the services.billing.v1alpha4.BillingService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type BillingServiceHandler

type BillingServiceHandler interface {
	// Applies a draft billing plan.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The draft billing plan was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	ApplyBillingPlanDraft(context.Context, *connect_go.Request[v1alpha4.ApplyBillingPlanDraftRequest]) (*connect_go.Response[v1alpha4.ApplyBillingPlanDraftResponse], error)
	// Clones a billing plan
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The billing plan was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	CloneBillingPlan(context.Context, *connect_go.Request[v1alpha4.CloneBillingPlanRequest]) (*connect_go.Response[v1alpha4.CloneBillingPlanResponse], error)
	// Creates a new billing plan.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	CreateBillingPlan(context.Context, *connect_go.Request[v1alpha4.CreateBillingPlanRequest]) (*connect_go.Response[v1alpha4.CreateBillingPlanResponse], error)
	// Deletes a billing plan.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The billing plan was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	DeleteBillingPlan(context.Context, *connect_go.Request[v1alpha4.DeleteBillingPlanRequest]) (*connect_go.Response[v1alpha4.DeleteBillingPlanResponse], error)
	// Gets a billing plan.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The billing plan was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	GetBillingPlan(context.Context, *connect_go.Request[v1alpha4.GetBillingPlanRequest]) (*connect_go.Response[v1alpha4.GetBillingPlanResponse], error)
	// Lists billing plans.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	ListBillingPlans(context.Context, *connect_go.Request[v1alpha4.ListBillingPlansRequest]) (*connect_go.Response[v1alpha4.ListBillingPlansResponse], error)
	// Updates a billing plan.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The billing plan was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	UpdateBillingPlan(context.Context, *connect_go.Request[v1alpha4.UpdateBillingPlanRequest]) (*connect_go.Response[v1alpha4.UpdateBillingPlanResponse], error)
	// Applies a default draft billing plan.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The draft billing plan was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	ApplyDefaultBillingPlanDraft(context.Context, *connect_go.Request[v1alpha4.ApplyDefaultBillingPlanDraftRequest]) (*connect_go.Response[v1alpha4.ApplyDefaultBillingPlanDraftResponse], error)
	// Clones a default billing plan.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The billing plan was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	CloneDefaultBillingPlan(context.Context, *connect_go.Request[v1alpha4.CloneDefaultBillingPlanRequest]) (*connect_go.Response[v1alpha4.CloneDefaultBillingPlanResponse], error)
	// Creates a new default billing plan.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	CreateDefaultBillingPlan(context.Context, *connect_go.Request[v1alpha4.CreateDefaultBillingPlanRequest]) (*connect_go.Response[v1alpha4.CreateDefaultBillingPlanResponse], error)
	// Deletes a default billing plan.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The billing plan was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	DeleteDefaultBillingPlan(context.Context, *connect_go.Request[v1alpha4.DeleteDefaultBillingPlanRequest]) (*connect_go.Response[v1alpha4.DeleteDefaultBillingPlanResponse], error)
	// Gets a default billing plan.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The default billing plan was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	GetDefaultBillingPlan(context.Context, *connect_go.Request[v1alpha4.GetDefaultBillingPlanRequest]) (*connect_go.Response[v1alpha4.GetDefaultBillingPlanResponse], error)
	// Lists default billing plans.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	ListDefaultBillingPlans(context.Context, *connect_go.Request[v1alpha4.ListDefaultBillingPlansRequest]) (*connect_go.Response[v1alpha4.ListDefaultBillingPlansResponse], error)
	// Updates a default billing plan.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The billing plan was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	UpdateDefaultBillingPlan(context.Context, *connect_go.Request[v1alpha4.UpdateDefaultBillingPlanRequest]) (*connect_go.Response[v1alpha4.UpdateDefaultBillingPlanResponse], error)
	// Creates a new rate definition.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The billing plan was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	CreateRateDefinition(context.Context, *connect_go.Request[v1alpha4.CreateRateDefinitionRequest]) (*connect_go.Response[v1alpha4.CreateRateDefinitionResponse], error)
	// Deletes a rate definition.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The rate definition was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	DeleteRateDefinition(context.Context, *connect_go.Request[v1alpha4.DeleteRateDefinitionRequest]) (*connect_go.Response[v1alpha4.DeleteRateDefinitionResponse], error)
	// Gets a rate definition.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The rate definition was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	GetRateDefinition(context.Context, *connect_go.Request[v1alpha4.GetRateDefinitionRequest]) (*connect_go.Response[v1alpha4.GetRateDefinitionResponse], error)
	// Lists rate definitions.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The rate definition was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	ListRateDefinitions(context.Context, *connect_go.Request[v1alpha4.ListRateDefinitionsRequest]) (*connect_go.Response[v1alpha4.ListRateDefinitionsResponse], error)
	// Updates a rate definition.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The rate definition was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	UpdateRateDefinition(context.Context, *connect_go.Request[v1alpha4.UpdateRateDefinitionRequest]) (*connect_go.Response[v1alpha4.UpdateRateDefinitionResponse], error)
	// Creates a new rate definition for a default plan.
	//   - Creating a rate definition on an existing SKU: the sku_id must be provided.
	//   - Creating a rate definition on a new SKU: the product must be provided and the sku_id omitted.
	//
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The billing plan was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	CreateDefaultRateDefinition(context.Context, *connect_go.Request[v1alpha4.CreateDefaultRateDefinitionRequest]) (*connect_go.Response[v1alpha4.CreateDefaultRateDefinitionResponse], error)
	// Deletes a rate definition for a default billing plan.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The rate definition was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	DeleteDefaultRateDefinition(context.Context, *connect_go.Request[v1alpha4.DeleteDefaultRateDefinitionRequest]) (*connect_go.Response[v1alpha4.DeleteDefaultRateDefinitionResponse], error)
	// Gets a rate definition for a default billing plan.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The rate definition was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	GetDefaultRateDefinition(context.Context, *connect_go.Request[v1alpha4.GetDefaultRateDefinitionRequest]) (*connect_go.Response[v1alpha4.GetDefaultRateDefinitionResponse], error)
	// Lists rate definitions for a default billing plan.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The rate definition was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	ListDefaultRateDefinitions(context.Context, *connect_go.Request[v1alpha4.ListDefaultRateDefinitionsRequest]) (*connect_go.Response[v1alpha4.ListDefaultRateDefinitionsResponse], error)
	// Updates a rate definition for a default billing plan.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The rate definition was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	UpdateDefaultRateDefinition(context.Context, *connect_go.Request[v1alpha4.UpdateDefaultRateDefinitionRequest]) (*connect_go.Response[v1alpha4.UpdateDefaultRateDefinitionResponse], error)
	// Creates a new matching rule.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	CreateMatchingRule(context.Context, *connect_go.Request[v1alpha4.CreateMatchingRuleRequest]) (*connect_go.Response[v1alpha4.CreateMatchingRuleResponse], error)
	// Deletes a matching rule.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The matching rule was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	DeleteMatchingRule(context.Context, *connect_go.Request[v1alpha4.DeleteMatchingRuleRequest]) (*connect_go.Response[v1alpha4.DeleteMatchingRuleResponse], error)
	// Gets a matching rule.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The matching rule was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	GetMatchingRule(context.Context, *connect_go.Request[v1alpha4.GetMatchingRuleRequest]) (*connect_go.Response[v1alpha4.GetMatchingRuleResponse], error)
	// Lists matching rules.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	ListMatchingRules(context.Context, *connect_go.Request[v1alpha4.ListMatchingRulesRequest]) (*connect_go.Response[v1alpha4.ListMatchingRulesResponse], error)
	// Updates a matching rule.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The matching rule was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	UpdateMatchingRule(context.Context, *connect_go.Request[v1alpha4.UpdateMatchingRuleRequest]) (*connect_go.Response[v1alpha4.UpdateMatchingRuleResponse], error)
	// Creates a new billing tag.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	CreateBillingTag(context.Context, *connect_go.Request[v1alpha4.CreateBillingTagRequest]) (*connect_go.Response[v1alpha4.CreateBillingTagResponse], error)
	// Deletes a billing tag.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The billing tag was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	DeleteBillingTag(context.Context, *connect_go.Request[v1alpha4.DeleteBillingTagRequest]) (*connect_go.Response[v1alpha4.DeleteBillingTagResponse], error)
	// Gets a billing tag.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The billing tag was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	GetBillingTag(context.Context, *connect_go.Request[v1alpha4.GetBillingTagRequest]) (*connect_go.Response[v1alpha4.GetBillingTagResponse], error)
	// Lists billing tags.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	ListBillingTags(context.Context, *connect_go.Request[v1alpha4.ListBillingTagsRequest]) (*connect_go.Response[v1alpha4.ListBillingTagsResponse], error)
	// Updates a billing tag.
	// Required permissions:
	//
	//	CUSTOMER_SUPPORT
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.NotFound: The billing tag was not found.
	//   - grpc.PermissionDenied: The caller does not have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable.
	UpdateBillingTag(context.Context, *connect_go.Request[v1alpha4.UpdateBillingTagRequest]) (*connect_go.Response[v1alpha4.UpdateBillingTagResponse], error)
	// Exports an invoice.
	// Required permissions:
	//
	//	TCN_BILLING_ADMIN
	//
	// Errors:
	//   - grpc.Internal: An internal error occurred.
	//   - grpc.InvalidArgument: The request is invalid.
	//   - grpc.PermissionDenied: Caller doesn't have the required permissions.
	//   - grpc.Unavailable: The operation is currently unavailable. Likely a transient issue with a downstream service.
	ExportInvoice(context.Context, *connect_go.Request[v1alpha4.ExportInvoiceRequest]) (*connect_go.Response[v1alpha4.ExportInvoiceResponse], error)
}

BillingServiceHandler is an implementation of the services.billing.v1alpha4.BillingService service.

type UnimplementedBillingServiceHandler

type UnimplementedBillingServiceHandler struct{}

UnimplementedBillingServiceHandler returns CodeUnimplemented from all methods.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL