Path: blob/main/components/public-api-server/pkg/billingservice/mock_billingservice/billingservice.go
2500 views
// Copyright (c) 2024 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.34// Code generated by MockGen. DO NOT EDIT.5// Source: client.go67// Package mock_billingservice is a generated GoMock package.8package mock_billingservice910import (11context "context"12reflect "reflect"1314gomock "github.com/golang/mock/gomock"15)1617// MockInterface is a mock of Interface interface.18type MockInterface struct {19ctrl *gomock.Controller20recorder *MockInterfaceMockRecorder21}2223// MockInterfaceMockRecorder is the mock recorder for MockInterface.24type MockInterfaceMockRecorder struct {25mock *MockInterface26}2728// NewMockInterface creates a new mock instance.29func NewMockInterface(ctrl *gomock.Controller) *MockInterface {30mock := &MockInterface{ctrl: ctrl}31mock.recorder = &MockInterfaceMockRecorder{mock}32return mock33}3435// EXPECT returns an object that allows the caller to indicate expected use.36func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder {37return m.recorder38}3940// CancelSubscription mocks base method.41func (m *MockInterface) CancelSubscription(ctx context.Context, subscriptionId string) error {42m.ctrl.T.Helper()43ret := m.ctrl.Call(m, "CancelSubscription", ctx, subscriptionId)44ret0, _ := ret[0].(error)45return ret046}4748// CancelSubscription indicates an expected call of CancelSubscription.49func (mr *MockInterfaceMockRecorder) CancelSubscription(ctx, subscriptionId interface{}) *gomock.Call {50mr.mock.ctrl.T.Helper()51return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelSubscription", reflect.TypeOf((*MockInterface)(nil).CancelSubscription), ctx, subscriptionId)52}5354// FinalizeInvoice mocks base method.55func (m *MockInterface) FinalizeInvoice(ctx context.Context, invoiceId string) error {56m.ctrl.T.Helper()57ret := m.ctrl.Call(m, "FinalizeInvoice", ctx, invoiceId)58ret0, _ := ret[0].(error)59return ret060}6162// FinalizeInvoice indicates an expected call of FinalizeInvoice.63func (mr *MockInterfaceMockRecorder) FinalizeInvoice(ctx, invoiceId interface{}) *gomock.Call {64mr.mock.ctrl.T.Helper()65return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FinalizeInvoice", reflect.TypeOf((*MockInterface)(nil).FinalizeInvoice), ctx, invoiceId)66}6768// OnChargeDispute mocks base method.69func (m *MockInterface) OnChargeDispute(ctx context.Context, disputeID string) error {70m.ctrl.T.Helper()71ret := m.ctrl.Call(m, "OnChargeDispute", ctx, disputeID)72ret0, _ := ret[0].(error)73return ret074}7576// OnChargeDispute indicates an expected call of OnChargeDispute.77func (mr *MockInterfaceMockRecorder) OnChargeDispute(ctx, disputeID interface{}) *gomock.Call {78mr.mock.ctrl.T.Helper()79return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnChargeDispute", reflect.TypeOf((*MockInterface)(nil).OnChargeDispute), ctx, disputeID)80}8182// UpdateCustomerSubscriptionsTaxState mocks base method.83func (m *MockInterface) UpdateCustomerSubscriptionsTaxState(ctx context.Context, customerID string) error {84m.ctrl.T.Helper()85ret := m.ctrl.Call(m, "UpdateCustomerSubscriptionsTaxState", ctx, customerID)86ret0, _ := ret[0].(error)87return ret088}8990// UpdateCustomerSubscriptionsTaxState indicates an expected call of UpdateCustomerSubscriptionsTaxState.91func (mr *MockInterfaceMockRecorder) UpdateCustomerSubscriptionsTaxState(ctx, customerID interface{}) *gomock.Call {92mr.mock.ctrl.T.Helper()93return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateCustomerSubscriptionsTaxState", reflect.TypeOf((*MockInterface)(nil).UpdateCustomerSubscriptionsTaxState), ctx, customerID)94}959697