billingv1alpha3connect

package
v1.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// BillingServiceListProductsProcedure is the fully-qualified name of the BillingService's
	// ListProducts RPC.
	BillingServiceListProductsProcedure = "/services.billing.v1alpha3.BillingService/ListProducts"
	// BillingServiceApplyBillingPlanDraftProcedure is the fully-qualified name of the BillingService's
	// ApplyBillingPlanDraft RPC.
	BillingServiceApplyBillingPlanDraftProcedure = "/services.billing.v1alpha3.BillingService/ApplyBillingPlanDraft"
	// BillingServiceCreateBillingPlanProcedure is the fully-qualified name of the BillingService's
	// CreateBillingPlan RPC.
	BillingServiceCreateBillingPlanProcedure = "/services.billing.v1alpha3.BillingService/CreateBillingPlan"
	// BillingServiceDeleteBillingPlanProcedure is the fully-qualified name of the BillingService's
	// DeleteBillingPlan RPC.
	BillingServiceDeleteBillingPlanProcedure = "/services.billing.v1alpha3.BillingService/DeleteBillingPlan"
	// BillingServiceGetBillingPlanProcedure is the fully-qualified name of the BillingService's
	// GetBillingPlan RPC.
	BillingServiceGetBillingPlanProcedure = "/services.billing.v1alpha3.BillingService/GetBillingPlan"
	// BillingServiceListBillingPlansProcedure is the fully-qualified name of the BillingService's
	// ListBillingPlans RPC.
	BillingServiceListBillingPlansProcedure = "/services.billing.v1alpha3.BillingService/ListBillingPlans"
	// BillingServiceUpdateBillingPlanProcedure is the fully-qualified name of the BillingService's
	// UpdateBillingPlan RPC.
	BillingServiceUpdateBillingPlanProcedure = "/services.billing.v1alpha3.BillingService/UpdateBillingPlan"
	// BillingServiceApplyDefaultBillingPlanDraftProcedure is the fully-qualified name of the
	// BillingService's ApplyDefaultBillingPlanDraft RPC.
	BillingServiceApplyDefaultBillingPlanDraftProcedure = "/services.billing.v1alpha3.BillingService/ApplyDefaultBillingPlanDraft"
	// BillingServiceCreateDefaultBillingPlanProcedure is the fully-qualified name of the
	// BillingService's CreateDefaultBillingPlan RPC.
	BillingServiceCreateDefaultBillingPlanProcedure = "/services.billing.v1alpha3.BillingService/CreateDefaultBillingPlan"
	// BillingServiceDeleteDefaultBillingPlanProcedure is the fully-qualified name of the
	// BillingService's DeleteDefaultBillingPlan RPC.
	BillingServiceDeleteDefaultBillingPlanProcedure = "/services.billing.v1alpha3.BillingService/DeleteDefaultBillingPlan"
	// BillingServiceGetDefaultBillingPlanProcedure is the fully-qualified name of the BillingService's
	// GetDefaultBillingPlan RPC.
	BillingServiceGetDefaultBillingPlanProcedure = "/services.billing.v1alpha3.BillingService/GetDefaultBillingPlan"
	// BillingServiceListDefaultBillingPlansProcedure is the fully-qualified name of the
	// BillingService's ListDefaultBillingPlans RPC.
	BillingServiceListDefaultBillingPlansProcedure = "/services.billing.v1alpha3.BillingService/ListDefaultBillingPlans"
	// BillingServiceUpdateDefaultBillingPlanProcedure is the fully-qualified name of the
	// BillingService's UpdateDefaultBillingPlan RPC.
	BillingServiceUpdateDefaultBillingPlanProcedure = "/services.billing.v1alpha3.BillingService/UpdateDefaultBillingPlan"
	// BillingServiceCreateRateDefinitionProcedure is the fully-qualified name of the BillingService's
	// CreateRateDefinition RPC.
	BillingServiceCreateRateDefinitionProcedure = "/services.billing.v1alpha3.BillingService/CreateRateDefinition"
	// BillingServiceDeleteRateDefinitionProcedure is the fully-qualified name of the BillingService's
	// DeleteRateDefinition RPC.
	BillingServiceDeleteRateDefinitionProcedure = "/services.billing.v1alpha3.BillingService/DeleteRateDefinition"
	// BillingServiceGetRateDefinitionProcedure is the fully-qualified name of the BillingService's
	// GetRateDefinition RPC.
	BillingServiceGetRateDefinitionProcedure = "/services.billing.v1alpha3.BillingService/GetRateDefinition"
	// BillingServiceListRateDefinitionsProcedure is the fully-qualified name of the BillingService's
	// ListRateDefinitions RPC.
	BillingServiceListRateDefinitionsProcedure = "/services.billing.v1alpha3.BillingService/ListRateDefinitions"
	// BillingServiceUpdateRateDefinitionProcedure is the fully-qualified name of the BillingService's
	// UpdateRateDefinition RPC.
	BillingServiceUpdateRateDefinitionProcedure = "/services.billing.v1alpha3.BillingService/UpdateRateDefinition"
	// BillingServiceCreateDefaultRateDefinitionProcedure is the fully-qualified name of the
	// BillingService's CreateDefaultRateDefinition RPC.
	BillingServiceCreateDefaultRateDefinitionProcedure = "/services.billing.v1alpha3.BillingService/CreateDefaultRateDefinition"
	// BillingServiceDeleteDefaultRateDefinitionProcedure is the fully-qualified name of the
	// BillingService's DeleteDefaultRateDefinition RPC.
	BillingServiceDeleteDefaultRateDefinitionProcedure = "/services.billing.v1alpha3.BillingService/DeleteDefaultRateDefinition"
	// BillingServiceGetDefaultRateDefinitionProcedure is the fully-qualified name of the
	// BillingService's GetDefaultRateDefinition RPC.
	BillingServiceGetDefaultRateDefinitionProcedure = "/services.billing.v1alpha3.BillingService/GetDefaultRateDefinition"
	// BillingServiceListDefaultRateDefinitionsProcedure is the fully-qualified name of the
	// BillingService's ListDefaultRateDefinitions RPC.
	BillingServiceListDefaultRateDefinitionsProcedure = "/services.billing.v1alpha3.BillingService/ListDefaultRateDefinitions"
	// BillingServiceUpdateDefaultRateDefinitionProcedure is the fully-qualified name of the
	// BillingService's UpdateDefaultRateDefinition RPC.
	BillingServiceUpdateDefaultRateDefinitionProcedure = "/services.billing.v1alpha3.BillingService/UpdateDefaultRateDefinition"
	// BillingServiceExportInvoiceProcedure is the fully-qualified name of the BillingService's
	// ExportInvoice RPC.
	BillingServiceExportInvoiceProcedure = "/services.billing.v1alpha3.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.v1alpha3.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 {
	// Lists the products.
	// 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.
	ListProducts(context.Context, *connect_go.Request[v1alpha3.ListProductsRequest]) (*connect_go.Response[v1alpha3.ListProductsResponse], error)
	// 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[v1alpha3.ApplyBillingPlanDraftRequest]) (*connect_go.Response[v1alpha3.ApplyBillingPlanDraftResponse], 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[v1alpha3.CreateBillingPlanRequest]) (*connect_go.Response[v1alpha3.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[v1alpha3.DeleteBillingPlanRequest]) (*connect_go.Response[v1alpha3.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[v1alpha3.GetBillingPlanRequest]) (*connect_go.Response[v1alpha3.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[v1alpha3.ListBillingPlansRequest]) (*connect_go.Response[v1alpha3.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[v1alpha3.UpdateBillingPlanRequest]) (*connect_go.Response[v1alpha3.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[v1alpha3.ApplyDefaultBillingPlanDraftRequest]) (*connect_go.Response[v1alpha3.ApplyDefaultBillingPlanDraftResponse], 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[v1alpha3.CreateDefaultBillingPlanRequest]) (*connect_go.Response[v1alpha3.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[v1alpha3.DeleteDefaultBillingPlanRequest]) (*connect_go.Response[v1alpha3.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[v1alpha3.GetDefaultBillingPlanRequest]) (*connect_go.Response[v1alpha3.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[v1alpha3.ListDefaultBillingPlansRequest]) (*connect_go.Response[v1alpha3.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[v1alpha3.UpdateDefaultBillingPlanRequest]) (*connect_go.Response[v1alpha3.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[v1alpha3.CreateRateDefinitionRequest]) (*connect_go.Response[v1alpha3.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[v1alpha3.DeleteRateDefinitionRequest]) (*connect_go.Response[v1alpha3.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[v1alpha3.GetRateDefinitionRequest]) (*connect_go.Response[v1alpha3.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[v1alpha3.ListRateDefinitionsRequest]) (*connect_go.Response[v1alpha3.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[v1alpha3.UpdateRateDefinitionRequest]) (*connect_go.Response[v1alpha3.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[v1alpha3.CreateDefaultRateDefinitionRequest]) (*connect_go.Response[v1alpha3.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[v1alpha3.DeleteDefaultRateDefinitionRequest]) (*connect_go.Response[v1alpha3.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[v1alpha3.GetDefaultRateDefinitionRequest]) (*connect_go.Response[v1alpha3.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[v1alpha3.ListDefaultRateDefinitionsRequest]) (*connect_go.Response[v1alpha3.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[v1alpha3.UpdateDefaultRateDefinitionRequest]) (*connect_go.Response[v1alpha3.UpdateDefaultRateDefinitionResponse], 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[v1alpha3.ExportInvoiceRequest]) (*connect_go.Response[v1alpha3.ExportInvoiceResponse], error)
}

BillingServiceClient is a client for the services.billing.v1alpha3.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.v1alpha3.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 {
	// Lists the products.
	// 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.
	ListProducts(context.Context, *connect_go.Request[v1alpha3.ListProductsRequest]) (*connect_go.Response[v1alpha3.ListProductsResponse], error)
	// 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[v1alpha3.ApplyBillingPlanDraftRequest]) (*connect_go.Response[v1alpha3.ApplyBillingPlanDraftResponse], 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[v1alpha3.CreateBillingPlanRequest]) (*connect_go.Response[v1alpha3.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[v1alpha3.DeleteBillingPlanRequest]) (*connect_go.Response[v1alpha3.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[v1alpha3.GetBillingPlanRequest]) (*connect_go.Response[v1alpha3.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[v1alpha3.ListBillingPlansRequest]) (*connect_go.Response[v1alpha3.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[v1alpha3.UpdateBillingPlanRequest]) (*connect_go.Response[v1alpha3.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[v1alpha3.ApplyDefaultBillingPlanDraftRequest]) (*connect_go.Response[v1alpha3.ApplyDefaultBillingPlanDraftResponse], 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[v1alpha3.CreateDefaultBillingPlanRequest]) (*connect_go.Response[v1alpha3.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[v1alpha3.DeleteDefaultBillingPlanRequest]) (*connect_go.Response[v1alpha3.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[v1alpha3.GetDefaultBillingPlanRequest]) (*connect_go.Response[v1alpha3.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[v1alpha3.ListDefaultBillingPlansRequest]) (*connect_go.Response[v1alpha3.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[v1alpha3.UpdateDefaultBillingPlanRequest]) (*connect_go.Response[v1alpha3.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[v1alpha3.CreateRateDefinitionRequest]) (*connect_go.Response[v1alpha3.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[v1alpha3.DeleteRateDefinitionRequest]) (*connect_go.Response[v1alpha3.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[v1alpha3.GetRateDefinitionRequest]) (*connect_go.Response[v1alpha3.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[v1alpha3.ListRateDefinitionsRequest]) (*connect_go.Response[v1alpha3.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[v1alpha3.UpdateRateDefinitionRequest]) (*connect_go.Response[v1alpha3.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[v1alpha3.CreateDefaultRateDefinitionRequest]) (*connect_go.Response[v1alpha3.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[v1alpha3.DeleteDefaultRateDefinitionRequest]) (*connect_go.Response[v1alpha3.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[v1alpha3.GetDefaultRateDefinitionRequest]) (*connect_go.Response[v1alpha3.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[v1alpha3.ListDefaultRateDefinitionsRequest]) (*connect_go.Response[v1alpha3.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[v1alpha3.UpdateDefaultRateDefinitionRequest]) (*connect_go.Response[v1alpha3.UpdateDefaultRateDefinitionResponse], 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[v1alpha3.ExportInvoiceRequest]) (*connect_go.Response[v1alpha3.ExportInvoiceResponse], error)
}

BillingServiceHandler is an implementation of the services.billing.v1alpha3.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