Documentation ¶
Index ¶
- Constants
- func NewBillingServiceHandler(svc BillingServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
- type BillingServiceClient
- type BillingServiceHandler
- type UnimplementedBillingServiceHandler
- func (UnimplementedBillingServiceHandler) CommitBillingPlan(context.Context, *connect_go.Request[v1alpha1.CommitBillingPlanRequest]) (*connect_go.Response[v1alpha1.CommitBillingPlanResponse], error)
- func (UnimplementedBillingServiceHandler) CommitDefaultBillingPlan(context.Context, *connect_go.Request[v1alpha1.CommitDefaultBillingPlanRequest]) (*connect_go.Response[v1alpha1.CommitDefaultBillingPlanResponse], error)
- func (UnimplementedBillingServiceHandler) CreateBillingPlan(context.Context, *connect_go.Request[v1alpha1.CreateBillingPlanRequest]) (*connect_go.Response[v1alpha1.CreateBillingPlanResponse], error)
- func (UnimplementedBillingServiceHandler) CreateDefaultBillingPlan(context.Context, *connect_go.Request[v1alpha1.CreateDefaultBillingPlanRequest]) (*connect_go.Response[v1alpha1.CreateDefaultBillingPlanResponse], error)
- func (UnimplementedBillingServiceHandler) CreateDefaultRateDefinition(context.Context, ...) (*connect_go.Response[v1alpha1.CreateDefaultRateDefinitionResponse], error)
- func (UnimplementedBillingServiceHandler) CreateInvoice(context.Context, *connect_go.Request[v1alpha1.CreateInvoiceRequest]) (*connect_go.Response[v1alpha1.CreateInvoiceResponse], error)
- func (UnimplementedBillingServiceHandler) CreateRateDefinition(context.Context, *connect_go.Request[v1alpha1.CreateRateDefinitionRequest]) (*connect_go.Response[v1alpha1.CreateRateDefinitionResponse], error)
- func (UnimplementedBillingServiceHandler) DeleteBillingPlan(context.Context, *connect_go.Request[v1alpha1.DeleteBillingPlanRequest]) (*connect_go.Response[v1alpha1.DeleteBillingPlanResponse], error)
- func (UnimplementedBillingServiceHandler) DeleteDefaultBillingPlan(context.Context, *connect_go.Request[v1alpha1.DeleteDefaultBillingPlanRequest]) (*connect_go.Response[v1alpha1.DeleteDefaultBillingPlanResponse], error)
- func (UnimplementedBillingServiceHandler) DeleteDefaultRateDefinition(context.Context, ...) (*connect_go.Response[v1alpha1.DeleteDefaultRateDefinitionResponse], error)
- func (UnimplementedBillingServiceHandler) DeleteInvoice(context.Context, *connect_go.Request[v1alpha1.DeleteInvoiceRequest]) (*connect_go.Response[v1alpha1.DeleteInvoiceResponse], error)
- func (UnimplementedBillingServiceHandler) DeleteRateDefinition(context.Context, *connect_go.Request[v1alpha1.DeleteRateDefinitionRequest]) (*connect_go.Response[v1alpha1.DeleteRateDefinitionResponse], error)
- func (UnimplementedBillingServiceHandler) DuplicateBillingPlan(context.Context, *connect_go.Request[v1alpha1.DuplicateBillingPlanRequest]) (*connect_go.Response[v1alpha1.DuplicateBillingPlanResponse], error)
- func (UnimplementedBillingServiceHandler) DuplicateDefaultBillingPlan(context.Context, ...) (*connect_go.Response[v1alpha1.DuplicateDefaultBillingPlanResponse], error)
- func (UnimplementedBillingServiceHandler) ExportInvoice(context.Context, *connect_go.Request[v1alpha1.ExportInvoiceRequest]) (*connect_go.Response[v1alpha1.ExportInvoiceResponse], error)
- func (UnimplementedBillingServiceHandler) GetActiveBillingPlan(context.Context, *connect_go.Request[v1alpha1.GetActiveBillingPlanRequest]) (*connect_go.Response[v1alpha1.GetActiveBillingPlanResponse], error)
- func (UnimplementedBillingServiceHandler) GetBillingPlan(context.Context, *connect_go.Request[v1alpha1.GetBillingPlanRequest]) (*connect_go.Response[v1alpha1.GetBillingPlanResponse], error)
- func (UnimplementedBillingServiceHandler) GetBillingPlanHistory(context.Context, *connect_go.Request[v1alpha1.GetBillingPlanHistoryRequest]) (*connect_go.Response[v1alpha1.GetBillingPlanHistoryResponse], error)
- func (UnimplementedBillingServiceHandler) GetInvoice(context.Context, *connect_go.Request[v1alpha1.GetInvoiceRequest]) (*connect_go.Response[v1alpha1.GetInvoiceResponse], error)
- func (UnimplementedBillingServiceHandler) GetRateDefinition(context.Context, *connect_go.Request[v1alpha1.GetRateDefinitionRequest]) (*connect_go.Response[v1alpha1.GetRateDefinitionResponse], error)
- func (UnimplementedBillingServiceHandler) ListBillingPlans(context.Context, *connect_go.Request[v1alpha1.ListBillingPlansRequest]) (*connect_go.Response[v1alpha1.ListBillingPlansResponse], error)
- func (UnimplementedBillingServiceHandler) ListInvoices(context.Context, *connect_go.Request[v1alpha1.ListInvoicesRequest]) (*connect_go.Response[v1alpha1.ListInvoicesResponse], error)
- func (UnimplementedBillingServiceHandler) ListRateDefinitions(context.Context, *connect_go.Request[v1alpha1.ListRateDefinitionsRequest]) (*connect_go.Response[v1alpha1.ListRateDefinitionsResponse], error)
- func (UnimplementedBillingServiceHandler) UpdateBillingPlan(context.Context, *connect_go.Request[v1alpha1.UpdateBillingPlanRequest]) (*connect_go.Response[v1alpha1.UpdateBillingPlanResponse], error)
- func (UnimplementedBillingServiceHandler) UpdateDefaultBillingPlan(context.Context, *connect_go.Request[v1alpha1.UpdateDefaultBillingPlanRequest]) (*connect_go.Response[v1alpha1.UpdateDefaultBillingPlanResponse], error)
- func (UnimplementedBillingServiceHandler) UpdateDefaultRateDefinition(context.Context, ...) (*connect_go.Response[v1alpha1.UpdateDefaultRateDefinitionResponse], error)
- func (UnimplementedBillingServiceHandler) UpdateInvoice(context.Context, *connect_go.Request[v1alpha1.UpdateInvoiceRequest]) (*connect_go.Response[v1alpha1.UpdateInvoiceResponse], error)
- func (UnimplementedBillingServiceHandler) UpdateRateDefinition(context.Context, *connect_go.Request[v1alpha1.UpdateRateDefinitionRequest]) (*connect_go.Response[v1alpha1.UpdateRateDefinitionResponse], error)
Constants ¶
const ( // BillingServiceCommitBillingPlanProcedure is the fully-qualified name of the BillingService's // CommitBillingPlan RPC. BillingServiceCommitBillingPlanProcedure = "/services.billing.v1alpha1.BillingService/CommitBillingPlan" // BillingServiceCommitDefaultBillingPlanProcedure is the fully-qualified name of the // BillingService's CommitDefaultBillingPlan RPC. BillingServiceCommitDefaultBillingPlanProcedure = "/services.billing.v1alpha1.BillingService/CommitDefaultBillingPlan" // BillingServiceCreateBillingPlanProcedure is the fully-qualified name of the BillingService's // CreateBillingPlan RPC. BillingServiceCreateBillingPlanProcedure = "/services.billing.v1alpha1.BillingService/CreateBillingPlan" // BillingServiceCreateDefaultBillingPlanProcedure is the fully-qualified name of the // BillingService's CreateDefaultBillingPlan RPC. BillingServiceCreateDefaultBillingPlanProcedure = "/services.billing.v1alpha1.BillingService/CreateDefaultBillingPlan" // BillingServiceCreateDefaultRateDefinitionProcedure is the fully-qualified name of the // BillingService's CreateDefaultRateDefinition RPC. BillingServiceCreateDefaultRateDefinitionProcedure = "/services.billing.v1alpha1.BillingService/CreateDefaultRateDefinition" // BillingServiceCreateInvoiceProcedure is the fully-qualified name of the BillingService's // CreateInvoice RPC. BillingServiceCreateInvoiceProcedure = "/services.billing.v1alpha1.BillingService/CreateInvoice" // BillingServiceCreateRateDefinitionProcedure is the fully-qualified name of the BillingService's // CreateRateDefinition RPC. BillingServiceCreateRateDefinitionProcedure = "/services.billing.v1alpha1.BillingService/CreateRateDefinition" // BillingServiceDeleteBillingPlanProcedure is the fully-qualified name of the BillingService's // DeleteBillingPlan RPC. BillingServiceDeleteBillingPlanProcedure = "/services.billing.v1alpha1.BillingService/DeleteBillingPlan" // BillingServiceDeleteDefaultBillingPlanProcedure is the fully-qualified name of the // BillingService's DeleteDefaultBillingPlan RPC. BillingServiceDeleteDefaultBillingPlanProcedure = "/services.billing.v1alpha1.BillingService/DeleteDefaultBillingPlan" // BillingServiceDeleteDefaultRateDefinitionProcedure is the fully-qualified name of the // BillingService's DeleteDefaultRateDefinition RPC. BillingServiceDeleteDefaultRateDefinitionProcedure = "/services.billing.v1alpha1.BillingService/DeleteDefaultRateDefinition" // BillingServiceDeleteInvoiceProcedure is the fully-qualified name of the BillingService's // DeleteInvoice RPC. BillingServiceDeleteInvoiceProcedure = "/services.billing.v1alpha1.BillingService/DeleteInvoice" // BillingServiceDeleteRateDefinitionProcedure is the fully-qualified name of the BillingService's // DeleteRateDefinition RPC. BillingServiceDeleteRateDefinitionProcedure = "/services.billing.v1alpha1.BillingService/DeleteRateDefinition" // BillingServiceDuplicateBillingPlanProcedure is the fully-qualified name of the BillingService's // DuplicateBillingPlan RPC. BillingServiceDuplicateBillingPlanProcedure = "/services.billing.v1alpha1.BillingService/DuplicateBillingPlan" // BillingServiceDuplicateDefaultBillingPlanProcedure is the fully-qualified name of the // BillingService's DuplicateDefaultBillingPlan RPC. BillingServiceDuplicateDefaultBillingPlanProcedure = "/services.billing.v1alpha1.BillingService/DuplicateDefaultBillingPlan" // BillingServiceExportInvoiceProcedure is the fully-qualified name of the BillingService's // ExportInvoice RPC. BillingServiceExportInvoiceProcedure = "/services.billing.v1alpha1.BillingService/ExportInvoice" // BillingServiceGetActiveBillingPlanProcedure is the fully-qualified name of the BillingService's // GetActiveBillingPlan RPC. BillingServiceGetActiveBillingPlanProcedure = "/services.billing.v1alpha1.BillingService/GetActiveBillingPlan" // BillingServiceGetBillingPlanProcedure is the fully-qualified name of the BillingService's // GetBillingPlan RPC. BillingServiceGetBillingPlanProcedure = "/services.billing.v1alpha1.BillingService/GetBillingPlan" // BillingServiceGetBillingPlanHistoryProcedure is the fully-qualified name of the BillingService's // GetBillingPlanHistory RPC. BillingServiceGetBillingPlanHistoryProcedure = "/services.billing.v1alpha1.BillingService/GetBillingPlanHistory" // BillingServiceGetInvoiceProcedure is the fully-qualified name of the BillingService's GetInvoice // RPC. BillingServiceGetInvoiceProcedure = "/services.billing.v1alpha1.BillingService/GetInvoice" // BillingServiceGetRateDefinitionProcedure is the fully-qualified name of the BillingService's // GetRateDefinition RPC. BillingServiceGetRateDefinitionProcedure = "/services.billing.v1alpha1.BillingService/GetRateDefinition" // BillingServiceListBillingPlansProcedure is the fully-qualified name of the BillingService's // ListBillingPlans RPC. BillingServiceListBillingPlansProcedure = "/services.billing.v1alpha1.BillingService/ListBillingPlans" // BillingServiceListInvoicesProcedure is the fully-qualified name of the BillingService's // ListInvoices RPC. BillingServiceListInvoicesProcedure = "/services.billing.v1alpha1.BillingService/ListInvoices" // BillingServiceListRateDefinitionsProcedure is the fully-qualified name of the BillingService's // ListRateDefinitions RPC. BillingServiceListRateDefinitionsProcedure = "/services.billing.v1alpha1.BillingService/ListRateDefinitions" // BillingServiceUpdateBillingPlanProcedure is the fully-qualified name of the BillingService's // UpdateBillingPlan RPC. BillingServiceUpdateBillingPlanProcedure = "/services.billing.v1alpha1.BillingService/UpdateBillingPlan" // BillingServiceUpdateDefaultBillingPlanProcedure is the fully-qualified name of the // BillingService's UpdateDefaultBillingPlan RPC. BillingServiceUpdateDefaultBillingPlanProcedure = "/services.billing.v1alpha1.BillingService/UpdateDefaultBillingPlan" // BillingServiceUpdateDefaultRateDefinitionProcedure is the fully-qualified name of the // BillingService's UpdateDefaultRateDefinition RPC. BillingServiceUpdateDefaultRateDefinitionProcedure = "/services.billing.v1alpha1.BillingService/UpdateDefaultRateDefinition" // BillingServiceUpdateInvoiceProcedure is the fully-qualified name of the BillingService's // UpdateInvoice RPC. BillingServiceUpdateInvoiceProcedure = "/services.billing.v1alpha1.BillingService/UpdateInvoice" // BillingServiceUpdateRateDefinitionProcedure is the fully-qualified name of the BillingService's // UpdateRateDefinition RPC. BillingServiceUpdateRateDefinitionProcedure = "/services.billing.v1alpha1.BillingService/UpdateRateDefinition" )
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.
const (
// BillingServiceName is the fully-qualified name of the BillingService service.
BillingServiceName = "services.billing.v1alpha1.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 { // Commits a billing plan for the ORG, finalizing it's creation and allowing it // to become active. // Required permissions: // // CUSTOMER_SUPPORT // // Errors: // - grpc.FailedPrecondition: The billing plan is already committed. // - grpc.Internal: An internal error occurred. // - grpc.InvalidArgument: The request is invalid. // - grpc.NotFound: The specified billing plan doesn't exist. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. Likely a transient issue with a downstream service. // // Deprecated: do not use. CommitBillingPlan(context.Context, *connect_go.Request[v1alpha1.CommitBillingPlanRequest]) (*connect_go.Response[v1alpha1.CommitBillingPlanResponse], error) // Commits a default billing plan for the REGION, finalizing it's creation and allowing it // to become active. // Required permissions: // // CUSTOMER_SUPPORT // TCN_BILLING_ADMIN // // Errors: // - grpc.FailedPrecondition: The default billing plan is already committed. // - grpc.Internal: An internal error occurred. // - grpc.InvalidArgument: The request is invalid. // - grpc.NotFound: The specified default billing plan doesn't exist. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. // // Deprecated: do not use. CommitDefaultBillingPlan(context.Context, *connect_go.Request[v1alpha1.CommitDefaultBillingPlanRequest]) (*connect_go.Response[v1alpha1.CommitDefaultBillingPlanResponse], error) // Creates a billing plan for the ORG. // Required permissions: // // CUSTOMER_SUPPORT // // 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. // // Deprecated: do not use. CreateBillingPlan(context.Context, *connect_go.Request[v1alpha1.CreateBillingPlanRequest]) (*connect_go.Response[v1alpha1.CreateBillingPlanResponse], error) // Creates the default billing plan for the REGION. // Required permissions: // // CUSTOMER_SUPPORT // 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. // // Deprecated: do not use. CreateDefaultBillingPlan(context.Context, *connect_go.Request[v1alpha1.CreateDefaultBillingPlanRequest]) (*connect_go.Response[v1alpha1.CreateDefaultBillingPlanResponse], error) // Creates a default rate definition for a default billing plan for the REGION. // Required permissions: // // CUSTOMER_SUPPORT // TCN_BILLING_ADMIN // // Errors: // - grpc.AlreadyExists: A rate definition with the same feature already exists. // - grpc.Internal: An internal error occurred. // - grpc.InvalidArgument: The request is invalid. // - grpc.NotFound: The default billing plan doesn't exist. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. CreateDefaultRateDefinition(context.Context, *connect_go.Request[v1alpha1.CreateDefaultRateDefinitionRequest]) (*connect_go.Response[v1alpha1.CreateDefaultRateDefinitionResponse], error) // Creates an invoice for the ORG for the specified billing cycle. // Required permissions: // // CUSTOMER_SUPPORT // // Errors: // - grpc.AlreadyExists: An invoice already exists for the specified billing cycle. // - 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. // // Deprecated: do not use. CreateInvoice(context.Context, *connect_go.Request[v1alpha1.CreateInvoiceRequest]) (*connect_go.Response[v1alpha1.CreateInvoiceResponse], error) // Creates a rate definition for a Billing Plan in an ORG. // Required permissions: // // CUSTOMER_SUPPORT // // Errors: // - grpc.AlreadyExists: A rate definition with the same feature id already exists. // - grpc.Internal: An internal error occurred. // - grpc.InvalidArgument: The request is invalid. // - grpc.NotFound: The specified billing plan or rate definition group doesn't exist. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. Likely a transient issue with a downstream service. CreateRateDefinition(context.Context, *connect_go.Request[v1alpha1.CreateRateDefinitionRequest]) (*connect_go.Response[v1alpha1.CreateRateDefinitionResponse], error) // Deletes an inactive billing plan. A billing plan is inactive if it hasn't started. // Required permissions: // // CUSTOMER_SUPPORT // // Errors: // - grpc.FailedPrecondition: The billing plan is active. // - grpc.Internal: An internal error occurred. // - grpc.InvalidArgument: The request is invalid. // - grpc.NotFound: The specified billing plan doesn't exist. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. Likely a transient issue with a downstream service. // // Deprecated: do not use. DeleteBillingPlan(context.Context, *connect_go.Request[v1alpha1.DeleteBillingPlanRequest]) (*connect_go.Response[v1alpha1.DeleteBillingPlanResponse], error) // Deletes an inactive default billing plan for the REGION. A billing plan is inactive // if it hasn't started. // Required permissions: // // CUSTOMER_SUPPORT // TCN_BILLING_ADMIN // // Errors: // - grpc.FailedPrecondition: The billing plan is active. // - grpc.Internal: An internal error occurred. // - grpc.InvalidArgument: The request is invalid. // - grpc.NotFound: The default billing plan doesn't exist. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. // // Deprecated: do not use. DeleteDefaultBillingPlan(context.Context, *connect_go.Request[v1alpha1.DeleteDefaultBillingPlanRequest]) (*connect_go.Response[v1alpha1.DeleteDefaultBillingPlanResponse], error) // Deletes a rate definition from the default billing plan for the REGION. // - The default billing plan must be inactive. // // Required permissions: // // CUSTOMER_SUPPORT // TCN_BILLING_ADMIN // // Errors: // - grpc.FailedPrecondition: The billing plan is active. // - grpc.Internal: An internal error occurred. // - grpc.InvalidArgument: The request is invalid. // - grpc.NotFound: The rate definition doesn't exist. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. DeleteDefaultRateDefinition(context.Context, *connect_go.Request[v1alpha1.DeleteDefaultRateDefinitionRequest]) (*connect_go.Response[v1alpha1.DeleteDefaultRateDefinitionResponse], error) // Deletes an invoice. // Required permissions: // // CUSTOMER_SUPPORT // // Errors: // - grpc.Internal: An internal error occurred. // - grpc.InvalidArgument: The request is invalid. // - grpc.NotFound: The specified invoice doesn't exist. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. Likely a transient issue with a downstream service. // // Deprecated: do not use. DeleteInvoice(context.Context, *connect_go.Request[v1alpha1.DeleteInvoiceRequest]) (*connect_go.Response[v1alpha1.DeleteInvoiceResponse], error) // Deletes a rate definition from a Billing Plan in an ORG. // - The billing plan must be inactive. // // Required permissions: // // CUSTOMER_SUPPORT // // Errors: // - grpc.FailedPrecondition: The billing plan is active. // - grpc.Internal: An internal error occurred. // - grpc.InvalidArgument: The request is invalid. // - grpc.NotFound: The specified billing plan or rate definition group doesn't exist. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. Likely a transient issue with a downstream service. DeleteRateDefinition(context.Context, *connect_go.Request[v1alpha1.DeleteRateDefinitionRequest]) (*connect_go.Response[v1alpha1.DeleteRateDefinitionResponse], error) // Duplicates a billing plan. This copies the billing plan and all of its rate definitions. // Required permissions: // // CUSTOMER_SUPPORT // // Errors: // - grpc.Internal: An internal error occurred. // - grpc.InvalidArgument: The request is invalid. // - grpc.NotFound: The specified billing plan doesn't exist. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. Likely a transient issue with a downstream service. // // Deprecated: do not use. DuplicateBillingPlan(context.Context, *connect_go.Request[v1alpha1.DuplicateBillingPlanRequest]) (*connect_go.Response[v1alpha1.DuplicateBillingPlanResponse], error) // Duplicates a default billing plan. This copies the billing plan, all of its rate definitions, // and all of its rate definition groups and features. // Required permissions: // // CUSTOMER_SUPPORT // TCN_BILLING_ADMIN // // Errors: // - grpc.Internal: An internal error occurred. // - grpc.InvalidArgument: The request is invalid. // - grpc.NotFound: The specified billing plan doesn't exist. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. Likely a transient issue with a downstream service. // // Deprecated: do not use. DuplicateDefaultBillingPlan(context.Context, *connect_go.Request[v1alpha1.DuplicateDefaultBillingPlanRequest]) (*connect_go.Response[v1alpha1.DuplicateDefaultBillingPlanResponse], 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[v1alpha1.ExportInvoiceRequest]) (*connect_go.Response[v1alpha1.ExportInvoiceResponse], error) // Returns the active billing plan for the ORG or REGION. The active billing plan is a billing plan // whose start_time has passed and end_time has not passed. If multiple satisfy that requirement, the // newest one is considered active. If no plan is active, it indicates the ORG is using REGION defaults, // or that the REGION has not been set up for billing yet. // Required permissions: // // CUSTOMER_SUPPORT // // Errors: // - grpc.Internal: An internal error occurred. // - grpc.InvalidArgument: The request is invalid. // - grpc.NotFound: There isn't an active billing plan. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. Likely a transient issue with a downstream service. // // Deprecated: do not use. GetActiveBillingPlan(context.Context, *connect_go.Request[v1alpha1.GetActiveBillingPlanRequest]) (*connect_go.Response[v1alpha1.GetActiveBillingPlanResponse], error) // Returns the specified billing plan. // Required permissions: // // CUSTOMER_SUPPORT // // Errors: // - grpc.Internal: An internal error occurred. // - grpc.InvalidArgument: The request is invalid. // - grpc.NotFound: The specified billing plan doesn't exist. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. Likely a transient issue with a downstream service. // // Deprecated: do not use. GetBillingPlan(context.Context, *connect_go.Request[v1alpha1.GetBillingPlanRequest]) (*connect_go.Response[v1alpha1.GetBillingPlanResponse], error) // Returns the billing plan history for the ORG or REGION. // Required permissions: // // CUSTOMER_SUPPORT // // 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. // // Deprecated: do not use. GetBillingPlanHistory(context.Context, *connect_go.Request[v1alpha1.GetBillingPlanHistoryRequest]) (*connect_go.Response[v1alpha1.GetBillingPlanHistoryResponse], error) // Returns the specified invoice. // Required permissions: // // CUSTOMER_SUPPORT // // Errors: // - grpc.Internal: An internal error occurred. // - grpc.InvalidArgument: The request is invalid. // - grpc.NotFound: The specified invoice doesn't exist. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. Likely a transient issue with a downstream service. // // Deprecated: do not use. GetInvoice(context.Context, *connect_go.Request[v1alpha1.GetInvoiceRequest]) (*connect_go.Response[v1alpha1.GetInvoiceResponse], error) // Returns the specified rate definition. // Required permissions: // // CUSTOMER_SUPPORT // // Errors: // - grpc.Internal: An internal error occurred. // - grpc.InvalidArgument: The request is invalid. // - grpc.NotFound: The specified rate definition doesn't exist. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. GetRateDefinition(context.Context, *connect_go.Request[v1alpha1.GetRateDefinitionRequest]) (*connect_go.Response[v1alpha1.GetRateDefinitionResponse], error) // Lists billing plans. // Required permissions: // // CUSTOMER_SUPPORT // // 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. // // Deprecated: do not use. ListBillingPlans(context.Context, *connect_go.Request[v1alpha1.ListBillingPlansRequest]) (*connect_go.Response[v1alpha1.ListBillingPlansResponse], error) // Lists invoices. // Required permissions: // // CUSTOMER_SUPPORT // // 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. // // Deprecated: do not use. ListInvoices(context.Context, *connect_go.Request[v1alpha1.ListInvoicesRequest]) (*connect_go.Response[v1alpha1.ListInvoicesResponse], error) // Lists rate definitions. // Required permissions: // // CUSTOMER_SUPPORT // // 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. ListRateDefinitions(context.Context, *connect_go.Request[v1alpha1.ListRateDefinitionsRequest]) (*connect_go.Response[v1alpha1.ListRateDefinitionsResponse], error) // Updates an inactive billing plan. A billing plan is inactive if it hasn't started. // Required permissions: // // CUSTOMER_SUPPORT // // Errors: // - grpc.FailedPrecondition: The billing plan is active. // - grpc.Internal: An internal error occurred. // - grpc.InvalidArgument: The request is invalid. // - grpc.NotFound: The specified billing plan doesn't exist. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. Likely a transient issue with a downstream service. // // Deprecated: do not use. UpdateBillingPlan(context.Context, *connect_go.Request[v1alpha1.UpdateBillingPlanRequest]) (*connect_go.Response[v1alpha1.UpdateBillingPlanResponse], error) // Updates an inactive default billing plan for the REGION. A billing plan is inactive // if it hasn't started. // Required permissions: // // CUSTOMER_SUPPORT // TCN_BILLING_ADMIN // // Errors: // - grpc.FailedPrecondition: The billing plan is active. // - 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. // // Deprecated: do not use. UpdateDefaultBillingPlan(context.Context, *connect_go.Request[v1alpha1.UpdateDefaultBillingPlanRequest]) (*connect_go.Response[v1alpha1.UpdateDefaultBillingPlanResponse], error) // Updates a default rate definition. // - The billing plan must be inactive. // // Required permissions: // // CUSTOMER_SUPPORT // // Errors: // - grpc.FailedPrecondition: The billing plan is active. // - grpc.Internal: An internal error occurred. // - grpc.InvalidArgument: The request is invalid. // - grpc.NotFound: The specified rate definition doesn't exist. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. UpdateDefaultRateDefinition(context.Context, *connect_go.Request[v1alpha1.UpdateDefaultRateDefinitionRequest]) (*connect_go.Response[v1alpha1.UpdateDefaultRateDefinitionResponse], error) // Updates the specified invoice. // Required permissions: // // CUSTOMER_SUPPORT // // Errors: // - grpc.Internal: An internal error occurred. // - grpc.InvalidArgument: The request is invalid. // - grpc.NotFound: The specified invoice doesn't exist. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. Likely a transient issue with a downstream service. // // Deprecated: do not use. UpdateInvoice(context.Context, *connect_go.Request[v1alpha1.UpdateInvoiceRequest]) (*connect_go.Response[v1alpha1.UpdateInvoiceResponse], error) // Updates a rate definition. // - The billing plan must be inactive. // // Required permissions: // // CUSTOMER_SUPPORT // // Errors: // - grpc.FailedPrecondition: The billing plan is active. // - grpc.Internal: An internal error occurred. // - grpc.InvalidArgument: The request is invalid. // - grpc.NotFound: The specified rate definition doesn't exist. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. UpdateRateDefinition(context.Context, *connect_go.Request[v1alpha1.UpdateRateDefinitionRequest]) (*connect_go.Response[v1alpha1.UpdateRateDefinitionResponse], error) }
BillingServiceClient is a client for the services.billing.v1alpha1.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.v1alpha1.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 { // Commits a billing plan for the ORG, finalizing it's creation and allowing it // to become active. // Required permissions: // // CUSTOMER_SUPPORT // // Errors: // - grpc.FailedPrecondition: The billing plan is already committed. // - grpc.Internal: An internal error occurred. // - grpc.InvalidArgument: The request is invalid. // - grpc.NotFound: The specified billing plan doesn't exist. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. Likely a transient issue with a downstream service. // // Deprecated: do not use. CommitBillingPlan(context.Context, *connect_go.Request[v1alpha1.CommitBillingPlanRequest]) (*connect_go.Response[v1alpha1.CommitBillingPlanResponse], error) // Commits a default billing plan for the REGION, finalizing it's creation and allowing it // to become active. // Required permissions: // // CUSTOMER_SUPPORT // TCN_BILLING_ADMIN // // Errors: // - grpc.FailedPrecondition: The default billing plan is already committed. // - grpc.Internal: An internal error occurred. // - grpc.InvalidArgument: The request is invalid. // - grpc.NotFound: The specified default billing plan doesn't exist. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. // // Deprecated: do not use. CommitDefaultBillingPlan(context.Context, *connect_go.Request[v1alpha1.CommitDefaultBillingPlanRequest]) (*connect_go.Response[v1alpha1.CommitDefaultBillingPlanResponse], error) // Creates a billing plan for the ORG. // Required permissions: // // CUSTOMER_SUPPORT // // 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. // // Deprecated: do not use. CreateBillingPlan(context.Context, *connect_go.Request[v1alpha1.CreateBillingPlanRequest]) (*connect_go.Response[v1alpha1.CreateBillingPlanResponse], error) // Creates the default billing plan for the REGION. // Required permissions: // // CUSTOMER_SUPPORT // 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. // // Deprecated: do not use. CreateDefaultBillingPlan(context.Context, *connect_go.Request[v1alpha1.CreateDefaultBillingPlanRequest]) (*connect_go.Response[v1alpha1.CreateDefaultBillingPlanResponse], error) // Creates a default rate definition for a default billing plan for the REGION. // Required permissions: // // CUSTOMER_SUPPORT // TCN_BILLING_ADMIN // // Errors: // - grpc.AlreadyExists: A rate definition with the same feature already exists. // - grpc.Internal: An internal error occurred. // - grpc.InvalidArgument: The request is invalid. // - grpc.NotFound: The default billing plan doesn't exist. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. CreateDefaultRateDefinition(context.Context, *connect_go.Request[v1alpha1.CreateDefaultRateDefinitionRequest]) (*connect_go.Response[v1alpha1.CreateDefaultRateDefinitionResponse], error) // Creates an invoice for the ORG for the specified billing cycle. // Required permissions: // // CUSTOMER_SUPPORT // // Errors: // - grpc.AlreadyExists: An invoice already exists for the specified billing cycle. // - 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. // // Deprecated: do not use. CreateInvoice(context.Context, *connect_go.Request[v1alpha1.CreateInvoiceRequest]) (*connect_go.Response[v1alpha1.CreateInvoiceResponse], error) // Creates a rate definition for a Billing Plan in an ORG. // Required permissions: // // CUSTOMER_SUPPORT // // Errors: // - grpc.AlreadyExists: A rate definition with the same feature id already exists. // - grpc.Internal: An internal error occurred. // - grpc.InvalidArgument: The request is invalid. // - grpc.NotFound: The specified billing plan or rate definition group doesn't exist. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. Likely a transient issue with a downstream service. CreateRateDefinition(context.Context, *connect_go.Request[v1alpha1.CreateRateDefinitionRequest]) (*connect_go.Response[v1alpha1.CreateRateDefinitionResponse], error) // Deletes an inactive billing plan. A billing plan is inactive if it hasn't started. // Required permissions: // // CUSTOMER_SUPPORT // // Errors: // - grpc.FailedPrecondition: The billing plan is active. // - grpc.Internal: An internal error occurred. // - grpc.InvalidArgument: The request is invalid. // - grpc.NotFound: The specified billing plan doesn't exist. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. Likely a transient issue with a downstream service. // // Deprecated: do not use. DeleteBillingPlan(context.Context, *connect_go.Request[v1alpha1.DeleteBillingPlanRequest]) (*connect_go.Response[v1alpha1.DeleteBillingPlanResponse], error) // Deletes an inactive default billing plan for the REGION. A billing plan is inactive // if it hasn't started. // Required permissions: // // CUSTOMER_SUPPORT // TCN_BILLING_ADMIN // // Errors: // - grpc.FailedPrecondition: The billing plan is active. // - grpc.Internal: An internal error occurred. // - grpc.InvalidArgument: The request is invalid. // - grpc.NotFound: The default billing plan doesn't exist. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. // // Deprecated: do not use. DeleteDefaultBillingPlan(context.Context, *connect_go.Request[v1alpha1.DeleteDefaultBillingPlanRequest]) (*connect_go.Response[v1alpha1.DeleteDefaultBillingPlanResponse], error) // Deletes a rate definition from the default billing plan for the REGION. // - The default billing plan must be inactive. // // Required permissions: // // CUSTOMER_SUPPORT // TCN_BILLING_ADMIN // // Errors: // - grpc.FailedPrecondition: The billing plan is active. // - grpc.Internal: An internal error occurred. // - grpc.InvalidArgument: The request is invalid. // - grpc.NotFound: The rate definition doesn't exist. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. DeleteDefaultRateDefinition(context.Context, *connect_go.Request[v1alpha1.DeleteDefaultRateDefinitionRequest]) (*connect_go.Response[v1alpha1.DeleteDefaultRateDefinitionResponse], error) // Deletes an invoice. // Required permissions: // // CUSTOMER_SUPPORT // // Errors: // - grpc.Internal: An internal error occurred. // - grpc.InvalidArgument: The request is invalid. // - grpc.NotFound: The specified invoice doesn't exist. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. Likely a transient issue with a downstream service. // // Deprecated: do not use. DeleteInvoice(context.Context, *connect_go.Request[v1alpha1.DeleteInvoiceRequest]) (*connect_go.Response[v1alpha1.DeleteInvoiceResponse], error) // Deletes a rate definition from a Billing Plan in an ORG. // - The billing plan must be inactive. // // Required permissions: // // CUSTOMER_SUPPORT // // Errors: // - grpc.FailedPrecondition: The billing plan is active. // - grpc.Internal: An internal error occurred. // - grpc.InvalidArgument: The request is invalid. // - grpc.NotFound: The specified billing plan or rate definition group doesn't exist. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. Likely a transient issue with a downstream service. DeleteRateDefinition(context.Context, *connect_go.Request[v1alpha1.DeleteRateDefinitionRequest]) (*connect_go.Response[v1alpha1.DeleteRateDefinitionResponse], error) // Duplicates a billing plan. This copies the billing plan and all of its rate definitions. // Required permissions: // // CUSTOMER_SUPPORT // // Errors: // - grpc.Internal: An internal error occurred. // - grpc.InvalidArgument: The request is invalid. // - grpc.NotFound: The specified billing plan doesn't exist. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. Likely a transient issue with a downstream service. // // Deprecated: do not use. DuplicateBillingPlan(context.Context, *connect_go.Request[v1alpha1.DuplicateBillingPlanRequest]) (*connect_go.Response[v1alpha1.DuplicateBillingPlanResponse], error) // Duplicates a default billing plan. This copies the billing plan, all of its rate definitions, // and all of its rate definition groups and features. // Required permissions: // // CUSTOMER_SUPPORT // TCN_BILLING_ADMIN // // Errors: // - grpc.Internal: An internal error occurred. // - grpc.InvalidArgument: The request is invalid. // - grpc.NotFound: The specified billing plan doesn't exist. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. Likely a transient issue with a downstream service. // // Deprecated: do not use. DuplicateDefaultBillingPlan(context.Context, *connect_go.Request[v1alpha1.DuplicateDefaultBillingPlanRequest]) (*connect_go.Response[v1alpha1.DuplicateDefaultBillingPlanResponse], 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[v1alpha1.ExportInvoiceRequest]) (*connect_go.Response[v1alpha1.ExportInvoiceResponse], error) // Returns the active billing plan for the ORG or REGION. The active billing plan is a billing plan // whose start_time has passed and end_time has not passed. If multiple satisfy that requirement, the // newest one is considered active. If no plan is active, it indicates the ORG is using REGION defaults, // or that the REGION has not been set up for billing yet. // Required permissions: // // CUSTOMER_SUPPORT // // Errors: // - grpc.Internal: An internal error occurred. // - grpc.InvalidArgument: The request is invalid. // - grpc.NotFound: There isn't an active billing plan. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. Likely a transient issue with a downstream service. // // Deprecated: do not use. GetActiveBillingPlan(context.Context, *connect_go.Request[v1alpha1.GetActiveBillingPlanRequest]) (*connect_go.Response[v1alpha1.GetActiveBillingPlanResponse], error) // Returns the specified billing plan. // Required permissions: // // CUSTOMER_SUPPORT // // Errors: // - grpc.Internal: An internal error occurred. // - grpc.InvalidArgument: The request is invalid. // - grpc.NotFound: The specified billing plan doesn't exist. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. Likely a transient issue with a downstream service. // // Deprecated: do not use. GetBillingPlan(context.Context, *connect_go.Request[v1alpha1.GetBillingPlanRequest]) (*connect_go.Response[v1alpha1.GetBillingPlanResponse], error) // Returns the billing plan history for the ORG or REGION. // Required permissions: // // CUSTOMER_SUPPORT // // 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. // // Deprecated: do not use. GetBillingPlanHistory(context.Context, *connect_go.Request[v1alpha1.GetBillingPlanHistoryRequest]) (*connect_go.Response[v1alpha1.GetBillingPlanHistoryResponse], error) // Returns the specified invoice. // Required permissions: // // CUSTOMER_SUPPORT // // Errors: // - grpc.Internal: An internal error occurred. // - grpc.InvalidArgument: The request is invalid. // - grpc.NotFound: The specified invoice doesn't exist. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. Likely a transient issue with a downstream service. // // Deprecated: do not use. GetInvoice(context.Context, *connect_go.Request[v1alpha1.GetInvoiceRequest]) (*connect_go.Response[v1alpha1.GetInvoiceResponse], error) // Returns the specified rate definition. // Required permissions: // // CUSTOMER_SUPPORT // // Errors: // - grpc.Internal: An internal error occurred. // - grpc.InvalidArgument: The request is invalid. // - grpc.NotFound: The specified rate definition doesn't exist. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. GetRateDefinition(context.Context, *connect_go.Request[v1alpha1.GetRateDefinitionRequest]) (*connect_go.Response[v1alpha1.GetRateDefinitionResponse], error) // Lists billing plans. // Required permissions: // // CUSTOMER_SUPPORT // // 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. // // Deprecated: do not use. ListBillingPlans(context.Context, *connect_go.Request[v1alpha1.ListBillingPlansRequest]) (*connect_go.Response[v1alpha1.ListBillingPlansResponse], error) // Lists invoices. // Required permissions: // // CUSTOMER_SUPPORT // // 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. // // Deprecated: do not use. ListInvoices(context.Context, *connect_go.Request[v1alpha1.ListInvoicesRequest]) (*connect_go.Response[v1alpha1.ListInvoicesResponse], error) // Lists rate definitions. // Required permissions: // // CUSTOMER_SUPPORT // // 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. ListRateDefinitions(context.Context, *connect_go.Request[v1alpha1.ListRateDefinitionsRequest]) (*connect_go.Response[v1alpha1.ListRateDefinitionsResponse], error) // Updates an inactive billing plan. A billing plan is inactive if it hasn't started. // Required permissions: // // CUSTOMER_SUPPORT // // Errors: // - grpc.FailedPrecondition: The billing plan is active. // - grpc.Internal: An internal error occurred. // - grpc.InvalidArgument: The request is invalid. // - grpc.NotFound: The specified billing plan doesn't exist. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. Likely a transient issue with a downstream service. // // Deprecated: do not use. UpdateBillingPlan(context.Context, *connect_go.Request[v1alpha1.UpdateBillingPlanRequest]) (*connect_go.Response[v1alpha1.UpdateBillingPlanResponse], error) // Updates an inactive default billing plan for the REGION. A billing plan is inactive // if it hasn't started. // Required permissions: // // CUSTOMER_SUPPORT // TCN_BILLING_ADMIN // // Errors: // - grpc.FailedPrecondition: The billing plan is active. // - 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. // // Deprecated: do not use. UpdateDefaultBillingPlan(context.Context, *connect_go.Request[v1alpha1.UpdateDefaultBillingPlanRequest]) (*connect_go.Response[v1alpha1.UpdateDefaultBillingPlanResponse], error) // Updates a default rate definition. // - The billing plan must be inactive. // // Required permissions: // // CUSTOMER_SUPPORT // // Errors: // - grpc.FailedPrecondition: The billing plan is active. // - grpc.Internal: An internal error occurred. // - grpc.InvalidArgument: The request is invalid. // - grpc.NotFound: The specified rate definition doesn't exist. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. UpdateDefaultRateDefinition(context.Context, *connect_go.Request[v1alpha1.UpdateDefaultRateDefinitionRequest]) (*connect_go.Response[v1alpha1.UpdateDefaultRateDefinitionResponse], error) // Updates the specified invoice. // Required permissions: // // CUSTOMER_SUPPORT // // Errors: // - grpc.Internal: An internal error occurred. // - grpc.InvalidArgument: The request is invalid. // - grpc.NotFound: The specified invoice doesn't exist. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. Likely a transient issue with a downstream service. // // Deprecated: do not use. UpdateInvoice(context.Context, *connect_go.Request[v1alpha1.UpdateInvoiceRequest]) (*connect_go.Response[v1alpha1.UpdateInvoiceResponse], error) // Updates a rate definition. // - The billing plan must be inactive. // // Required permissions: // // CUSTOMER_SUPPORT // // Errors: // - grpc.FailedPrecondition: The billing plan is active. // - grpc.Internal: An internal error occurred. // - grpc.InvalidArgument: The request is invalid. // - grpc.NotFound: The specified rate definition doesn't exist. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. UpdateRateDefinition(context.Context, *connect_go.Request[v1alpha1.UpdateRateDefinitionRequest]) (*connect_go.Response[v1alpha1.UpdateRateDefinitionResponse], error) }
BillingServiceHandler is an implementation of the services.billing.v1alpha1.BillingService service.
type UnimplementedBillingServiceHandler ¶
type UnimplementedBillingServiceHandler struct{}
UnimplementedBillingServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedBillingServiceHandler) CommitBillingPlan ¶
func (UnimplementedBillingServiceHandler) CommitBillingPlan(context.Context, *connect_go.Request[v1alpha1.CommitBillingPlanRequest]) (*connect_go.Response[v1alpha1.CommitBillingPlanResponse], error)
func (UnimplementedBillingServiceHandler) CommitDefaultBillingPlan ¶
func (UnimplementedBillingServiceHandler) CommitDefaultBillingPlan(context.Context, *connect_go.Request[v1alpha1.CommitDefaultBillingPlanRequest]) (*connect_go.Response[v1alpha1.CommitDefaultBillingPlanResponse], error)
func (UnimplementedBillingServiceHandler) CreateBillingPlan ¶
func (UnimplementedBillingServiceHandler) CreateBillingPlan(context.Context, *connect_go.Request[v1alpha1.CreateBillingPlanRequest]) (*connect_go.Response[v1alpha1.CreateBillingPlanResponse], error)
func (UnimplementedBillingServiceHandler) CreateDefaultBillingPlan ¶
func (UnimplementedBillingServiceHandler) CreateDefaultBillingPlan(context.Context, *connect_go.Request[v1alpha1.CreateDefaultBillingPlanRequest]) (*connect_go.Response[v1alpha1.CreateDefaultBillingPlanResponse], error)
func (UnimplementedBillingServiceHandler) CreateDefaultRateDefinition ¶
func (UnimplementedBillingServiceHandler) CreateDefaultRateDefinition(context.Context, *connect_go.Request[v1alpha1.CreateDefaultRateDefinitionRequest]) (*connect_go.Response[v1alpha1.CreateDefaultRateDefinitionResponse], error)
func (UnimplementedBillingServiceHandler) CreateInvoice ¶
func (UnimplementedBillingServiceHandler) CreateInvoice(context.Context, *connect_go.Request[v1alpha1.CreateInvoiceRequest]) (*connect_go.Response[v1alpha1.CreateInvoiceResponse], error)
func (UnimplementedBillingServiceHandler) CreateRateDefinition ¶
func (UnimplementedBillingServiceHandler) CreateRateDefinition(context.Context, *connect_go.Request[v1alpha1.CreateRateDefinitionRequest]) (*connect_go.Response[v1alpha1.CreateRateDefinitionResponse], error)
func (UnimplementedBillingServiceHandler) DeleteBillingPlan ¶
func (UnimplementedBillingServiceHandler) DeleteBillingPlan(context.Context, *connect_go.Request[v1alpha1.DeleteBillingPlanRequest]) (*connect_go.Response[v1alpha1.DeleteBillingPlanResponse], error)
func (UnimplementedBillingServiceHandler) DeleteDefaultBillingPlan ¶
func (UnimplementedBillingServiceHandler) DeleteDefaultBillingPlan(context.Context, *connect_go.Request[v1alpha1.DeleteDefaultBillingPlanRequest]) (*connect_go.Response[v1alpha1.DeleteDefaultBillingPlanResponse], error)
func (UnimplementedBillingServiceHandler) DeleteDefaultRateDefinition ¶
func (UnimplementedBillingServiceHandler) DeleteDefaultRateDefinition(context.Context, *connect_go.Request[v1alpha1.DeleteDefaultRateDefinitionRequest]) (*connect_go.Response[v1alpha1.DeleteDefaultRateDefinitionResponse], error)
func (UnimplementedBillingServiceHandler) DeleteInvoice ¶
func (UnimplementedBillingServiceHandler) DeleteInvoice(context.Context, *connect_go.Request[v1alpha1.DeleteInvoiceRequest]) (*connect_go.Response[v1alpha1.DeleteInvoiceResponse], error)
func (UnimplementedBillingServiceHandler) DeleteRateDefinition ¶
func (UnimplementedBillingServiceHandler) DeleteRateDefinition(context.Context, *connect_go.Request[v1alpha1.DeleteRateDefinitionRequest]) (*connect_go.Response[v1alpha1.DeleteRateDefinitionResponse], error)
func (UnimplementedBillingServiceHandler) DuplicateBillingPlan ¶
func (UnimplementedBillingServiceHandler) DuplicateBillingPlan(context.Context, *connect_go.Request[v1alpha1.DuplicateBillingPlanRequest]) (*connect_go.Response[v1alpha1.DuplicateBillingPlanResponse], error)
func (UnimplementedBillingServiceHandler) DuplicateDefaultBillingPlan ¶
func (UnimplementedBillingServiceHandler) DuplicateDefaultBillingPlan(context.Context, *connect_go.Request[v1alpha1.DuplicateDefaultBillingPlanRequest]) (*connect_go.Response[v1alpha1.DuplicateDefaultBillingPlanResponse], error)
func (UnimplementedBillingServiceHandler) ExportInvoice ¶
func (UnimplementedBillingServiceHandler) ExportInvoice(context.Context, *connect_go.Request[v1alpha1.ExportInvoiceRequest]) (*connect_go.Response[v1alpha1.ExportInvoiceResponse], error)
func (UnimplementedBillingServiceHandler) GetActiveBillingPlan ¶
func (UnimplementedBillingServiceHandler) GetActiveBillingPlan(context.Context, *connect_go.Request[v1alpha1.GetActiveBillingPlanRequest]) (*connect_go.Response[v1alpha1.GetActiveBillingPlanResponse], error)
func (UnimplementedBillingServiceHandler) GetBillingPlan ¶
func (UnimplementedBillingServiceHandler) GetBillingPlan(context.Context, *connect_go.Request[v1alpha1.GetBillingPlanRequest]) (*connect_go.Response[v1alpha1.GetBillingPlanResponse], error)
func (UnimplementedBillingServiceHandler) GetBillingPlanHistory ¶ added in v1.7.69
func (UnimplementedBillingServiceHandler) GetBillingPlanHistory(context.Context, *connect_go.Request[v1alpha1.GetBillingPlanHistoryRequest]) (*connect_go.Response[v1alpha1.GetBillingPlanHistoryResponse], error)
func (UnimplementedBillingServiceHandler) GetInvoice ¶
func (UnimplementedBillingServiceHandler) GetInvoice(context.Context, *connect_go.Request[v1alpha1.GetInvoiceRequest]) (*connect_go.Response[v1alpha1.GetInvoiceResponse], error)
func (UnimplementedBillingServiceHandler) GetRateDefinition ¶
func (UnimplementedBillingServiceHandler) GetRateDefinition(context.Context, *connect_go.Request[v1alpha1.GetRateDefinitionRequest]) (*connect_go.Response[v1alpha1.GetRateDefinitionResponse], error)
func (UnimplementedBillingServiceHandler) ListBillingPlans ¶
func (UnimplementedBillingServiceHandler) ListBillingPlans(context.Context, *connect_go.Request[v1alpha1.ListBillingPlansRequest]) (*connect_go.Response[v1alpha1.ListBillingPlansResponse], error)
func (UnimplementedBillingServiceHandler) ListInvoices ¶
func (UnimplementedBillingServiceHandler) ListInvoices(context.Context, *connect_go.Request[v1alpha1.ListInvoicesRequest]) (*connect_go.Response[v1alpha1.ListInvoicesResponse], error)
func (UnimplementedBillingServiceHandler) ListRateDefinitions ¶
func (UnimplementedBillingServiceHandler) ListRateDefinitions(context.Context, *connect_go.Request[v1alpha1.ListRateDefinitionsRequest]) (*connect_go.Response[v1alpha1.ListRateDefinitionsResponse], error)
func (UnimplementedBillingServiceHandler) UpdateBillingPlan ¶
func (UnimplementedBillingServiceHandler) UpdateBillingPlan(context.Context, *connect_go.Request[v1alpha1.UpdateBillingPlanRequest]) (*connect_go.Response[v1alpha1.UpdateBillingPlanResponse], error)
func (UnimplementedBillingServiceHandler) UpdateDefaultBillingPlan ¶
func (UnimplementedBillingServiceHandler) UpdateDefaultBillingPlan(context.Context, *connect_go.Request[v1alpha1.UpdateDefaultBillingPlanRequest]) (*connect_go.Response[v1alpha1.UpdateDefaultBillingPlanResponse], error)
func (UnimplementedBillingServiceHandler) UpdateDefaultRateDefinition ¶
func (UnimplementedBillingServiceHandler) UpdateDefaultRateDefinition(context.Context, *connect_go.Request[v1alpha1.UpdateDefaultRateDefinitionRequest]) (*connect_go.Response[v1alpha1.UpdateDefaultRateDefinitionResponse], error)
func (UnimplementedBillingServiceHandler) UpdateInvoice ¶
func (UnimplementedBillingServiceHandler) UpdateInvoice(context.Context, *connect_go.Request[v1alpha1.UpdateInvoiceRequest]) (*connect_go.Response[v1alpha1.UpdateInvoiceResponse], error)
func (UnimplementedBillingServiceHandler) UpdateRateDefinition ¶
func (UnimplementedBillingServiceHandler) UpdateRateDefinition(context.Context, *connect_go.Request[v1alpha1.UpdateRateDefinitionRequest]) (*connect_go.Response[v1alpha1.UpdateRateDefinitionResponse], error)