Path: blob/main/components/usage/pkg/apiv1/billing_noop.go
2499 views
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.1// Licensed under the GNU Affero General Public License (AGPL).2// See License.AGPL.txt in the project root for license information.34package apiv156import (7"context"89"github.com/gitpod-io/gitpod/common-go/log"10v1 "github.com/gitpod-io/gitpod/usage-api/v1"11)1213// BillingServiceNoop is used for Self-Hosted installations14type BillingServiceNoop struct {15v1.UnimplementedBillingServiceServer16}1718func (s *BillingServiceNoop) ReconcileInvoices(_ context.Context, _ *v1.ReconcileInvoicesRequest) (*v1.ReconcileInvoicesResponse, error) {19log.Infof("ReconcileInvoices RPC invoked in no-op mode, no invoices will be updated.")20return &v1.ReconcileInvoicesResponse{}, nil21}2223func (s *BillingServiceNoop) CancelSubscription(ctx context.Context, in *v1.CancelSubscriptionRequest) (*v1.CancelSubscriptionResponse, error) {24log.Infof("ReconcileInvoices RPC invoked in no-op mode, no invoices will be updated.")25return &v1.CancelSubscriptionResponse{}, nil26}272829