Documentation ¶
Index ¶
- Constants
- func NewBillingServiceHandler(svc BillingServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
- type BillingServiceClient
- type BillingServiceHandler
- type UnimplementedBillingServiceHandler
- func (UnimplementedBillingServiceHandler) CreateDefaultRateDefinition(context.Context, ...) (*connect_go.Response[v1alpha2.CreateDefaultRateDefinitionResponse], error)
- func (UnimplementedBillingServiceHandler) CreateDefaultRateDefinitions(context.Context, ...) (*connect_go.Response[v1alpha2.CreateDefaultRateDefinitionsResponse], error)
- func (UnimplementedBillingServiceHandler) CreateRateDefinition(context.Context, *connect_go.Request[v1alpha2.CreateRateDefinitionRequest]) (*connect_go.Response[v1alpha2.CreateRateDefinitionResponse], error)
- func (UnimplementedBillingServiceHandler) CreateRateDefinitions(context.Context, *connect_go.Request[v1alpha2.CreateRateDefinitionsRequest]) (*connect_go.Response[v1alpha2.CreateRateDefinitionsResponse], error)
- func (UnimplementedBillingServiceHandler) DeleteDefaultRateDefinition(context.Context, ...) (*connect_go.Response[v1alpha2.DeleteDefaultRateDefinitionResponse], error)
- func (UnimplementedBillingServiceHandler) DeleteDefaultRateDefinitions(context.Context, ...) (*connect_go.Response[v1alpha2.DeleteDefaultRateDefinitionsResponse], error)
- func (UnimplementedBillingServiceHandler) DeleteRateDefinition(context.Context, *connect_go.Request[v1alpha2.DeleteRateDefinitionRequest]) (*connect_go.Response[v1alpha2.DeleteRateDefinitionResponse], error)
- func (UnimplementedBillingServiceHandler) DeleteRateDefinitions(context.Context, *connect_go.Request[v1alpha2.DeleteRateDefinitionsRequest]) (*connect_go.Response[v1alpha2.DeleteRateDefinitionsResponse], error)
- func (UnimplementedBillingServiceHandler) ExportInvoice(context.Context, *connect_go.Request[v1alpha2.ExportInvoiceRequest]) (*connect_go.Response[v1alpha2.ExportInvoiceResponse], error)
- func (UnimplementedBillingServiceHandler) GetRateDefinition(context.Context, *connect_go.Request[v1alpha2.GetRateDefinitionRequest]) (*connect_go.Response[v1alpha2.GetRateDefinitionResponse], error)
- func (UnimplementedBillingServiceHandler) GetRateHistory(context.Context, *connect_go.Request[v1alpha2.GetRateHistoryRequest]) (*connect_go.Response[v1alpha2.GetRateHistoryResponse], error)
- func (UnimplementedBillingServiceHandler) ListActiveRateDefinitions(context.Context, ...) (*connect_go.Response[v1alpha2.ListActiveRateDefinitionsResponse], error)
- func (UnimplementedBillingServiceHandler) ListRateDefinitions(context.Context, *connect_go.Request[v1alpha2.ListRateDefinitionsRequest]) (*connect_go.Response[v1alpha2.ListRateDefinitionsResponse], error)
- func (UnimplementedBillingServiceHandler) UpdateDefaultRateDefinition(context.Context, ...) (*connect_go.Response[v1alpha2.UpdateDefaultRateDefinitionResponse], error)
- func (UnimplementedBillingServiceHandler) UpdateRateDefinition(context.Context, *connect_go.Request[v1alpha2.UpdateRateDefinitionRequest]) (*connect_go.Response[v1alpha2.UpdateRateDefinitionResponse], error)
Constants ¶
const ( // BillingServiceCreateDefaultRateDefinitionProcedure is the fully-qualified name of the // BillingService's CreateDefaultRateDefinition RPC. BillingServiceCreateDefaultRateDefinitionProcedure = "/services.billing.v1alpha2.BillingService/CreateDefaultRateDefinition" // BillingServiceCreateDefaultRateDefinitionsProcedure is the fully-qualified name of the // BillingService's CreateDefaultRateDefinitions RPC. BillingServiceCreateDefaultRateDefinitionsProcedure = "/services.billing.v1alpha2.BillingService/CreateDefaultRateDefinitions" // BillingServiceCreateRateDefinitionProcedure is the fully-qualified name of the BillingService's // CreateRateDefinition RPC. BillingServiceCreateRateDefinitionProcedure = "/services.billing.v1alpha2.BillingService/CreateRateDefinition" // BillingServiceCreateRateDefinitionsProcedure is the fully-qualified name of the BillingService's // CreateRateDefinitions RPC. BillingServiceCreateRateDefinitionsProcedure = "/services.billing.v1alpha2.BillingService/CreateRateDefinitions" // BillingServiceDeleteDefaultRateDefinitionProcedure is the fully-qualified name of the // BillingService's DeleteDefaultRateDefinition RPC. BillingServiceDeleteDefaultRateDefinitionProcedure = "/services.billing.v1alpha2.BillingService/DeleteDefaultRateDefinition" // BillingServiceDeleteDefaultRateDefinitionsProcedure is the fully-qualified name of the // BillingService's DeleteDefaultRateDefinitions RPC. BillingServiceDeleteDefaultRateDefinitionsProcedure = "/services.billing.v1alpha2.BillingService/DeleteDefaultRateDefinitions" // BillingServiceDeleteRateDefinitionProcedure is the fully-qualified name of the BillingService's // DeleteRateDefinition RPC. BillingServiceDeleteRateDefinitionProcedure = "/services.billing.v1alpha2.BillingService/DeleteRateDefinition" // BillingServiceDeleteRateDefinitionsProcedure is the fully-qualified name of the BillingService's // DeleteRateDefinitions RPC. BillingServiceDeleteRateDefinitionsProcedure = "/services.billing.v1alpha2.BillingService/DeleteRateDefinitions" // BillingServiceExportInvoiceProcedure is the fully-qualified name of the BillingService's // ExportInvoice RPC. BillingServiceExportInvoiceProcedure = "/services.billing.v1alpha2.BillingService/ExportInvoice" // BillingServiceGetRateDefinitionProcedure is the fully-qualified name of the BillingService's // GetRateDefinition RPC. BillingServiceGetRateDefinitionProcedure = "/services.billing.v1alpha2.BillingService/GetRateDefinition" // BillingServiceGetRateHistoryProcedure is the fully-qualified name of the BillingService's // GetRateHistory RPC. BillingServiceGetRateHistoryProcedure = "/services.billing.v1alpha2.BillingService/GetRateHistory" // BillingServiceListActiveRateDefinitionsProcedure is the fully-qualified name of the // BillingService's ListActiveRateDefinitions RPC. BillingServiceListActiveRateDefinitionsProcedure = "/services.billing.v1alpha2.BillingService/ListActiveRateDefinitions" // BillingServiceListRateDefinitionsProcedure is the fully-qualified name of the BillingService's // ListRateDefinitions RPC. BillingServiceListRateDefinitionsProcedure = "/services.billing.v1alpha2.BillingService/ListRateDefinitions" // BillingServiceUpdateDefaultRateDefinitionProcedure is the fully-qualified name of the // BillingService's UpdateDefaultRateDefinition RPC. BillingServiceUpdateDefaultRateDefinitionProcedure = "/services.billing.v1alpha2.BillingService/UpdateDefaultRateDefinition" // BillingServiceUpdateRateDefinitionProcedure is the fully-qualified name of the BillingService's // UpdateRateDefinition RPC. BillingServiceUpdateRateDefinitionProcedure = "/services.billing.v1alpha2.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.v1alpha2.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 { // Creates a rate definition for the REGION. // Required permissions: // // CUSTOMER_SUPPORT // TCN_BILLING_ADMIN // // Errors: // - grpc.AlreadyExists: A rate definition with the same data already exists. // - 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. CreateDefaultRateDefinition(context.Context, *connect_go.Request[v1alpha2.CreateDefaultRateDefinitionRequest]) (*connect_go.Response[v1alpha2.CreateDefaultRateDefinitionResponse], error) // Creates rate definitions for the REGION. // Required permissions: // // CUSTOMER_SUPPORT // TCN_BILLING_ADMIN // // Errors: // - grpc.AlreadyExists: A rate definition with the same data already exists. // - 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. CreateDefaultRateDefinitions(context.Context, *connect_go.Request[v1alpha2.CreateDefaultRateDefinitionsRequest]) (*connect_go.Response[v1alpha2.CreateDefaultRateDefinitionsResponse], error) // Creates a rate definition for an ORG. // Required permissions: // // CUSTOMER_SUPPORT // // Errors: // - grpc.AlreadyExists: A rate definition with the same data already exists. // - 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. CreateRateDefinition(context.Context, *connect_go.Request[v1alpha2.CreateRateDefinitionRequest]) (*connect_go.Response[v1alpha2.CreateRateDefinitionResponse], error) // Creates rate definitions for an ORG. // Required permissions: // // CUSTOMER_SUPPORT // // Errors: // - grpc.AlreadyExists: A rate definition with the same data already exists. // - 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. CreateRateDefinitions(context.Context, *connect_go.Request[v1alpha2.CreateRateDefinitionsRequest]) (*connect_go.Response[v1alpha2.CreateRateDefinitionsResponse], error) // Deletes a rate definition from the REGION. // 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 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[v1alpha2.DeleteDefaultRateDefinitionRequest]) (*connect_go.Response[v1alpha2.DeleteDefaultRateDefinitionResponse], error) // Deletes rate definitions from the REGION. // 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 doesn't exist. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. DeleteDefaultRateDefinitions(context.Context, *connect_go.Request[v1alpha2.DeleteDefaultRateDefinitionsRequest]) (*connect_go.Response[v1alpha2.DeleteDefaultRateDefinitionsResponse], error) // Deletes a rate definition from an ORG. // 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. Likely a transient issue with a downstream service. DeleteRateDefinition(context.Context, *connect_go.Request[v1alpha2.DeleteRateDefinitionRequest]) (*connect_go.Response[v1alpha2.DeleteRateDefinitionResponse], error) // Deletes rate definitions from an ORG. // 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. Likely a transient issue with a downstream service. DeleteRateDefinitions(context.Context, *connect_go.Request[v1alpha2.DeleteRateDefinitionsRequest]) (*connect_go.Response[v1alpha2.DeleteRateDefinitionsResponse], 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[v1alpha2.ExportInvoiceRequest]) (*connect_go.Response[v1alpha2.ExportInvoiceResponse], 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[v1alpha2.GetRateDefinitionRequest]) (*connect_go.Response[v1alpha2.GetRateDefinitionResponse], error) // Returns the rate 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. GetRateHistory(context.Context, *connect_go.Request[v1alpha2.GetRateHistoryRequest]) (*connect_go.Response[v1alpha2.GetRateHistoryResponse], error) // Lists active 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. ListActiveRateDefinitions(context.Context, *connect_go.Request[v1alpha2.ListActiveRateDefinitionsRequest]) (*connect_go.Response[v1alpha2.ListActiveRateDefinitionsResponse], 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[v1alpha2.ListRateDefinitionsRequest]) (*connect_go.Response[v1alpha2.ListRateDefinitionsResponse], error) // Updates a default 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. UpdateDefaultRateDefinition(context.Context, *connect_go.Request[v1alpha2.UpdateDefaultRateDefinitionRequest]) (*connect_go.Response[v1alpha2.UpdateDefaultRateDefinitionResponse], 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 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[v1alpha2.UpdateRateDefinitionRequest]) (*connect_go.Response[v1alpha2.UpdateRateDefinitionResponse], error) }
BillingServiceClient is a client for the services.billing.v1alpha2.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.v1alpha2.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 { // Creates a rate definition for the REGION. // Required permissions: // // CUSTOMER_SUPPORT // TCN_BILLING_ADMIN // // Errors: // - grpc.AlreadyExists: A rate definition with the same data already exists. // - 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. CreateDefaultRateDefinition(context.Context, *connect_go.Request[v1alpha2.CreateDefaultRateDefinitionRequest]) (*connect_go.Response[v1alpha2.CreateDefaultRateDefinitionResponse], error) // Creates rate definitions for the REGION. // Required permissions: // // CUSTOMER_SUPPORT // TCN_BILLING_ADMIN // // Errors: // - grpc.AlreadyExists: A rate definition with the same data already exists. // - 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. CreateDefaultRateDefinitions(context.Context, *connect_go.Request[v1alpha2.CreateDefaultRateDefinitionsRequest]) (*connect_go.Response[v1alpha2.CreateDefaultRateDefinitionsResponse], error) // Creates a rate definition for an ORG. // Required permissions: // // CUSTOMER_SUPPORT // // Errors: // - grpc.AlreadyExists: A rate definition with the same data already exists. // - 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. CreateRateDefinition(context.Context, *connect_go.Request[v1alpha2.CreateRateDefinitionRequest]) (*connect_go.Response[v1alpha2.CreateRateDefinitionResponse], error) // Creates rate definitions for an ORG. // Required permissions: // // CUSTOMER_SUPPORT // // Errors: // - grpc.AlreadyExists: A rate definition with the same data already exists. // - 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. CreateRateDefinitions(context.Context, *connect_go.Request[v1alpha2.CreateRateDefinitionsRequest]) (*connect_go.Response[v1alpha2.CreateRateDefinitionsResponse], error) // Deletes a rate definition from the REGION. // 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 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[v1alpha2.DeleteDefaultRateDefinitionRequest]) (*connect_go.Response[v1alpha2.DeleteDefaultRateDefinitionResponse], error) // Deletes rate definitions from the REGION. // 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 doesn't exist. // - grpc.PermissionDenied: Caller doesn't have the required permissions. // - grpc.Unavailable: The operation is currently unavailable. DeleteDefaultRateDefinitions(context.Context, *connect_go.Request[v1alpha2.DeleteDefaultRateDefinitionsRequest]) (*connect_go.Response[v1alpha2.DeleteDefaultRateDefinitionsResponse], error) // Deletes a rate definition from an ORG. // 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. Likely a transient issue with a downstream service. DeleteRateDefinition(context.Context, *connect_go.Request[v1alpha2.DeleteRateDefinitionRequest]) (*connect_go.Response[v1alpha2.DeleteRateDefinitionResponse], error) // Deletes rate definitions from an ORG. // 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. Likely a transient issue with a downstream service. DeleteRateDefinitions(context.Context, *connect_go.Request[v1alpha2.DeleteRateDefinitionsRequest]) (*connect_go.Response[v1alpha2.DeleteRateDefinitionsResponse], 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[v1alpha2.ExportInvoiceRequest]) (*connect_go.Response[v1alpha2.ExportInvoiceResponse], 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[v1alpha2.GetRateDefinitionRequest]) (*connect_go.Response[v1alpha2.GetRateDefinitionResponse], error) // Returns the rate 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. GetRateHistory(context.Context, *connect_go.Request[v1alpha2.GetRateHistoryRequest]) (*connect_go.Response[v1alpha2.GetRateHistoryResponse], error) // Lists active 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. ListActiveRateDefinitions(context.Context, *connect_go.Request[v1alpha2.ListActiveRateDefinitionsRequest]) (*connect_go.Response[v1alpha2.ListActiveRateDefinitionsResponse], 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[v1alpha2.ListRateDefinitionsRequest]) (*connect_go.Response[v1alpha2.ListRateDefinitionsResponse], error) // Updates a default 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. UpdateDefaultRateDefinition(context.Context, *connect_go.Request[v1alpha2.UpdateDefaultRateDefinitionRequest]) (*connect_go.Response[v1alpha2.UpdateDefaultRateDefinitionResponse], 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 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[v1alpha2.UpdateRateDefinitionRequest]) (*connect_go.Response[v1alpha2.UpdateRateDefinitionResponse], error) }
BillingServiceHandler is an implementation of the services.billing.v1alpha2.BillingService service.
type UnimplementedBillingServiceHandler ¶
type UnimplementedBillingServiceHandler struct{}
UnimplementedBillingServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedBillingServiceHandler) CreateDefaultRateDefinition ¶
func (UnimplementedBillingServiceHandler) CreateDefaultRateDefinition(context.Context, *connect_go.Request[v1alpha2.CreateDefaultRateDefinitionRequest]) (*connect_go.Response[v1alpha2.CreateDefaultRateDefinitionResponse], error)
func (UnimplementedBillingServiceHandler) CreateDefaultRateDefinitions ¶
func (UnimplementedBillingServiceHandler) CreateDefaultRateDefinitions(context.Context, *connect_go.Request[v1alpha2.CreateDefaultRateDefinitionsRequest]) (*connect_go.Response[v1alpha2.CreateDefaultRateDefinitionsResponse], error)
func (UnimplementedBillingServiceHandler) CreateRateDefinition ¶
func (UnimplementedBillingServiceHandler) CreateRateDefinition(context.Context, *connect_go.Request[v1alpha2.CreateRateDefinitionRequest]) (*connect_go.Response[v1alpha2.CreateRateDefinitionResponse], error)
func (UnimplementedBillingServiceHandler) CreateRateDefinitions ¶
func (UnimplementedBillingServiceHandler) CreateRateDefinitions(context.Context, *connect_go.Request[v1alpha2.CreateRateDefinitionsRequest]) (*connect_go.Response[v1alpha2.CreateRateDefinitionsResponse], error)
func (UnimplementedBillingServiceHandler) DeleteDefaultRateDefinition ¶
func (UnimplementedBillingServiceHandler) DeleteDefaultRateDefinition(context.Context, *connect_go.Request[v1alpha2.DeleteDefaultRateDefinitionRequest]) (*connect_go.Response[v1alpha2.DeleteDefaultRateDefinitionResponse], error)
func (UnimplementedBillingServiceHandler) DeleteDefaultRateDefinitions ¶
func (UnimplementedBillingServiceHandler) DeleteDefaultRateDefinitions(context.Context, *connect_go.Request[v1alpha2.DeleteDefaultRateDefinitionsRequest]) (*connect_go.Response[v1alpha2.DeleteDefaultRateDefinitionsResponse], error)
func (UnimplementedBillingServiceHandler) DeleteRateDefinition ¶
func (UnimplementedBillingServiceHandler) DeleteRateDefinition(context.Context, *connect_go.Request[v1alpha2.DeleteRateDefinitionRequest]) (*connect_go.Response[v1alpha2.DeleteRateDefinitionResponse], error)
func (UnimplementedBillingServiceHandler) DeleteRateDefinitions ¶
func (UnimplementedBillingServiceHandler) DeleteRateDefinitions(context.Context, *connect_go.Request[v1alpha2.DeleteRateDefinitionsRequest]) (*connect_go.Response[v1alpha2.DeleteRateDefinitionsResponse], error)
func (UnimplementedBillingServiceHandler) ExportInvoice ¶
func (UnimplementedBillingServiceHandler) ExportInvoice(context.Context, *connect_go.Request[v1alpha2.ExportInvoiceRequest]) (*connect_go.Response[v1alpha2.ExportInvoiceResponse], error)
func (UnimplementedBillingServiceHandler) GetRateDefinition ¶
func (UnimplementedBillingServiceHandler) GetRateDefinition(context.Context, *connect_go.Request[v1alpha2.GetRateDefinitionRequest]) (*connect_go.Response[v1alpha2.GetRateDefinitionResponse], error)
func (UnimplementedBillingServiceHandler) GetRateHistory ¶
func (UnimplementedBillingServiceHandler) GetRateHistory(context.Context, *connect_go.Request[v1alpha2.GetRateHistoryRequest]) (*connect_go.Response[v1alpha2.GetRateHistoryResponse], error)
func (UnimplementedBillingServiceHandler) ListActiveRateDefinitions ¶
func (UnimplementedBillingServiceHandler) ListActiveRateDefinitions(context.Context, *connect_go.Request[v1alpha2.ListActiveRateDefinitionsRequest]) (*connect_go.Response[v1alpha2.ListActiveRateDefinitionsResponse], error)
func (UnimplementedBillingServiceHandler) ListRateDefinitions ¶
func (UnimplementedBillingServiceHandler) ListRateDefinitions(context.Context, *connect_go.Request[v1alpha2.ListRateDefinitionsRequest]) (*connect_go.Response[v1alpha2.ListRateDefinitionsResponse], error)
func (UnimplementedBillingServiceHandler) UpdateDefaultRateDefinition ¶
func (UnimplementedBillingServiceHandler) UpdateDefaultRateDefinition(context.Context, *connect_go.Request[v1alpha2.UpdateDefaultRateDefinitionRequest]) (*connect_go.Response[v1alpha2.UpdateDefaultRateDefinitionResponse], error)
func (UnimplementedBillingServiceHandler) UpdateRateDefinition ¶
func (UnimplementedBillingServiceHandler) UpdateRateDefinition(context.Context, *connect_go.Request[v1alpha2.UpdateRateDefinitionRequest]) (*connect_go.Response[v1alpha2.UpdateRateDefinitionResponse], error)