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/mock_billingservice/billingservice.go
2500 views
1
// Copyright (c) 2024 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
// Code generated by MockGen. DO NOT EDIT.
6
// Source: client.go
7
8
// Package mock_billingservice is a generated GoMock package.
9
package mock_billingservice
10
11
import (
12
context "context"
13
reflect "reflect"
14
15
gomock "github.com/golang/mock/gomock"
16
)
17
18
// MockInterface is a mock of Interface interface.
19
type MockInterface struct {
20
ctrl *gomock.Controller
21
recorder *MockInterfaceMockRecorder
22
}
23
24
// MockInterfaceMockRecorder is the mock recorder for MockInterface.
25
type MockInterfaceMockRecorder struct {
26
mock *MockInterface
27
}
28
29
// NewMockInterface creates a new mock instance.
30
func NewMockInterface(ctrl *gomock.Controller) *MockInterface {
31
mock := &MockInterface{ctrl: ctrl}
32
mock.recorder = &MockInterfaceMockRecorder{mock}
33
return mock
34
}
35
36
// EXPECT returns an object that allows the caller to indicate expected use.
37
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder {
38
return m.recorder
39
}
40
41
// CancelSubscription mocks base method.
42
func (m *MockInterface) CancelSubscription(ctx context.Context, subscriptionId string) error {
43
m.ctrl.T.Helper()
44
ret := m.ctrl.Call(m, "CancelSubscription", ctx, subscriptionId)
45
ret0, _ := ret[0].(error)
46
return ret0
47
}
48
49
// CancelSubscription indicates an expected call of CancelSubscription.
50
func (mr *MockInterfaceMockRecorder) CancelSubscription(ctx, subscriptionId interface{}) *gomock.Call {
51
mr.mock.ctrl.T.Helper()
52
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelSubscription", reflect.TypeOf((*MockInterface)(nil).CancelSubscription), ctx, subscriptionId)
53
}
54
55
// FinalizeInvoice mocks base method.
56
func (m *MockInterface) FinalizeInvoice(ctx context.Context, invoiceId string) error {
57
m.ctrl.T.Helper()
58
ret := m.ctrl.Call(m, "FinalizeInvoice", ctx, invoiceId)
59
ret0, _ := ret[0].(error)
60
return ret0
61
}
62
63
// FinalizeInvoice indicates an expected call of FinalizeInvoice.
64
func (mr *MockInterfaceMockRecorder) FinalizeInvoice(ctx, invoiceId interface{}) *gomock.Call {
65
mr.mock.ctrl.T.Helper()
66
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FinalizeInvoice", reflect.TypeOf((*MockInterface)(nil).FinalizeInvoice), ctx, invoiceId)
67
}
68
69
// OnChargeDispute mocks base method.
70
func (m *MockInterface) OnChargeDispute(ctx context.Context, disputeID string) error {
71
m.ctrl.T.Helper()
72
ret := m.ctrl.Call(m, "OnChargeDispute", ctx, disputeID)
73
ret0, _ := ret[0].(error)
74
return ret0
75
}
76
77
// OnChargeDispute indicates an expected call of OnChargeDispute.
78
func (mr *MockInterfaceMockRecorder) OnChargeDispute(ctx, disputeID interface{}) *gomock.Call {
79
mr.mock.ctrl.T.Helper()
80
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnChargeDispute", reflect.TypeOf((*MockInterface)(nil).OnChargeDispute), ctx, disputeID)
81
}
82
83
// UpdateCustomerSubscriptionsTaxState mocks base method.
84
func (m *MockInterface) UpdateCustomerSubscriptionsTaxState(ctx context.Context, customerID string) error {
85
m.ctrl.T.Helper()
86
ret := m.ctrl.Call(m, "UpdateCustomerSubscriptionsTaxState", ctx, customerID)
87
ret0, _ := ret[0].(error)
88
return ret0
89
}
90
91
// UpdateCustomerSubscriptionsTaxState indicates an expected call of UpdateCustomerSubscriptionsTaxState.
92
func (mr *MockInterfaceMockRecorder) UpdateCustomerSubscriptionsTaxState(ctx, customerID interface{}) *gomock.Call {
93
mr.mock.ctrl.T.Helper()
94
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateCustomerSubscriptionsTaxState", reflect.TypeOf((*MockInterface)(nil).UpdateCustomerSubscriptionsTaxState), ctx, customerID)
95
}
96
97