Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/public-api-server/pkg/billingservice/noop.go
2499 views
1
// Copyright (c) 2022 Gitpod GmbH. All rights reserved.
2
// Licensed under the GNU Affero General Public License (AGPL).
3
// See License.AGPL.txt in the project root for license information.
4
5
package billingservice
6
7
import "context"
8
9
type NoOpClient struct{}
10
11
func (c *NoOpClient) FinalizeInvoice(ctx context.Context, invoiceId string) error {
12
return nil
13
}
14
15
func (c *NoOpClient) CancelSubscription(ctx context.Context, subscriptionId string) error {
16
return nil
17
}
18
19
func (c *NoOpClient) OnChargeDispute(ctx context.Context, disputeID string) error {
20
return nil
21
}
22
23
func (c *NoOpClient) UpdateCustomerSubscriptionsTaxState(ctx context.Context, customerID string) error {
24
return nil
25
}
26
27